

/*ßå========================================= HOME CSS (extraído desde <style> del index) ========================================= */
/* 1. HERO SUPERIOR */
.home-hero {
  position: relative;
  width: 100%;
  min-height: 75vh;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-top: -20px;
  z-index: 1;
}

.hero-media-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.hero-content-wrap {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-text {
  flex: 1;
  min-width: 300px;
  color: white;
  text-align: left;
  background: rgba(0, 0, 0, 0.3);
  padding: 30px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.hero-text h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  color: white;
  margin-top: 0;
}

.hero-text p {
  font-family: 'Nunito', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 30px;
  line-height: 1.4;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.eyebrow {
  color: #ffe28a;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.cta-group {
  display: flex;
  gap: 15px;
}

.btn-new {
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Nunito', sans-serif;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-filled {
  background: #f34750;
  color: white;
  box-shadow: 0 4px 15px rgba(243, 71, 80, 0.4);
}

.btn-filled:hover {
  background: #d63039;
  transform: translateY(-3px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  backdrop-filter: blur(5px);
}

.btn-outline:hover {
  background: white;
  color: #a479bd;
  border-color: white;
}

/* Polaroids */
.hero-visuals {
  flex: 1;
  min-width: 300px;
  height: 400px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.polaroid-card {
  background: white;
  padding: 10px 10px 35px 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  position: absolute;
  width: 220px;
  transition: transform 0.3s ease;
  text-align: center;
  border-radius: 4px;
}

.polaroid-card img {
  width: 100%;
  border: 1px solid #eee;
  margin-bottom: 5px;
  display: block;
}

.polaroid-card span {
  font-family: 'Fredoka', sans-serif;
  color: #333;
  font-size: 1rem;
}

.p1 {
  transform: rotate(-8deg) translate(-30px, -20px);
  z-index: 1;
}

.p2 {
  transform: rotate(5deg) translate(30px, 30px);
  z-index: 2;
}

.hero-visuals:hover .p1 {
  transform: rotate(-15deg) translate(-70px, 0);
}

.hero-visuals:hover .p2 {
  transform: rotate(10deg) translate(70px, 20px);
}

/* ========================================= 2. NUBES (COLOR CORRECTO + OVERLAP) - La nube debe tener el color de la sección DE ABAJO - Se sobrepone hacia ARRIBA sobre la sección anterior ========================================= */
.cloud-separator {
  --cloud-color: #ffffff;
  --cloud-h: 100px;
  --overlap: 55px;
  height: var(--cloud-h);
  width: 100%;
  background-color: var(--cloud-color);
  -webkit-mask-image: url("./public/ark-of-learning-cloud-divider.png");
  -webkit-mask-repeat: repeat-x;
  -webkit-mask-size: auto var(--cloud-h);
  -webkit-mask-position: left top;
  mask-image: url("./public/ark-of-learning-cloud-divider.png");
  mask-repeat: repeat-x;
  mask-size: auto var(--cloud-h);
  mask-position: left top;
  position: relative;
  z-index: 20;
  margin-top: calc(var(--overlap) * -1);
  margin-bottom: 0;
  animation: moveClouds 60s linear infinite;
}

@keyframes moveClouds {
  0% {
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }

  100% {
    -webkit-mask-position: -1000px 0;
    mask-position: -1000px 0;
  }
}

/* Fondos */
.bg-blue {
  background-color: #e3f2fd;
}

.bg-yellow {
  background-color: #fff9c4;
}

.bg-purple {
  background-color: #f3e5f5;
}

.bg-pink {
  background-color: #fce4ec;
}

/* La nube hereda el color de la sección de abajo */
.cloud-blue {
  --cloud-color: #e3f2fd;
}

.cloud-yellow {
  --cloud-color: #fff9c4;
}

.cloud-purple {
  --cloud-color: #f3e5f5;
}

.cloud-pink {
  --cloud-color: #fce4ec;
}

.cloud-white {
  --cloud-color: #ffffff;
}

/* Importante para que el overlap no tape contenido */
.bg-blue,
.bg-yellow,
.bg-purple,
.bg-pink {
  position: relative;
  z-index: 1;
  padding-top: 70px;
  /* ajusta si quieres más/menos */
}

/* ========================================= 3. SECCIÓN DE VIDEOS LADO A LADO ========================================= */
.video-duo-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  flex-wrap: wrap;
}

.video-card-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 550px;
  background: white;
  padding: 20px;
  border-radius: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.video-card-wrapper h3 {
  font-family: 'Fredoka', sans-serif;
  color: #a479bd;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

.video-frame {
  width: 100%;
  height: 320px;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================= 4. GALERÍA ========================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 30px auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(164, 121, 189, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-text {
  color: white;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.4rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-text {
  transform: translateY(0);
}

/* Ajustes varios */
.info-card {
  background: white;
  border-radius: 20px;
  border-bottom: 5px solid #ddd;
}

.info-card .card-image {
  height: 160px !important;
  padding: 15px !important;
  border-radius: 20px 20px 0 0;
}

.info-card .card-image img {
  max-height: 100% !important;
  width: auto !important;
}

.pdf-buttons-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Cloud frame para algunos items */
.gallery-item.cloud-frame {
  overflow: visible !important;
  padding: 14px !important;
  border-radius: 30px !important;
  box-shadow: none !important;
  background: transparent !important;
  position: relative !important;
  isolation: isolate;
}

.gallery-item.cloud-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 34px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 12% 8%, #fff 0 16px, transparent 17px), radial-gradient(circle at 28% 6%, #fff 0 20px, transparent 21px), radial-gradient(circle at 44% 8%, #fff 0 16px, transparent 17px), radial-gradient(circle at 60% 6%, #fff 0 22px, transparent 23px), radial-gradient(circle at 76% 8%, #fff 0 16px, transparent 17px), radial-gradient(circle at 92% 6%, #fff 0 20px, transparent 21px), radial-gradient(circle at 10% 94%, #fff 0 16px, transparent 17px), radial-gradient(circle at 26% 96%, #fff 0 20px, transparent 21px), radial-gradient(circle at 42% 94%, #fff 0 16px, transparent 17px), radial-gradient(circle at 58% 96%, #fff 0 22px, transparent 23px), radial-gradient(circle at 74% 94%, #fff 0 16px, transparent 17px), radial-gradient(circle at 90% 96%, #fff 0 20px, transparent 21px), radial-gradient(circle at 6% 18%, #fff 0 18px, transparent 19px), radial-gradient(circle at 6% 38%, #fff 0 22px, transparent 23px), radial-gradient(circle at 6% 58%, #fff 0 18px, transparent 19px), radial-gradient(circle at 6% 78%, #fff 0 22px, transparent 23px), radial-gradient(circle at 94% 18%, #fff 0 18px, transparent 19px), radial-gradient(circle at 94% 38%, #fff 0 22px, transparent 23px), radial-gradient(circle at 94% 58%, #fff 0 18px, transparent 19px), radial-gradient(circle at 94% 78%, #fff 0 22px, transparent 23px), linear-gradient(#fff, #fff);
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.14));
}

.gallery-item.cloud-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.65);
  z-index: 1;
  pointer-events: none;
}

.gallery-item.cloud-frame>img {
  position: relative !important;
  z-index: 2 !important;
  border-radius: 18px !important;
}

.gallery-item.cloud-frame .gallery-overlay {
  z-index: 3 !important;
  border-radius: 18px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content-wrap {
    flex-direction: column;
    text-align: center;
    padding-top: 80px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .cta-group {
    justify-content: center;
  }

  .hero-visuals {
    height: 320px;
    margin-top: 30px;
  }

  .polaroid-card {
    width: 170px;
  }

  .video-frame {
    height: 250px;
  }

  /* Ajuste overlap en móvil (si lo quieres un poco menor) */
  .cloud-separator {
    --overlap: 45px;
  }
}
/* ===== INFO CARDS: 4 COLUMNAS CORRECTAS ===== */
.info-cards .card-container{
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columnas reales */
  gap: 28px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Cada card ocupa una columna */
.info-card{
  width: 100%;
  max-width: none;
}

/* Responsive */
@media (max-width: 1200px){
  .info-cards .card-container{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px){
  .info-cards .card-container{
    grid-template-columns: 1fr;
  }
}
/* ===== INFO CARDS: que el botón quede abajo ===== */
.info-card{
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* el bloque blanco donde está el texto */
.info-card .card-content{
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* CTA al final siempre */
.info-card .esa-cta,
.info-card .card-content .btn-learn-more{
  margin-top: auto;
}

/* Opcional: para que se vea más “footer” del card */
.info-card .esa-cta{
  padding-top: 14px;
}

/* Si quieres que el botón quede alineado abajo a la izquierda */
.info-card .esa-cta{
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}
/* =========================
   EXPLORE & CELEBRATE (VIDEOS)
========================= */

.explore-section{
  padding: 60px 18px;
}

.explore-head{
  max-width: 980px;
  margin: 0 auto 26px;
  text-align: center;
}

.explore-pill{
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.65);
  backdrop-filter: blur(6px);
}

.explore-title{
  margin: 12px 0 6px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
}

.explore-subtitle{
  margin: 0 auto;
  max-width: 720px;
  font-size: 16px;
  opacity: .9;
}

.explore-grid{
  max-width: 1100px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.explore-card{
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 14px 28px rgba(0,0,0,.08);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.explore-card-head{
  text-align: center;
  padding: 8px 10px 14px;
}

.explore-card-head h3{
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.explore-card-head p{
  margin: 8px 0 0;
  font-size: 14px;
  opacity: .85;
}

/* Marco del video */
.video-frame{
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

.video-frame video{
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 900px){
  .explore-grid{
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   FIX REAL: SECCIÓN AMARILLA 100% FULL-WIDTH + PDFs a la derecha
   (anula styles.css .curriculum-section que pone blanco)
   ========================================================= */

   .curriculum-section.curriculum-yellow {
    background: #fff9c4 !important;   /* ✅ amarillo real */
    width: 100% !important;
    max-width: none !important;       /* ✅ sin límite */
    margin: 0 !important;             /* ✅ sin bordes blancos */
    border-radius: 0 !important;      /* ✅ sin esquinas que muestran blanco */
    box-shadow: none !important;      /* ✅ quita sombra blanca del bloque */
    display: flex !important;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
  
    padding: 60px 20px !important;    /* ✅ padding estándar */
  }
  
  /* Texto izquierda */
  .curriculum-section.curriculum-yellow .curriculum-left{
    flex: 1;
    min-width: 320px;
  }
  
  .curriculum-title{
    font-family: 'Fredoka', sans-serif;
    color: #f34750;
    margin: 0 0 12px 0;
  }
  
  .curriculum-list{
    margin: 0;
    padding-left: 18px;
    line-height: 1.55;
    color: #333;
  }
  
  /* PDFs derecha en horizontal */
  .curriculum-section.curriculum-yellow .curriculum-right{
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
  
  /* Botones pequeños */
  .curriculum-section.curriculum-yellow .pdf-mini{
    width: 180px;               /* ✅ tamaño pequeño */
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    text-align: left;
  }
  
  .curriculum-section.curriculum-yellow .pdf-mini img{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    box-shadow: 0 10px 18px rgba(0,0,0,0.12);
  }
  
  /* Etiqueta debajo */
  .curriculum-section.curriculum-yellow .pdf-mini span{
    display: block;
    margin-top: 10px;
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: #f34750;
    box-shadow: 0 10px 16px rgba(0,0,0,0.08);
    white-space: nowrap;
  }
  
  /* En móvil: baja a 2 filas centradas */
  @media (max-width: 900px){
    .curriculum-section.curriculum-yellow{
      flex-direction: column !important;
      align-items: center;
      text-align: left;
    }
    .curriculum-section.curriculum-yellow .curriculum-right{
      justify-content: center;
      flex-wrap: wrap;
    }
  }
  /* =====================================
   BOTÓN REDONDO FLOTANTE
   ARK OF LEARNING
===================================== */

.ark-floating-button{
  position: fixed;
  bottom: 25px;
  right: 25px;

  width: 120px;
  height: 120px;

  background: linear-gradient(135deg,#f34750,#ff8b5f);
  border-radius: 50%;

  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;

  text-decoration:none;
  color:white;

  font-family:'Fredoka',sans-serif;
  font-weight:600;

  box-shadow:0 15px 30px rgba(0,0,0,0.25);

  z-index:99999;

  border:5px solid white;

  transition:transform .25s ease, box-shadow .25s ease;

  animation: arkFloat 2.8s ease-in-out infinite;
}

.ark-floating-button:hover{
  transform:scale(1.08);
  box-shadow:0 20px 40px rgba(0,0,0,0.35);
}

.ark-floating-button:active{
  transform:scale(.95);
}

/* icono */

.ark-button-icon{
  font-size:34px;
  line-height:1;
}

/* texto */

.ark-button-text{
  font-size:14px;
  text-align:center;
  margin-top:4px;
}

/* animación flotante */

@keyframes arkFloat{

  0%{
    transform:translateY(0px);
  }

  50%{
    transform:translateY(-6px);
  }

  100%{
    transform:translateY(0px);
  }

}

/* móvil */

@media(max-width:768px){

  .ark-floating-button{
    width:95px;
    height:95px;
    bottom:18px;
    right:18px;
  }

  .ark-button-icon{
    font-size:26px;
  }

  .ark-button-text{
    font-size:12px;
  }

}