/* Reset box sizing */
* {
  box-sizing: border-box;
}

html {
  font-size: calc(1em + 1vw);
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #E7A717;
  margin: 0;
  padding: 0;
}

/* Welcome banner with starry sky */
.welcome {
  position: relative;
  
  overflow: hidden;
  height: 100vh;
  z-index: 1;
}

/* Stars using box-shadow and twinkle animation */

.page {
  position: relative;
  background: linear-gradient(
    to bottom,
    #050509 0%,       /* cielo estrellado intenso arriba */
    #0b0c2a 70%,      /* transición a azul oscuro */
    #d97c4a 90%,      /* tonos de amanecer naranja */
    #ffe0b3 140%      /* color claro simulando el sol al horizonte */
  );
  overflow: hidden;
}

.welcome::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  box-shadow:
    5vw 10vh 1px #fff,
    20vw 15vh 1px #fff,
    35vw 5vh 2px #fff,
    50vw 20vh 1px #fff,
    65vw 10vh 1px #fff,
    80vw 25vh 1px #fff,
    90vw 5vh 2px #fff,
    15vw 35vh 1px #fff,
    45vw 40vh 1px #fff,
    70vw 50vh 2px #fff,
    25vw 60vh 1px #fff,
    55vw 70vh 1px #fff,
    85vw 80vh 2px #fff;
  animation: twinkle 4s infinite alternate;
  z-index: 1;
  pointer-events: none;
}

.page::after {
  content: "";
  position: absolute;
  bottom: -35vw; /* más abajo para mostrar solo el cuarto superior del sol */
  left: 50%;
  transform: translateX(-50%);
  width: 60vw; /* más grande */
  height: 40vw;
  background: radial-gradient(circle, #ffd700 0%, #ff9900 100%);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(255, 223, 0, 0.6);
  z-index: 0;
}




@keyframes twinkle {
  from { opacity:0.3; } to { opacity:1; }
}

/* Header radial background */
.header {
  background: 
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.15) 1px, transparent 1px),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.2) 2px, transparent 2px),
    linear-gradient(135deg, #0b0c2a 0%, #011122 100%);
  background-size:
    80px 80px,
    120px 120px,
    cover;
  background-blend-mode: lighten;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
}

.logo {
  display: flex;
  align-items: center;   /* centra verticalmente */
  justify-content: flex-start;
  gap: 0.5rem;           /* separación horizontal constante */
  height: 100%;          /* que ocupe todo el alto disponible */
}


.header.sticky {
  transform: translateY(-16vh);
}

.header.h-down {
  transform: translateY(0%);
}

/* nav logo */
.nav-logo {
  width: 3rem;
  height: auto;
  padding: 1px 0;
  line-height: 6vh;
}


/* Display text styles */
.display-4 {
  font-size: 2.2rem;
  font-weight: bold;
  color: white;
  margin-top: 45vh;
}

/* .Beetik-text in grid */
.Beetik-text {
  display: flex;
  align-items: center;  /* centra verticalmente el texto dentro del contenedor flex */
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.6rem;
  color: white;
}

/* Projects and Training aligned to right */
.desc-text {
  position: absolute;
  top: 2.3rem;
  right: 2rem;
  font-size: 0.6rem;
  color: white;
  text-align: right;
}

@media (max-width: 600px) {
  .desc-text {
    top: 3rem;
    right: 1rem;
    font-size: 0.6rem;
  }
}


.content-block {
  display: flex;
  flex-wrap: wrap;          /* permite varias líneas */
  justify-content: center;  /* centra los artículos horizontalmente */
  gap: 1rem;                /* espacio entre artículos */
  width: 100%;              /* ocupa todo el ancho */
  z-index: 0;
}



/* Flexbox for main layout */
@media (min-width: 576px) {
  .content-block {
    display: flex;
    flex-wrap: nowrap;
  }

  .complementary {
    flex: 0 0 30%;
  }
}

@media (max-width: 768px) {
  .articles {
    flex-direction: column;
    align-items: center;
  }
}


/* Navbar and burger menu */
.navbar,
.menu {
  display: flex;
  align-items: center
  justify-content: space-between;
  background: #000000;
  font-size: 1rem;
  width: 100%;
  padding: 0 0.2rem;
}

h1 {
    margin: 0.67em 0;
    font-size: 1em;
    font-weight: 600;
    color: #d0d0d0;
    text-align: center;
}

h3, .h3 {
  font-size: 0.55rem;
}

h3 span,
h3 i {
  margin-right: 0.3em; /* o la cantidad que desees */
}



/* Ocultar burger menu (checkbtn) en escritorio */
@media (min-width: 859px) {
  .checkbtn {
    display: none;
  }
}

.checkbtn {
  font-size: 1rem;
  color: white;
  margin-left: auto;     /* empuja a la derecha dentro del flex */
  cursor: pointer;
  border: none;
  background: none;
  display: none;
}



@media (max-width: 858px) {
  .checkbtn {
    display: block;
  }
}

.menu-items {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}



.menu-items li {
  display: flex;
  align-items: center;
}

.menu-items li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: white;
  text-decoration: none;
}

.menu-items li.active a {
  color: #00c4ff;
}

.menu-items li:hover a {
  color: #b5e4fc;
}

@media (max-width: 858px) {
  .menu-items {
    position: absolute;
    top: 100%;                /* justo debajo del navbar */
    left: 0;
    width: 100%;
    max-height: 0;            /* colapsado inicialmente */
    overflow: hidden;
    background: #2c3e50;
    transition: max-height 0.5s ease;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: -1;
  }
  .menu-items.show {
    max-height: 500px;        /* ajusta según la altura de tus links */
  }
  .menu-items li {
    margin: 20px 0;
  }
}


/* Grid for header branding */
.grid-container {
  display: flex;
  align-items: center;  /* misma altura */
  justify-content: flex-start;
  gap: 0.5rem;          /* pequeña distancia constante */
  padding-left: 1rem;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: 2fr 1fr;
  height: 15vh;
  grid-template-areas:
    "btklogo btktxt"
    "btklogo btkdesc";
}

.logo {
  grid-area: btklogo;
  display: flex;
  justify-content: flex-start;              /* alinear a la izquierda */
  margin-left: 35%;                         /* mover al 25% de la pantalla */
  margin-right: 0;
  text-decoration: none;
}

@media (max-width: 858px) {
  .logo {
    justify-content: flex-start;              /* alinear a la izquierda */
    margin-left: 20%;                         /* mover al 25% de la pantalla */
    margin-right: 0;
  }
}

@media (max-width: 425px) {
  .logo {
    justify-content: flex-start;              /* alinear a la izquierda */
    margin-left: 15%;                         /* mover al 25% de la pantalla */
    margin-right: 0;
  }
}

.logo img {
  width: 60%;
  margin: 17%;
}

/* circle logo layers with spacing */
.circle {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.18rem; /* 👈 espacio superior */
}

.circle2 {
  position: absolute;
  width: 93%;
  height: 93%;
  border-radius: 50%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circle3 {
  position: absolute;
  height: 100%;
  width: 94%;
  border-radius: 50%;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
}

.circle3 img {
  width: 60%;
  height: auto;
}

/* Presentation text block */
.intro-presentation {
  font-size: 1rem;
  text-align: center;
}

.learn-more-button {
  margin-top: 2em;
}

button {
  position: relative;
  border: none;
  background: #111;
  color: #fff;
  font-size: 1rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: background 0.5s;
}

.btnInfoAp{
  height: 60px;
    width: 200px;
    margin: 0 35px;
    border-radius: 50px;
    border: none;
    outline: none;
    background: #111;
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
}

button:hover {
  background: linear-gradient(90deg, #03a9f4, #f441a5, #ffeb3b, #03a9f4);
  background-size: 400%;
  animation: glow 8s linear infinite;
}

@keyframes glow {
  0% { background-position: 0%; }
  100% { background-position: 400%; }
}

button a {
  color: white;
  text-decoration: none;
}

/* Cards for articles */
.card {
  height: 45vh;
  max-width: 350px;
  margin: 0 20px;
  background: radial-gradient(black, transparent);
  transition: 0.4s;
  box-shadow: 0px 1px 9px 1px rgb(248 247 226 / 99%);
  display: flex;
  flex-direction: column;
}

.card .card-bottom-text {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.5s ease;
}


.card:hover {
  height: 70vh;
  box-shadow: 0px 1px 9px 1px rgb(248 247 226 / 99%);
}

.card:hover .card-bottom-text {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

.card .card-img {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 21vh;
}


.card .card-img img {
  object-fit: cover;
  width: 100%;       /* asegúrate de esto */
  height: 100%;      /* ocupar toda la altura del contenedor */
}


.card .card-top-text {
  padding: 5px;
}

.card .card-title{
    font-size: 3vh;
    font-weight: 600;
    color: #d0d0d0;
    text-align:center;
  }

.card-subtitle {
    font-size: 2vh;
    font-weight: 600;
    color: #ffa170;
    line-height: 20px;
    text-align: center;
}

.card-bottom-text {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);  /* un pequeño movimiento hacia abajo opcional */
  transition: all 0.4s ease;    /* suaviza la transición */
  padding: 0 20px 10px 20px;
  margin-top: 5px;

  text-align: center;
    font-size: 2vh;
    color: #ffece3;
}

.card .card-bottom-text .card-btn a {
    display: inline-flex
;
    padding: 12px 12px;
    border: none;
    font-size: 1.8vh;
    text-transform: uppercase;
    color: #fff0e6;
    font-weight: 600;
    margin-top: 3vh;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    outline: none;
    border: 1px solid #fd3535;
    /* background: linear-gradient(147deg, #fe8a39 0%, #fd3838 74%); */
}

.card .card-bottom-text .card-btn a:hover {
    transform: scale(0.9);
}

/*Hover para movil*/
.card.expanded .card-bottom-text {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}



/*Hover para escritorio*/
@media (min-width: 769px) {
  .card:hover .card-bottom-text {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .card:hover {
    height: 70vh;
    box-shadow: 0px 1px 9px 1px rgb(248 247 226 / 99%);
  }
}


.articles {
  flex: 1 1 100%;          /* que ocupe todo el ancho de su contenedor */
  display: flex;
  flex-wrap: wrap;         /* para colocar tarjetas en varias filas */
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
}


.complementary {
  order: 2;
}


.imgsocial {
  width: 2.2rem;
}


.language-switcher {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.5rem;
  z-index: 9999; /* para que siempre esté encima */
}

.language-switcher img {
  width: 30px;
  height: auto;
  cursor: pointer;
  border: 1px solid white;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.language-switcher img:hover {
  transform: scale(1.1);
}

  /**------------
   * Para Transiciones JavaScript
  --------------*/
.subscription {
  background: #0b0c2a;
  padding: 1rem;
  text-align: center;
  font-family: 'Courier New', monospace;
  color: #0ff;
  border: 2px solid #0ff;
  box-shadow: 0 0 10px #0ff;
  margin: 2rem auto;
  max-width: 500px;
}

.subscription h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 3px #0ff, 0 0 5px #0ff;
}

.subscription form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subscription input[type="text"],
.subscription input[type="email"] {
  width: 90%;
  max-width: 300px;
  margin: 0.3rem 0;
  padding: 0.5rem;
  background: black;
  color: #0ff;
  border: 1px solid #0ff;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  box-shadow: inset 0 0 5px #0ff;
  font-size: 0.9rem;
}

.subscription input[type="submit"] {
  margin-top: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: #0ff;
  color: #000;
  border: 1px solid #0ff;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.subscription input[type="submit"]:hover {
  background: #000;
  color: #0ff;
  box-shadow: 0 0 5px #0ff;
}


/*---------
FOOTER
----------*/

.footer {
  position:relative;
  background-color: transparent; /* antes era #2c3e50 */
  color: #fff;
  padding: 2rem 1rem;
  font-family: Arial, sans-serif;
}


.footer-content {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  position: absolute;
  bottom: 10px;
  right: 10px;  /* antes era left: 10px */
}


.footer-logo img {
  width: 100px;
  height: auto;
}


.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: small;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #0ff;
}

.footer-social {
  display: flex;
  gap: 1rem;
  justify-content: center;
  width: 100%;              /* para ocupar todo el ancho del footer */
}



.footer-social a {
  color: #fff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: #0ff;
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }
}


/*------------------
BLOG CARROUSEL
------------------*/
/* -------- BLOG SLIDER -------- */
.complement-cls{
  width:95%;
}

.blog-card {
  position: relative;
  margin: 2rem auto; /* centrado horizontal */
  display: block;

  height: 370px;
  width: 95%;
  max-width: 850px;
  margin: auto;
  border-radius: 0; /* forma rectangular tipo piedra */
  background: #4b3832;
  box-shadow: 0px 10px 50px rgba(193, 154, 107, 0.5);
  border: 4px solid #c19a6b;
  font-family: 'Georgia', serif;
}

.inner-part {
  position: absolute;
  display: flex;
  height: 360px;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
}

#imgTap:checked ~ .inner-part {
  padding: 0;
  transition: .1s ease-in;
}

.inner-part .img {
  height: 260px;
  width: 260px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0; /* recto */
  box-shadow: 2px 3px 15px rgba(193, 154, 107, 0.4);
  border: 3px solid #c19a6b;
}
#imgTap:checked ~ .inner-part .img {
  height: 370px;
  width: 850px;
  z-index: 99;
  margin-top: 10px;
  transition: .3s .2s ease-in;
}
.img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  cursor: pointer;
  opacity: 0;
  transition: .6s;
}
#tap-1:checked ~ .inner-part .img-1,
#tap-2:checked ~ .inner-part .img-2,
#tap-3:checked ~ .inner-part .img-3 {
  opacity: 1;
  transition-delay: .2s;
}
.content {
  padding: 0 20px 0 35px;
  width: 530px;
  margin-left: 50px;
  opacity: 0;
  transition: .6s;
}
#imgTap:checked ~ .inner-part .content {
  display: none;
}
#tap-1:checked ~ .inner-part .content-1,
#tap-2:checked ~ .inner-part .content-2,
#tap-3:checked ~ .inner-part .content-3 {
  opacity: 1;
  margin-left: 0px;
  z-index: 100;
  transition-delay: .3s;
}
.content span {
  display: block;
  color: #c19a6b;
  margin-bottom: 15px;
  font-size: 22px;
  font-weight: 600;
}
.content .title {
  font-size: 26px;
  font-weight: 700;
  color: #f5f5dc;
  margin-bottom: 20px;
  border-bottom: 2px solid #c19a6b;
  padding-bottom: 4px;
}
.content .text {
  color: #f5f5dc;
  font-size: 17px;
  margin-bottom: 30px;
  line-height: 1.5em;
  text-align: justify;
}
.content button {
  display: inline-flex;
  padding: 12px 18px;
  border: none;
  font-size: 15px;
  text-transform: uppercase;
  color: #4b3832;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 0;
  cursor: pointer;
  outline: none;
  background: linear-gradient(147deg, #c19a6b 0%, #a86f3d 74%);
  border: 2px solid #c19a6b;
}
.content button:hover {
  background: linear-gradient(147deg, #a86f3d 0%, #7b4b28 74%);
  color: #f5f5dc;
}
.sliders {
  position: absolute;
  bottom: 25px;
  left: 65%;
  transform: translateX(-50%);
  z-index: 12;
}
#imgTap:checked ~ .sliders {
  display: none;
}
.sliders .tap {
  position: relative;
  height: 10px;
  width: 50px;
  background: #c19a6b;
  border-radius: 0;
  display: inline-flex;
  margin: 0 3px;
  cursor: pointer;
}
.sliders .tap:hover {
  background: #a86f3d;
}
.sliders .tap:before {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  height: 100%;
  width: -100%;
  background: linear-gradient(147deg,#d4af7f 0%, #7b4b28 74%);
  transform: scaleX(0);
  transition: transform .6s;
  transform-origin: left;
}
input[type="radio"],
input[type="checkbox"] {
  display: none;
}
#tap-1:checked ~ .sliders .tap-1:before,
#tap-2:checked ~ .sliders .tap-2:before,
#tap-3:checked ~ .sliders .tap-3:before {
  transform: scaleX(1);
  width: 100%;
}



