/* Fuente global de la página */
body {
  font-family: 'museo-sans', sans-serif;
  background-color: #f6f1ed;
}

/* Grid para capa1 - Large Desktop (1441px+) */
.capa1 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 24px;
  /* Hacer visible la grilla - TEMPORALMENTE DESHABILITADA */
  /* background-image:
    repeating-linear-gradient(to right, transparent 0, transparent calc((100% - 11 * 24px) / 12), rgba(255, 0, 0, 0.3) calc((100% - 11 * 24px) / 12), rgba(255, 0, 0, 0.3) calc((100% - 11 * 24px) / 12 + 2px), transparent calc((100% - 11 * 24px) / 12 + 2px), transparent calc((100% - 11 * 24px) / 12 + 24px)),
    repeating-linear-gradient(to bottom, transparent 0, transparent calc((100% - 7 * 24px) / 8), rgba(255, 0, 0, 0.3) calc((100% - 7 * 24px) / 8), rgba(255, 0, 0, 0.3) calc((100% - 7 * 24px) / 8 + 2px), transparent calc((100% - 7 * 24px) / 8 + 2px), transparent calc((100% - 7 * 24px) / 8 + 24px)); */
}

/* Desktop (992px - 1440px) */
@media screen and (min-width: 992px) and (max-width: 1440px) {
  .capa1 {
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 24px;
    /* background-image:
      repeating-linear-gradient(to right, transparent 0, transparent calc((100% - 7 * 24px) / 8), rgba(255, 0, 0, 0.3) calc((100% - 7 * 24px) / 8), rgba(255, 0, 0, 0.3) calc((100% - 7 * 24px) / 8 + 2px), transparent calc((100% - 7 * 24px) / 8 + 2px), transparent calc((100% - 7 * 24px) / 8 + 24px)),
      repeating-linear-gradient(to bottom, transparent 0, transparent calc((100% - 5 * 24px) / 6), rgba(255, 0, 0, 0.3) calc((100% - 5 * 24px) / 6), rgba(255, 0, 0, 0.3) calc((100% - 5 * 24px) / 6 + 2px), transparent calc((100% - 5 * 24px) / 6 + 2px), transparent calc((100% - 5 * 24px) / 6 + 24px)); */
  }
}

/* Tablet (768px - 991px) */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .capa1 {
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 16px;
    /* background-image:
      repeating-linear-gradient(to right, transparent 0, transparent calc((100% - 7 * 16px) / 8), rgba(255, 0, 0, 0.3) calc((100% - 7 * 16px) / 8), rgba(255, 0, 0, 0.3) calc((100% - 7 * 16px) / 8 + 2px), transparent calc((100% - 7 * 16px) / 8 + 2px), transparent calc((100% - 7 * 16px) / 8 + 16px)),
      repeating-linear-gradient(to bottom, transparent 0, transparent calc((100% - 5 * 16px) / 6), rgba(255, 0, 0, 0.3) calc((100% - 5 * 16px) / 6), rgba(255, 0, 0, 0.3) calc((100% - 5 * 16px) / 6 + 2px), transparent calc((100% - 5 * 16px) / 6 + 2px), transparent calc((100% - 5 * 16px) / 6 + 16px)); */
  }
}

/* Móvil (767px-) */
@media screen and (max-width: 767px) {
  .capa1 {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 12px;
    /* background-image:
      repeating-linear-gradient(to right, transparent 0, transparent calc((100% - 5 * 12px) / 6), rgba(255, 0, 0, 0.3) calc((100% - 5 * 12px) / 6), rgba(255, 0, 0, 0.3) calc((100% - 5 * 12px) / 6 + 2px), transparent calc((100% - 5 * 12px) / 6 + 2px), transparent calc((100% - 5 * 12px) / 6 + 12px)),
      repeating-linear-gradient(to bottom, transparent 0, transparent calc((100% - 3 * 12px) / 4), rgba(255, 0, 0, 0.3) calc((100% - 3 * 12px) / 4), rgba(255, 0, 0, 0.3) calc((100% - 3 * 12px) / 4 + 2px), transparent calc((100% - 3 * 12px) / 4 + 2px), transparent calc((100% - 3 * 12px) / 4 + 12px)); */
  }
}

.capa2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

/* Estilos para el contenedor de botones */
.car_btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  padding: 10px;
  z-index: 2;
  border: none;
}

/* Estilos para los botones de navegación */
.atras,
.siguiente {
  font-family: 'museo-sans', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.atras:hover,
.siguiente:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Estilos para el carrusel */
.carrusel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carrusel-container::-webkit-scrollbar {
  /* WebKit */
  display: none;
}

/* Diapositiva - Estilos de animación del carrusel */
.diapositiva {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Diapositiva activa */
.diapositiva.activa {
  transform: translateY(0);
}

/* Colores de fondo para cada diapositiva (Eliminados para usar capa3) */
.diapo1 { background-color: transparent; }
.diapo3 { background-color: transparent; }
.diapo4 { background-color: transparent; }
.diapo5 { background-color: transparent; }


/* Estilos para los indicadores de paginación */
.indicadores {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicador {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicador:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.indicador.activo {
  background-color: #ffffff;
  transform: scale(1.3);
}

/* ===================== SECCIÓN INTRODUCCIÓN ===================== */

/* Contenedor principal de la sección */
.introduccion_edutick {
  position: relative;
  width: 100%;
height:700px;
  padding: 60px 20px;
  background-color: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Color de fondo de la página */
  overflow: hidden;
  align-items: center;

}

/* Contenedor de texto */
/* Contenedor principal de la introducción flex */
.introduccion_edutick_1 {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  background-color: #f2f6fc;
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.intro_text {
  flex: 1;
  text-align: left;
}

.contenedor2 {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sub_contenedor {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  height: 100%;
  aspect-ratio: 1 / 1;
  width: auto;
}
/* Estilos básicos para las cajas (pueden ser ajustados después) */
.caja1, .caja2, .caja3, .caja4 {
  background: #ffffff;
  min-height: 150px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  gap: 30px;
}
.caja1{
  border-radius: 30px 30px 0 30px;
}
.caja2{
  border-radius: 30px 30px 30px 0;
}
.caja3{
  border-radius: 30px 0 30px 30px;
}
.caja4{
  border-radius: 0 30px 30px 30px;
}
.caja1 h5,
.caja2 h5,
.caja3 h5,
.caja4 h5 {
  font-family: 'museo-sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #9da9bc;


}

/* ===================== ANIMACIÓN DE CAJAS ===================== */
.caja1, .caja2, .caja3, .caja4 {
  animation-name: anim-caja;
  animation-duration: 8s;
  animation-iteration-count: infinite;
  transition: all 0.3s ease;
}

/* Wrapper de imágenes para posicionar una sobre otra */
.img-wrapper {
  position: relative;
  width: 60px; /* Tamaño del icono */
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.img-wrapper img {
  position: absolute;
  width: 100%;
  height: auto;
}

/* Animaciones de cambio de opacidad */
.caja1 .img-wrapper .img-naranja,
.caja2 .img-wrapper .img-naranja,
.caja3 .img-wrapper .img-naranja,
.caja4 .img-wrapper .img-naranja {
  opacity: 0;
  animation-name: anim-img-naranja;
  animation-duration: 8s;
  animation-iteration-count: infinite;
}

.caja1 .img-wrapper .img-gris,
.caja2 .img-wrapper .img-gris,
.caja3 .img-wrapper .img-gris,
.caja4 .img-wrapper .img-gris {
  opacity: 1;
  animation-name: anim-img-gris;
  animation-duration: 8s;
  animation-iteration-count: infinite;
}

/* Animación de texto */
.caja1 h5, .caja2 h5, .caja3 h5, .caja4 h5 {
  animation-name: anim-text;
  animation-duration: 8s;
  animation-iteration-count: infinite;
}

/* Retrasos de animación para crear el ciclo (2s cada una) */
.caja1, .caja1 .img-naranja, .caja1 .img-gris, .caja1 h5 { animation-delay: 0s; }
.caja2, .caja2 .img-naranja, .caja2 .img-gris, .caja2 h5 { animation-delay: 2s; }
.caja3, .caja3 .img-naranja, .caja3 .img-gris, .caja3 h5 { animation-delay: 4s; }
.caja4, .caja4 .img-naranja, .caja4 .img-gris, .caja4 h5 { animation-delay: 6s; }

/* KEYFRAMES */
@keyframes anim-caja {
  0%, 20% { transform: scale(1.05); box-shadow: 0 20px 50px rgba(254, 117, 59, 0.15); }
  25%, 100% { transform: scale(1); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); }
}

@keyframes anim-img-naranja {
  0%, 20% { opacity: 1; transform: scale(1.1); }
  25%, 100% { opacity: 0; transform: scale(1); }
}

@keyframes anim-img-gris {
  0%, 20% { opacity: 0; }
  25%, 100% { opacity: 1; }
}

@keyframes anim-text {
  0%, 20% { color: #fe753b; transform: scale(1.05); }
  25%, 100% { color: #9da9bc; transform: scale(1); }
}
/* Título principal */
.introduccion_edutick_1 h3 {
  font-family: 'museo-sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #466075;
  margin-bottom: 20px;
}

/* Subtítulo */
.introduccion_edutick_1 h4 {
  font-family: 'museo-sans', sans-serif;
  font-size: 3em;
  font-weight: 700;
  color: #fe753b;
  margin-bottom: 15px;
}

/* Párrafo descriptivo */
.introduccion_edutick_1 p {
  font-family: 'museo-sans', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #9da9bc;
  max-width: 800px;
  margin: 0;
}

/* ===================== RESPONSIVE ===================== */

/* Tablet */
@media screen and (max-width: 767px) {
  .introduccion_edutick_1 {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px; /* Añade un padding específico en móviles para asegurar espacio */
  }

  .intro_text {
    text-align: center;
    width: 100%;
  }

  .intro_text h4 {
    margin-top: 0; /* Evita que el margen del texto lo empuje o quede extraño con el borde */
  }

  .introduccion_edutick_1 p {
    margin: 0 auto; /* Vuelve a centrar en tablet */
  }

  .sub_contenedor {
    height: 350px; /* Disminuimos el tamaño manteniendo su aspecto cuadrado */
  }

  .introduccion_edutick_1 h3 {
    font-size: 2rem;
  }

  .introduccion_edutick_1 h4 {
    font-size: 1.5rem;
  }

  .introduccion_edutick_1 p {
    font-size: 1rem;
  }
}

/* Móvil */
@media screen and (max-width: 768px) {
  .introduccion_edutick {
    padding: 40px 15px;
  }

  .sub_contenedor {
    width: 100%; /* Ahora se guía por el ancho del padre */
    height: auto; /* Liberamos la altura para que aspect-ratio mande según el ancho */
    max-width: 450px; /* Evita que crezca desproporcionadamente en tablets pequeñas/móviles anchos */
    margin: 0 auto;
    gap: 10px; /* Reducimos el espacio entre cajas en móvil */
  }



  .introduccion_edutick_1 h3 {
    font-size: 1.8rem;
  }

  .introduccion_edutick_1 h4 {
    font-size: 1.3rem;
  }

  .introduccion_edutick_1 p {
    font-size: 0.95rem;
  }
}

/* Móvil pequeño */
@media screen and (max-width: 480px) {



  .introduccion_edutick_1 h3 {
    font-size: 1.5rem;
  }

  .introduccion_edutick_1 h4 {
    font-size: 1.1rem;
  }

  .introduccion_edutick_1 p {
    font-size: 0.9rem;
  }
}

/* Móvil S (Móvil muy pequeño) */
@media screen and (max-width: 375px) {

  .caja1, .caja2, .caja3, .caja4 {
    padding: 50px;
    gap: 10px;
    min-height: auto;
  }

  .caja1 h5, .caja2 h5, .caja3 h5, .caja4 h5 {
    font-size: 0.85rem;
  }
}
