/* Colegio Chicos Ingeniosos — hoja de estilos del sitio público */
:root {
  --blue: #0b63b6;
  --blue-deep: #083f78;
  --ink: #12263d;
  --text: #2a3a4c;
  --muted: #5d6d7f;
  --sky: #e9f3fc;
  --green: #74b72e;
  --green-deep: #2c6612;
  --leaf: #eef7e3;
  --sun: #f6c51b;
  --sun-deep: #c89a00;
  --pink: #ec9ad0;
  --paper: #ffffff;
  --line: #d9e3ee;

  --display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.01em; font-weight: 700; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); }
.small { font-size: .9rem; }
.muted { color: var(--muted); }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { margin-bottom: .35rem; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 1rem/1 var(--body); padding: .8rem 1.25rem; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #ffd43b; color: var(--ink); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); color: #fff; }
.btn-line { border-color: currentColor; color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-ghost { color: var(--blue); border-color: var(--line); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.link-arrow::after { content: ""; width: .55em; height: .55em; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px) rotate(45deg); }

/* ---------- Aviso superior ---------- */
.notice { background: var(--ink); color: #fff; font-size: .92rem; }
.notice-in { display: flex; gap: 1rem; justify-content: center; align-items: center; padding: .55rem 0; flex-wrap: wrap; text-align: center; }
.notice a { color: var(--sun); font-weight: 700; }

/* ---------- Encabezado ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 48px; height: auto; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1; color: var(--blue); }
.brand-name small { display: block; font-size: .72rem; font-weight: 600; color: var(--green-deep); letter-spacing: .02em; margin-bottom: 3px; }
.nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: .2rem; margin: 0; padding: 0; }
.nav ul a { display: block; padding: .5rem .65rem; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav ul a:hover { background: var(--sky); color: var(--blue); }
.nav ul a[aria-current="page"] { color: var(--blue); font-weight: 700; box-shadow: inset 0 -3px 0 var(--sun); border-radius: 0; }
.nav-actions { display: flex; gap: .5rem; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: var(--ink); margin: auto; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.menu-open .bars { background: transparent; }
.menu-open .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-open .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .menu-btn { display: block; }
  .nav { position: fixed; inset: 76px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(18,38,61,.12); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s; max-height: calc(100vh - 76px); overflow: auto; }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: .8rem .5rem; font-size: 1.05rem; border-radius: 8px; }
  .nav ul a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--sun); }
  .nav-actions { flex-direction: column; }
}

/* ---------- Fotos con cinta (motivo de la revista) ---------- */
.snap { margin: 0; background: #fff; padding: 10px 10px 14px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 14px 30px -12px rgba(8,63,120,.35); position: relative; border-radius: 3px; }
.snap img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.snap::before { content: ""; position: absolute; width: 92px; height: 26px; top: -12px; left: 18px; transform: rotate(-4deg); background: var(--tape, var(--pink)); opacity: .9; border-radius: 2px; clip-path: polygon(3% 0, 100% 6%, 97% 100%, 0 92%); }
.tape-pink { --tape: var(--pink); }
.tape-yellow { --tape: var(--sun); }
.tape-green { --tape: #a8d86e; }

/* ---------- Hero ---------- */
.hero { background: var(--blue); color: #e8f2ff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; background: #fff; clip-path: polygon(0 100%, 100% 100%, 100% 0); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; padding: 4.5rem 0 6.5rem; position: relative; z-index: 1; }
.hero-place { font-weight: 600; color: var(--sun); margin-bottom: 1.1rem; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.025em; margin-bottom: 1.4rem; text-wrap: balance; }
.hero-lead { font-size: 1.2rem; max-width: 34em; color: #d6e7fb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.hero-board { position: relative; height: 520px; }
.hero-board .snap { position: absolute; }
.snap-a { width: 78%; aspect-ratio: 756/465; top: 4%; left: 0; transform: rotate(-3deg); z-index: 2; }
.snap-b { width: 40%; aspect-ratio: 3/4; top: 0; right: 0; transform: rotate(4deg); z-index: 1; }
.snap-c { width: 44%; aspect-ratio: 1/1; bottom: 2%; left: 18%; transform: rotate(2.5deg); z-index: 3; }
.leo { position: absolute; width: 36%; right: -2%; bottom: -6%; z-index: 4; filter: drop-shadow(0 12px 18px rgba(0,0,0,.25)); }
.snap-note { position: absolute; left: 0; bottom: 6%; z-index: 4; font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--ink); background: var(--sun); padding: .35rem .8rem; transform: rotate(-6deg); border-radius: 4px; margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .hero-board .snap, .leo, .snap-note { animation: drop .7s cubic-bezier(.2,.8,.2,1.15) both; }
  .snap-b { animation-delay: .08s !important; }
  .snap-c { animation-delay: .16s !important; }
  .leo { animation-delay: .32s !important; }
  .snap-note { animation-delay: .4s !important; }
  @keyframes drop { from { opacity: 0; translate: 0 -24px; } to { opacity: 1; translate: 0 0; } }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding: 3rem 0 5rem; gap: 2rem; }
  .hero-board { height: 380px; max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 520px) {
  .hero-board { height: 300px; }
  .snap-note { font-size: .85rem; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Cifras ---------- */
.facts { padding: 1rem 0 3.5rem; }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.facts-row p { margin: 0; padding: 1.1rem 1.2rem 0 0; color: var(--muted); font-size: .97rem; line-height: 1.4; }
.facts-row strong { display: block; font-family: var(--display); font-size: 1.45rem; color: var(--blue); font-weight: 800; margin-bottom: .2rem; }
@media (max-width: 800px) { .facts-row { grid-template-columns: 1fr 1fr; gap: .5rem 1rem; } }

/* ---------- Encabezados de sección ---------- */
.sec-head { max-width: 44rem; margin-bottom: 2.5rem; }
.sec-head p { color: var(--muted); font-size: 1.1rem; }
.sec-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.sec-head-row h2 { margin: 0; }

/* ---------- Niveles ---------- */
.levels { padding: 3rem 0 5rem; }
.level-list { display: grid; gap: 4.5rem; }
.level { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: center; }
.level .snap { aspect-ratio: 4/3; transform: rotate(-1.5deg); }
.level-flip .snap { order: 2; transform: rotate(1.5deg); }
.level h3 { font-size: clamp(2rem, 3.5vw, 2.8rem); color: var(--blue); font-weight: 800; margin-bottom: .2rem; }
.level-grades { font-weight: 700; color: var(--green-deep); margin-bottom: 1rem; }
.level-text p { max-width: 34em; }
.level-hours { font-size: .95rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: .9rem; margin-top: 1.2rem; }
.level-hours span { font-weight: 700; color: var(--ink); margin-right: .4rem; }
@media (max-width: 800px) { .level { grid-template-columns: 1fr; gap: 1.8rem; } .level-flip .snap { order: 0; } }

/* ---------- Identidad ---------- */
.identity { background: var(--leaf); padding: 5rem 0; }
.identity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.identity h2 { color: var(--green-deep); }
.identity-lead { font-size: 1.15rem; color: var(--ink); }
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2.2rem; }
.values h3 { font-size: 1.3rem; margin-bottom: .35rem; display: inline-block; background: linear-gradient(transparent 62%, var(--sun) 62%); padding: 0 2px; }
.values p { margin: 0; color: var(--text); font-size: .98rem; }
@media (max-width: 860px) { .identity-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
@media (max-width: 480px) { .values { grid-template-columns: 1fr; } }

/* ---------- Noticias ---------- */
.news-home { padding: 5rem 0; }
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 1.5rem 2rem; }
.news-card a { display: grid; gap: .9rem; text-decoration: none; color: inherit; height: 100%; }
.news-card .news-img { overflow: hidden; border-radius: var(--r-md); aspect-ratio: 16/10; background: var(--sky); }
.news-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.news-card a:hover img { transform: scale(1.03); }
.news-card h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.news-card a:hover h3 { color: var(--blue); }
.news-card p { color: var(--muted); margin: 0; font-size: .97rem; }
.news-meta { font-size: .85rem !important; font-weight: 600; color: var(--green-deep) !important; margin-bottom: .4rem !important; }
.news-card-lead { grid-row: span 2; }
.news-card-lead h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.news-grid > .news-card:not(.news-card-lead) a { grid-template-columns: 180px 1fr; align-items: start; }
.news-grid > .news-card:not(.news-card-lead) .news-img { aspect-ratio: 1/1; }
@media (max-width: 860px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-card-lead { grid-row: auto; }
  .news-grid > .news-card:not(.news-card-lead) a { grid-template-columns: 110px 1fr; }
}

/* ---------- Agenda ---------- */
.agenda { padding: 0 0 5rem; }
.agenda-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
.event-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.event-list li { display: flex; gap: 1.2rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.event-list time { flex: 0 0 64px; text-align: center; font-weight: 700; color: var(--blue); text-transform: lowercase; line-height: 1.1; font-size: .9rem; }
.event-list time span { display: block; font-family: var(--display); font-size: 2rem; font-weight: 800; color: var(--ink); }
.event-list h3 { font-size: 1.1rem; margin: 0 0 .15rem; font-family: var(--body); font-weight: 700; }
.event-list p { margin: 0; color: var(--muted); font-size: .93rem; }
.hours-card { background: var(--sky); border-radius: var(--r-lg); padding: 2rem 2.2rem; }
.hours-card h2 { font-size: 1.6rem; }
.hours-card dl { margin: 0 0 1rem; }
.hours-card dt { font-weight: 700; color: var(--blue); margin-top: .8rem; }
.hours-card dd { margin: 0; }
@media (max-width: 860px) { .agenda-grid { grid-template-columns: 1fr; } }

/* ---------- Mosaico ---------- */
.gallery-home { padding: 0 0 5rem; }
.mosaic { display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 10px; }
.mosaic figure { margin: 0; overflow: hidden; border-radius: 10px; background: var(--sky); }
.mosaic figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic figure:nth-child(5) { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; } .mosaic figure:nth-child(5) { grid-row: auto; } }

/* ---------- CTA ---------- */
.cta { padding: 0 0 5rem; }
.cta-in { background: var(--ink); color: #c9d8ea; border-radius: var(--r-lg); padding: 2.5rem 3rem 2.5rem 2rem; display: grid; grid-template-columns: 150px 1fr auto; gap: 2rem; align-items: center; position: relative; overflow: visible; }
.cta h2 { color: #fff; margin-bottom: .4rem; }
.cta p { margin: 0; }
.cta-leo { width: 150px; margin: -4.5rem 0 -2.5rem; }
@media (max-width: 860px) { .cta-in { grid-template-columns: 1fr; text-align: center; padding: 2rem 1.5rem; } .cta-leo { margin: -4rem auto 0; width: 120px; } }

/* ---------- Páginas internas ---------- */
.page-hero { background: var(--blue); color: #d6e7fb; padding: 3.5rem 0 4.5rem; position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px; background: #fff; clip-path: polygon(0 100%, 100% 100%, 100% 0); }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; margin-bottom: .6rem; }
.page-hero p { max-width: 42em; font-size: 1.12rem; margin: 0; }
.crumbs { font-size: .9rem; margin-bottom: 1rem; }
.crumbs a { color: var(--sun); }
.page-body { padding: 3.5rem 0 5rem; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.7rem; margin-top: 2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose img { border-radius: var(--r-md); margin: 1.5rem 0; }
.prose blockquote { border-left: 4px solid var(--sun); margin: 1.5rem 0; padding: .2rem 0 .2rem 1.2rem; font-size: 1.15rem; color: var(--ink); }
.prose iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: var(--r-md); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3.5rem; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Nosotros */
.about-intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3.5rem; align-items: center; margin-bottom: 4.5rem; }
.about-intro .snap { transform: rotate(2deg); }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 4.5rem; }
.mv > div { padding: 2.5rem; }
.mv > div:first-child { background: var(--leaf); }
.mv > div:last-child { background: var(--sky); }
.mv h2 { font-size: 1.9rem; }
.mv > div:first-child h2 { color: var(--green-deep); }
.mv > div:last-child h2 { color: var(--blue); }
.spaces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.spaces figure { margin: 0; }
.spaces img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-md); width: 100%; }
.spaces figcaption { font-weight: 700; color: var(--ink); margin-top: .6rem; }
.spaces figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: .93rem; }
@media (max-width: 860px) { .about-intro, .mv { grid-template-columns: 1fr; } .spaces { grid-template-columns: 1fr 1fr; } }

/* Admisiones */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 4rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { counter-increment: s; border-top: 3px solid var(--blue); padding-top: 1rem; }
.steps li::before { content: "Paso " counter(s); display: block; font-weight: 700; color: var(--blue); font-size: .9rem; margin-bottom: .3rem; }
.steps h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.steps p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.price-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 1rem; }
.price-table caption { text-align: left; font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--ink); margin-bottom: .8rem; }
.price-table th, .price-table td { padding: .85rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table thead th { font-size: .9rem; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--ink); }
.price-table td.num { font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: .55rem 0 .55rem 2rem; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: .9rem; width: 12px; height: 7px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.box { background: var(--sky); border-radius: var(--r-md); padding: 1.5rem 1.6rem; }
.box-sun { background: #fff6d6; }
.box h3 { font-size: 1.15rem; }

/* Formularios */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2.2rem; box-shadow: 0 30px 60px -40px rgba(8,63,120,.45); }
.form-card h2 { font-size: 1.8rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 1.5rem; } }
.field label { display: block; font-weight: 600; font-size: .95rem; color: var(--ink); margin-bottom: .35rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: .8rem .9rem; border: 1.5px solid #c5d3e2; border-radius: 10px; background: #fff; color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11,99,182,.15); }
.field input:user-invalid { border-color: #c0392b; }
.hint { font-size: .85rem; color: var(--muted); margin-top: .3rem; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.2rem; font-weight: 500; }
.alert-ok { background: #e3f5d6; color: #22520e; }
.alert-error { background: #fde4e1; color: #8a1f12; }

/* Listado de noticias */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
@media (max-width: 900px) { .news-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .news-list { grid-template-columns: 1fr; } }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.chip { padding: .45rem .95rem; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; font-size: .93rem; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager { display: flex; gap: .5rem; justify-content: center; margin-top: 3rem; }
.pager a, .pager span { min-width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; }
.pager span { background: var(--blue); color: #fff; border-color: var(--blue); }
.article-cover { border-radius: var(--r-lg); overflow: hidden; margin: -2rem 0 2.5rem; aspect-ratio: 21/9; background: var(--sky); position: relative; z-index: 2; box-shadow: 0 30px 60px -35px rgba(8,63,120,.5); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-aside h2 { font-size: 1.3rem; }
.mini-news { list-style: none; padding: 0; margin: 0; }
.mini-news li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.mini-news a { text-decoration: none; font-weight: 600; color: var(--ink); }
.mini-news a:hover { color: var(--blue); }
.mini-news span { display: block; font-size: .85rem; color: var(--muted); }
.share { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); align-items: center; }

/* Calendario */
.month { margin-bottom: 3rem; }
.month h2 { font-size: 1.5rem; text-transform: capitalize; border-bottom: 2px solid var(--ink); padding-bottom: .5rem; }
.event-list.big li { align-items: flex-start; }
.event-list.big p.desc { color: var(--text); margin-top: .4rem; }
.tag { display: inline-block; font-size: .8rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; background: var(--leaf); color: var(--green-deep); margin-left: .4rem; vertical-align: middle; }

/* Galería */
.albums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
@media (max-width: 900px) { .albums { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .albums { grid-template-columns: 1fr; } }
.album a { text-decoration: none; color: inherit; display: block; }
.album .snap { aspect-ratio: 4/3; transition: transform .25s; }
.album:nth-child(odd) .snap { transform: rotate(-1.5deg); }
.album:nth-child(even) .snap { transform: rotate(1.5deg); }
.album a:hover .snap { transform: rotate(0) translateY(-4px); }
.album h2 { font-size: 1.25rem; margin: 1.2rem 0 .2rem; }
.album p { color: var(--muted); margin: 0; font-size: .95rem; }
.photo-grid { columns: 3 260px; column-gap: 12px; }
.photo-grid button { display: block; width: 100%; padding: 0; border: 0; margin: 0 0 12px; cursor: zoom-in; border-radius: 10px; overflow: hidden; background: var(--sky); break-inside: avoid; }
.photo-grid img { width: 100%; transition: transform .3s; }
.photo-grid button:hover img { transform: scale(1.03); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10,20,35,.92); }
.lightbox img { max-width: 94vw; max-height: 84vh; border-radius: 8px; margin: auto; }
.lightbox-bar { display: flex; justify-content: center; gap: .6rem; margin-top: .8rem; }
.lightbox-bar button { background: #fff; border: 0; border-radius: 999px; padding: .6rem 1.1rem; font: 600 .95rem var(--body); cursor: pointer; }

/* Circulares */
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li { display: grid; grid-template-columns: 56px 1fr auto; gap: 1.2rem; align-items: center; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.doc-icon { width: 56px; height: 64px; border-radius: 8px; background: var(--sky); display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: var(--blue); position: relative; }
.doc-icon::after { content: ""; position: absolute; top: 0; right: 0; border-width: 0 14px 14px 0; border-style: solid; border-color: #fff #fff var(--line) var(--line); }
.doc-list h2 { font-size: 1.15rem; font-family: var(--body); font-weight: 700; margin: 0 0 .2rem; }
.doc-list p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 600px) { .doc-list li { grid-template-columns: 44px 1fr; } .doc-list .btn { grid-column: 2; justify-self: start; } .doc-icon { width: 44px; height: 52px; } }

/* Contacto */
.contact-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; font-size: .9rem; color: var(--muted); font-weight: 600; }
.contact-list a, .contact-list span { font-size: 1.15rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--blue); }
.map { border: 0; width: 100%; height: 320px; border-radius: var(--r-md); background: var(--sky); }

.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty img { width: 120px; margin: 0 auto 1rem; }

/* ---------- Pie ---------- */
.site-footer { background: var(--blue-deep); color: #c3d6ec; padding: 4rem 0 0; font-size: .97rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--sun); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-name { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: #fff; margin: .8rem 0 .3rem; }
.footer-motto { font-style: italic; color: #e7f0fa; }
.footer-h { font-family: var(--body); font-size: 1rem; font-weight: 700; color: var(--sun); margin-bottom: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.15); padding: 1.3rem 0; font-size: .88rem; }
.footer-bottom a { color: #c3d6ec; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(0,0,0,.25); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); color: #fff; }
