/* admisiones — page-specific styles
   (Global chrome lives in css/global.css)
*/

/* ============================================================
   COLEGIO MARCELINA — MAIN STYLES
   Estilos globales + página de Admisiones
   ============================================================
   Orden de carga:
   1. variables.css  (tokens)
   2. animations.css (keyframes y clases de animación)
   3. components.css (componentes reutilizables)
   4. responsive.css (grids y breakpoints)
   5. main.css       (este archivo — fuentes + reset + página)
   ============================================================ */

/* ──────────────────────────────────────────
   FUENTES
────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,800;0,900;1,300;1,400;1,500&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --sans:  'Inter', system-ui, -apple-system, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}

ul, ol { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; }

p { margin: 0; }

input, select, textarea { font-family: inherit; }


/* ──────────────────────────────────────────
   URGENCY BAR (sticky)
────────────────────────────────────────── */

.urgency-bar {
  position: sticky;
  top: var(--navbar-height);
  z-index: 89;
  background: var(--color-red);
  padding: 9px clamp(20px, 5vw, 72px);
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.urgency-bar .sparkle {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  margin-right: 4px;
}
.urgency-bar strong { font-weight: 700; }
.urgency-bar .urgency-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-red);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.urgency-bar .urgency-cta:hover {
  background: white;
  transform: translateY(-1px);
}


/* ──────────────────────────────────────────
   HERO (Admisiones)
────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 88px) clamp(20px, 5vw, 72px) clamp(64px, 9vw, 104px);
  background-color: var(--color-indigo-deeper);
  background-image: url('../assets/admisiones/hero-bg.png');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  /* gradiente sutil para legibilidad del texto */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(13, 11, 43, 0.42) 0%,
    rgba(13, 11, 43, 0.08) 55%,
    rgba(13, 11, 43, 0) 100%
  );
  z-index: -1;
  pointer-events: none;
}

.hero-inner {
  max-width: 1280px;
  margin-inline: auto;
  position: relative;
}

.hero-bc {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
}
.hero-bc a {
  color: inherit;
  transition: color 0.15s ease;
}
.hero-bc a:hover { color: white; }
.hero-bc .sep { opacity: 0.5; }
.hero-bc .current { color: rgba(255, 255, 255, 0.92); }

.hero-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--color-lima);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  font-weight: 800;
  color: white;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
  max-width: 1180px;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.hero-desc {
  font-size: 15px;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.78);
  max-width: 540px;
  margin-bottom: 32px;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Entrada del hero — stagger fade-up */
.hero-bc        { animation: fadeUp 0.7s var(--ease-smooth) 0.05s both; }
.hero-eyebrow   { animation: fadeUp 0.7s var(--ease-smooth) 0.12s both; }
.hero-title     { animation: fadeUp 0.7s var(--ease-smooth) 0.20s both; }
.hero-desc      { animation: fadeUp 0.7s var(--ease-smooth) 0.30s both; }
.hero-btns      { animation: fadeUp 0.7s var(--ease-smooth) 0.40s both; }


/* ──────────────────────────────────────────
   SEC HEADER — centered (eyebrow + title)
────────────────────────────────────────── */

.sec-hdr-center {
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.sec-hdr-center .eyebrow {
  letter-spacing: 3.5px;
  color: var(--color-indigo);
  margin-bottom: 14px;
}
.sec-hdr-center .sec-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 800;
  color: var(--color-indigo-deeper);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.sec-hdr-center .sec-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-indigo);
}
.sec-hdr-center .sec-sub {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--color-text-muted);
  font-weight: 400;
  max-width: 560px;
  margin-inline: auto;
}


/* ──────────────────────────────────────────
   SECCIÓN RAZONES — grid 3 columnas
────────────────────────────────────────── */

.sec-razones {
  background: var(--bg-white);
  padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 72px);
}

.razones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1280px;
  margin-inline: auto;
}

/* Card razón (override mínimo del componente) */
.razones-grid .card-razon {
  padding: 22px 22px 24px;
  min-height: 154px;
}
.razones-grid .card-razon h3 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--color-indigo-deeper);
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.razones-grid .card-razon p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
  font-weight: 300;
  position: relative;
  z-index: 1;
}


/* ──────────────────────────────────────────
   SECCIÓN PROCESO — bg pale + 4 cards
────────────────────────────────────────── */

.sec-proceso {
  background: var(--bg-indigo-pale);
  padding: clamp(56px, 7vw, 96px) clamp(20px, 5vw, 72px);
}

.proceso-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1280px;
  margin-inline: auto;
  position: relative;
}

/* Línea decorativa que conecta los pasos */
.proceso-grid::before {
  content: '';
  position: absolute;
  top: 56px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: repeating-linear-gradient(
    to right,
    rgba(76, 72, 200, 0.22) 0 6px,
    transparent 6px 12px
  );
  z-index: 0;
}

.proceso-grid .card-paso {
  padding: 28px 18px 24px;
  position: relative;
  z-index: 1;
}

.proceso-grid .card-paso h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-indigo-deeper);
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.proceso-grid .card-paso p {
  font-size: 12.5px;
  color: var(--color-text-muted);
  line-height: 1.55;
  font-weight: 300;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.proceso-grid .card-paso .paso-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: #EEF2FF;
  color: var(--color-indigo);
  font-size: 11px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}


/* ──────────────────────────────────────────
   SECCIÓN SOLICITUD — dark bg
────────────────────────────────────────── */

.sec-solicitud {
  position: relative;
  background: #1E1B4B;
  padding: clamp(64px, 8vw, 104px) clamp(20px, 5vw, 72px);
  overflow: hidden;
  color: white;
}
.sec-solicitud::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 27, 75, 0.55) 0%,
    rgba(30, 27, 75, 0.0) 100%
  );
  pointer-events: none;
}

.solicitud-inner {
  position: relative;
  max-width: 1280px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.solicitud-left { padding-top: 26px; }
.solicitud-left .eyebrow {
  color: var(--color-lima);
  letter-spacing: 3.5px;
  margin-bottom: 18px;
}
.solicitud-left .sec-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 800;
  color: white;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.solicitud-left .sec-title em {
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
}

.solicitud-left .check-list { margin-bottom: 28px; }
.solicitud-left .check-list li {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}
.solicitud-left .check-list li::before {
  background: rgba(132, 204, 22, 0.15);
  color: var(--color-lima);
}

/* Testimonio */
.testi-card {
  margin: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  max-width: 460px;
  backdrop-filter: blur(4px);
}
.testi-quote {
  margin: 0 0 16px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
}
.testi-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-lima);
  color: var(--color-indigo-deeper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.testi-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

/* Form */
.solicitud-form {
  background: white;
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 24px 64px rgba(15, 14, 36, 0.32);
}
.solicitud-form h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-indigo-deeper);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.solicitud-form .form-intro {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 22px;
  line-height: 1.55;
  font-weight: 300;
}

.form-note {
  font-size: 11px;
  color: var(--color-text-subtle);
  text-align: center;
  margin-top: 12px;
}


/* ──────────────────────────────────────────
   SECCIÓN FAQ
────────────────────────────────────────── */

.sec-faq {
  background: var(--bg-white);
  padding: clamp(64px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.faq-inner {
  max-width: 880px;
  margin-inline: auto;
}

.faq-inner .sec-hdr {
  display: block;
  margin-bottom: 36px;
}
.faq-inner .sec-hdr .eyebrow { letter-spacing: 3.5px; }
.faq-inner .sec-hdr .sec-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 800;
  color: var(--color-indigo-deeper);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.faq-inner .sec-hdr .sec-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--color-indigo);
}

/* Override faq styles for animated body */
.faq-item .faq-body {
  display: block;
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  opacity: 0;
  transition: max-height 0.4s var(--ease-smooth),
              opacity 0.25s ease,
              padding 0.3s var(--ease-smooth);
}
.faq-item.open .faq-body {
  display: block;
  max-height: 500px;
  padding: 0 20px 16px;
  opacity: 1;
}
.faq-body p { margin-bottom: 8px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body ul {
  margin: 6px 0 0;
  padding-left: 4px;
}
.faq-body ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-weight: 300;
}
.faq-body ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-indigo);
  font-weight: 700;
}


/* ──────────────────────────────────────────
   ICONOS (SVG embebidos en HTML)
────────────────────────────────────────── */

.ico-circle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-indigo-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
}
.ico-circle svg {
  width: 18px;
  height: 18px;
  color: var(--color-indigo);
}


/* ──────────────────────────────────────────
   RESPONSIVE OVERRIDES — Página Admisiones
────────────────────────────────────────── */

@media (max-width: 1024px) {
  .razones-grid    { grid-template-columns: repeat(2, 1fr); }
  .proceso-grid    { grid-template-columns: repeat(2, 1fr); }
  .proceso-grid::before { display: none; }
  .solicitud-inner { grid-template-columns: 1fr; }
  .solicitud-left  { padding-top: 0; }
  .testi-card      { max-width: none; }
  .footer-grid     { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-cta { display: none; }

  .razones-grid { grid-template-columns: 1fr; }
  .proceso-grid { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; gap: 32px; }

  .urgency-bar {
    font-size: 11.5px;
    padding: 8px 16px;
    gap: 10px;
  }
  .urgency-bar .urgency-cta { font-size: 11px; padding: 4px 12px; }

  .hero-btns { width: 100%; }
  .hero-btns .btn { flex: 1 1 auto; }

  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer-bottom .legal { gap: 16px; }
}

@media (max-width: 480px) {
  .nav-inner { padding: 10px 16px; }
  .nav-brand svg { width: 38px; height: 36px; }
  .nav-brand-text strong { font-size: 13px; }
  .nav-brand-text span { font-size: 8px; }

  .hero-title { font-size: clamp(1.85rem, 7.8vw, 2.4rem); }

  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { width: 100%; justify-content: center; }
}


/* ──────────────────────────────────────────
   REDUCED MOTION
────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
