@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* --- RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Outfit", serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: white;
  background-color: #ffffff;
  overflow-x: hidden;
}
h1, h2, h3 {
  margin-bottom: 0.5em;
  line-height: 1.2;
}
p{
  margin-bottom: 1em;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: #007bff;
}
.container {
  width: 85%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5em;
}
#body-container {
  max-width: 1500px;
  margin: 0 auto;
  
}

#section__card-container {
  background: #10B6D8;
  background: linear-gradient(143deg, rgba(16, 182, 216, 1) 5%, rgba(34, 50, 95, 1) 40%, rgba(34, 50, 95, 1) 51%, rgba(34, 50, 95, 0.87) 94%);
  width: 100%;
  overflow: hidden;
}

/* --- HEADER --- */
.svg-item {
  position: absolute;
  z-index: -1;
}

/* Pulsing Animation */
.pulse {
  animation: pulse 2s infinite alternate ease-in-out;
}

@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 0.8;
  }
  to {
    transform: scale(1.2);
    opacity: 1;
  }
}

.header__deco {
  width: 50%;
  z-index: 1;
  top: -10%;
  left: -10%;
}

.header__hero-container {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4em;
}

.header__logo { 
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 600px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.header__subtitle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  width: 80%;
  max-width: 600px;
  z-index: 1;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.header__subtitle-container.visible {
  opacity: 1;
  visibility: visible;
}

.header__subtitle__separator {
  width: 100%;
  height: 4px;
  margin: 10px 0;
  transition: all 0.5s ease;
}

.header__subtitle {
  font-size: 2rem;
  line-height: 1;
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  color: #66DEC8;
  font-weight: 700;
  margin-bottom: .5em;
}

.header__subtitle__content {
  font-size: 1.5em;
  font-family: 'Poppins', sans-serif;
  margin-top: .5em;
}

@media (max-width: 768px) {
  .header__deco {
    width: 85%;
  }

  .footer__deco {
    width: 85%;
  }

  .header-micro__buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .header__logo {
    width: 95%;
  }

  .header__subtitle-container {
    width: 95%;
  }

  .micro-aprendizajes__imagen { display:none; }
}

.footer__deco {
  width: 50%;
  z-index: 1;
  bottom: -10%;
  right: -10%;
  transform: rotate(180deg);
}

.header {
  position: relative; /*  Make .header the positioning context */
  color: white;
  text-align: center;
  padding: 2em 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center ;
  min-height: 90vh;
  z-index: 1;
}

.header__arrow-container {
  width: 100%;
  display: flex;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 4em; /* Reduced from 6em to accommodate micro-aprendizajes */
}

.header__arrow {
  width: 3rem;
  color: white;
  
}

.header__title {
  font-size: 1.5em;
  font-weight: 500;
  margin-bottom: 0.4em;
  opacity: 1; /* Inicialmente oculto para la animación */
  margin-bottom: 1em;
}

.header__text {
  font-weight: 200;
  font-size: 1.2em;
  opacity: 1; /* Inicialmente oculto para la animación */
}

.header__content {
  margin-bottom: 1em;
}

.section__card--header {
  background-image:
    repeating-linear-gradient(0deg,
      rgba(199, 161, 248, 0.1),
      rgba(199, 161, 248, 0.1),
      transparent 1px,
      transparent 20%
    ),
    repeating-linear-gradient(90deg,
    rgba(199, 161, 248, 0.1),
    rgba(199, 161, 248, 0.1),
    transparent 1px,
    transparent 20%
    );
  background-size: auto, auto; /* Or specify if needed e.g., 20px 20px if grid spacing needs to match exactly background-position */
}


/* --- SECCIONES (Estilos Comunes) --- */
.section {
  padding: 3em 0;
  text-align: center;
  opacity: 1; /* Inicialmente oculto para la animación */
}
.section__title {
  font-size: 2.2em;
  margin-bottom: 1em;
  color: #213564;
  text-transform: uppercase;
}
.section__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 2em;
  width: 100%;
  justify-content: center;
}

/* --- CURSOS --- */
.curso {
  background: #19518B;
  background: linear-gradient(140deg, rgba(25, 81, 139, 1) 25%, rgba(34, 50, 95, 1) 65%);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5em;
  transition: transform 0.3s ease;
  cursor: pointer;  /* Cursor cambia a mano */
  overflow: hidden;  /* Para el efecto del overlay */
  position: relative;
  display: flex;
  justify-content: center;
  /* Removido width y height. */
  width: 100%;
  height: 100%;
  
}

.curso:hover {
  transform: translateY(-5px);
}

.curso__titulo {
  display: block; /* Asegura que ocupe todo el ancho */
  font-size: 1.2em;
  font-weight: 400;
  margin: 0; /* Resetear margenes */
  color: white;
  text-align: center; /* Centrar texto */
}

.curso__imagen {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1em;
}


/* --- HABILIDADES --- */
/* Usar los mismos estilos que .curso, cambiando solo el background */

.habilidad {
  background-color: #f8f8f8; /* Fondo claro */
  border: 1px solid #ddd; /* Borde sutil */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5em;
  transition: transform 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.habilidad:hover {
  transform: translateY(-5px); /* Mismo efecto que .curso */
  box-shadow: 0 6px 12px rgba(0,0,0,0.15); /* Sombra más pronunciada */
}

.habilidad__titulo {
  display: block;
  font-size: 1.2em;
  font-weight: normal;
  margin: 0;
  color: #333; /* Color más oscuro para habilidades */
  text-align: center;
}

.habilidad__imagen {
  width: 80px;
  height: 80px;
  margin: 0 auto 1em; /* Centrar y dar margen inferior */
  border-radius: 50%; /* Hacer circular */
  background-color: #ddd; /* Placeholder gris */
}

/* --- IDIOMAS --- */
.idiomas {
  padding-top: 5em;
  padding-bottom: 10em;
  .section__content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4em;
    
    .tab-button {
      height: fit-content;
      align-self: end;
      border-width: 1px;
    }
    
    .tab-button:hover {
      background-color: transparent;
      cursor: default;
      border: solid 1px #2A0D65;
      color: initial;
    }
    
    .section__grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-template-rows: repeat(3, minmax(3ch, 5ch));
    }
    
    img {
      border-radius: 50%;
      max-width: 150px; /* Reducir el tamaño de la imagen */
    }

    .idiomas__image {
      max-width: 200px;
      height: auto;
      width: 80%;
      align-self: flex-end;
    }
  }
  @media (max-width: 768px) {
    .section__content {
      flex-direction: column;
      gap: 2em;

      .idiomas__image {
        align-self: flex-start;
        display: none;
      }
    }
  }
}

.idioma {
  text-align: center;
  display: flex;
  flex-direction: row; /* Apilar elementos verticalmente */
  align-items: center; /* Centrar elementos */
  padding: 1em;
  border-radius: 5px;
  gap: 1em;
  background-color: #E5EDF4;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease; /* Animación sutil */
}

.idioma:hover {
  transform: scale(1.05); /* Agrandar un poco al hacer hover */
}

.idioma__bandera {
  /* Usar imagen, no icono */
  width: 45px; /* Tamaño de la bandera */
  height: 30px; /* Altura proporcional */
  border-radius: 5px;  /* Bordes redondeados para la bandera */
  border: 1px solid #ddd; /* Borde sutil */
  
}
.idioma__nombre{
  font-weight: 600;
  font-size: 1.2em;
  color: #2A0D65;
}

/* --- MICRO-APRENDIZAJES --- */
.micro-aprendizajes {
  display: flex;
  align-items: center;
  gap: 2em;
  padding: 3em 0;
  flex-wrap: wrap;
}

/* Estilos específicos para micro-aprendizajes en el header */
.header-micro-aprendizajes {
  padding: 1em 0 2em; 
  margin-top: 2em;
  width: 100%;
}

.header-micro-container {
  max-width: 65%;
}

.header-micro-texto {
  background-color: rgba(130, 245, 245, 20%);
  border: 2px solid #82F5F5;
}

.micro-aprendizajes__imagen {
  width: 30%; /* Tamaño fijo para la imagen del chatbot */
  flex-shrink: 0;  /* Evitar que la imagen se encoja */
}

.micro-aprendizajes__texto__container {
  max-width: 65%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2em;
}
.micro-aprendizajes__texto {
  font-size: 1.2em;
  flex-grow: 1; /* El texto ocupa el espacio restante */
  text-align: left; /* Alineación a la izquierda */
  background-color: rgba(130, 245, 245, 15%);
  border: 2px solid #82F5F5;
  color: white;
  border-radius: 15px;
  padding: 1.5em;
  margin-top: 1.5em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative; /* Para la animación */
}
.micro-aprendizajes__texto::before{
  content: "";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent transparent #82F5F5;
}

.inscribite__boton {
  display: inline-block;
  background-color: #82F5F5;
  -webkit-box-shadow: 0px 0px 4px 4px rgba(130, 245, 245, 0.1);
-moz-box-shadow: 0px 0px 4px 4px rgba(130,245,245,1);
box-shadow: 0px 0px 4px 4px rgba(130,245,245,1);
  color: #213564;
  font-size: 1.5em;
  padding: .4em 3em;
  border-radius: 30px; /* Bordes redondeados */
  font-weight: 500;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.inscribite__boton:hover {
  background-color: #82F5F5; /* Verde un poco más oscuro al pasar el mouse */
  cursor: pointer;  /* Cambia cursor */
}

.logueate__boton {
  display: inline-block;
  background-color: #FBF8FF;
  -webkit-box-shadow: 0px 0px 4px 4px rgba(251, 248, 255, 0.1);
-moz-box-shadow: 0px 0px 4px 4px rgba(251,248,255,1);
box-shadow: 0px 0px 4px 4px rgba(251,248,255,1);
  color: #213564;
  font-size: 1.5em;
  padding: .4em 3em;
  border-radius: 30px; /* Bordes redondeados */
  font-weight: 500;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
}

.logueate__boton:hover {
  background-color: #FBF8FF; /* Verde un poco más oscuro al pasar el mouse */
  cursor: pointer;  /* Cambia cursor */
}


/* --- APRENDÉ --- */
.aprende {
  min-height: 50vh;
  text-align: center;
  padding: 8em 0;
  color: white;
}

.aprende__titulo {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background-color: #38EAC3;
}

.aprende__parrafo {
  font-size: 2em;
  font-weight: 400;
  margin-bottom: 1.5em;
  letter-spacing: .3em;
}

.aprende__boton {
  border: solid 5px #35a68d;
  display: inline-block;
  background-color: #38EAC3;
  color: #213564;
  font-size: 1.3em;
  padding: .2em 2em;
  border-radius: 30px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.aprende__boton:hover {
  background-color: #35a68d;
}

/* --- MICRO-APRENDIZAJES + INSCRIBITE --- */
.micro-aprendizajes__container {
  background: #10B6D8;
  background: linear-gradient(143deg, rgba(16, 182, 216, 1) 5%, rgba(34, 50, 95, 1) 40%, rgba(34, 50, 95, 1) 51%, rgba(34, 50, 95, 0.87) 94%);
  border-radius: 5rem 5rem 0 0;
}

.micro-aprendizajes__container {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* --- MODAL (Popup) --- */
.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Fondo oscuro semitransparente */
  z-index: 1000; /* Asegura que esté por encima de todo */
  justify-content: center; /* Centrar horizontal y verticalmente */
  align-items: center;
}
.modal__contenido {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 2em;
  width: 90%;
  max-width: 800px; /* Limita el ancho máximo */
  position: relative; /* Para el botón de cerrar */
  overflow-y: auto; /* Habilitar scroll si el contenido es largo */
  max-height: 90vh; /* Altura máxima antes de que aparezca el scroll */
}

.modal__cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8em;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.modal__cerrar:hover{
  color: #333;
}

.modal__titulo {
  font-size: 1.8em;
  margin-bottom: 0.8em;
  color: #444;
  text-align: center; /* Centrar título */
}

.modal__imagen{
  border-radius: 8px;
  margin-bottom: 1em;
  height: 200px;
  width: 100%; /* Asegurar que la imagen se ajuste */
}

.modal__video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  margin-bottom: 1em;
}

.modal__video-container .placeholder-video { /* Estilos para el placeholder */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ddd; /* Color de fondo del placeholder */
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #999;
  font-size: 1.5em;
}

.modal__video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.modal__texto {
  line-height: 1.7;
  font-size: 1.1em;
  color: #666;
  margin-bottom: 1em;
  text-align: left; /* Alinear texto a la izquierda */
}

/* --- PLACEHOLDERS (Para imágenes y videos) --- */
.placeholder-imagen {
  background-color: #ddd; /* Gris claro */
  border-radius: 8px;
  width: 100%;
  height: 200px; /* Altura fija temporal */
  margin-bottom: 1em;
  display: flex; /* Para centrar el texto si es necesario */
  justify-content: center;
  align-items: center;
}

.placeholder-video {
  background-color: #ddd; /* Gris claro */
  border-radius: 8px;
  width: 100%;
  height: 350px;
}

.placeholder-bandera{  /* Ya no se usa, pero lo dejo por si acaso */
  background-color: #ddd;
  width:  60px;
  height: 60px;
  border-radius: 50%;
  display: inline-block;
}

/* --- TABS --- */
.tabs {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 2em;
  flex-wrap: wrap; /* Permite que los tabs se envuelvan en pantallas pequeñas */
  gap: 0.5em; /* Espacio entre tabs */
}

.tab-button {
  border: solid 5px #2c154c60;
  border-radius: 2em;
  padding: 0.4em 1.2em;
  font-family: "Outfit", serif;
  font-weight: 500;
  font-size: 1.3rem;
  text-transform: uppercase;
  color: #213564;
  background-color: #FBF8FF;
  margin: 0 5px;
  transition: background-color 0.3s ease;
}

/* .tab-button:hover {
  background-color: #7AFF7F;
}

.tab-button.active {
  background-color: #7AFF7F;
} */

.tab-content {
  padding: 2em 0;
  overflow: hidden; /* Para animaciones */
  position: relative; /*Para animaciones de contenido.*/
}

/*Ocultar contenido*/
.tab-content > * {
  opacity: 0;
  transform: translateY(20px);  /* Empieza un poco abajo */
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/*Mostrar contenido activo */

.tab-content.active > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- MEDIA QUERIES (Responsividad) --- */

/* Pantallas medianas (tablets) */
@media (max-width: 768px) {
  .aprende {
    padding: 1em;
  }
  .aprende__parrafo {
    font-size: 1.2em;
  }
  .header__title {
    font-size: 2em; /* Título más pequeño */
  }
  .header__text {
    font-size: 1.2em; /* Texto más pequeño */
  }
  .section__grid {
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr))!important;
    gap: 1em;
  }
  .section__title + div {
    display: none;
  }
  .micro-aprendizajes {
    flex-direction: column; /* Apilar elementos */
  }
  .micro-aprendizajes__container {
    border-radius: 3em 3em 0 0;
    margin-top: 4em;
  }
  .micro-aprendizajes__imagen {
    margin: 0 auto;
  }
  .micro-aprendizajes__texto__container {
    max-width: 90%;
  }
  .micro-aprendizajes__texto {
    margin-top: 0;
    padding: 1em;

    p {
      margin-bottom: 0;
    }
  }
  .micro-aprendizajes__texto::before {
    display: none; /* Remover la flecha en pantallas pequeñas */
  }
  .section {
    padding: 1em 0;
  }
  .section__card--header {
    background-image:
      repeating-linear-gradient(0deg,
        rgba(199, 161, 248, 0.1),
        rgba(199, 161, 248, 0.1),
        transparent 1px,
        transparent 60px
      ),
      repeating-linear-gradient(90deg,
      rgba(199, 161, 248, 0.1),
      rgba(199, 161, 248, 0.1),
      transparent 1px,
      transparent 60px
      );
    background-size: auto, auto;
  }
  .tabs {
    justify-content: center; /* Centrar tabs */
    margin-bottom: 0.5em;
  }
  .tab-button, .active {
    border-radius: 1em;;
  }
}

/* Pantallas pequeñas (móviles) */
@media (max-width: 480px) {
  .container {
    width: 95%;
  }
  .header__title {
    font-size: 1.8em; /* Título aún más pequeño */
  }
  .inscribite__titulo {
    font-size: 2em; /* Reducir título */
  }
  .modal__contenido {
    padding: 1em; /* Menos padding */
  }
}