/* ============================================
   Colegio Cristiano Gracia y Amor — Admisiones 2027
   CSS puro, sin dependencias externas.
   ============================================ */

:root {
  --color-blue-900: #10284f;
  --color-blue-700: #1c3f7c;
  --color-blue-600: #24509e;
  --color-blue-100: #e8eef8;

  --color-red-800: #7a1f2b;
  --color-red-700: #93222f;
  --color-red-100: #f8e9ea;

  --color-gray-900: #1f2328;
  --color-gray-700: #4a5568;
  --color-gray-600: #5a6472;
  --color-gray-300: #d7dce3;
  --color-gray-100: #f4f6f9;

  --color-white: #ffffff;

  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(16, 40, 79, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 40, 79, 0.12);
  --shadow-lg: 0 20px 48px rgba(16, 40, 79, 0.18);

  --header-height: 76px;
}

/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  color: var(--color-gray-900);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

section { scroll-margin-top: var(--header-height); }

.section__inner,
.header__inner,
.hero__inner,
.footer__inner,
.cta__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-red-700);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-red-800);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.btn--small { padding: 10px 18px; font-size: 0.9rem; }
.btn--large { padding: 16px 32px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50%;
}

.header__name {
  font-size: 0.85rem;
  color: var(--color-blue-900);
  line-height: 1.25;
}
.header__name strong {
  font-size: 1rem;
  color: var(--color-red-700);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-gray-700);
  transition: color 0.15s ease;
}
.header__nav a:hover { color: var(--color-blue-700); }

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.header__toggle span {
  display: block;
  height: 2px;
  background: var(--color-blue-900);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.header__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle.is-open span:nth-child(2) { opacity: 0; }
.header__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 56px) 0 72px;
  background: linear-gradient(160deg, var(--color-blue-900) 0%, var(--color-blue-700) 55%, var(--color-blue-600) 100%);
  color: var(--color-white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(147, 34, 47, 0.35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  max-width: 820px;
  margin-bottom: 18px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--color-blue-100);
  max-width: 620px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
}

.banner-video-institucional {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 40px 20px;
  text-align: center;
}

.logo-banner-video {
  max-width: 150px;
  margin: 0 auto 20px;
}

.banner-video-institucional h3 {
  color: var(--color-blue-900);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.banner-video-institucional p {
  color: var(--color-gray-600);
  font-size: 1rem;
  margin-bottom: 24px;
}

.btn-ver-video {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--color-red-700);
  color: var(--color-white);
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-ver-video:hover {
  transform: translateY(-3px);
  background: var(--color-red-800);
}

.icono-video { flex-shrink: 0; }

/* ---------- Secciones genéricas ---------- */
.section { padding: 80px 0; }
.section--alt { background: var(--color-gray-100); }

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--color-blue-900);
  text-align: center;
  margin-bottom: 12px;
}

.section__lead {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
  color: var(--color-gray-600);
  font-size: 1.05rem;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-blue-100);
  color: var(--color-blue-700);
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.card h3 {
  color: var(--color-blue-900);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p { color: var(--color-gray-600); font-size: 0.95rem; }

/* ---------- Propuesta de Valor ---------- */
.valor-destacados {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.valor-destacado {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--color-blue-100);
  border-left: 4px solid var(--color-blue-700);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
}

.valor-destacado__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-blue-700);
  box-shadow: var(--shadow-sm);
}

.valor-destacado h3 {
  color: var(--color-blue-900);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.valor-destacado p {
  color: var(--color-gray-700);
  font-size: 0.95rem;
}

.valor-destacado__ref {
  color: var(--color-red-700);
  font-weight: 600;
}

.servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.servicio {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  color: var(--color-blue-900);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.servicio svg { flex-shrink: 0; color: var(--color-red-700); }

.alianza-tech {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 22px 26px;
  background: linear-gradient(135deg, var(--color-blue-900), var(--color-blue-700));
  border-radius: var(--radius-md);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.alianza-tech__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.alianza-tech p {
  font-size: 0.92rem;
  color: var(--color-blue-100);
  line-height: 1.55;
}
.alianza-tech p strong { color: var(--color-white); }

/* ---------- Beneficios para Familias Nuevas ---------- */
.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 28px;
}

.beneficio-card {
  background: #f8f9fa;
  border-top: 4px solid var(--color-red-700);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.beneficio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.beneficio-card h3 {
  color: var(--color-blue-900);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.beneficio-card p {
  color: var(--color-gray-600);
  font-size: 0.95rem;
}

.beneficios-nota {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 20px;
  background: var(--color-gray-100);
  border-radius: var(--radius-sm);
  color: var(--color-gray-600);
  font-size: 0.88rem;
}

/* ---------- Costos Educativos ---------- */
.costos {
  background: linear-gradient(160deg, var(--color-blue-900) 0%, var(--color-blue-700) 100%);
  color: var(--color-white);
}

.section__title--light { color: var(--color-white); }
.section__lead--light { color: var(--color-blue-100); }

.tabla-costos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.fila-costos {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 12px;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
}

.fila-costos span:first-child { font-weight: 700; }

.fila-costos--header {
  background: transparent;
  border: none;
  padding: 0 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-blue-100);
}

.costos-legal {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: var(--color-blue-100);
  font-size: 0.88rem;
}

.costos-nota {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 20px;
  color: var(--color-blue-100);
  font-size: 0.85rem;
}

.costos-aclaracion {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--color-blue-100);
  font-size: 0.8rem;
  font-style: italic;
}

/* ---------- Beneficios ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px 40px;
}

.benefit {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.benefit__num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-red-700);
  min-width: 44px;
}

.benefit h4 {
  color: var(--color-blue-900);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.benefit p { color: var(--color-gray-600); font-size: 0.95rem; }

/* ---------- Testimonios ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.testimonial {
  background: var(--color-white);
  border-left: 4px solid var(--color-red-700);
  border-radius: var(--radius-sm);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.testimonial p {
  color: var(--color-gray-700);
  font-style: italic;
  margin-bottom: 14px;
}

.testimonial footer {
  font-weight: 700;
  color: var(--color-blue-700);
  font-size: 0.9rem;
}

/* ---------- CTA / Admisión ---------- */
.cta {
  padding: 88px 0;
  background: linear-gradient(135deg, var(--color-red-800), var(--color-red-700));
  color: var(--color-white);
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta p {
  color: var(--color-red-100);
  max-width: 560px;
  margin: 0 auto 36px;
}

.formulario-admision {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 780px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.formulario-admision input:not([type="checkbox"]) {
  flex: 1 1 220px;
  width: 100%;
  padding: 16px;
  font-size: 16px;
  border: 1px solid var(--color-gray-300);
  border-radius: 8px;
  color: var(--color-gray-900);
  font-family: inherit;
}
.formulario-admision input:not([type="checkbox"]):focus {
  outline: none;
  border-color: var(--color-blue-600);
  box-shadow: 0 0 0 3px var(--color-blue-100);
}

.proteccion-datos {
  display: flex;
  gap: 10px;
  align-items: start;
  text-align: left;
  font-size: 13px;
  margin-bottom: 15px;
  flex: 1 1 100%;
  color: var(--color-gray-600);
}

.proteccion-datos input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--color-red-700);
  cursor: pointer;
}

.proteccion-datos label {
  cursor: pointer;
  line-height: 1.5;
}

.formulario-admision button {
  flex: 1 1 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  background: var(--color-red-800);
  color: var(--color-white);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.formulario-admision button:hover {
  background: var(--color-red-700);
  transform: translateY(-1px);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-blue-900);
  color: var(--color-blue-100);
  padding: 48px 0 28px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 20px;
}

.footer__col { min-width: 220px; }

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.footer__logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 50%;
}

.footer__contacto {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-blue-100);
  text-align: right;
}

.footer__web {
  color: var(--color-white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__web:hover { color: var(--color-blue-100); }

.footer__copy {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(232, 238, 248, 0.7);
}

/* ---------- Botón flotante de WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-lg);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .header__nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .header__nav a {
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-gray-100);
  }
  .header__nav .btn { margin: 16px 24px; }

  .header__toggle { display: flex; }
}

@media (max-width: 768px) {
  /* a) Tipografía legible, sin tamaños microscópicos */
  body { font-size: 16px; }
  .section__lead { font-size: 1rem; }
  .card p,
  .benefit p,
  .beneficio-card p,
  .testimonial p,
  .valor-destacado p,
  .servicio { font-size: 0.95rem; }
  .costos-nota,
  .costos-legal,
  .costos-aclaracion { font-size: 0.85rem; }
  .footer__copy { font-size: 0.85rem; }
  .footer__contacto { font-size: 0.9rem; }

  /* b) Tarjetas de costos y beneficios a ancho completo, con márgenes laterales cómodos */
  .cards,
  .beneficios-grid,
  .valor-destacados,
  .servicios,
  .benefits,
  .testimonials {
    grid-template-columns: 1fr;
  }
  .card,
  .beneficio-card,
  .valor-destacado,
  .servicio,
  .testimonial,
  .fila-costos {
    width: 100%;
  }

  /* Footer: colapsa a una sola columna centrada */
  .footer__inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .footer__brand { flex-direction: column; }
  .footer__contacto { align-items: center; text-align: center; }

  /* c) Botón flotante de WhatsApp más discreto, sin estorbar la lectura */
  .whatsapp-float { width: 56px; height: 56px; bottom: 18px; right: 18px; }
}

@media (max-width: 600px) {
  .hero { padding-top: calc(var(--header-height) + 32px); }
  .banner-video-institucional { padding: 32px 16px; }
  .logo-banner-video { max-width: 110px; }
  .btn-ver-video { width: 100%; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; }
  .section { padding: 56px 0; }
  .formulario-admision { padding: 18px; }
  .formulario-admision input:not([type="checkbox"]),
  .formulario-admision button {
    display: block;
    width: 100%;
    flex-basis: 100%;
  }
  .whatsapp-float { width: 54px; height: 54px; bottom: 16px; right: 16px; }

  .fila-costos--header { display: none; }

  .fila-costos {
    grid-template-columns: 1fr 1fr;
    row-gap: 12px;
  }

  .fila-costos span:first-child {
    grid-column: 1 / -1;
    font-size: 1.05rem;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    margin-bottom: 4px;
  }

  .fila-costos span:not(:first-child) {
    display: flex;
    flex-direction: column;
  }

  .fila-costos span:not(:first-child)::before {
    content: attr(data-label);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-blue-100);
    opacity: 0.75;
    margin-bottom: 2px;
  }
}
