:root {
  --tinta: #0f1b33; --texto: #3a465c; --suave: #6b768a; --fondo: #fbfaf7; --papel: #ffffff; --linea: #e8e4dc;
  --noche: #0b1736; --oro: #f2b705;
  --c1: #1f3f9e; --c2: #e3262f; --c3: #f6c400;
  --radio: 20px; --sombra: 0 10px 30px rgb(15 27 51 / .08); --sombra-alta: 0 22px 50px rgb(15 27 51 / .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fondo); color: var(--texto); font: 400 16px/1.65 "Plus Jakarta Sans", system-ui, sans-serif; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; color: var(--tinta); line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.01em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.contenedor { width: min(1160px, 100% - 32px); margin-inline: auto; }
.seccion { padding: 80px 0; }
.titulo-seccion { font-size: clamp(28px, 4vw, 40px); }
.sub-seccion { color: var(--suave); margin: -6px 0 36px; }
.etiqueta { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
            padding: 6px 12px; border-radius: 99px; background: rgb(255 255 255 / .14); color: #fff; margin: 0 0 18px; }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 99px;
         background: var(--c2); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid transparent;
         transition: transform .2s, box-shadow .2s, background .2s; }
.boton:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgb(0 0 0 / .18); }
.boton-claro { background: #fff; color: var(--tinta); }
.boton-borde { background: transparent; border-color: rgb(255 255 255 / .7); color: #fff; }
.boton-chico { padding: 9px 16px; font-size: 14px; }
.enlace-sutil { color: rgb(255 255 255 / .85); text-decoration: none; font-weight: 600; }
.enlace-sutil:hover { color: #fff; }

/* ---------- PORTADA ---------- */
.portada { position: relative; overflow: hidden; background: var(--noche); color: #fff; padding-bottom: 120px; }
.portada-fondo { position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 85% 10%, rgb(242 183 5 / .30), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgb(227 38 47 / .25), transparent 60%),
    radial-gradient(800px 600px at 60% 60%, rgb(31 63 158 / .55), transparent 70%); }
.portada-fondo::after { content: ""; position: absolute; inset: 0; opacity: .08;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px; }
.barra { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 24px 0; }
.marca-red { font-family: Fraunces, serif; font-size: 22px; font-weight: 700; }
.marca-red small { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 12px; font-weight: 600;
                   letter-spacing: .14em; text-transform: uppercase; color: var(--oro); }
.portada-texto { position: relative; padding-top: 70px; max-width: 780px; margin-left: max(16px, calc((100% - 1160px) / 2)); }
.portada h1 { color: #fff; font-size: clamp(38px, 6.4vw, 72px); }
.bajada { font-size: clamp(17px, 2vw, 20px); color: rgb(255 255 255 / .82); max-width: 620px; margin: 0 0 32px; }

.grilla-colegios { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: -40px; }
#colegios { position: relative; padding-top: 0; }
#colegios .titulo-seccion { margin-top: 0; padding-top: 0; }
.portada + #colegios { margin-top: -80px; }
.portada + #colegios .titulo-seccion, .portada + #colegios .sub-seccion { position: relative; color: #fff; }
.portada + #colegios .sub-seccion { color: rgb(255 255 255 / .8); }
.portada + #colegios .grilla-colegios { margin-top: 24px; }
.tarjeta-colegio { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 34px 22px 26px; background: var(--papel); border-radius: var(--radio); text-decoration: none; box-shadow: var(--sombra);
  border-top: 6px solid var(--c1); transition: transform .25s, box-shadow .25s; overflow: hidden; }
.tarjeta-colegio::before { content: ""; position: absolute; inset: auto -30% -60% -30%; height: 70%;
  background: radial-gradient(closest-side, var(--c3), transparent); opacity: .35; transition: opacity .25s; }
.tarjeta-colegio:hover { transform: translateY(-6px); box-shadow: var(--sombra-alta); }
.tarjeta-colegio:hover::before { opacity: .6; }
.tarjeta-logo { position: relative; width: 132px; height: 132px; display: grid; place-items: center; margin-bottom: 10px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--c1) 12%, transparent); }
.tarjeta-logo .logo-img { width: 116px; height: 116px; object-fit: contain; border-radius: 50%; }
.tarjeta-logo .escudo { width: 92px; height: 108px; }
.tarjeta-nombre { position: relative; font-family: Fraunces, serif; font-size: 20px; font-weight: 700; color: var(--tinta); line-height: 1.2; }
.tarjeta-lugar { position: relative; font-size: 14px; color: var(--suave); }
.tarjeta-ir { position: relative; margin-top: 10px; font-weight: 700; color: var(--c1); }

/* ---------- PÁGINA DE COLEGIO ---------- */
.cabecera { position: sticky; top: 0; z-index: 10; background: rgb(255 255 255 / .9); backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--linea); }
.cabecera-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.volver { text-decoration: none; font-weight: 600; color: var(--suave); font-size: 14px; }
.volver:hover { color: var(--tinta); }
.cabecera-marca { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: Fraunces, serif; font-weight: 700; color: var(--tinta); }
.mini { width: 40px; height: 40px; display: grid; place-items: center; }
.mini.logo-img, .mini .logo-img { border-radius: 50%; object-fit: contain; }
.mini .escudo { width: 34px; height: 40px; }

.heroe { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--c1), color-mix(in srgb, var(--c1) 70%, #000)); padding: 80px 0 110px; }
.heroe-forma { position: absolute; inset: 0;
  background: radial-gradient(500px 360px at 90% 20%, color-mix(in srgb, var(--c3) 55%, transparent), transparent 70%),
              radial-gradient(500px 360px at 0% 100%, color-mix(in srgb, var(--c2) 50%, transparent), transparent 70%); }
.heroe-grilla { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.heroe h1 { color: #fff; font-size: clamp(34px, 5vw, 58px); }
.lema { font-family: Fraunces, serif; font-style: italic; font-size: 22px; color: var(--c3); margin: 0 0 14px; }
.botones { display: flex; gap: 12px; flex-wrap: wrap; }
.heroe-logo { display: grid; place-items: center; }
.heroe-logo .grande, .heroe-logo .logo-img { width: min(340px, 80%); aspect-ratio: 1; border-radius: 50%; background: #fff;
  padding: 18px; box-shadow: 0 30px 60px rgb(0 0 0 / .3); object-fit: contain; display: grid; place-items: center; }
.heroe-logo .escudo { width: 70%; height: auto; }

.cifras { margin-top: -56px; position: relative; }
.cifras-grilla { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--papel); border-radius: var(--radio);
  box-shadow: var(--sombra-alta); overflow: hidden; }
.cifras-grilla > div { padding: 28px 20px; text-align: center; border-right: 1px solid var(--linea); }
.cifras-grilla > div:last-child { border-right: 0; }
.cifras strong { display: block; font-family: Fraunces, serif; font-size: 44px; color: var(--c1); line-height: 1; }
.cifras span { font-size: 14px; color: var(--suave); }

.grilla-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grilla-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tarjeta { background: var(--papel); border-radius: var(--radio); padding: 30px; box-shadow: var(--sombra); border: 1px solid var(--linea); }
.nivel { position: relative; overflow: hidden; transition: transform .25s; }
.nivel:hover { transform: translateY(-4px); }
.nivel-num { font-family: Fraunces, serif; font-size: 56px; font-weight: 700; line-height: 1; color: color-mix(in srgb, var(--c1) 15%, transparent); }
.nivel-0 { border-top: 5px solid var(--c1); } .nivel-1 { border-top: 5px solid var(--c2); } .nivel-2 { border-top: 5px solid var(--c3); }
.detalle { font-weight: 700; color: var(--c2); margin: -4px 0 8px; }

.banda { background: color-mix(in srgb, var(--c1) 6%, var(--fondo)); }
.beneficio { text-align: left; }
.beneficio .icono { width: 46px; height: 46px; padding: 10px; border-radius: 14px; color: #fff; background: var(--c1); margin-bottom: 14px; }
.beneficio:nth-child(2) .icono { background: var(--c2); }
.beneficio:nth-child(3) .icono { background: color-mix(in srgb, var(--c3) 85%, #000); }
.beneficio h3 { font-size: 20px; }
.beneficio p { margin: 0; }

.admision { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 44px;
  border-radius: 28px; color: #fff; background: linear-gradient(120deg, var(--c2), color-mix(in srgb, var(--c2) 60%, var(--c1))); }
.admision h2 { color: #fff; font-size: clamp(28px, 4vw, 38px); }
.admision p { margin: 0; max-width: 620px; color: rgb(255 255 255 / .9); }

.contacto { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; padding-top: 0; }
.mapa { width: 100%; height: 320px; border: 0; border-radius: var(--radio); box-shadow: var(--sombra); }
.nota { color: var(--suave); font-style: italic; }

.pie { background: var(--noche); color: rgb(255 255 255 / .75); padding: 28px 0; font-size: 14px; }
.pie-fila { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pie-enlaces { display: flex; gap: 16px; flex-wrap: wrap; }
.pie a { text-decoration: none; } .pie a:hover { color: #fff; }

@media (max-width: 900px) {
  .heroe-grilla, .contacto { grid-template-columns: 1fr; }
  .heroe-logo { order: -1; } .heroe-logo .grande, .heroe-logo .logo-img { width: 200px; }
  .grilla-3 { grid-template-columns: 1fr; }
  .grilla-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .seccion { padding: 56px 0; }
  .grilla-4 { grid-template-columns: 1fr; }
  .cifras-grilla { grid-template-columns: 1fr; }
  .cifras-grilla > div { border-right: 0; border-bottom: 1px solid var(--linea); }
  .volver { display: none; }
  .admision { padding: 30px 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
