/* ==========================================================================
   FESCUN · hoja de estilos del sitio público
   Identidad: verdes del logo, Montserrat, rectángulos entrelazados del monograma.
   Desarrollado por HostAddrees
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
}

:root {
  --pine: #0E4D2A;
  --pine-900: #0A3A1F;
  --green: #0B7A1F;
  --green-700: #09661A;
  --mint: #9FD99A;
  --leaf: #E7F1E4;
  --paper: #F6F8F5;
  --white: #FFFFFF;
  --ink: #15211A;
  --muted: #4F5F54;
  --line: #D6E2D2;
  --amber: #F0B323;
  --amber-700: #D99A06;
  --danger: #B3261E;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.4rem, 1.2rem + .8vw, 1.75rem);
  --step-3: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.6rem + 3vw, 4rem);

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: var(--step-0); line-height: 1.6;
  color: var(--ink); background: var(--paper);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green); text-underline-offset: .18em; }
a:hover { color: var(--green-700); }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .5em; color: var(--pine); letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--mint); color: var(--pine-900); }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Tipografía de contenido ---------- */
.h2 { font-size: var(--step-3); font-weight: 800; }
.h3 { font-size: var(--step-2); font-weight: 750; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: .35em; }
.prose-narrow { margin-inline: auto; }
.small { font-size: var(--step--1); }
.tiny { font-size: .78rem; opacity: .85; margin-top: 10px; }
.empty { padding: 40px; text-align: center; background: var(--leaf); border-radius: var(--radius); color: var(--muted); }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--green); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.4em; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 2px solid var(--bd);
  font-weight: 700; font-size: .98rem; line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); color: var(--fg); }
.btn:active { transform: translateY(0); }
.btn-primary:hover { --bg: var(--green-700); }
.btn-ghost { --bg: transparent; --fg: var(--green); --bd: var(--green); }
.btn-ghost:hover { --bg: var(--green); --fg: #fff; }
.btn-light { --bg: #fff; --fg: var(--pine); }
.btn-light:hover { --bg: var(--leaf); --fg: var(--pine); }
.btn-outline-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.7); }
.btn-outline-light:hover { --bg: #fff; --fg: var(--pine); --bd: #fff; }
.btn-pay { --bg: var(--amber); --fg: var(--ink); }
.btn-pay:hover { --bg: var(--amber-700); --fg: var(--ink); }
.btn-lg { min-height: 54px; padding: .85em 1.7em; font-size: 1.02rem; }
.btn-sm { min-height: 38px; padding: .45em 1em; font-size: .88rem; }
.btn[disabled], .btn.is-loading { opacity: .65; pointer-events: none; }
.link-strong { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
  view-transition-name: site-header;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(14,77,42,.45); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { flex: none; display: block; }
.brand img { height: 52px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; }
.nav a {
  position: relative; display: block; padding: 10px 14px; color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: .95rem; border-radius: 8px;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--green); }
.nav-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--leaf); cursor: pointer; color: var(--pine); }
.bars { display: grid; gap: 5px; width: 22px; margin: auto; }
.bars i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-open .bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .bars i:nth-child(2) { opacity: 0; }
.menu-open .bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; margin: 0;
    background: var(--pine); padding: 24px var(--gutter) 40px; overflow-y: auto;
    display: flex; flex-direction: column; justify-content: space-between;
    clip-path: inset(0 0 100% 0); visibility: hidden;
    transition: clip-path .45s var(--ease), visibility 0s .45s;
  }
  .menu-open .nav { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease); }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav a { color: #fff; font-size: 1.5rem; font-weight: 750; padding: 16px 0; border-radius: 0; }
  .nav a::after { left: 0; right: auto; width: 40px; bottom: 10px; background: var(--mint); }
  .nav a[aria-current="page"] { color: var(--mint); }
  .menu-open .nav li { animation: rise .5s var(--ease) both; }
  .menu-open .nav li:nth-child(2) { animation-delay: .04s; } .menu-open .nav li:nth-child(3) { animation-delay: .08s; }
  .menu-open .nav li:nth-child(4) { animation-delay: .12s; } .menu-open .nav li:nth-child(5) { animation-delay: .16s; }
  .menu-open .nav li:nth-child(6) { animation-delay: .2s; }
  .nav-extra { display: grid; gap: 10px; margin-top: 32px; }
  .nav-contact { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; padding: 12px 16px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; }
  .nav-contact:hover { color: #fff; background: rgba(255,255,255,.08); }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 560px) {
  :root { --header-h: 66px; }
  .brand img { height: 38px; }
  .header-actions .btn-pay { padding: .55em .9em; min-height: 40px; font-size: .82rem; }
}
@media (max-width: 380px) { .brand img { height: 32px; } }

/* ---------- Skeleton de imágenes ---------- */
.media { position: relative; display: block; border-radius: 6px; background: var(--leaf); }
.js .media:not(.is-loaded) {
  background: linear-gradient(100deg, #DCE8D8 30%, #EEF5EC 50%, #DCE8D8 70%);
  background-size: 250% 100%; animation: shimmer 1.4s linear infinite;
}
.media img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.js .media img { opacity: 0; transition: opacity .6s var(--ease); }
.js .media.is-loaded img { opacity: 1; }
@keyframes shimmer { from { background-position: 125% 0; } to { background-position: -125% 0; } }

/* Marco desplazado: viene de las fotos originales de FESCUN */
.framed { position: relative; }
.framed::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: -1;
  border: 2px solid var(--green); border-radius: 6px; pointer-events: none;
}
.framed-right::before { inset: 22px 22px -22px -22px; }

/* ---------- Hero de inicio ---------- */
.hero { position: relative; padding: clamp(32px, 6vw, 80px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-kicker { font-size: var(--step--1); font-weight: 600; color: var(--green); margin-bottom: 18px; max-width: 34ch; }
.hero-title { font-size: var(--step-4); font-weight: 850; letter-spacing: -.035em; line-height: 1.02; margin-bottom: 22px; max-width: 12ch; }
.hero-lead { font-size: var(--step-1); color: var(--muted); max-width: 42ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; isolation: isolate; padding: 0 22px 22px 0; }
.hero-photo { aspect-ratio: 4 / 3.3; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.hero-mark {
  position: absolute; z-index: -2; width: 46%; left: -9%; bottom: -2%;
  fill: none; stroke: var(--green); stroke-width: 3; overflow: visible;
}
.hero-mark rect:nth-child(even) { stroke: var(--mint); }
.js .hero-mark rect { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) forwards; }
.js .hero-mark rect:nth-child(2) { animation-delay: .15s; }
.js .hero-mark rect:nth-child(3) { animation-delay: .3s; }
.js .hero-mark rect:nth-child(4) { animation-delay: .45s; }
.js .hero-mark rect:nth-child(5) { animation-delay: .6s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.js [data-hero-step] { animation: rise .8s var(--ease) both; }
.js [data-hero-step]:nth-child(2) { animation-delay: .08s; }
.js [data-hero-step]:nth-child(3) { animation-delay: .16s; }
.js [data-hero-step]:nth-child(4) { animation-delay: .24s; }
.js .hero-photo img { animation: photo-in 1.1s var(--ease) .1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes photo-in { from { opacity: 0; clip-path: inset(8% 0 8% 8%); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(24px, 4vw, 48px) 0 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.facts > div { padding: 22px 26px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; }
.facts dt { font-size: var(--step--1); color: var(--muted); font-weight: 500; }
.facts dd { margin: 4px 0 0; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); font-weight: 850; color: var(--pine); letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.facts dd.dd-text { font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); padding-top: .25em; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { max-width: 14ch; }
  .hero-visual { padding: 0 22px 22px 0; }
  .hero-mark { width: 40%; left: auto; right: -6%; bottom: auto; top: -14%; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tint { background: var(--leaf); }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: var(--step-1); margin: 0; }
.section-head-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 104px); align-items: center; }
.split-reverse { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.split-media { margin: 0; isolation: isolate; padding: 0 22px 22px 0; max-width: 520px; justify-self: center; width: 100%; }
.split-media .framed-right { margin-left: 22px; }
.about-teaser .split-media { max-width: 420px; }
@media (max-width: 860px) {
  .split, .split-reverse { grid-template-columns: 1fr; }
  .split-reverse .split-media { order: -1; }
  .split-media { max-width: 520px; }
}

.checklist { list-style: none; display: grid; gap: 14px; margin: 26px 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--green); width: 24px; height: 24px; margin-top: 1px; }
.checklist-boxed li { background: #fff; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); }

/* ---------- Productos (inicio) ---------- */
.product-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-tile { position: relative; padding: clamp(28px, 4vw, 48px); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; }
.product-tile h3 { font-size: var(--step-3); font-weight: 850; margin-bottom: 18px; }
.tile-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 26px; }
.tile-icon .icon { width: 28px; height: 28px; }
.tile-list { list-style: none; display: grid; gap: 2px; margin-bottom: 28px; width: 100%; }
.tile-list li { padding: 11px 0; font-weight: 600; border-bottom: 1px solid; }
.product-tile .btn { margin-top: auto; }
.tile-dark { background: var(--pine); color: #fff; }
.tile-dark h3 { color: #fff; }
.tile-dark .tile-icon { background: rgba(255,255,255,.1); color: var(--mint); }
.tile-dark .tile-list li { border-color: rgba(255,255,255,.14); }
.tile-light { background: var(--leaf); }
.tile-light .tile-icon { background: #fff; color: var(--green); }
.tile-light .tile-list li { border-color: var(--line); }
@media (max-width: 760px) { .product-duo { grid-template-columns: 1fr; } }

/* ---------- Convenios ---------- */
.agreement-list { display: grid; gap: 22px; margin: 22px 0 18px; }
.agreement-item { padding-left: 20px; border-left: 3px solid var(--green); }
.agreement-item h3 { font-size: var(--step-1); margin-bottom: 6px; }
.agreement-item p { color: var(--muted); margin: 0; }

.agreement { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(24px, 4vw, 48px) 0; }
.agreement + .agreement { border-top: 1px solid var(--line); margin-top: clamp(24px, 4vw, 48px); padding-top: clamp(48px, 7vw, 96px); }
.agreement.is-flipped .agreement-media { order: -1; }
.agreement.is-flipped { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.agreement-copy .btn { margin-top: 10px; }
.agreement-media { position: relative; isolation: isolate; padding: 0 22px 60px 0; }
.agreement-media .agreement-media-1 { width: 82%; }
.agreement-media-2 { position: absolute !important; width: 46%; right: 0; bottom: 0; border: 6px solid #fff; border-radius: 10px !important; box-shadow: 0 18px 40px -20px rgba(14,77,42,.5); }
@media (max-width: 860px) {
  .agreement, .agreement.is-flipped { grid-template-columns: 1fr; }
  .agreement-media { order: -1; max-width: 520px; }
}

/* ---------- Banda de pagos ---------- */
.pay-band { background: var(--leaf); padding: clamp(36px, 5vw, 56px) 0; }
.pay-grid { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 48px); align-items: center; }
.pay-logo { width: 96px; height: 96px; border-radius: 50%; background: #fff; }
.pay-logo img { object-fit: contain; }
.pay-band h2 { font-size: var(--step-2); font-weight: 800; margin-bottom: 6px; }
.pay-band p { color: var(--muted); margin: 0; max-width: 56ch; }
@media (max-width: 760px) { .pay-grid { grid-template-columns: 1fr; justify-items: start; } .pay-logo { width: 72px; height: 72px; } }

/* ---------- Eventos ---------- */
.event-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 14px; }
.event-mosaic-3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; }
.mosaic-item { position: relative; overflow: hidden; border-radius: 12px; color: #fff; text-decoration: none; isolation: isolate; }
.mosaic-item.is-wide { grid-column: span 2; grid-row: span 2; }
.event-mosaic:not(.event-mosaic-3) .mosaic-item:nth-child(4):last-child { grid-column: span 2; }
.mosaic-item .media { position: absolute; inset: 0; border-radius: 0; }
.mosaic-item img { transition: transform .8s var(--ease), opacity .6s var(--ease); }
.mosaic-item:hover img { transform: scale(1.05); }
.mosaic-caption {
  position: absolute; inset: auto 0 0 0; padding: 48px 18px 16px; display: grid; gap: 2px;
  background: linear-gradient(to top, rgba(10,58,31,.92), rgba(10,58,31,0));
}
.mosaic-caption strong { font-size: 1.05rem; line-height: 1.25; }
.mosaic-item.is-wide .mosaic-caption strong { font-size: var(--step-2); }
.mosaic-caption small { opacity: .85; font-weight: 600; }
.mosaic-item:hover, .mosaic-item:focus-visible { color: #fff; }
@media (max-width: 900px) {
  .event-mosaic, .event-mosaic-3 { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
}
@media (max-width: 520px) {
  .event-mosaic, .event-mosaic-3 { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .mosaic-item.is-wide, .event-mosaic .mosaic-item:nth-child(4):last-child { grid-column: auto; grid-row: span 1; }
}

.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.event-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: border-color .25s, box-shadow .3s; }
.event-card:hover { border-color: var(--mint); box-shadow: 0 20px 40px -28px rgba(14,77,42,.55); }
.event-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.event-card-media { aspect-ratio: 4 / 3; border-radius: 0; overflow: hidden; }
.event-card-media img { transition: transform .8s var(--ease), opacity .6s var(--ease); }
.event-card:hover .event-card-media img { transform: scale(1.04); }
.event-card-body { padding: 20px 22px 24px; }
.event-card-title { font-size: 1.2rem; font-weight: 750; margin-bottom: 10px; }
.event-card-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: var(--step--1); font-weight: 600; margin: 0; }
.event-card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-card-meta .icon { color: var(--green); }
.event-card-text { color: var(--muted); font-size: .95rem; margin: 12px 0 0; }
.load-more { text-align: center; margin-top: 40px; }

/* skeleton de tarjetas mientras se cargan más eventos */
.event-card.is-skeleton { pointer-events: none; }
.sk { display: block; border-radius: 6px; background: linear-gradient(100deg, #DCE8D8 30%, #EEF5EC 50%, #DCE8D8 70%); background-size: 250% 100%; animation: shimmer 1.4s linear infinite; }
.sk-media { aspect-ratio: 4 / 3; border-radius: 0; }
.sk-line { height: 14px; margin: 10px 0; }
.sk-title { height: 22px; width: 70%; }
.sk-short { width: 40%; }

/* galería de un evento */
.gallery-hint { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: var(--step--1); }
.gallery-hint .icon { color: var(--green); }
.gallery { columns: 3 280px; column-gap: 16px; }
.gallery-item { display: block; margin-bottom: 16px; break-inside: avoid; border-radius: 10px; overflow: hidden; cursor: zoom-in; }
.gallery-item .media { border-radius: 10px; }
.gallery-item img { transition: transform .7s var(--ease), opacity .6s var(--ease); }
.gallery-item:hover img { transform: scale(1.03); }

/* visor */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: 64px 1fr 64px; align-items: center;
  background: rgba(7, 34, 19, .94); padding: 20px; animation: fade .25s ease both;
}
.lightbox[hidden] { display: none; }
.lb-stage { margin: 0; display: grid; justify-items: center; gap: 12px; position: relative; }
.lb-stage img { max-width: 100%; max-height: 82vh; width: auto; border-radius: 8px; animation: zoom-in .35s var(--ease) both; }
.lb-stage img.is-loading { display: none; }
.lb-skeleton { display: none; width: min(80vw, 900px); max-height: 82vh; border-radius: 8px; background: linear-gradient(100deg, rgba(255,255,255,.06) 30%, rgba(255,255,255,.16) 50%, rgba(255,255,255,.06) 70%); background-size: 250% 100%; animation: shimmer 1.4s linear infinite; }
.lb-stage.is-loading .lb-skeleton { display: block; }
.lb-stage figcaption { color: rgba(255,255,255,.8); font-size: var(--step--1); }
.lb-close, .lb-nav { width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.22); }
.lb-close { position: absolute; top: 18px; right: 18px; }
.lb-close .icon, .lb-nav .icon { width: 26px; height: 26px; }
@keyframes fade { from { opacity: 0; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(.96); } }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; padding: 70px 10px 90px; }
  .lb-nav { position: absolute; bottom: 20px; }
  .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); }
}

/* ---------- Encabezado de páginas internas ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--pine); color: #fff; padding: clamp(48px, 7vw, 96px) 0 clamp(52px, 7vw, 92px); isolation: isolate; }
.page-hero-mark { position: absolute; z-index: -1; right: -60px; top: -40px; width: min(420px, 55vw); fill: none; stroke: rgba(159,217,154,.35); stroke-width: 3; }
.js .page-hero-mark rect { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s var(--ease) forwards; }
.js .page-hero-mark rect:nth-child(2) { animation-delay: .12s; } .js .page-hero-mark rect:nth-child(3) { animation-delay: .24s; }
.js .page-hero-mark rect:nth-child(4) { animation-delay: .36s; } .js .page-hero-mark rect:nth-child(5) { animation-delay: .48s; }
.page-title { color: #fff; font-size: var(--step-4); font-weight: 850; letter-spacing: -.035em; max-width: 18ch; margin-bottom: 14px; }
.page-intro { font-size: var(--step-1); color: rgba(255,255,255,.85); max-width: 56ch; margin: 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--step--1); margin-bottom: 22px; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; opacity: .5; }
.crumbs a { color: var(--mint); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { color: rgba(255,255,255,.75); }
.page-hero-404 { padding: clamp(80px, 12vw, 160px) 0; }
.big-404 { font-size: clamp(5rem, 18vw, 11rem); font-weight: 900; line-height: .9; margin: 0 0 12px; color: transparent; -webkit-text-stroke: 2px var(--mint); letter-spacing: -.05em; }
.page-hero .hero-actions { margin-top: 32px; }

/* ---------- Organigrama ---------- */
.org { position: relative; display: grid; gap: 18px; max-width: 980px; margin-inline: auto; }
.org::before { content: ""; position: absolute; left: 50%; top: 24px; bottom: 24px; width: 2px; background: var(--green); transform: translateX(-1px); }
.org-row { position: relative; display: grid; grid-template-columns: 1fr 260px 1fr; align-items: center; gap: 0; }
.org-node { position: relative; z-index: 1; padding: 14px 18px; text-align: center; font-weight: 700; font-size: .95rem; border-radius: 10px; line-height: 1.3; }
.org-node small { display: block; font-weight: 500; color: var(--muted); margin-top: 3px; font-size: .82rem; }
.org-main { background: var(--pine); color: #fff; }
.org-side { background: #fff; border: 1.5px solid var(--line); color: var(--pine); }
.org-left { margin-right: 40px; }
.org-right { margin-left: 40px; }
.org-left::after, .org-right::after { content: ""; position: absolute; top: 50%; height: 2px; background: var(--green); width: calc(40px + 130px); z-index: -1; }
.org-left::after { left: 100%; }
.org-right::after { right: 100%; }
@media (max-width: 760px) {
  .org::before { left: 18px; }
  .org-row { grid-template-columns: 1fr; gap: 12px; }
  .org-row > div:empty { display: none; }
  .org-node { margin: 0 0 0 40px !important; text-align: left; }
  .org-main { margin-left: 0 !important; }
  .org-left::after, .org-right::after { left: -22px; right: auto; width: 22px; }
}

/* ---------- Junta directiva ---------- */
.people { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 36px 20px; }
.person { display: grid; justify-items: center; align-content: start; text-align: center; gap: 6px; }
.person-photo { width: 128px; height: 128px; border-radius: 50%; border: 4px solid var(--green); overflow: hidden; margin-bottom: 8px; background: var(--leaf); box-shadow: 0 0 0 5px #fff; }
.person-photo.media { border: 0; box-shadow: none; width: 136px; height: 136px; background: transparent; }
.person-photo.media img { object-fit: contain; }
.person-initials { display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: var(--pine); }
.person-name { font-weight: 750; color: var(--pine); line-height: 1.3; max-width: 18ch; }
.person-role { font-size: .8rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: #fff; color: var(--muted); border: 1px solid var(--line); }
.role-presidente, .role-vicepresidente { background: var(--green); color: #fff; border-color: var(--green); }
.role-principal { color: var(--green); border-color: var(--green); }

/* ---------- Pestañas (comités) ---------- */
.tab-list { position: relative; display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--line); scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list button { flex: none; background: none; border: 0; padding: 14px 20px; font-weight: 700; color: var(--muted); cursor: pointer; border-radius: 8px 8px 0 0; }
.tab-list button[aria-selected="true"] { color: var(--pine); }
.tab-list button:hover { color: var(--green); }
.tab-ink { position: absolute; bottom: -2px; height: 3px; background: var(--green); border-radius: 3px; left: var(--ink-x, 0); width: var(--ink-w, 0); transition: left .35s var(--ease), width .35s var(--ease); }
.tab-panel { padding: 32px 0 0; }
.tab-panel:not([hidden]) { animation: rise .45s var(--ease) both; }
.committee-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.committee-group h3 { font-size: 1rem; color: var(--muted); font-weight: 700; margin-bottom: 12px; }
.committee-group ul { list-style: none; display: grid; gap: 10px; }
.committee-group li { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.avatar-xs { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf); color: var(--pine); font-size: .82rem; font-weight: 800; flex: none; }

/* ---------- Documentos ---------- */
.docs { list-style: none; display: grid; gap: 14px; }
.doc { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.doc-icon { position: relative; width: 52px; height: 60px; display: grid; place-items: center; color: var(--green); background: var(--leaf); border-radius: 8px; }
.doc-icon .icon { width: 26px; height: 26px; }
.doc-icon small { position: absolute; bottom: -8px; background: var(--green); color: #fff; font-size: .62rem; font-weight: 800; padding: 1px 6px; border-radius: 4px; }
.doc h3 { font-size: 1.1rem; margin-bottom: 2px; }
.doc p { color: var(--muted); margin: 0; font-size: .95rem; }
.doc .btn small { font-weight: 500; opacity: .8; }
@media (max-width: 640px) { .doc { grid-template-columns: auto 1fr; } .doc .btn { grid-column: 1 / -1; } }

/* ---------- Productos (página) ---------- */
.line-list { list-style: none; display: grid; gap: 0; margin-top: 26px; border-top: 1px solid var(--line); }
.line-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line-item h3 { font-size: 1.12rem; margin: 0; }
.line-item p { color: var(--muted); margin: 4px 0 0; font-size: .95rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; display: grid; gap: 20px; margin: 20px 0 32px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list strong { display: block; color: var(--pine); }
.contact-list span, .contact-list a { color: var(--muted); }
.contact-list a { color: var(--green); font-weight: 600; }
.ci { width: 46px; height: 46px; border-radius: 12px; background: var(--leaf); color: var(--green); display: grid; place-items: center; flex: none; }
.ci .icon { width: 22px; height: 22px; }
.map { position: relative; aspect-ratio: 16 / 11; border-radius: var(--radius); overflow: hidden; background:
  repeating-linear-gradient(0deg, transparent 0 38px, rgba(14,77,42,.07) 38px 40px),
  repeating-linear-gradient(90deg, transparent 0 38px, rgba(14,77,42,.07) 38px 40px), var(--leaf); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-load { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px; border: 0; background: transparent; cursor: pointer; color: var(--pine); font-weight: 700; }
.map-load .icon { width: 40px; height: 40px; color: var(--green); animation: bob 2.4s ease-in-out infinite; }
.map-load small { color: var(--muted); font-weight: 500; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.map.is-loading::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%); background-size: 250% 100%; animation: shimmer 1.2s linear infinite; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 44px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 650; font-size: .92rem; margin-bottom: 6px; color: var(--pine); }
.opt { color: var(--muted); font-weight: 500; }
.field input, .field textarea, .subscribe input {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: 0; background: #fff; border-color: var(--green); box-shadow: 0 0 0 4px rgba(159,217,154,.45); }
.field .is-invalid { border-color: var(--danger); background: #FFF7F6; }
.field-error { color: var(--danger); font-size: .85rem; font-weight: 600; margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.field-check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; accent-color: var(--green); }
.field-check label { font-weight: 500; color: var(--muted); font-size: .92rem; }
.field-check .field-error { grid-column: 2; }

/* ---------- CTA y pie ---------- */
.cta-band { background: var(--green); color: #fff; padding: clamp(48px, 7vw, 80px) 0; position: relative; overflow: hidden; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: var(--step-3); font-weight: 850; margin-bottom: 8px; max-width: 22ch; }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); max-width: 50ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.site-footer { background: var(--pine-900); color: rgba(255,255,255,.82); padding: clamp(56px, 7vw, 88px) 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr .9fr 1.3fr; gap: 40px; }
.footer-brand img { width: 230px; height: auto; margin-bottom: 18px; }
.legal { font-size: .85rem; opacity: .8; max-width: 34ch; }
.footer-title { color: #fff; font-size: 1rem; font-weight: 750; margin-bottom: 16px; letter-spacing: 0; }
.footer-list, .footer-links, .socials { list-style: none; }
.footer-list li { display: flex; gap: 10px; margin-bottom: 12px; }
.footer-list .icon { color: var(--mint); margin-top: 3px; }
.site-footer a { color: rgba(255,255,255,.9); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-links li { margin-bottom: 10px; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.socials a:hover { background: var(--green); text-decoration: none; }
.subscribe { display: grid; gap: 8px; margin-top: 10px; }
.subscribe input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #fff; min-height: 46px; }
.subscribe input::placeholder { color: rgba(255,255,255,.55); }
.subscribe input:focus { outline: 0; border-color: var(--mint); }
.subscribe .btn { min-height: 46px; width: 100%; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 56px; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.signature a { font-weight: 700; color: var(--mint); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Flotantes y avisos ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(0,0,0,.45);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.07); color: #fff; }
.wa-float .icon { width: 30px; height: 30px; }
.to-top {
  position: fixed; right: 27px; bottom: 90px; z-index: 40; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: #fff; color: var(--pine); display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.toasts { position: fixed; left: 20px; bottom: 20px; z-index: 95; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 110px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; background: var(--pine); color: #fff; font-weight: 600; font-size: .95rem; box-shadow: 0 16px 36px -16px rgba(0,0,0,.5); animation: toast-in .45s var(--ease) both; }
.toast .icon { color: var(--mint); width: 22px; height: 22px; }
.toast-error { background: #7A1A13; }
.toast-error .icon { color: #FFB4AB; }
.toast.is-leaving { animation: toast-out .35s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px); } }

/* ---------- Revelado al hacer scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Transiciones entre páginas (navegadores compatibles) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .22s ease both vt-out; }
::view-transition-new(root) { animation: .32s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero-mark rect, .js .page-hero-mark rect { stroke-dashoffset: 0; }
}

@media print {
  .site-header, .wa-float, .to-top, .cta-band, .subscribe, .toasts { display: none !important; }
  body { background: #fff; }
}
