/* ═══════════════════════════════════════════════
   home.css — Estilos exclusivos de index.php
═══════════════════════════════════════════════ */

/* ─── HERO SLIDER ────────────────────────────── */
#inicio {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 560px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 1;
}
.slide.active { opacity: 1; z-index: 2; }

.slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}

.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.35) 60%,
    rgba(0,0,0,.15) 100%);
}
.slide-overlay-bottom {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.55) 0%, transparent 50%);
}

.slide-content {
  position: absolute; inset: 0;
  display: flex;
  align-items: center;
}

.slide-text {
  max-width: 640px;
  padding: 0 1.5rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.slide.active .slide-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: .2s;
}

.slide-tag {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.55);
  color: rgba(255,255,255,.9);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}

.slide-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.slide-desc {
  font-size: clamp(.9rem, 2vw, 1.125rem);
  color: rgba(255,255,255,.82);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: .875rem;
  padding: 1rem 2rem;
  border-radius: 99px;
  transition: all .3s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.slide-cta:hover {
  background: #ecfdf5;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
}

.slide-cta-icon {
  width: 2rem; height: 2rem;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slide-cta-icon i { color: #fff; font-size: .85rem; }

/* Flechas */
.hero-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
  cursor: pointer;
}
.hero-arrow:hover { background: rgba(255,255,255,.35); }
.hero-arrow.prev { left: 1rem; }
.hero-arrow.next { right: 1rem; }
@media (min-width: 768px) {
  .hero-arrow.prev { left: 2rem; }
  .hero-arrow.next { right: 2rem; }
}

/* Dots */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%; transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: .6rem;
  align-items: center;
}
.hero-dot {
  height: 10px; width: 10px;
  border-radius: 99px;
  background: rgba(255,255,255,.45);
  border: none;
  cursor: pointer;
  transition: all .35s ease;
  padding: 0;
}
.hero-dot.active { width: 2rem; background: #fff; }

/* ─── QUICK ACCESS ───────────────────────────── */
#servicios { padding: 5rem 0; background: var(--bg-gray); }

.qa-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 540px)  { .qa-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .qa-grid { grid-template-columns: repeat(4,1fr); } }

.qa-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  text-align: left;
  transition: all .4s cubic-bezier(.34,1.56,.64,1);
  cursor: pointer;
  width: 100%;
}
.qa-card:hover {
  transform: translateY(-10px);
  border-color: rgba(26,58,108,.2);
  box-shadow: var(--shadow-lg);
}

.qa-icon {
  width: 3.75rem; height: 3.75rem;
  border-radius: .875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform .3s ease;
}
.qa-card:hover .qa-icon { transform: scale(1.1) rotate(3deg); }
.qa-icon i { font-size: 1.5rem; color: #fff; }

.qa-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.qa-desc  { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }
.qa-link  {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--green);
  transition: gap .3s;
}
.qa-card:hover .qa-link { gap: .6rem; }

/* ─── INSTALACIONES ──────────────────────────── */
#instalaciones { padding: 6rem 0; background: #fff; }

.inst-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .inst-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .inst-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.inst-sm-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 540px) {
  .inst-sm-wrap { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .inst-sm-wrap { grid-column: 2 / 4; }
}

.inst-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  transition: transform .4s ease;
  text-decoration: none;
}
.inst-card:hover { transform: scale(1.01); }
.inst-card:hover img { transform: scale(1.05); }

/* Tarjeta grande (Preescolar) */
.inst-card-large { background: var(--navy-dk); justify-content: space-between; }
.inst-body { padding: 2rem; position: relative; z-index: 2; }
.inst-img-wrap { position: relative; height: 12rem; overflow: hidden; flex-shrink: 0; }
.inst-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  transition: transform .5s ease;
}
.inst-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,42,84,.8), transparent);
}

.inst-see-btn {
  position: absolute;
  bottom: 1.25rem; right: 1.25rem;
  z-index: 3;
  border: 1px solid rgba(255,255,255,.6);
  color: #fff;
  font-size: .8rem;
  padding: .45rem 1.1rem;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: all .3s;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
.inst-see-btn:hover { background: #fff; color: var(--navy); }

/* Tarjetas pequeñas */
.inst-card-sm { position: relative; min-height: 440px; }
.inst-card-sm img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  transition: transform .5s ease;
}
.inst-sm-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,.82) 0%,
    rgba(0,0,0,.25) 55%,
    transparent 100%);
}
.inst-sm-top { position: absolute; top: 1.25rem; left: 1.25rem; z-index: 2; }

.inst-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem .75rem;
  border-radius: 99px;
}

.inst-sm-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  z-index: 2;
}

.inst-age  { font-size: .7rem; color: rgba(255,255,255,.6); letter-spacing: .1em; text-transform: uppercase; }
.inst-name { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; color: #fff; margin: .2rem 0 .5rem; }
.inst-desc { font-size: .8rem; color: rgba(255,255,255,.72); line-height: 1.55; margin-bottom: .85rem; display: none; }
@media (min-width: 480px) { .inst-desc { display: block; } }

.inst-features { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.inst-features li { display: flex; align-items: center; gap: .45rem; font-size: .8rem; color: rgba(255,255,255,.8); }
.inst-features li i { color: var(--green-lt); font-size: .9rem; }

.inst-see-btn-sm {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid rgba(255,255,255,.6);
  color: #fff;
  font-size: .8rem;
  padding: .45rem 1.1rem;
  border-radius: 99px;
  transition: all .3s;
}
.inst-see-btn-sm:hover { background: #fff; color: var(--navy); }

/* Tarjeta grande — textos */
.lc-level-icon {
  width: 3rem; height: 3rem;
  border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.lc-level-icon i { font-size: 1.25rem; color: #fff; }
.lc-age  { font-size: .7rem; color: rgba(255,255,255,.6); letter-spacing: .1em; text-transform: uppercase; }
.lc-name { font-family: 'Playfair Display', serif; font-size: 2.25rem; font-weight: 700; color: #fff; margin: .2rem 0 .75rem; }
.lc-desc { font-size: .875rem; color: rgba(255,255,255,.72); line-height: 1.6; margin-bottom: 1rem; }
.lc-features { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.5rem; }
.lc-features li { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: rgba(255,255,255,.82); }
.lc-features li i { color: var(--green-lt); }

/* ─── CTA BANNER ─────────────────────────────── */
/* ─── VIDEO SECTION ──────────────────────────── */
#cta {
  position: relative;
  background: var(--navy-dk);
  padding: 4rem 0;
  overflow: hidden;
}
.cta-deco-1 {
  position: absolute; top: 0; right: 0;
  width: 24rem; height: 24rem;
  border-radius: 50%;
  background: rgba(5,150,105,.12);
  filter: blur(64px);
  pointer-events: none;
}
.cta-deco-2 {
  position: absolute; bottom: 0; left: 0;
  width: 18rem; height: 18rem;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  filter: blur(48px);
  pointer-events: none;
}
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  aspect-ratio: 16 / 9;
  background: #000;
}
.cta-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-xl);
}
.video-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,42,84,.15) 0%,
    transparent 40%,
    transparent 60%,
    rgba(6,78,59,.2) 100%
  );
  pointer-events: none;
  border-radius: var(--radius-xl);
}
.video-controls {
  position: absolute;
  bottom: 1.25rem; right: 1.25rem;
  z-index: 10;
  display: flex;
  gap: .5rem;
}
.video-ctrl-btn {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .2s;
  cursor: pointer;
}
.video-ctrl-btn:hover {
  background: rgba(255,255,255,.32);
  transform: scale(1.08);
}
@media (max-width: 767px) {
  #cta { padding: 2.5rem 0; }
  .video-wrapper { border-radius: var(--radius-lg); }
  .cta-video { border-radius: var(--radius-lg); }
}

/* ─── ESTADÍSTICAS ───────────────────────────── */
#estadisticas { padding: 5rem 0; background: var(--bg-gray); }

.stats-box { background: #fff; border-radius: var(--radius-xl); overflow: hidden; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(4,1fr); }
}

.stat-cell {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 2.5rem 1.5rem;
}
/* Bordes en grid 2x2 móvil */
.stat-cell:nth-child(1),
.stat-cell:nth-child(3) { border-right: 1px solid #f1f5f9; }
.stat-cell:nth-child(1),
.stat-cell:nth-child(2) { border-bottom: 1px solid #f1f5f9; }
/* Bordes en fila desktop */
@media (min-width: 1024px) {
  .stat-cell:nth-child(1),
  .stat-cell:nth-child(2),
  .stat-cell:nth-child(3) { border-right: 1px solid #f1f5f9; }
  .stat-cell:nth-child(1),
  .stat-cell:nth-child(2) { border-bottom: none; }
  .stat-cell:nth-child(3) { border-bottom: none; }
}

.stat-icon-wrap {
  width: 3.5rem; height: 3.5rem;
  border-radius: .875rem;
  background: var(--bg-gray);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.stat-icon-wrap i { font-size: 1.4rem; }

.stat-number-wrap { display: flex; align-items: flex-end; gap: .15rem; margin-bottom: .4rem; }
.stat-number { font-size: clamp(2.5rem, 6vw, 3.5rem); font-weight: 900; line-height: 1; }
.stat-suffix { font-size: 2rem; font-weight: 900; margin-bottom: .15rem; }
.stat-label  { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; }

/* ─── ALIANZAS ───────────────────────────────── */
#alianzas { padding: 5rem 0; background: #fff; border-top: 1px solid #f1f5f9; }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px)  { .partners-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .partners-grid { grid-template-columns: repeat(6,1fr); } }

.partner-card {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all .3s ease;
  cursor: pointer;
}
.partner-card:hover { border-color: rgba(26,58,108,.2); transform: translateY(-4px); }

.partner-icon {
  width: 3.25rem; height: 3.25rem;
  border-radius: .75rem;
  background: var(--bg-gray);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .75rem;
  transition: background .3s;
}
.partner-card:hover .partner-icon { background: var(--navy); }
.partner-icon i { font-size: 1.25rem; color: var(--navy); transition: color .3s; }
.partner-card:hover .partner-icon i { color: #fff; }

.partner-name { font-size: .8rem; font-weight: 700; color: var(--navy); line-height: 1.3; margin-bottom: .2rem; }
.partner-cat  { font-size: .7rem; color: #94a3b8; }
