:root {
  /* Paleta institucional oficial del IBL */
  --navy: #002B5C;
  --navy-deep: #001E42;
  --navy-line: #0A3A6E;
  --red: #B40000;
  --red-deep: #8E0000;
  --cream: #F6F1E7;
  --paper: #FCFBF8;
  --white: #FFFFFF;
  --gold: #B68A2E;
  --gold-soft: #CBA75A;
  --ink: #1A2233;
  --muted: #5A6273;
  --line: rgba(0,43,92,0.14);
  --line-soft: rgba(0,43,92,0.08);
  --line-cream: rgba(246,241,231,0.22);

  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --container: 1120px;
  --measure: 64ch;
  --scroll: 0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 22px; } }

/* ---------- Etiquetas académicas ---------- */
.label {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--red);
  display: inline-flex; align-items: center; gap: 12px;
}
.label::before { content: ''; width: 26px; height: 2px; background: var(--red); display: inline-block; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.04em; padding: 13px 26px; border-radius: 2px;
  border: 1.5px solid transparent; transition: background 0.18s, color 0.18s, border-color 0.18s;
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn-primary:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-outline { background: transparent; color: var(--cream); border-color: rgba(246,241,231,0.45); }
.btn-outline:hover { background: rgba(246,241,231,0.10); border-color: var(--cream); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline-navy:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 2px; }

/* ---------- Barra institucional superior ---------- */
.topbar {
  background: var(--navy-deep); color: rgba(246,241,231,0.72);
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.topbar-inner { max-width: var(--container); margin: 0 auto; padding: 7px 32px; display: flex; justify-content: space-between; gap: 16px; }
.topbar a { color: var(--gold-soft); }
@media (max-width: 720px) { .topbar-inner .hide-sm { display: none; } .topbar-inner { justify-content: center; } }

/* ---------- Masthead ---------- */
header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(0,43,92,0.03); }
header::after { content: ''; display: block; height: 3px; background: var(--navy); background-image: linear-gradient(90deg, var(--red), var(--red) calc(var(--scroll) * 100%), var(--navy) calc(var(--scroll) * 100% + 46px), var(--navy)); }
.masthead { max-width: var(--container); margin: 0 auto; padding: 16px 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-text .name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--navy); line-height: 1.05; letter-spacing: 0.01em; white-space: nowrap; }
.brand-text .sub { font-family: var(--sans); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 3px; }
nav.main { display: flex; align-items: center; gap: 20px; }
nav.main a.navlink { font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); opacity: 0.78; transition: opacity 0.18s, color 0.18s; white-space: nowrap; }
nav.main a.navlink:hover { opacity: 1; }
nav.main a.navlink.active { opacity: 1; color: var(--red); border-bottom: 2px solid var(--red); padding-bottom: 4px; }
@media (max-width: 1080px) {
  .brand-text .sub { display: none; }
  .masthead { flex-wrap: wrap; gap: 8px 12px; padding: 12px 22px; }
  nav.main { width: 100%; gap: 20px; overflow-x: auto; padding-bottom: 2px; }
  nav.main a.navlink { font-size: 0.7rem; white-space: nowrap; }
  nav.main a.navlink.active { padding-bottom: 3px; }
  nav.main .btn { display: none; }
}

/* Barra fija móvil */
.sticky-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; background: var(--navy-deep); border-top: 2px solid var(--gold); padding: 11px 20px; display: none; align-items: center; justify-content: space-between; gap: 12px; }
.sticky-bar span { color: var(--cream); font-family: var(--serif); font-style: italic; font-size: 1rem; }
@media (max-width: 1080px) { .sticky-bar { display: flex; } body { padding-bottom: 66px; } }
@media (max-width: 400px) { .brand-text .name { white-space: normal; } }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; border-bottom: 3px solid var(--gold); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 88% 12%, rgba(182,138,46,0.10), transparent 42%); pointer-events: none; }
.hero-inner { max-width: var(--container); margin: 0 auto; padding: 78px 32px 84px; position: relative; z-index: 1; display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 56px 22px 64px; } }
.hero .kicker { font-family: var(--sans); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 26px; }
.hero h1 { font-family: var(--serif); font-size: clamp(2.6rem, 5.4vw, 4rem); font-weight: 600; line-height: 1.04; letter-spacing: 0.005em; margin-bottom: 26px; }
.motto { border-left: 2px solid var(--gold); padding-left: 20px; margin-bottom: 28px; }
.motto .lat { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--cream); line-height: 1.2; }
.motto .es { font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); margin-top: 6px; }
.hero p.lead { font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; color: rgba(246,241,231,0.86); max-width: 52ch; margin-bottom: 36px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-seal { display: flex; justify-content: center; align-items: center; }
.hero-seal img { width: 100%; max-width: 260px; height: auto; filter: drop-shadow(0 14px 34px rgba(0,0,0,0.45)); }
@media (max-width: 900px) { .hero-seal { order: -1; } .hero-seal img { max-width: 176px; } }

/* ---------- Datos / cifras ---------- */
.facts { background: var(--cream); border-bottom: 1px solid var(--line); }
.facts-inner { max-width: var(--container); margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .facts-inner { grid-template-columns: 1fr 1fr; } }
.fact { padding: 32px 24px; text-align: center; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
@media (max-width: 720px) { .fact:nth-child(2) { border-right: 0; } .fact:nth-child(1), .fact:nth-child(2) { border-bottom: 1px solid var(--line); } }
.fact strong { display: block; font-family: var(--serif); color: var(--navy); font-size: 2.3rem; font-weight: 600; line-height: 1; }
.fact span { font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 10px; }

/* ---------- Secciones ---------- */
section { padding: 66px 0; }
@media (max-width: 720px) { section { padding: 46px 0; } }
.section-head { max-width: 720px; margin-bottom: 38px; }
.section-head h2 { font-family: var(--serif); font-size: clamp(2rem, 3.8vw, 2.7rem); font-weight: 600; color: var(--navy); line-height: 1.14; margin: 18px 0 14px; }
.section-head p { font-family: var(--serif); font-size: 1.22rem; color: var(--muted); max-width: var(--measure); line-height: 1.55; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .label { justify-content: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.page-intro { padding-top: 70px; padding-bottom: 0; }

/* Quiénes somos */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: stretch; }
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }
.about-figure { position: relative; }
.about-figure img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; border: 1px solid var(--line); }
.about-figure figcaption { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
.about p { color: var(--muted); margin-bottom: 18px; max-width: var(--measure); }
.about p strong { color: var(--ink); font-weight: 600; }
.vocations { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 22px; }
.vocations dt { font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.vocations dd { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); columns: 2; column-gap: 28px; }
@media (max-width: 480px) { .vocations dd { columns: 1; } }
.vocations dd span { display: block; padding: 4px 0; border-bottom: 1px solid var(--line-soft); }

.pullquote { background: var(--navy); color: var(--cream); margin-top: 0; }
.pullquote .wrap { padding-top: 56px; padding-bottom: 56px; text-align: center; }
.pullquote blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.8vw, 1.9rem); line-height: 1.4; max-width: 32ch; margin: 0 auto; }
.pullquote cite { display: block; margin-top: 16px; font-family: var(--sans); font-style: normal; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-soft); }

/* Historia / línea de tiempo */
.history { background: var(--cream); }
.timeline { margin-top: 44px; }
.tl-item { display: grid; grid-template-columns: 96px 1fr; gap: 28px; padding: 20px 0; border-top: 1px solid var(--line); align-items: baseline; }
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-item .yr { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--red); line-height: 1.15; }
.tl-item .ev { color: var(--ink); font-size: 1.02rem; }
.tl-item .ev strong { color: var(--navy); font-weight: 600; }
@media (max-width: 560px) { .tl-item { grid-template-columns: 64px 1fr; gap: 16px; } .tl-item .yr { font-size: 1.1rem; } }

/* Cómo funciona */
.how { background: var(--paper); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); background: var(--white); }
@media (max-width: 820px) { .how-grid { grid-template-columns: 1fr; } }
.how-cell { padding: 38px 32px; border-right: 1px solid var(--line); }
.how-cell:last-child { border-right: 0; }
@media (max-width: 820px) { .how-cell { border-right: 0; border-bottom: 1px solid var(--line); } .how-cell:last-child { border-bottom: 0; } }
.how-cell .rn { font-family: var(--serif); font-size: 1.05rem; color: var(--gold); letter-spacing: 0.1em; }
.how-cell h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--navy); margin: 6px 0 12px; }
.how-cell p { color: var(--muted); font-size: 0.98rem; }
.how-note { margin: 34px auto 0; font-family: var(--serif); font-size: 1.08rem; color: var(--muted); border-top: 2px solid var(--gold); padding-top: 20px; max-width: var(--measure); text-align: center; }
.how-note strong { color: var(--navy); }

/* Caminos de formación */
.paths { background: var(--white); }
.paths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 880px) { .paths-grid { grid-template-columns: 1fr; } }
.path { border: 1px solid var(--line); border-top: 3px solid var(--red); padding: 34px 30px; display: flex; flex-direction: column; background: var(--white); }
.path .ord { font-family: var(--sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.path h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--navy); margin-bottom: 12px; line-height: 1.1; }
.path > p { color: var(--muted); font-size: 0.98rem; margin-bottom: 20px; }
.path ul { list-style: none; margin-bottom: 24px; }
.path li { color: var(--ink); font-size: 0.92rem; padding: 9px 0 9px 18px; border-top: 1px solid var(--line-soft); position: relative; }
.path li::before { content: ''; position: absolute; left: 0; top: 17px; width: 7px; height: 7px; background: var(--gold); }
.path .more { margin-top: auto; font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); }

/* Cursos */
.courses { background: var(--cream); }
.courses-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); background: var(--white); }
@media (max-width: 720px) { .courses-grid { grid-template-columns: 1fr; } }
.course { padding: 32px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.course:nth-child(2n) { border-right: 0; }
.course .cn { font-family: var(--serif); font-size: 0.95rem; color: var(--gold); letter-spacing: 0.08em; }
.course h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--navy); margin: 4px 0 10px; line-height: 1.15; }
.course p { color: var(--muted); font-size: 0.96rem; margin-bottom: 14px; }
.course .biblio { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); display: block; margin-bottom: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.course .biblio em { font-style: italic; color: var(--ink); }
.course .prof { font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.course .prof::before { content: 'Profesor · '; color: var(--muted); }
.elective { margin-top: 28px; font-family: var(--serif); font-size: 1.08rem; color: var(--muted); text-align: center; max-width: var(--measure); margin-left: auto; margin-right: auto; }
.elective strong { color: var(--navy); }

/* Cuerpo docente */
.faculty { background: var(--white); }
.faculty-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 820px) { .faculty-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .faculty-grid { grid-template-columns: 1fr; } }
.prof-card { border: 1px solid var(--line); padding: 30px 26px; background: var(--white); display: flex; flex-direction: column; }
.prof-card .monogram { width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: var(--cream); font-family: var(--serif); font-size: 1.1rem; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gold); margin-bottom: 18px; letter-spacing: 0.02em; }
.prof-card h3 { font-family: var(--serif); font-size: 1.32rem; font-weight: 600; color: var(--navy); margin-bottom: 5px; line-height: 1.12; }
.prof-card .role { font-family: var(--sans); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); display: block; margin-bottom: 14px; }
.prof-card p { color: var(--muted); font-size: 0.95rem; }
.faculty-note { margin-top: 32px; font-family: var(--serif); font-style: italic; font-size: 1.02rem; color: var(--muted); text-align: center; max-width: var(--measure); margin-left: auto; margin-right: auto; }

/* Convenio / Formación pastoral */
.convenio { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
.convenio::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 90% 90%, rgba(180,0,0,0.20), transparent 48%); pointer-events: none; }
.convenio .label { color: var(--gold-soft); }
.convenio .label::before { background: var(--gold-soft); }
.convenio-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 52px; align-items: center; position: relative; z-index: 1; }
@media (max-width: 880px) { .convenio-grid { grid-template-columns: 1fr; gap: 34px; } }
.convenio h2 { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 600; margin: 16px 0 18px; color: var(--cream); }
.convenio p { color: rgba(246,241,231,0.82); margin-bottom: 14px; }
.benefits { list-style: none; margin-top: 22px; }
.benefits li { padding: 14px 0 14px 28px; position: relative; border-top: 1px solid var(--line-cream); color: rgba(246,241,231,0.92); }
.benefits li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); font-size: 0.85rem; top: 15px; }
.seminary-card { background: var(--navy-deep); border: 1px solid rgba(182,138,46,0.32); padding: 34px; }
.seminary-card h4 { font-family: var(--serif); font-size: 1.4rem; color: var(--cream); margin-bottom: 8px; line-height: 1.15; }
.seminary-card .place { font-size: 0.86rem; color: rgba(246,241,231,0.66); margin-bottom: 20px; }
.seminary-card a { font-family: var(--sans); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft); border-bottom: 1px solid rgba(182,138,46,0.4); padding-bottom: 3px; }
.residencia { margin-top: 48px; position: relative; z-index: 1; }
.residencia > h3 { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--cream); margin-bottom: 4px; }
.residencia .sub { font-size: 0.85rem; color: rgba(246,241,231,0.6); margin-bottom: 24px; }
.residencia-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 44px; }
@media (max-width: 720px) { .residencia-grid { grid-template-columns: 1fr; } }
.residencia-item { padding: 15px 0; border-top: 1px solid var(--line-cream); }
.residencia-item .mat { display: block; font-family: var(--serif); font-size: 1.12rem; color: var(--cream); line-height: 1.25; }
.residencia-item .pr { display: block; font-family: var(--sans); font-size: 0.78rem; color: rgba(246,241,231,0.6); margin-top: 2px; }

/* Franja red internacional (ILC) */
.network { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.network .wrap { max-width: 840px; text-align: center; padding-top: 64px; padding-bottom: 64px; }
.network .label { justify-content: center; }
.network h2 { font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.05rem); font-weight: 600; color: var(--navy); line-height: 1.2; margin: 16px 0 14px; }
.network p { font-family: var(--serif); font-size: 1.12rem; color: var(--muted); max-width: 62ch; margin: 0 auto 24px; }
.network a.netlink { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); border-bottom: 1px solid var(--red); padding-bottom: 3px; }
.network a.netlink:hover { color: var(--red-deep); }

/* Formación continua */
.continuing { background: var(--navy); color: var(--cream); position: relative; overflow: hidden; }
.continuing::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 10% 12%, rgba(182,138,46,0.10), transparent 44%); pointer-events: none; }
.continuing .wrap { position: relative; z-index: 1; }
.continuing .label { color: var(--gold-soft); }
.continuing .label::before { background: var(--gold-soft); }
.continuing .section-head h2 { color: var(--cream); }
.continuing .section-head p { color: rgba(246,241,231,0.82); }
.exchange-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .exchange-grid { grid-template-columns: 1fr; } }
.exchange-card { background: var(--navy-deep); border: 1px solid rgba(182,138,46,0.3); padding: 34px 30px; display: flex; flex-direction: column; }
.exchange-card .tag { font-family: var(--sans); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 14px; }
.exchange-card h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--cream); margin-bottom: 12px; line-height: 1.15; }
.exchange-card p { color: rgba(246,241,231,0.84); font-size: 0.98rem; margin-bottom: 18px; }
.exchange-card .refs { margin-top: auto; display: flex; flex-wrap: wrap; gap: 18px; }
.exchange-card .refs a { font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-soft); border-bottom: 1px solid rgba(182,138,46,0.4); padding-bottom: 2px; }

/* Reconocimiento estatal */
.recognition { background: var(--cream); }
.recognition-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 52px; align-items: center; }
@media (max-width: 880px) { .recognition-grid { grid-template-columns: 1fr; gap: 34px; } }
.recognition h2 { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 600; color: var(--navy); line-height: 1.15; margin: 16px 0 16px; }
.recognition p { font-family: var(--serif); font-size: 1.15rem; color: var(--muted); max-width: var(--measure); }
.rec-list { list-style: none; margin-top: 24px; }
.rec-list li { padding: 13px 0 13px 28px; position: relative; border-top: 1px solid var(--line); color: var(--ink); }
.rec-list li::before { content: '✓'; position: absolute; left: 0; color: var(--red); font-weight: 700; top: 13px; }
.rec-card { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: 32px; }
.rec-card h4 { font-family: var(--serif); font-size: 1.32rem; color: var(--navy); margin-bottom: 16px; }
.areas { list-style: none; margin-bottom: 24px; }
.areas li { font-family: var(--serif); font-size: 1.12rem; color: var(--navy); padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.areas li:last-child { border-bottom: 0; }

/* Galería */
.gallery { background: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (max-width: 820px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-grid img { width: 100%; height: 250px; object-fit: cover; border: 1px solid var(--line); }
.gallery-grid img:first-child { grid-column: 1 / -1; height: 360px; }
@media (max-width: 460px) { .gallery-grid img:first-child { height: 240px; } }

/* Diaconía en acción */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .svc-grid { grid-template-columns: 1fr; } }
.svc { margin: 0; }
.svc img { width: 100%; height: 250px; object-fit: cover; border: 1px solid var(--line); }
.svc figcaption { font-family: var(--sans); font-size: 0.84rem; color: var(--muted); margin-top: 12px; line-height: 1.45; }
.svc figcaption strong { color: var(--navy); font-weight: 600; }

/* Calendario */
.calendar { background: var(--paper); }
.calendar-frame { border: 1px solid var(--line); background: #fff; }
.calendar-frame iframe { display: block; width: 100%; height: 600px; border: 0; }
@media (max-width: 720px) { .calendar-frame iframe { height: 480px; } }

/* Inscripción */
.enroll { background: var(--red); color: #fff; position: relative; overflow: hidden; }
.enroll::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 12% 0%, rgba(0,30,66,0.4), transparent 46%); pointer-events: none; }
.enroll-inner { max-width: 780px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.enroll .label { color: rgba(255,255,255,0.85); justify-content: center; }
.enroll .label::before { background: rgba(255,255,255,0.7); }
.enroll h2 { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.7rem); font-weight: 600; margin: 16px 0 16px; }
.enroll p { font-family: var(--serif); font-size: 1.22rem; color: rgba(255,255,255,0.94); margin-bottom: 32px; }
.enroll .btn-primary { background: #fff; color: var(--red); border-color: #fff; font-size: 0.9rem; padding: 16px 34px; }
.enroll .btn-primary:hover { background: var(--cream); border-color: var(--cream); }
.enroll .alt { margin-top: 22px; font-size: 0.92rem; color: rgba(255,255,255,0.9); }
.enroll .alt a { border-bottom: 1px solid rgba(255,255,255,0.5); }

/* Footer */
footer { background: var(--navy-deep); color: rgba(246,241,231,0.7); padding: 60px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }
.footer-crest { width: 78px; height: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 0.92rem; max-width: 38ch; }
.footer-brand .lat { font-family: var(--serif); font-style: italic; color: var(--gold-soft); font-size: 1.05rem; margin-top: 12px; }
.footer-col h4 { font-family: var(--sans); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 16px; }
.footer-col p, .footer-col a { font-size: 0.9rem; color: rgba(246,241,231,0.78); display: block; margin-bottom: 8px; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { max-width: var(--container); margin: 44px auto 0; padding: 22px 32px 0; border-top: 1px solid var(--line-cream); font-size: 0.78rem; color: rgba(246,241,231,0.5); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

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