/* =========================================================
   Consciencia Visual · estilos
   Paleta tomada del logotipo (rojo coral + tinta azul noche)
   ========================================================= */
:root {
  --red: #e8394d;
  --red-600: #cf2a3e;
  --red-50: #fdeef0;
  --ink: #1b1c29;
  --ink-2: #3b3d4f;
  --muted: #6b6e80;
  --line: #e7e3dc;
  --bg: #ffffff;
  --cream: #faf7f2;
  --sand: #f3eee6;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(27, 28, 41, .04), 0 12px 32px -12px rgba(27, 28, 41, .16);
  --shadow-lg: 0 30px 60px -24px rgba(27, 28, 41, .28);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
strong { color: var(--ink); font-weight: 700; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px/1 var(--font-body); text-decoration: none;
  padding: 15px 24px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(232, 57, 77, .7); }
.btn-primary:hover { background: var(--red-600); color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-link { padding: 0; color: var(--ink); border-radius: 0; font-size: 15px; gap: 12px; margin-top: 6px; }
.btn-link::after {
  content: "→"; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--red-50); color: var(--red-600); transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn-link:hover { color: var(--red-600); }
.btn-link:hover::after { transform: translateX(4px); background: var(--red); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(27, 28, 41, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 54px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink); letter-spacing: .01em; }
.brand-tag { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }

.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav a, .sub-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 14.5px/1 var(--font-body); color: var(--ink-2); text-decoration: none;
  padding: 10px 11px; border-radius: 999px; background: none; border: 0; cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.main-nav a:hover, .sub-toggle:hover { background: var(--sand); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--red-600); }
.menu-cta a { background: var(--ink); color: #fff; padding: 11px 18px; margin-left: 6px; }
.menu-cta a:hover { background: var(--red); color: #fff; }
.pill { font-size: 11px; font-weight: 700; color: var(--red-600); background: var(--red-50); padding: 3px 7px; border-radius: 999px; }

.has-sub { position: relative; }
.sub-toggle svg { transition: transform .2s ease; }
.sub-menu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 10px); left: 50%;
  width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.sub-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.sub-menu a { display: block; padding: 11px 14px; border-radius: 12px; line-height: 1.4; white-space: normal; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu, .has-sub.open .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-sub:hover .sub-toggle svg, .has-sub.open .sub-toggle svg { transform: rotate(180deg); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(900px 480px at 92% 0%, var(--red-50), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, var(--sand), transparent 65%),
    var(--cream);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 82px); font-weight: 600; letter-spacing: -.025em; margin-bottom: .3em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.video-frame {
  position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9; background: var(--ink);
}
.video-frame::after {
  content: ""; position: absolute; inset: auto -40px -40px auto; width: 160px; height: 160px; border-radius: 50%;
  background: var(--red); opacity: .0; pointer-events: none;
}
.yt-lite { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .3s ease; filter: saturate(.95); }
.yt-lite::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,28,41,0) 45%, rgba(27,28,41,.75)); z-index: 1; }
.yt-lite:hover img { transform: scale(1.035); }
.yt-play { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; transition: transform .2s ease; }
.yt-lite:hover .yt-play, .yt-lite:focus-visible .yt-play { transform: scale(1.1); }
.yt-caption { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 2; color: #fff; font-weight: 600; font-size: 15px; line-height: 1.4; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.areas {
  list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.area {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px 20px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.area:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--shadow-lg); }
.area p { font-size: 14.5px; line-height: 1.6; margin: 0; }
.area a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--red), var(--red)); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; }
.area a:hover { color: var(--red-600); }
.area-num { display: block; font-family: var(--font-display); font-size: 15px; color: var(--red); margin-bottom: 10px; font-weight: 600; }
.pieza { margin: 36px auto 0; text-align: center; font-family: var(--font-display); font-size: clamp(20px, 2.3vw, 28px); color: var(--ink); line-height: 1.35; }
.pieza a { color: var(--red-600); text-decoration: none; }
.pieza a strong { color: inherit; }
.pieza a:hover { text-decoration: underline; }

/* ---------- Bandas ---------- */
.band { padding: clamp(56px, 7vw, 96px) 0; }
.band-dark { background: var(--ink); color: #c9cad6; position: relative; overflow: hidden; }
.band-dark::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,57,77,.35), transparent 65%);
}
.band-dark h2 { color: #fff; font-size: clamp(28px, 3.6vw, 44px); max-width: 22ch; position: relative; }
.band-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; position: relative; }
.band-cols p { margin: 0; padding: 24px; border-radius: var(--radius-sm); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); font-size: 16px; }
.band-tag { display: block; color: #fff; font-family: var(--font-display); font-size: 20px; margin-bottom: 8px; }
.band-accent { background: var(--red); color: #fff; }
.band-accent h2 { color: #fff; font-size: clamp(24px, 3vw, 36px); max-width: 28ch; margin-inline: auto; margin-bottom: .4em; }
.band-sub { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; opacity: .9; margin: 0; }
.seal { margin: 0 auto 16px; display: block; }

/* ---------- Novedades ---------- */
.news {
  display: grid; grid-template-columns: 200px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start;
  background: var(--cream); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 4vw, 52px);
}
.news-badge {
  width: 168px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #ff6b7b, var(--red) 55%, var(--red-600));
  color: #fff; transform: rotate(-12deg); box-shadow: 0 20px 40px -16px rgba(232,57,77,.7);
  font-family: var(--font-display); font-weight: 700; font-size: 26px; position: relative;
}
.news-badge::after { content: ""; position: absolute; inset: 10px; border: 1.5px dashed rgba(255,255,255,.55); border-radius: 50%; }
.news-title { font-size: clamp(24px, 2.6vw, 34px); }
.news-title a { color: var(--ink); text-decoration: none; }
.news-title a:hover { color: var(--red-600); }
.news-body p:last-child { margin-bottom: 0; }

/* ---------- Índice de temas ---------- */
.topics { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding-bottom: clamp(24px, 4vw, 48px); }
.topics a {
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-2);
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; transition: all .2s ease;
}
.topics a:hover { border-color: var(--red); color: var(--red-600); background: var(--red-50); }

/* ---------- Bloques temáticos ---------- */
.feature { padding: clamp(48px, 6vw, 88px) 0; }
.feature:nth-child(even) { background: var(--cream); }
.feature-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature.reverse .feature-text { order: 2; }
.feature.reverse .feature-media { order: 1; }
.feature h2 { font-size: clamp(28px, 3.3vw, 42px); }
.feature-text p { max-width: 62ch; }
.callout { border-left: 3px solid var(--red); padding: 4px 0 4px 18px; color: var(--ink); font-weight: 500; }

.feature-media { margin: 0; position: relative; }
.feature-media::before {
  content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--radius);
  background: var(--red-50); z-index: 0;
}
.feature.reverse .feature-media::before { inset: 18px 18px -18px -18px; }
.feature:nth-child(even) .feature-media::before { background: var(--sand); }
.feature-media a { position: relative; z-index: 1; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.feature-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.feature-media img.contain { object-fit: contain; padding: 24px; background: #fff; }
.feature-media a:hover img { transform: scale(1.04); }
.feature-media a::after {
  content: "⤢"; position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--ink); font-size: 18px;
  opacity: 0; transform: scale(.85); transition: all .2s ease;
}
.feature-media a:hover::after { opacity: 1; transform: scale(1); }

.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.check-list.two-col { grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.check-list li { position: relative; padding-left: 30px; line-height: 1.55; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--red-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2 5 8l4-4.2' fill='none' stroke='%23cf2a3e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.stats { display: grid; gap: 12px; margin: 6px 0 1.6em; }
.stat { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--red); line-height: 1; }
.stat p { margin: 0; font-size: 15px; line-height: 1.5; }

/* ---------- Derechos visuales ---------- */
.rights { background: linear-gradient(180deg, #fff, var(--cream)); }
.rights-inner { text-align: center; max-width: 860px; }
.rights-quote { font-family: var(--font-display); font-size: clamp(24px, 3vw, 38px); line-height: 1.3; color: var(--ink); margin-bottom: 1.1em; }

/* ---------- Contacto ---------- */
.contact { background: var(--cream); padding-top: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact h2 { font-size: clamp(34px, 4vw, 52px); }
.contact-org { max-width: 40ch; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { flex-shrink: 0; color: var(--red); margin-top: 4px; }
.contact-list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--red-600); text-decoration: underline; }

.contact-form { background: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.contact-form h3 { font-size: 26px; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: 400 16px/1.5 var(--font-body); color: var(--ink);
  padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--cream);
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px var(--red-50); }
.field.invalid input { border-color: var(--red); }
.form-status { margin: 14px 0 0; font-size: 14px; min-height: 1.4em; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #b7b9c7; padding: 64px 0 28px; font-size: 15px; }
.site-footer strong { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand img { width: 62px; margin-bottom: 14px; background: #fff; border-radius: 12px; padding: 8px; box-sizing: content-box; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; align-content: start; }
.footer-nav a, .site-footer a { color: #d9dae3; text-decoration: none; }
.footer-nav a:hover, .site-footer a:hover { color: #fff; text-decoration: underline; }
.social { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); margin-bottom: 14px; }
.social:hover { background: #fff; color: var(--ink) !important; text-decoration: none !important; }
.site-footer .muted { color: #8d90a2; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; }
.footer-bottom p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox-dialog { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox-dialog::backdrop { background: rgba(15, 16, 24, .82); backdrop-filter: blur(4px); }
.lightbox-dialog img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 16px; background: #fff; }
.lightbox-caption { color: #fff; text-align: center; margin: 12px 0 0; font-size: 15px; }
.lightbox-close {
  position: absolute; top: -18px; right: -18px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #fff; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
}

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .main-nav a, .sub-toggle { padding: 10px 8px; font-size: 14px; }
  .brand-tag { display: none; }
  .areas { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1040px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border: 0;
    font: 600 14px/1 var(--font-body); padding: 12px 16px; border-radius: 999px; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .25s ease, background .25s ease;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -5px; }
  .nav-toggle-bars::after { top: 5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }

  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg); max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .main-nav.open { max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .main-nav .menu { flex-direction: column; align-items: stretch; padding: 12px 20px 24px; gap: 2px; }
  .main-nav a, .sub-toggle { width: 100%; justify-content: flex-start; padding: 14px 12px; font-size: 16px; border-radius: 12px; }
  .sub-toggle svg { margin-left: auto; }
  .sub-menu {
    position: static; width: auto; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px;
    opacity: 1; visibility: visible; display: none; background: transparent;
  }
  .has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { transform: none; }
  .has-sub.open .sub-menu { display: block; transform: none; }
  .sub-menu a { font-size: 15px; color: var(--muted); }
  .menu-cta a { margin: 10px 0 0; justify-content: center; }
}

@media (max-width: 900px) {
  .hero-grid, .feature-grid, .contact-grid { grid-template-columns: 1fr; }
  .feature.reverse .feature-text, .feature .feature-text { order: 2; }
  .feature.reverse .feature-media, .feature .feature-media { order: 1; }
  .feature-media { max-width: 560px; margin-right: 18px; }
  .areas { grid-template-columns: 1fr 1fr; }
  .band-cols { grid-template-columns: 1fr; }
  .news { grid-template-columns: 1fr; }
  .news-badge { width: 120px; font-size: 19px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .brand img { width: 44px; }
  .brand-name { font-size: 18px; }
  .nav-toggle-label { display: none; }
  .nav-toggle { padding: 14px; }
  .areas { grid-template-columns: 1fr; }
  .check-list.two-col { grid-template-columns: 1fr; }
  .stat { grid-template-columns: 1fr; gap: 6px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-bottom { flex-direction: column; }
  .lightbox-close { top: 8px; right: 8px; }
}

/* =========================================================
   Páginas interiores
   ========================================================= */
.page-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(32px, 4vw, 48px);
  background:
    radial-gradient(700px 320px at 95% 0%, var(--red-50), transparent 60%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(32px, 4.6vw, 56px); max-width: 24ch; margin: 0; letter-spacing: -.02em; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red-600); }
.crumbs > * + *::before { content: "/"; margin-right: 10px; color: var(--line); }

.page-body { padding: clamp(40px, 6vw, 80px) 0; }

/* Tipografía de contenido */
.prose { color: var(--ink-2); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 1.6em 0 .6em; }
.prose h3 { font-size: clamp(20px, 2vw, 24px); margin: 1.4em 0 .5em; }
.prose h4, .prose h5, .prose h6 { font-family: var(--font-body); font-size: 17px; font-weight: 700; color: var(--ink); margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--red); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
.prose blockquote { margin: 1.4em 0; padding: 6px 0 6px 20px; border-left: 3px solid var(--red); color: var(--ink); font-style: italic; }
.prose img { border-radius: var(--radius-sm); margin: 1.2em auto; height: auto; }
.prose img.img-sm { max-width: min(320px, 100%); }
.prose img.img-icon { display: inline-block; margin: 0 8px 0 0; border-radius: 0; vertical-align: middle; max-width: 56px; }
.prose img.align-left { float: left; margin: .3em 24px 12px 0; max-width: 45%; }
.prose img.align-right { float: right; margin: .3em 0 12px 24px; max-width: 45%; }
.prose img.align-center { margin-inline: auto; }
.prose::after { content: ""; display: table; clear: both; }
.prose a.lightbox { display: inline-block; border-radius: var(--radius-sm); overflow: hidden; }
.prose a.lightbox img { margin: 0; transition: transform .4s ease; }
.prose a.lightbox:hover img { transform: scale(1.03); }
.prose .note { background: var(--red-50); border-radius: var(--radius-sm); padding: 18px 22px; margin: 1.2em 0; color: var(--ink); }
.prose .video-frame, .prose .embed-frame { margin: 1.6em 0; }
.embed-frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-link { margin: .6em 0 1.2em; }

/* Tablas */
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.6em 0; }
.prose .data-table { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; font-size: 15.5px; }
.prose .data-table td, .prose .data-table th { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.prose .data-table tr:last-child td { border-bottom: 0; }
.prose .data-table tr:nth-child(even) td { background: var(--cream); }
.prose .layout-table, .prose .layout-table tbody { display: block; }
.prose .layout-table tr { display: grid; gap: 18px; margin-bottom: 18px; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); }
.prose .layout-table[data-cols="2"] tr { --cols: 2; }
.prose .layout-table[data-cols="3"] tr { --cols: 3; }
.prose .layout-table[data-cols="4"] tr { --cols: 4; }
.prose .layout-table td { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.prose .layout-table td > *:last-child { margin-bottom: 0; }
.prose .layout-table td img:not(.img-icon) { margin-top: 0; }

/* Galerías */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 1.6em 0; }
.gallery-grid a { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; background: var(--sand); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; transition: transform .5s ease; }
.gallery-grid a:hover img { transform: scale(1.05); }

/* Páginas maquetadas (Divi) */
.pb-section + .pb-section { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.pb-row { display: grid; gap: clamp(20px, 3vw, 40px); align-items: start; }
.pb-row + .pb-row { margin-top: clamp(28px, 4vw, 48px); }
.pb-row.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
.pb-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pb-row.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pb-col { display: grid; gap: 20px; align-content: start; }
.pb-row.cols-1 .pb-text { max-width: 820px; margin-inline: auto; width: 100%; }
.pb-image { margin: 0; }
.pb-image a, .pb-image > img { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pb-image img { width: 100%; margin: 0; border-radius: 0; }
.pb-blurb { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); height: 100%; transition: transform .25s ease, box-shadow .25s ease; }
.pb-blurb:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pb-blurb-img { display: block; border-radius: var(--radius-sm); overflow: hidden; margin: -6px -6px 16px; background: var(--cream); }
.pb-blurb-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; }
.pb-blurb h3 { font-size: 20px; margin-bottom: .5em; }
.pb-blurb h3 a { color: var(--ink); text-decoration: none; }
.pb-blurb h3 a:hover { color: var(--red-600); }
.pb-blurb .prose { font-size: 15px; }
.pb-band { background: var(--ink); color: #c9cad6; border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 5vw, 56px); text-align: center; }
.pb-band h2 { color: #fff; font-size: clamp(24px, 3vw, 36px); max-width: 26ch; margin-inline: auto; }
.pb-band-sub { font-size: 17px; max-width: 60ch; margin-inline: auto; }

/* CTA final de cada página */
.page-cta { background: var(--cream); border-top: 1px solid var(--line); padding: clamp(40px, 5vw, 64px) 0; }
.page-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-cta h2 { font-size: clamp(22px, 2.6vw, 32px); margin: 0; max-width: 24ch; }
.page-cta .eyebrow { margin-bottom: 8px; }
.page-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Contacto como página */
.contact-page { align-items: start; }
.contact-page .contact-list { margin-top: 20px; }
.contact-page .prose { margin-top: 24px; }

@media (max-width: 900px) {
  .pb-row.cols-2, .pb-row.cols-3, .pb-row.cols-4 { grid-template-columns: 1fr; }
  .prose .layout-table[data-cols] tr { grid-template-columns: 1fr; }
  .prose img.align-left, .prose img.align-right { float: none; max-width: 100%; margin: 1em auto; }
}
@media (min-width: 560px) and (max-width: 900px) {
  .pb-row.cols-3, .pb-row.cols-4 { grid-template-columns: 1fr 1fr; }
}
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.6em 0; }
.table-wrap > table { margin: 0; min-width: 520px; }
.pb-image img.img-sm { max-width: 320px; margin-inline: auto; }
.pb-image:has(img.img-sm) a, .pb-image:has(img.img-sm) > img { box-shadow: none; background: transparent; }


/* =========================================================
   Maquetación común de páginas interiores (v2)
   Mismo esquema para cada familia de páginas
   ========================================================= */
.page-hero-grid { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.page-hero.has-lead .page-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, 400px); }
.page-hero .eyebrow { margin-bottom: 10px; }
.lead-figure { margin: 0; }
.lead-figure a, .lead-figure > img { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #fff; }
.lead-figure img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; border-radius: 0; }

.page-body .layout-narrow { max-width: 820px; }
.page-body .with-side { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.with-side .page-main { max-width: 780px; min-width: 0; }
.page-main > .prose-page > *:first-child, .page-main > .pb > .pb-section:first-child { margin-top: 0; }

/* Imágenes dentro del texto: siempre igual */
.prose .figure { float: right; width: min(300px, 42%); margin: .35em 0 1.2em 28px; clear: right; }
.prose .figure a, .prose .figure > img { display: block; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.prose .figure img { width: 100%; height: auto; margin: 0; border-radius: 0; }
.prose .figure-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 1.4em 0; clear: both; }
.prose .figure-row .figure { float: none; width: auto; margin: 0; }
.prose .figure-row .figure img { aspect-ratio: 4 / 3; object-fit: cover; }
.prose h2, .prose h3, .prose hr, .prose .layout-table, .prose .table-wrap, .prose .video-frame, .prose .embed-frame, .prose .gallery-grid { clear: both; }
.prose h2:first-child { margin-top: 0; }
.prose > p:first-child, .prose-page > p:first-of-type { font-size: 1.06em; color: var(--ink); }

/* Menú lateral de la sección */
.side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.side-nav { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 14px 14px; }
.side-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink); margin: 0 10px 10px; }
.side-title a { color: inherit; text-decoration: none; }
.side-title a:hover { color: var(--red-600); }
.side-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-nav li a { display: block; padding: 9px 12px; border-radius: 10px; font-size: 14.5px; line-height: 1.35; color: var(--ink-2); text-decoration: none; transition: background .2s ease, color .2s ease; }
.side-nav li a:hover { background: #fff; color: var(--ink); }
.side-nav li a[aria-current="page"] { background: #fff; color: var(--red-600); font-weight: 600; box-shadow: inset 3px 0 0 var(--red); }
.side-card { background: var(--ink); color: #c9cad6; border-radius: var(--radius); padding: 22px; font-size: 15px; }
.side-card p { margin: 0 0 12px; }
.side-card-title { font-family: var(--font-display); font-size: 20px; color: #fff !important; }
.side-mail { display: block; margin-top: 12px; color: #d9dae3; font-size: 14px; text-align: center; text-decoration: none; word-break: break-all; }
.side-mail:hover { color: #fff; text-decoration: underline; }

@media (max-width: 1000px) {
  .page-body .with-side { grid-template-columns: 1fr; }
  .side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .page-hero.has-lead .page-hero-grid { grid-template-columns: 1fr; }
  .lead-figure { max-width: 520px; }
  .prose .figure { float: none; width: 100%; max-width: 520px; margin: 1.2em 0; }
  .side { grid-template-columns: 1fr; }
}
