/* Sitio Colegio Edupac — azul marino y dorado de la insignia, sobre fondo cálido */
:root {
  --navy: #13294b;
  --navy-2: #1d3a6b;
  --navy-3: #2c5291;
  --gold: #e3b341;
  --gold-2: #c9962a;
  --gold-soft: #fbf1d8;
  --ink: #1c2433;
  --ink-2: #4a5568;
  --muted: #6b7486;
  --line: #e4dfd3;
  --bg: #faf8f3;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(19, 41, 75, .06), 0 8px 24px rgba(19, 41, 75, .08);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --w: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-3); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
.wrap { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.i { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.15em; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: .45em; padding: .7em 1.25em; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, color .15s; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #ebc25d; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--navy-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Barra superior y cabecera */
.notice-bar { background: var(--gold); color: var(--navy); text-align: center; font-weight: 700; padding: 8px 20px; font-size: 15px; }
.notice-bar a { color: inherit; text-decoration: none; }
.topbar { background: var(--navy); color: #c9d4e6; font-size: 14px; }
.topbar .wrap { display: flex; gap: 22px; align-items: center; min-height: 38px; flex-wrap: wrap; }
.tb-item { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
a.tb-item:hover { color: #fff; }
.tb-social { margin-left: auto; display: flex; gap: 12px; }
.tb-social a { color: inherit; display: inline-flex; }
.tb-social a:hover { color: var(--gold); }
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex: none; }
.brand img { width: 46px; height: auto; }
.brand b { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: 13px; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-list a, .nav-btn { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font: 600 16px var(--sans); background: none; border: 0; cursor: pointer; }
.nav-list a:hover, .nav-btn:hover { background: var(--gold-soft); color: var(--navy); }
.nav-list a[aria-current="page"], .has-sub.is-active > .nav-btn { color: var(--navy); box-shadow: inset 0 -3px 0 var(--gold); border-radius: 10px 10px 0 0; }
.nav-btn .i { width: 16px; height: 16px; transition: transform .2s; }
.sub { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s; }
.sub a { display: block; padding: 9px 12px; font-weight: 600; }
.sub a[aria-current="page"] { box-shadow: none; background: var(--gold-soft); }
@media (hover: hover) and (min-width: 1061px) {
  .has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
}
.has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub.open .nav-btn .i { transform: rotate(180deg); }
.nav-cta .btn { padding: .55em 1.05em; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer; border-radius: 10px; }
.menu-toggle .i { width: 28px; height: 28px; }
.menu-toggle .i + .i { display: none; }

@media (max-width: 1060px) {
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; inset: var(--nav-top, 76px) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 30px; overflow-y: auto; display: none; margin: 0; border-top: 1px solid var(--line); }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav { display: flex; }
  body.menu-open .menu-toggle .i { display: none; }
  body.menu-open .menu-toggle .i + .i { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-list a, .nav-btn { width: 100%; padding: 14px 12px; font-size: 18px; justify-content: space-between; }
  .nav-list a[aria-current="page"], .has-sub.is-active > .nav-btn { box-shadow: inset 4px 0 0 var(--gold); border-radius: 0 10px 10px 0; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; display: none; min-width: 0; }
  .has-sub.open .sub { display: block; }
  .sub a { font-weight: 400; padding: 11px 12px; }
  .nav-cta { padding-top: 14px; }
  .nav-cta .btn { width: 100%; justify-content: center; padding: .85em; }
  .topbar .tb-item:first-child { display: none; }
}
@media (max-width: 560px) {
  .topbar .wrap { gap: 14px; font-size: 13px; }
  .topbar a.tb-item:nth-of-type(2) { display: none; }
  .brand b { font-size: 19px; }
}

/* Portada: carrusel */
.hero { position: relative; background: var(--navy); color: #fff; min-height: clamp(380px, 56vh, 560px); overflow: hidden; isolation: isolate; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; display: flex; align-items: flex-end; }
.slide.is-on { opacity: 1; z-index: 1; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.slide::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 22, 44, .05) 20%, rgba(10, 22, 44, .82) 100%), linear-gradient(90deg, rgba(10, 22, 44, .55), transparent 70%); }
.slide-text { padding-bottom: 64px; padding-top: 40px; }
.slide-text h2 { color: #fff; font-size: clamp(32px, 5.2vw, 58px); max-width: 15ch; margin-bottom: .25em; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.slide-text p { font-size: clamp(17px, 2vw, 21px); max-width: 46ch; margin: 0 0 22px; color: #e8edf6; }
.hero-plain { display: flex; align-items: flex-end; background: radial-gradient(900px 400px at 80% 0, var(--navy-3), var(--navy)); }
.dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 8px; }
.dots button { width: 12px; height: 12px; border-radius: 99px; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; transition: width .25s; }
.dots button[aria-current="true"] { background: var(--gold); border-color: var(--gold); width: 30px; }

/* Accesos rápidos */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -36px; position: relative; z-index: 5; }
.quick-card { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 18px 18px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: transform .15s, border-color .15s; }
.quick-card:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--ink); }
.quick-card > .i { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-2); }
.quick-card b { display: block; color: var(--navy); font-size: 17px; }
.quick-card small { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; }
@media (max-width: 900px) { .quick { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .quick { gap: 10px; } .quick-card { flex-direction: column; align-items: flex-start; padding: 14px; gap: 8px; } .quick-card small { display: none; } }

/* Secciones */
.section { padding: 64px 20px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 0; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; color: var(--gold-2); margin: 0 0 6px; }
.kicker a { color: inherit; text-decoration: none; }
.link-more { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; text-decoration: none; }

/* Noticias */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-grid:not(.list) { grid-template-columns: 1.35fr 1fr; align-items: start; }
.news-grid:not(.list) .news-card.big { grid-row: 1 / span 3; }
.news-grid:not(.list) .news-card:not(.big) { flex-direction: row; }
.news-grid:not(.list) .news-card:not(.big) .nc-img { width: 40%; aspect-ratio: 4 / 3; flex: none; }
.news-grid:not(.list) .news-card:not(.big) p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; }
.news-grid:not(.list) .news-card:not(.big) h3 { font-size: 18px; }
.news-card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.nc-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-2); }
.nc-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.news-card:hover .nc-img img { transform: scale(1.03); }
.nc-ph { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 30% 30%, var(--navy-3), var(--navy)); }
.nc-body { padding: 16px 18px 20px; }
.nc-body time { font-size: 14px; color: var(--muted); font-weight: 600; }
.nc-body h3 { font-size: 20px; margin: 4px 0 6px; }
.nc-body h3 a { color: var(--navy); text-decoration: none; }
.nc-body h3 a:hover { text-decoration: underline; }
.nc-body p { margin: 0; color: var(--ink-2); font-size: 16px; }
.news-card.big .nc-img { aspect-ratio: 4 / 3; }
.news-card.big h3 { font-size: 26px; }
@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-grid:not(.list) { grid-template-columns: 1fr; }
  .news-grid:not(.list) .news-card.big { grid-row: auto; }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-grid .news-card:not(.big) { flex-direction: row !important; }
  .news-grid .news-card:not(.big) .nc-img { width: 38% !important; aspect-ratio: auto; flex: none; }
  .news-grid .news-card:not(.big) p { display: none; }
  .news-grid .news-card:not(.big) h3 { font-size: 17px; }
  .nc-body { padding: 12px 14px 14px; }
}
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 34px; }
.pager a, .pager span { min-width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; background: #fff; }
.pager span { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Nuestro colegio */
.about { background: var(--navy); color: #d9e1ee; padding: 72px 0; position: relative; overflow: hidden; }
.about::before { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(227, 179, 65, .08); }
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; position: relative; }
.about h2 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); }
.about .kicker { color: var(--gold); }
.about blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold); font-family: var(--serif); font-size: 21px; color: #fff; line-height: 1.4; }
.about cite { display: block; font: italic 15px var(--sans); color: var(--gold); margin-top: 8px; }
.about .btn-line { border-color: rgba(255, 255, 255, .6); color: #fff; }
.about .btn-line:hover { background: #fff; color: var(--navy); }
.about .btn-navy { background: var(--gold); color: var(--navy); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.facts div { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 20px; }
.facts dt { font-family: var(--serif); font-size: 26px; color: var(--gold); font-weight: 700; line-height: 1.15; }
.facts dd { margin: 4px 0 0; font-size: 15px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Destacados con imagen */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.feature { position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 260px; background: var(--navy-2); color: #fff; text-decoration: none; isolation: isolate; }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10, 22, 44, .85)); z-index: -1; }
.feature:hover img { transform: scale(1.04); }
.feature span { position: absolute; left: 24px; right: 24px; bottom: 22px; }
.feature b { display: block; font-family: var(--serif); font-size: 26px; }
.feature small { display: block; color: #dfe6f1; font-size: 16px; }
.feature em { display: inline-flex; gap: 6px; align-items: center; font-style: normal; color: var(--gold); font-weight: 700; margin-top: 8px; }
.feature:hover { color: #fff; }
@media (max-width: 700px) { .feature-grid { grid-template-columns: 1fr; } .feature { min-height: 210px; } }

.contact-band { background: var(--gold); color: var(--navy); }
.cb-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 40px 20px; flex-wrap: wrap; }
.cb-in h2 { margin: 0; font-size: 30px; }
.cb-in p { margin: 4px 0 0; }
.contact-band .btn-gold { background: var(--navy); color: #fff; }
.contact-band .btn-ghost { border-color: var(--navy); color: var(--navy); }
.contact-band .btn-ghost:hover { background: rgba(19, 41, 75, .08); color: var(--navy); }

/* Páginas interiores */
.page-hero { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #dfe6f1; padding: 54px 0 46px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: 6%; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(227, 179, 65, .12); }
.page-hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 50px); margin: 0; max-width: 22ch; }
.page-hero .kicker { color: var(--gold); }
.page-hero .lead { font-size: 19px; margin: 12px 0 0; max-width: 60ch; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; padding-top: 48px; padding-bottom: 72px; }
.content-grid.single { grid-template-columns: minmax(0, 820px); justify-content: center; }
.side-nav { position: sticky; top: 100px; align-self: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-nav h2 { font: 700 13px var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--gold-2); margin: 0 0 8px; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
.side-nav a:hover { background: var(--gold-soft); color: var(--navy); }
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; } .side-nav { position: static; } }

.prose { font-size: 18px; color: var(--ink); min-width: 0; }
.wrap.narrow > .prose { padding: 40px 0 24px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 30px; margin: 1.4em 0 .5em; }
.prose h3 { font-size: 23px; margin: 1.3em 0 .4em; }
.prose h4 { font: 700 18px var(--sans); color: var(--navy); margin: 1.2em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--gold-2); }
.prose blockquote { margin: 1.4em 0; padding: 18px 24px; background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 0 12px 12px 0; font-family: var(--serif); font-size: 21px; color: var(--navy); }
.prose blockquote p:last-child { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose img { border-radius: 12px; }
.md-figure { margin: 1.4em 0; }
.md-figure img { margin: 0 auto; box-shadow: var(--shadow); cursor: zoom-in; }
.md-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 1.4em 0; }
.md-gallery figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 12px; background: #eee; box-shadow: var(--shadow); }
.md-gallery img { width: 100%; height: 100%; object-fit: cover; object-position: top; cursor: zoom-in; transition: transform .3s; border-radius: 0; }
.md-gallery figure:hover img { transform: scale(1.04); }
.md-table { overflow-x: auto; margin: 1.2em 0 1.6em; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.md-table table { width: 100%; border-collapse: collapse; font-size: 17px; }
.md-table th { background: var(--navy); color: #fff; text-align: left; padding: 12px 16px; font-weight: 700; }
.md-table td { padding: 11px 16px; border-top: 1px solid var(--line); }
.md-table tr:nth-child(even) td { background: #fbfaf6; }
@media (max-width: 560px) {
  .prose { font-size: 17px; }
  .md-gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
}
.share { border-top: 1px solid var(--line); padding: 18px 0 8px; color: var(--muted); font-size: 16px; }

/* Documentos */
.doc-cat { font-size: 24px; margin: 1.4em 0 .6em; }
.doc-cat:first-child { margin-top: 0; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-list a { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.doc-list a:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.doc-list a > .i:first-child { width: 40px; height: 40px; padding: 9px; background: var(--gold-soft); color: var(--gold-2); border-radius: 10px; }
.doc-list span { flex: 1; min-width: 0; }
.doc-list b { display: block; color: var(--navy); }
.doc-list small { display: block; color: var(--muted); }
.doc-list em { font-style: normal; font-weight: 700; color: var(--muted); font-size: 15px; background: var(--bg); padding: 2px 10px; border-radius: 99px; }
.doc-list a > .i:last-child { color: var(--muted); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; }
.contact-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.contact-cards li { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.contact-cards li > .i { width: 40px; height: 40px; padding: 9px; background: var(--gold-soft); color: var(--gold-2); border-radius: 10px; }
.contact-cards b { display: block; color: var(--navy); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: #e9e5da; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Pie */
.footer { background: #0d1d37; color: #b6c2d6; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.footer h2 { font: 700 13px var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin: 0 0 14px; }
.footer a { color: #dfe6f1; text-decoration: none; }
.footer a:hover { color: var(--gold); text-decoration: underline; }
.f-brand { display: flex; gap: 16px; align-items: flex-start; }
.f-brand img { width: 64px; flex: none; }
.f-brand b { font-family: var(--serif); color: #fff; font-size: 22px; }
.f-brand p { margin: 6px 0 12px; }
.f-social { display: flex; gap: 10px; }
.f-social a { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.f-social a:hover { background: var(--gold); color: var(--navy); }
.f-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.f-list li { display: flex; gap: 10px; }
.f-list .i { margin-top: 4px; color: var(--gold); }
.f-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 18px; padding-bottom: 22px; font-size: 14px; color: #8394ad; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Visor de imágenes */
.lightbox { position: fixed; inset: 0; background: rgba(8, 16, 32, .94); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 56px 12px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .24); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #c9d4e6; font-size: 15px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ── v0.1.1: más color (azul de la insignia + dorado) ── */
:root { --bg: #e9f1f9; --sky: #2b7bc4; --sky-soft: #d6e7f6; --line: #d3e0ee; }
body { background: var(--bg); }
.topbar { background: #0b1830; }
.header { background: var(--navy); border-bottom: 3px solid var(--gold); }
.brand { color: #fff; }
.brand b { color: #fff; }
.brand small { color: #9fb6d6; }
.nav-list a, .nav-btn { color: #e3ebf6; }
.nav-list a:hover, .nav-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.nav-list a[aria-current="page"], .has-sub.is-active > .nav-btn { color: var(--gold); box-shadow: inset 0 -3px 0 var(--gold); }
.sub a { color: var(--ink); }
.sub a:hover { background: var(--sky-soft); color: var(--navy); }
.menu-toggle { color: #fff; }
@media (max-width: 1060px) {
  .nav { background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .12); }
  .nav-list a[aria-current="page"], .has-sub.is-active > .nav-btn { box-shadow: inset 4px 0 0 var(--gold); }
  .sub { background: transparent; }
  .sub a { color: #c9d6ea; }
  .sub a:hover, .sub a[aria-current="page"] { background: rgba(255, 255, 255, .08); color: var(--gold); }
}
.dots { bottom: 52px; }
.quick-card { border: 0; border-top: 4px solid var(--gold); }
.quick-card:nth-child(2) { border-top-color: var(--sky); }
.quick-card:nth-child(3) { border-top-color: #2f9e6b; }
.quick-card:nth-child(4) { border-top-color: #d0563c; }
.quick-card:nth-child(2) > .i { background: var(--sky-soft); color: var(--sky); }
.quick-card:nth-child(3) > .i { background: #d9f1e5; color: #2f9e6b; }
.quick-card:nth-child(4) > .i { background: #f9e0da; color: #d0563c; }
.news-card { border: 0; box-shadow: 0 2px 10px rgba(19, 41, 75, .08); border-bottom: 3px solid transparent; }
.news-card:hover { border-bottom-color: var(--gold); }
.nc-body time { color: var(--sky); }
.section-head h2 { position: relative; padding-bottom: 10px; }
.section-head h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 2px; background: var(--gold); }
.about { background: linear-gradient(135deg, var(--navy) 0%, #1c4a86 100%); }
.page-hero { background: linear-gradient(120deg, var(--navy) 0%, #1c4a86 60%, var(--sky) 100%); border-bottom: 4px solid var(--gold); }
.content-grid > .prose, .wrap.narrow > .prose { background: #fff; border-radius: var(--radius); padding: 36px 40px; box-shadow: 0 2px 12px rgba(19, 41, 75, .07); }
.wrap.narrow > .prose { margin-top: 36px; }
.prose h2 { color: var(--navy); border-left: 5px solid var(--gold); padding-left: 14px; }
.side-nav { border: 0; border-top: 4px solid var(--sky); box-shadow: 0 2px 12px rgba(19, 41, 75, .07); }
.doc-list a, .contact-cards li { border: 0; box-shadow: 0 2px 10px rgba(19, 41, 75, .07); border-left: 4px solid var(--gold); }
.md-table { border: 0; box-shadow: 0 2px 10px rgba(19, 41, 75, .07); }
.md-table tr:nth-child(even) td { background: #f2f7fc; }
.share { background: #fff; border: 0; border-radius: var(--radius); padding: 14px 20px; margin-top: 16px; }
/* galerías: mostrar las fotos completas, sin recortar */
.md-gallery { display: block; columns: 3 220px; column-gap: 14px; }
.md-gallery figure { aspect-ratio: auto; break-inside: avoid; margin: 0 0 14px; background: #fff; padding: 6px; }
.md-gallery img { height: auto; object-fit: contain; border-radius: 8px; }
@media (max-width: 560px) {
  .content-grid > .prose, .wrap.narrow > .prose { padding: 22px 18px; }
  .md-gallery { columns: 2; column-gap: 8px; }
  .md-gallery figure { margin-bottom: 8px; padding: 3px; }
}

/* ── v0.1.5: accesos a Aula Virtual y Mensualidades ── */
.quick { grid-template-columns: repeat(3, 1fr); }
.quick-card b .i { width: 14px; height: 14px; color: var(--muted); vertical-align: 0; }
.quick-card:nth-child(1) { border-top-color: var(--sky); }
.quick-card:nth-child(1) > .i { background: var(--sky-soft); color: var(--sky); }
.quick-card:nth-child(2) { border-top-color: #2f9e6b; }
.quick-card:nth-child(2) > .i { background: #d9f1e5; color: #2f9e6b; }
.quick-card:nth-child(3) { border-top-color: var(--gold); }
.quick-card:nth-child(3) > .i { background: var(--gold-soft); color: var(--gold-2); }
.quick-card:nth-child(4) { border-top-color: #7a5cc7; }
.quick-card:nth-child(4) > .i { background: #e9e2f8; color: #7a5cc7; }
.quick-card:nth-child(5) { border-top-color: #1f8f9e; }
.quick-card:nth-child(5) > .i { background: #d8eff1; color: #1f8f9e; }
.quick-card:nth-child(6) { border-top-color: #d0563c; }
.quick-card:nth-child(6) > .i { background: #f9e0da; color: #d0563c; }
@media (max-width: 900px) { .quick { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .quick-card b .i { display: none; } .slide-text { padding-bottom: 92px; } }

/* ── v0.1.6: cabecera en dos niveles, con la barra de menú siempre visible ── */
.header { position: static; border-bottom: 0; background: var(--navy); }
.header-in { min-height: 84px; gap: 18px; }
.brand img { width: 52px; }
.brand b { font-size: 23px; }
.head-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.hbtn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); transition: background .15s, transform .15s; }
.hbtn:hover { background: rgba(255, 255, 255, .2); color: #fff; transform: translateY(-1px); }
.hbtn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.hbtn-gold:hover { background: #ebc25d; color: var(--navy); }
.nav { display: block; position: sticky; top: 0; z-index: 60; margin: 0; background: linear-gradient(90deg, #1c4a86, var(--sky)); border-top: 1px solid rgba(255, 255, 255, .1); border-bottom: 3px solid var(--gold); box-shadow: 0 4px 14px rgba(10, 22, 44, .18); }
.nav-in { display: flex; align-items: center; }
.nav-list { flex-wrap: wrap; gap: 0; }
.nav-list a, .nav-btn { color: #fff; padding: 15px 16px; border-radius: 0; font-size: 16.5px; }
.nav-list a:hover, .nav-btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.nav-list a[aria-current="page"], .has-sub.is-active > .nav-btn { color: #fff; background: rgba(10, 22, 44, .28); box-shadow: inset 0 -4px 0 var(--gold); border-radius: 0; }
.sub { top: 100%; border-radius: 0 0 12px 12px; border-top: 3px solid var(--gold); }
.nav-cta { display: none; }
.menu-toggle { display: none; }
@media (hover: hover) and (min-width: 761px) {
  .has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
}
@media (max-width: 1060px) and (min-width: 761px) {
  .nav { position: sticky; inset: 0 auto auto auto; padding: 0; overflow: visible; flex-direction: row; border-top: 1px solid rgba(255, 255, 255, .1); }
  .nav-list { flex-direction: row; align-items: center; }
  .nav-list a, .nav-btn { width: auto; padding: 13px 12px; font-size: 16px; justify-content: flex-start; }
  .nav-list a[aria-current="page"], .has-sub.is-active > .nav-btn { box-shadow: inset 0 -4px 0 var(--gold); border-radius: 0; }
  .sub { position: absolute; display: block; opacity: 0; visibility: hidden; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 8px; box-shadow: var(--shadow); min-width: 250px; }
  .sub a { color: var(--ink); font-weight: 600; padding: 9px 12px; }
  .sub a:hover, .sub a[aria-current="page"] { background: var(--sky-soft); color: var(--navy); }
  .has-sub.open .sub { opacity: 1; visibility: visible; }
  .hbtn { padding: 8px 12px; font-size: 14px; }
  .topbar .tb-item:first-child { display: inline-flex; }
}
@media (max-width: 760px) {
  .header { position: sticky; top: 0; z-index: 60; border-bottom: 3px solid var(--gold); }
  .header-in { min-height: 72px; }
  .head-actions { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav { position: fixed; inset: var(--nav-top, 76px) 0 0 0; display: none; background: var(--navy); overflow-y: auto; border: 0; box-shadow: none; padding: 12px 0 30px; }
  body.menu-open .nav { display: block; }
  .nav-in { flex-direction: column; align-items: stretch; }
  .nav-list { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .nav-list a, .nav-btn { width: 100%; padding: 14px 12px; font-size: 18px; justify-content: space-between; border-radius: 10px; }
  .nav-list a[aria-current="page"], .has-sub.is-active > .nav-btn { background: transparent; color: var(--gold); box-shadow: inset 4px 0 0 var(--gold); }
  .sub { position: static; display: none; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; box-shadow: none; padding: 0 0 6px 14px; }
  .has-sub.open .sub { display: block; }
  .sub a { color: #c9d6ea; font-weight: 400; }
  .nav-cta { display: grid; gap: 10px; padding-top: 16px; }
  .nav-cta .btn { width: 100%; justify-content: center; padding: .85em; }
  .topbar .tb-item:first-child { display: none; }
}

/* ── v0.1.7: estructura tipo San Mateo, mismos colores ── */
/* Menú: botones con borde, igual que Aula Virtual */
@media (min-width: 761px) {
  .nav-in { padding-top: 10px; padding-bottom: 10px; }
  .nav-list { gap: 8px; }
  .nav-list a, .nav-btn { padding: 8px 16px; font-size: 15.5px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fff; }
  .nav-list a:hover, .nav-btn:hover { background: rgba(255, 255, 255, .2); color: #fff; }
  .nav-list a[aria-current="page"], .has-sub.is-active > .nav-btn { background: rgba(255, 255, 255, .2); border-color: var(--gold); color: var(--gold); box-shadow: none; border-radius: 999px; }
  .sub { top: calc(100% + 10px); border-radius: 12px; }
  .has-sub::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
}
@media (max-width: 1060px) and (min-width: 761px) {
  .nav-list { gap: 6px; }
  .nav-list a, .nav-btn { padding: 7px 12px; font-size: 15px; }
  .nav-list a[aria-current="page"], .has-sub.is-active > .nav-btn { box-shadow: none; border-radius: 999px; }
}

/* Portada */
.hero { min-height: clamp(420px, 64vh, 620px); }
.slide { align-items: center; justify-content: center; text-align: center; }
.slide::after { background: linear-gradient(180deg, rgba(10, 22, 44, .45), rgba(10, 22, 44, .62)); }
.slide-text { display: flex; flex-direction: column; align-items: center; padding: 40px 20px 70px; }
.slide-badge { width: 70px; height: auto; margin-bottom: 14px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35)); }
.slide-text h2 { max-width: 18ch; font-size: clamp(34px, 5.6vw, 62px); }
.slide-text p { max-width: 50ch; font-style: italic; color: var(--gold); font-size: clamp(18px, 2.2vw, 23px); }
.btn-lg { padding: .85em 2.6em; font-size: 18px; }
.hero-arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.hero-arrow:hover { background: rgba(255, 255, 255, .3); }
.hero-arrow.prev { left: 16px; } .hero-arrow.next { right: 16px; }
.dots { bottom: 60px; }
@media (max-width: 480px) { .slide-text { padding-bottom: 80px; } .hero-arrow { display: none; } }

/* Accesos: panel celeste curvo que se monta sobre la foto */
.quick, .quick-card { display: none; }
.quick-panel { position: relative; z-index: 5; margin-top: -44px; }
.quick-panel > .wrap { background: linear-gradient(180deg, #f3f8fd, var(--sky-soft)); border-radius: 60px 0 60px 0; border-top: 4px solid var(--gold); padding: 34px 30px; box-shadow: 0 10px 30px rgba(19, 41, 75, .12); max-width: calc(var(--w) - 40px); }
.quick-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.quick-item { display: flex; align-items: center; gap: 16px; background: #fff; border-left: 5px solid var(--gold); border-radius: 12px; padding: 14px 20px; text-decoration: none; color: var(--navy); box-shadow: 0 2px 10px rgba(19, 41, 75, .07); transition: transform .15s, box-shadow .15s; }
.quick-item:hover { transform: translateX(4px); box-shadow: 0 6px 18px rgba(19, 41, 75, .12); color: var(--navy); }
.quick-item b { flex: 1; text-transform: uppercase; letter-spacing: .06em; font-size: 14.5px; }
.qi-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-soft); color: var(--navy); flex: none; }
.qi-ic .i { width: 24px; height: 24px; color: var(--gold-2); }
.quick-item > .i { color: var(--muted); }
@media (max-width: 760px) {
  .quick-panel { margin-top: -30px; }
  .quick-panel > .wrap { border-radius: 36px 0 36px 0; padding: 22px 14px; width: calc(100% - 24px); }
  .quick-list { grid-template-columns: 1fr; gap: 10px; }
  .quick-item { padding: 10px 14px; }
  .qi-ic { width: 40px; height: 40px; }
}

/* Títulos de sección centrados con línea dorada */
.sec-title { text-align: center; margin-bottom: 34px; }
.sec-title h2 { text-transform: uppercase; letter-spacing: .08em; font-size: clamp(26px, 3.4vw, 36px); margin: 0; display: inline-block; position: relative; padding-bottom: 16px; }
.sec-title h2::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 64px; height: 4px; border-radius: 2px; background: var(--gold); transform: translateX(-50%); }
.sec-title p { margin: 10px 0 0; color: var(--muted); }
.center { text-align: center; margin-top: 30px; }

/* Noticias: 2 grandes + 3 chicas, fecha en etiqueta */
.news-grid.two { grid-template-columns: 1fr 1fr; margin-bottom: 22px; }
.news-grid.two .news-card .nc-img, .news-grid.list .news-card .nc-img { aspect-ratio: 16 / 10; width: auto !important; }
.news-grid .news-card { flex-direction: column !important; border-radius: 16px; }
.news-grid .news-card p { display: block !important; }
.news-card.big h3 { font-size: 24px; }
.nc-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.nc-body h3 { margin: 0; }
.nc-body p { flex: 1; }
.nc-more { color: var(--gold-2); text-decoration: none; font-weight: 700; }
.date-chip { align-self: flex-start; margin-top: 10px; background: #eef2f7; border-left: 4px solid var(--gold); border-radius: 8px; padding: 6px 14px; font-weight: 800; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--navy) !important; }
@media (max-width: 760px) { .news-grid.two { grid-template-columns: 1fr; } }

/* Nuestro sello */
.pillars-band { background: #fff; padding: 64px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { display: block; text-align: center; background: #fff; border-radius: 16px; border: 1px solid var(--line); border-top: 6px solid var(--navy); padding: 34px 26px 30px; text-decoration: none; color: var(--ink-2); box-shadow: 0 4px 16px rgba(19, 41, 75, .06); transition: transform .15s, box-shadow .15s; }
.pillar:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(19, 41, 75, .12); color: var(--ink-2); }
.pl-ic { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: var(--navy); border: 3px solid var(--gold); display: grid; place-items: center; color: #fff; }
.pl-ic .i { width: 38px; height: 38px; }
.pillar h3 { font-size: 21px; margin-bottom: 10px; }
.pillar p { margin: 0; font-size: 16px; }
.pillar b { color: var(--navy); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* Galería */
.albums-box { background: #fff; border-radius: 20px; border: 1px solid var(--line); padding: 40px 30px; box-shadow: 0 4px 16px rgba(19, 41, 75, .06); }
.albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.album { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--navy); isolation: isolate; text-decoration: none; }
.album img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s; }
.album::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 22, 44, .1) 30%, rgba(10, 22, 44, .85)); }
.album:hover img { transform: scale(1.05); }
.album span { position: absolute; left: 20px; right: 20px; bottom: 18px; color: #fff; }
.album small { display: block; color: var(--gold); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.album b { display: block; font-size: 21px; line-height: 1.2; padding-bottom: 10px; position: relative; }
.album b::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--gold); }
@media (max-width: 860px) { .albums { grid-template-columns: 1fr 1fr; } .albums-box { padding: 28px 14px; } }
@media (max-width: 480px) { .albums { grid-template-columns: 1fr; } }

/* Pie con borde dorado y barra inferior */
.footer { border-top: 5px solid var(--gold); background: #0b1830; }
.footer h2 { position: relative; padding-bottom: 10px; }
.footer h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--gold); }
.f-bottom { border-top: 1px solid rgba(255, 255, 255, .08); background: #07111f; padding: 0; }
.f-bottom-in { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.f-bottom b { color: var(--gold); }
.f-bottom .f-social a { width: 34px; height: 34px; }

/* ── v0.1.8: documentos con estilo oscuro, como la página original ── */
.docs-dark { background: linear-gradient(rgba(8, 16, 32, .82), rgba(8, 16, 32, .9)), url(/legacy/images/fondos-abstractos-para-paginas-web-para-fondo-celular-en-hd-12.jpg) center / cover, #0b1426; color: #fff; padding: 46px 0 70px; min-height: 60vh; }
.docs-title { display: inline-block; margin: 0 0 30px; padding: 10px 22px; font: 700 clamp(24px, 3.2vw, 34px) var(--sans); text-transform: uppercase; letter-spacing: .03em; color: #fff; background: linear-gradient(90deg, #1c4a86, #13294b); border-left: 6px solid var(--gold); border-radius: 0 10px 10px 0; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.docs-top { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; align-items: start; margin-bottom: 26px; }
.docs-cat { font: 800 13px var(--sans); color: var(--gold); text-transform: uppercase; letter-spacing: .14em; margin: 22px 0 10px; }
.docs-col .docs-cat:first-child { margin-top: 0; }
.docs-stack { display: grid; gap: 10px; }
.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.doc-btn { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 12px 16px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 12px; background: rgba(255, 255, 255, .03); color: #fff; text-decoration: none; text-transform: uppercase; font-weight: 700; font-size: 14px; line-height: 1.3; letter-spacing: .02em; transition: border-color .15s, background .15s, color .15s, transform .15s; }
.docs-grid .doc-btn { min-height: 92px; }
.doc-btn:hover { border-color: var(--gold); color: var(--gold); background: rgba(227, 179, 65, .08); transform: translateY(-2px); }
.docs-photos { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #000; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.docs-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.docs-photos img.is-on { opacity: 1; }
.docs-photos button { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .25); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.docs-photos button:hover { background: rgba(255, 255, 255, .45); }
.fx-prev { left: 12px; } .fx-next { right: 12px; }
.docs-empty { color: #c9d6ea; }
@media (max-width: 860px) {
  .docs-top { grid-template-columns: 1fr; }
  .docs-photos { order: -1; }
  .docs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .docs-grid { grid-template-columns: 1fr; } .docs-grid .doc-btn { min-height: 64px; } }

/* ── v0.1.9: Admisión y Contacto más atractivas ── */
.photo-hero { position: relative; color: #fff; padding: 90px 0 80px; background: linear-gradient(100deg, rgba(10, 22, 44, .92) 0%, rgba(19, 41, 75, .78) 45%, rgba(28, 74, 134, .35) 100%), var(--bg) center / cover no-repeat, var(--navy); border-bottom: 5px solid var(--gold); }
.photo-hero h1 { color: #fff; font-size: clamp(36px, 5.4vw, 60px); margin: 0; max-width: 18ch; text-shadow: 0 2px 18px rgba(0, 0, 0, .3); }
.photo-hero .kicker { color: var(--gold); }
.photo-hero .lead { font-size: clamp(18px, 2vw, 21px); max-width: 52ch; margin: 14px 0 0; color: #e5ecf6; }
.adm-cta-bar { background: var(--navy); color: #fff; }
.adm-cta-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.adm-cta-bar b { font-family: var(--serif); font-size: 22px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.step { position: relative; background: #fff; border-radius: 18px; padding: 34px 22px 26px; text-align: center; box-shadow: 0 4px 18px rgba(19, 41, 75, .08); border-bottom: 5px solid var(--gold); }
.step:not(:last-child)::after { content: ''; position: absolute; top: 62px; right: -20px; width: 20px; height: 3px; background: var(--gold); }
.step-n { position: absolute; top: 14px; left: 16px; font: 800 14px var(--sans); color: var(--gold-2); background: var(--gold-soft); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.step-ic { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--navy); border: 3px solid var(--gold); display: grid; place-items: center; color: #fff; }
.step-ic .i { width: 32px; height: 32px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { margin: 0 0 12px; font-size: 16px; color: var(--ink-2); }
.step a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.adm-info { background: linear-gradient(180deg, var(--bg), #dde9f6); padding: 10px 0 64px; }
.adm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.adm-body { background: #fff; border-radius: 18px; padding: 34px 38px; box-shadow: 0 4px 18px rgba(19, 41, 75, .08); border-top: 5px solid var(--sky); }
.adm-card { background: linear-gradient(160deg, var(--navy), #1c4a86); color: #fff; border-radius: 18px; padding: 28px 24px; box-shadow: 0 10px 30px rgba(19, 41, 75, .25); position: sticky; top: 90px; }
.adm-card h2 { color: #fff; font-size: 22px; margin-bottom: 16px; }
.adm-line { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.adm-line > .i { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: rgba(227, 179, 65, .18); color: var(--gold); }
.adm-line small { display: block; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
a.adm-line:hover { color: var(--gold); }
.adm-facts { background: var(--gold); color: var(--navy); }
.adm-facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 30px; padding-bottom: 30px; text-align: center; }
.adm-facts b { display: block; font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); }
.adm-facts span { font-weight: 600; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; } .step::after { display: none; }
  .adm-grid { grid-template-columns: 1fr; } .adm-card { position: static; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .adm-body { padding: 22px 18px; }
  .adm-facts .wrap { grid-template-columns: 1fr 1fr; }
  .photo-hero { padding: 60px 0 54px; }
}
.ct-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -110px; position: relative; z-index: 2; }
.ct-card { background: #fff; border-radius: 18px; padding: 30px 20px 26px; text-align: center; box-shadow: 0 10px 30px rgba(19, 41, 75, .14); border-top: 5px solid var(--gold); display: flex; flex-direction: column; align-items: center; }
.ct-card:nth-child(2) { border-top-color: var(--sky); } .ct-card:nth-child(3) { border-top-color: #2f9e6b; } .ct-card:nth-child(4) { border-top-color: #7a5cc7; }
.ct-ic { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold); margin-bottom: 14px; }
.ct-ic .i { width: 30px; height: 30px; }
.ct-card h2 { font-size: 21px; margin-bottom: 6px; }
.ct-card p { margin: 0 0 16px; color: var(--ink-2); flex: 1; overflow-wrap: anywhere; }
.ct-card .btn { padding: .5em 1.2em; font-size: 15px; }
.wa-band { margin-top: 26px; display: flex; align-items: center; gap: 18px; background: #1f8f5a; color: #fff; border-radius: 18px; padding: 20px 26px; text-decoration: none; box-shadow: 0 6px 20px rgba(31, 143, 90, .3); }
.wa-band:hover { background: #1a7d4e; color: #fff; }
.wa-band > .i { width: 46px; height: 46px; flex: none; }
.wa-band span { flex: 1; } .wa-band b { display: block; font-size: 20px; }
.wa-band em { font-style: normal; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; background: rgba(255, 255, 255, .18); padding: 8px 16px; border-radius: 999px; }
.ct-map-wrap { background: var(--navy); padding: 50px 0; }
.ct-map-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; }
.ct-map { border-radius: 18px; overflow: hidden; border: 4px solid var(--gold); min-height: 400px; background: #1c3354; }
.ct-map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; }
.ct-side h2 { color: #fff; font-size: 22px; margin-bottom: 14px; }
.ct-link { display: flex; align-items: center; gap: 12px; padding: 13px 16px; margin-bottom: 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.ct-link b { flex: 1; } .ct-link .i { color: var(--gold); }
.ct-link:hover { border-color: var(--gold); color: var(--gold); }
.ct-social { display: flex; align-items: center; gap: 10px; margin-top: 18px; color: #c9d6ea; }
.ct-social a { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; }
.ct-social a:hover { background: var(--gold); color: var(--navy); }
@media (max-width: 960px) { .ct-cards { grid-template-columns: 1fr 1fr; } .ct-map-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ct-cards { grid-template-columns: 1fr; margin-top: -70px; } .wa-band { flex-wrap: wrap; } }
