/* ==========================================================================
   FIHNEC C.R. · Capítulo San Pablo L.C.
   Hoja de estilos de index.html
   CSS moderno: custom properties, clamp(), svh, aspect-ratio, :has(),
   backdrop-filter, color-mix(), View Transitions y scroll-driven animations.
   ========================================================================== */

:root {
  --navy-950: #050f20;
  --navy-900: #0a1b35;
  --navy-800: #102b52;
  --navy-700: #1a3d6f;
  --red: #ba1b1b;
  --red-600: #d62d2d;
  --gold: #f2b84b;
  --ink: #16213a;
  --muted: #5a6479;
  --line: #e4e8f0;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --heading: var(--navy-900);
  --text: #38425a;
  --wa-card: #ffffff;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 8px rgb(10 27 53 / .06);
  --shadow: 0 14px 40px -12px rgb(10 27 53 / .22);
  --shadow-lg: 0 30px 70px -20px rgb(10 27 53 / .35);

  --font-head: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Roboto', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --nav-h: 132px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
section[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.lb-lock { overflow: hidden; }

img { max-width: 100%; }
a { color: var(--red); }
a:hover { color: var(--red-600); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--heading);
  text-wrap: balance;
}
p { text-wrap: pretty; }

/* ------------------------------------------------------------------ NAV */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1030;
  min-height: var(--nav-h);
  padding: .35rem 1rem;
  background: linear-gradient(180deg, rgb(5 15 32 / .75), rgb(5 15 32 / 0));
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), min-height .35s var(--ease);
}
.navbar.solid {
  background: rgb(5 15 32 / .82);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 8px 30px rgb(0 0 0 / .25);
}
.navbar-brand, .nav-link { color: #fff !important; }
.logo-img { height: 94px; width: auto; transition: height .3s var(--ease); }
.navbar.solid .logo-img { height: 78px; }
@media (min-width: 992px) { .logo-img { height: 116px; } .navbar.solid .logo-img { height: 88px; } }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font: 800 1.15rem var(--font-head); letter-spacing: .08em; color: #fff; }
.brand-subtitle { font-size: .8rem; letter-spacing: .06em; color: rgb(255 255 255 / .8); }

.navbar-toggler { border: 0; padding: .5rem; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2.4' stroke-linecap='round' d='M4 8h22M4 15h22M4 22h22'/%3E%3C/svg%3E");
}
.navbar .nav-link {
  position: relative;
  font: 600 .82rem var(--font-head);
  white-space: nowrap;
  letter-spacing: .02em;
  padding: .55rem .6rem !important;
  opacity: .92;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  inset: auto .6rem .3rem .6rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.navbar .nav-link:hover { opacity: 1; }
.navbar .nav-link:hover::after { transform: scaleX(1); }

@media (max-width: 1399.98px) {
  .navbar-collapse {
    margin-top: .5rem;
    padding: .75rem;
    border-radius: var(--radius-sm);
    background: rgb(5 15 32 / .92);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .navbar .nav-link::after { display: none; }
}

/* ----------------------------------------------------------------- HERO */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 560px;
  min-height: max(560px, 100svh);        /* ocupa la pantalla, pero crece si el contenido necesita más alto */
  overflow: hidden;
  color: #fff;
  background: var(--navy-950);
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, center);
  transform: scale(1.12);
  transition: transform 9s linear;
  will-change: transform;
}
.hero-slide.is-active img { transform: scale(1); }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 20% 40%, rgb(5 15 32 / .35), rgb(5 15 32 / .8) 80%),
    linear-gradient(180deg, rgb(5 15 32 / .65) 0%, rgb(5 15 32 / .15) 38%, rgb(5 15 32 / .9) 100%);
}

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: min(1180px, 100% - 2rem);
  margin-inline: auto;
  padding: calc(var(--nav-h) + .5rem) 0 1.2rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  font: 700 .72rem var(--font-head);
  letter-spacing: .16em;
  text-transform: uppercase;
  background: rgb(255 255 255 / .12);
  border: 1px solid rgb(255 255 255 / .25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hero-badge::before {
  content: "";
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgb(242 184 75 / .3);
}
.hero h1 {
  margin: 1.2rem 0 1rem;
  max-width: 20ch;
  font-size: clamp(1.8rem, min(1.1rem + 4.6vw, 9.5svh), 4.6rem);   /* también se adapta al alto de la pantalla */
  line-height: 1.05;
  letter-spacing: -.02em;
  color: #fff;
  text-shadow: 0 4px 30px rgb(0 0 0 / .45);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(95deg, var(--gold), #ff8a5b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  max-width: 46ch;
  font-size: clamp(1.02rem, .9rem + .6vw, 1.35rem);
  color: rgb(255 255 255 / .9);
  margin-bottom: 1.8rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font: 700 .92rem var(--font-head);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.btn-pill:hover { transform: translateY(-3px); }
.btn-pill--solid {
  color: #fff;
  background: linear-gradient(135deg, var(--red-600), var(--red));
  box-shadow: 0 14px 30px -8px rgb(186 27 27 / .65);
}
.btn-pill--solid:hover { color: #fff; box-shadow: 0 20px 38px -8px rgb(186 27 27 / .8); }
.btn-pill--ghost {
  color: #fff;
  background: rgb(255 255 255 / .1);
  border-color: rgb(255 255 255 / .35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-pill--ghost:hover { color: #fff; background: rgb(255 255 255 / .2); }

.hero-bar {
  position: relative;
  padding: .6rem 0 1.6rem;
}
.hero-bar-inner {
  width: min(1180px, 100% - 2rem);
  margin-inline: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.hero-caption {
  min-height: 3.2rem;
  max-width: 34ch;
  font-size: .9rem;
  color: rgb(255 255 255 / .85);
}
.hero-caption small {
  display: block;
  font: 700 .68rem var(--font-head);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero-controls { display: flex; align-items: center; gap: 1rem; }
.hero-dots { display: flex; gap: .45rem; }
.hero-dot {
  position: relative;
  width: 34px; height: 4px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgb(255 255 255 / .3);
  overflow: hidden;
  cursor: pointer;
}
.hero-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}
.hero-dot.is-active::after { animation: heroFill var(--hero-time, 6s) linear forwards; }
.hero.is-paused .hero-dot.is-active::after { animation-play-state: paused; }
.hero-dot.is-done::after { transform: scaleX(1); }
@keyframes heroFill { to { transform: scaleX(1); } }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  background: rgb(255 255 255 / .1);
  border: 1px solid rgb(255 255 255 / .3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color .25s, transform .25s var(--ease);
}
.icon-btn:hover { background: rgb(255 255 255 / .25); transform: scale(1.06); }
.icon-btn svg { width: 20px; height: 20px; }

.scroll-cue {
  position: absolute;
  inset: auto auto 1.7rem 50%;
  translate: -50% 0;
  display: none;
  width: 26px; height: 42px;
  border: 2px solid rgb(255 255 255 / .6);
  border-radius: 14px;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: cue 1.8s infinite;
}
@keyframes cue { 0% { opacity: 0; translate: 0 0; } 30% { opacity: 1; } 100% { opacity: 0; translate: 0 14px; } }

@media (max-width: 767.98px) {
  .hero-bar-inner { flex-direction: column; align-items: stretch; gap: .9rem; }
  .hero-controls { justify-content: space-between; }
  .hero-caption { min-height: 0; }
  .hero-arrows { display: none; }
  .hero-dot { flex: 1; width: auto; }
  .hero-dots { flex: 1; }
}
@media (min-width: 1100px) and (min-height: 700px) { .scroll-cue { display: block; } }
@media (max-height: 640px) { .hero-lead { display: none; } .hero h1 { margin-block: .7rem .6rem; } }

/* ------------------------------------------------------ ESTRUCTURA BASE */
.sec { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.sec-alt { background: var(--bg); }
.wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3.5rem); }
.eyebrow {
  display: inline-block;
  margin-bottom: .6rem;
  font: 800 .74rem var(--font-head);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
}
.section-title {
  margin: 0;
  font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -.01em;
  text-align: center;
}
.section-title::after {
  content: "";
  display: block;
  width: 64px; height: 4px;
  margin: 1rem auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}
.section-lead { margin: 1rem auto 0; color: var(--muted); font-size: 1.08rem; }

.card-x {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card-x:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }

.ico {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  box-shadow: 0 10px 20px -8px rgb(10 27 53 / .6);
}
.ico svg { width: 26px; height: 26px; }
.ico--red { background: linear-gradient(135deg, var(--red-600), var(--red)); box-shadow: 0 10px 20px -8px rgb(186 27 27 / .6); }

/* revelado al hacer scroll (solo si hay JS) */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s);
}

/* -------------------------------------------------------------- HISTORIA */
.historia-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 992px) { .historia-grid { grid-template-columns: 380px 1fr; } }

.founder {
  position: relative;
  max-width: 380px;
  margin-inline: auto;
}
.founder::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--red), var(--gold));
  opacity: .9;
  z-index: 0;
}
.founder img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.founder figcaption {
  position: absolute;
  z-index: 2;
  inset: auto 1rem 1rem 1rem;
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  font: 700 .85rem var(--font-head);
  color: #fff;
  background: rgb(5 15 32 / .65);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.historia-text p { margin-bottom: 1rem; color: var(--text); }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  margin-top: 1.8rem;
}
.stat {
  padding: 1rem .6rem;
  text-align: center;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.stat b {
  display: block;
  font: 800 clamp(1.4rem, 1rem + 1.6vw, 2.1rem) var(--font-head);
  line-height: 1.1;
  color: var(--red);
}
.stat span { font-size: .8rem; color: var(--muted); line-height: 1.3; display: block; margin-top: .25rem; }

/* ---------------------------------------------------------- QUIÉNES SOMOS */
.vm-grid { display: grid; gap: 1.2rem; }
@media (min-width: 768px) { .vm-grid { grid-template-columns: 1fr 1fr; } }
.vm-card { padding: 2rem; }
.vm-card h3 { margin: 1.1rem 0 .5rem; font-size: 1.35rem; }
.vm-card p { margin: 0; color: var(--text); }

.pillars {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.pillar { padding: 1.5rem; }
.pillar h4 { margin: 0 0 .4rem; font-size: 1.05rem; color: var(--red); }
.pillar p { margin: 0; font-size: .95rem; color: var(--text); }

.callout {
  position: relative;
  overflow: hidden;
  margin-top: 1.4rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(70% 120% at 100% 0%, rgb(186 27 27 / .55), transparent 60%),
    linear-gradient(135deg, var(--navy-800), var(--navy-950));
}
.callout p { margin: 0 0 .4rem; color: rgb(255 255 255 / .82); }
.callout strong { display: block; margin-top: .9rem; font: 800 clamp(1.2rem, 1rem + 1vw, 1.7rem) var(--font-head); color: var(--gold); }
.callout .extra { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgb(255 255 255 / .18); font-size: .95rem; }

/* ------------------------------------------------------ EVENTOS REGULARES */
.regular {
  display: grid;
  gap: 2rem;
  padding: clamp(1.6rem, 4vw, 3rem);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
@media (min-width: 992px) { .regular { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.regular p { color: var(--text); }
.chips { display: grid; gap: .8rem; }
.chip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.chip .ico { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.chip .ico svg { width: 22px; height: 22px; }
.chip small { display: block; font: 700 .68rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.chip b { font: 700 1.02rem var(--font-head); color: var(--heading); }

/* --------------------------------------------------------------- ESCÚCHANOS */
.escuchanos-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60% 80% at 90% 10%, rgb(186 27 27 / .35), transparent 60%),
    linear-gradient(135deg, #0b2246, #082138 60%, #041225);
}
.escuchanos-section h2 { color: #fff; }
.escuchanos-section .section-title { text-align: left; }
.escuchanos-section .section-title::after { margin-left: 0; }
.escuchanos-section p { color: rgb(255 255 255 / .82); }
.escuchanos-section .ratio { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgb(255 255 255 / .12); }
.escuchanos-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  border: 0;
  border-radius: 999px;
  font: 700 .92rem var(--font-head);
  color: #fff;
  background: linear-gradient(135deg, var(--red-600), var(--red));
  box-shadow: 0 14px 30px -8px rgb(186 27 27 / .65);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.escuchanos-btn:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 20px 38px -8px rgb(186 27 27 / .8); }

/* ------------------------------------------------- ESTRUCTURA DE REUNIÓN */
.steps {
  counter-reset: paso;
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.steps li {
  counter-increment: paso;
  position: relative;
  padding: 1.4rem 1.4rem 1.4rem 4.6rem;
  min-height: 92px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.steps li::before {
  content: counter(paso);
  position: absolute;
  inset: 1.2rem auto auto 1.2rem;
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 12px;
  font: 800 1.05rem var(--font-head);
  color: #fff;
  background: linear-gradient(135deg, var(--red-600), var(--red));
}
.steps strong { color: var(--heading); font-family: var(--font-head); }
.agenda-vacia {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.mensaje-elegante {
  margin: 2.5rem auto 0;
  max-width: 28ch;
  font-family: 'Satisfy', cursive;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
  line-height: 1.3;
  text-align: center;
  color: var(--red);
  text-wrap: balance;
}

/* ------------------------------------------------------------- EVENTOS DINÁMICOS */
#eventos h4, #eventos-pasados h4 {
  margin: 2.2rem 0 1rem;
  font: 800 1.3rem var(--font-head);
  color: var(--heading) !important;
}
#eventos h4::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  margin-right: .6rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgb(186 27 27 / .2);
}
#eventos-container .card,
#eventos-pasados .card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
#eventos-container .card:hover,
#eventos-pasados .card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-title { font-family: var(--font-head); font-weight: 800; color: var(--heading); }
.card-img-evento {
  width: 100%;
  height: 230px;
  object-fit: contain;
  background: var(--bg);
  border-radius: var(--radius-sm);
  cursor: zoom-in;
  transition: transform .4s var(--ease);
}
.card-img-evento:hover { transform: scale(1.02); }
#eventos-container .btn-success {
  border: 0;
  border-radius: 999px;
  font: 700 .88rem var(--font-head);
  padding: .7rem 1.2rem;
  background: #25d366;
  color: #fff;
}
.accordion { --bs-accordion-border-radius: var(--radius-sm); --bs-accordion-inner-border-radius: var(--radius-sm); }
.accordion-button { font-family: var(--font-head); font-weight: 700; }
.accordion-button:not(.collapsed) { color: var(--heading); background: var(--bg); box-shadow: none; }
.accordion-item { overflow: hidden; border-color: var(--line); }
.modal-content { border: 0; border-radius: var(--radius); overflow: hidden; }

/* ------------------------------------------------------------ WHATSAPP CTA */
.whatsapp-cta-section { background: linear-gradient(120deg, #e9fff1, #f6fff8 50%, #e2f7ec); }
.whatsapp-cta-card {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 3rem);
  border-radius: calc(var(--radius) + 6px);
  background: var(--wa-card);
  border: 1px solid #d2f2df;
  box-shadow: 0 18px 45px rgb(18 90 58 / .12);
  text-align: center;
}
.whatsapp-cta-title { font: 800 clamp(1.4rem, 1rem + 1.6vw, 2.1rem) var(--font-head); color: #0d4f30; margin-bottom: .6rem; }
.whatsapp-cta-text { font-size: 1.08rem; color: #315544; margin-bottom: 1.4rem; }
.whatsapp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font: 700 .95rem var(--font-head);
  color: #fff;
  text-decoration: none;
  background: #25d366;
  box-shadow: 0 12px 24px rgb(26 123 69 / .3);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.whatsapp-cta-btn:hover { color: #fff; background: #1fb458; transform: translateY(-3px); box-shadow: 0 18px 30px rgb(26 123 69 / .35); }
.whatsapp-cta-btn svg { flex-shrink: 0; }

/* ------------------------------------------------------------ JUNTA DIRECTIVA */
.board {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: 0;
  margin: 0 auto;
  max-width: 780px;
  list-style: none;
}
.board-card { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.3rem .8rem .9rem; border-radius: 999px; }
.board-card:hover { transform: translateX(4px); }
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  font: 800 .92rem var(--font-head);
  letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-950));
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px color-mix(in srgb, var(--red) 55%, transparent);
}
.board-card > div { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 1rem; min-width: 0; }
.board-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.25; }
.board-card span.role {
  flex: none;
  text-align: right;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--red) 10%, transparent);
  font: 700 .68rem var(--font-head);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}
@media (max-width: 520px) {
  .board-card { border-radius: 28px; }
  .board-card > div { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .board-card span.role { text-align: left; }
}

/* ------------------------------------------------------------------ GALERÍA */
.gal { background: linear-gradient(180deg, var(--bg), var(--surface) 70%); }
.gal-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin: 0 0 2rem;
}
.gal-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--heading);
  font: 700 .82rem var(--font-head);
  cursor: pointer;
  transition: background-color .25s, color .25s, transform .25s var(--ease), border-color .25s;
}
.gal-chip:hover { transform: translateY(-2px); border-color: var(--navy-700); }
.gal-chip span { font-size: .7rem; padding: .05rem .5rem; border-radius: 999px; background: var(--bg); color: var(--muted); }
.gal-chip[aria-pressed="true"] { color: #fff; background: var(--navy-900); border-color: var(--navy-900); }
.gal-chip[aria-pressed="true"] span { background: rgb(255 255 255 / .18); color: #fff; }

.gal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
  gap: clamp(.5rem, 1.4vw, 1rem);
}
@media (min-width: 768px) { .gal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .gal-grid { grid-template-columns: repeat(4, 1fr); } }

.g-item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  isolation: isolate;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.g-item[hidden] { display: none; }
.g-item.is-feature { grid-column: span 2; grid-row: span 2; }
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s var(--ease), filter .6s;
}
.g-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgb(5 15 32 / .88));
  opacity: 0;
  transition: opacity .4s;
}
.g-cap {
  position: absolute;
  z-index: 2;
  inset: auto 0 0 0;
  padding: 1rem 1.1rem;
  color: #fff;
  translate: 0 14px;
  opacity: 0;
  transition: translate .45s var(--ease), opacity .45s;
}
.g-cap small { display: block; font: 700 .64rem var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.g-cap b { display: block; font: 700 .95rem/1.3 var(--font-head); }
.g-item.is-feature .g-cap b { font-size: 1.2rem; }
.g-zoom {
  position: absolute;
  z-index: 2;
  inset: .8rem .8rem auto auto;
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: #fff;
  background: rgb(255 255 255 / .18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  scale: .6;
  opacity: 0;
  transition: scale .4s var(--ease), opacity .4s;
}
.g-zoom svg { width: 18px; height: 18px; }

@media (hover: hover) {
  .g-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .g-item:hover img { transform: scale(1.08); }
  .g-item:hover::after, .g-item:focus-visible::after { opacity: 1; }
  .g-item:hover .g-cap, .g-item:focus-visible .g-cap { translate: 0 0; opacity: 1; }
  .g-item:hover .g-zoom, .g-item:focus-visible .g-zoom { scale: 1; opacity: 1; }
  /* atenúa las demás al enfocar una */
  .gal-grid:has(.g-item:hover) .g-item:not(:hover) img { filter: saturate(.6) brightness(.85); }
}
@media (hover: none) {
  .g-item::after { opacity: 1; background: linear-gradient(180deg, transparent 60%, rgb(5 15 32 / .8)); }
  .g-cap { translate: 0 0; opacity: 1; padding: .7rem .8rem; }
  .g-cap small { display: none; }
  .g-cap b { font-size: .8rem; }
  .g-item.is-feature .g-cap b { font-size: 1rem; }
}

/* entrada escalonada de las fotos */
@supports (animation-timeline: view()) {
  .g-item {
    animation: galIn linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
}
@keyframes galIn { from { opacity: 0; scale: .92; translate: 0 36px; } to { opacity: 1; scale: 1; translate: 0 0; } }

::view-transition-group(*) { animation-duration: .5s; animation-timing-function: var(--ease); }

/* ------------------------------------------------------------------ LIGHTBOX */
.lb {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: #fff;
  background: var(--navy-950);
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.lb.open { visibility: visible; opacity: 1; transition-delay: 0s; }
.lb-bg {
  position: absolute;
  inset: -60px;
  z-index: -2;
  background: var(--navy-950) center / cover no-repeat;
  filter: blur(60px) saturate(1.3) brightness(.45);
  transition: background-image .5s;
}
.lb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(90% 90% at 50% 40%, rgb(5 15 32 / .15), rgb(5 15 32 / .8));
}
.lb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(.9rem, env(safe-area-inset-top)) clamp(.9rem, 3vw, 1.6rem) .4rem;
}
.lb-count { font: 700 .85rem var(--font-head); letter-spacing: .12em; opacity: .9; font-variant-numeric: tabular-nums; }
.lb-count b { font-size: 1.15rem; }
.lb-actions { display: flex; gap: .5rem; }
.lb .icon-btn[aria-pressed="true"] { background: var(--red); border-color: var(--red); }

.lb-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  margin: 0;
  padding: 0 clamp(.5rem, 7vw, 6rem);
  touch-action: pan-y;
}
.lb-img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  min-height: 0;
  border-radius: var(--radius-sm);
  box-shadow: 0 40px 90px -20px rgb(0 0 0 / .7);
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  transition: transform .4s var(--ease);
}
.lb-stage.zoomed { overflow: hidden; }
.lb-stage.zoomed .lb-img { transform: scale(2.2); cursor: zoom-out; transition: transform .2s ease-out; }
.lb-cap {
  position: absolute;
  inset: auto 0 .6rem 0;
  text-align: center;
  pointer-events: none;
  padding: 0 1rem;
  font-size: .95rem;
  text-shadow: 0 2px 12px rgb(0 0 0 / .8);
  transition: opacity .3s;
}
.lb-cap small { display: block; font: 700 .66rem var(--font-head); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.lb-stage.zoomed .lb-cap { opacity: 0; }

.lb-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 3;
  width: 52px; height: 52px;
}
.lb-prev { left: clamp(.4rem, 1.5vw, 1.4rem); }
.lb-next { right: clamp(.4rem, 1.5vw, 1.4rem); }
.lb-nav svg { width: 24px; height: 24px; }

.lb-thumbs {
  display: flex;
  gap: .5rem;
  padding: .7rem clamp(.9rem, 3vw, 1.6rem) max(.9rem, env(safe-area-inset-bottom));
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: safe center;
}
.lb-thumbs::-webkit-scrollbar { display: none; }
.lb-thumb {
  flex: none;
  width: 62px; height: 62px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  opacity: .5;
  transition: opacity .3s, transform .3s var(--ease), border-color .3s;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumb:hover { opacity: .85; }
.lb-thumb[aria-current="true"] { opacity: 1; border-color: var(--gold); transform: translateY(-4px); }

.lb-progress { position: absolute; inset: auto 0 0 0; height: 3px; z-index: 4; background: transparent; }
.lb-progress i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.lb-progress i.run { animation: heroFill var(--lb-time, 4s) linear forwards; }

@media (max-width: 767.98px) {
  .lb-nav { top: auto; bottom: 7.5rem; translate: 0 0; width: 46px; height: 46px; }
  .lb-stage { padding-inline: .5rem; }
  .lb-cap { bottom: 3.3rem; }
  .lb-thumb { width: 50px; height: 50px; }
}
@media (max-height: 520px) {
  .lb-thumbs { display: none; }
  .lb-cap { display: none; }
}

/* -------------------------------------------------------------------- CONTACTO */
.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.contact-card { display: flex; gap: 1rem; padding: 1.4rem; }
.contact-card .ico { flex: none; }
.contact-card small { display: block; font: 700 .68rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-card a, .contact-card span.v { font-weight: 700; color: var(--heading); text-decoration: none; word-break: break-word; }
.contact-card a:hover { color: var(--red); }
.contact-card p { margin: 0; font-size: .95rem; }

/* --------------------------------------------------------------------- FOOTER */
.site-footer {
  color: #fff;
  text-align: center;
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  border-top: 4px solid var(--red);
}
.site-footer img { height: 90px; width: auto; }
.site-footer p { margin: 0; color: rgb(255 255 255 / .8); }

/* ------------------------------------------------------- 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; }
  .hero-slide img { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ======================================================================
   CONTROLES DEL MENÚ: tema y idioma
   ====================================================================== */
.nav-tools { display: flex; align-items: center; gap: .5rem; margin-left: auto; margin-right: .4rem; }
@media (min-width: 1400px) { .nav-tools { order: 3; margin-left: .8rem; margin-right: 0; } }

.tool-btn {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  padding: 0;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  background: rgb(255 255 255 / .12);
  border: 1px solid rgb(255 255 255 / .28);
  transition: background-color .25s, transform .25s var(--ease);
}
.tool-btn:hover { background: rgb(255 255 255 / .24); transform: rotate(12deg) scale(1.05); }
.tool-btn svg { width: 19px; height: 19px; }
.tool-btn .i-sun { display: none; }
[data-theme="dark"] .tool-btn .i-sun { display: block; }
[data-theme="dark"] .tool-btn .i-moon { display: none; }

/* switch ES | EN */
.lang-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 78px; height: 40px;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  font: 800 .72rem var(--font-head);
  letter-spacing: .06em;
  color: #fff;
  background: rgb(255 255 255 / .12);
  border: 1px solid rgb(255 255 255 / .28);
}
.lang-switch span { position: relative; z-index: 1; text-align: center; transition: color .3s; }
.lang-switch::before {
  content: "";
  position: absolute;
  inset: 3px auto 3px 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-600), var(--red));
  box-shadow: 0 4px 12px -2px rgb(186 27 27 / .7);
  transition: transform .35s var(--ease);
}
.lang-switch[aria-checked="true"]::before { transform: translateX(100%); }

/* transición suave al cambiar de tema */
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease !important;
}

/* ======================================================================
   TEMA OSCURO
   ====================================================================== */
[data-theme="dark"] {
  color-scheme: dark;
  --surface: #0e1a2e;
  --bg: #091322;
  --heading: #f1f5ff;
  --text: #b9c4da;
  --ink: #e6ebf5;
  --muted: #92a0ba;
  --line: #213250;
  --wa-card: #0f2a22;
  --shadow-sm: 0 2px 8px rgb(0 0 0 / .35);
  --shadow: 0 14px 40px -12px rgb(0 0 0 / .6);
  --shadow-lg: 0 30px 70px -20px rgb(0 0 0 / .75);
}
[data-theme="dark"] a { color: #ff7b7b; }
[data-theme="dark"] a:hover { color: #ffa0a0; }
[data-theme="dark"] .eyebrow { color: var(--gold); }
[data-theme="dark"] .stat b,
[data-theme="dark"] .pillar h4,
[data-theme="dark"] .board-card span.role,
[data-theme="dark"] .mensaje-elegante { color: #ff7b7b; }
[data-theme="dark"] .btn-pill--solid,
[data-theme="dark"] .btn-pill--ghost,
[data-theme="dark"] .escuchanos-btn,
[data-theme="dark"] .whatsapp-cta-btn { color: #fff; }
[data-theme="dark"] .chip,
[data-theme="dark"] .gal-chip span { background: rgb(255 255 255 / .06); }
[data-theme="dark"] .gal-chip:hover { border-color: var(--gold); }
[data-theme="dark"] .gal-chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
[data-theme="dark"] .gal { background: linear-gradient(180deg, var(--bg), var(--surface) 70%); }
[data-theme="dark"] .whatsapp-cta-section { background: linear-gradient(120deg, #07150f, #0b1f18 50%, #07150f); }
[data-theme="dark"] .whatsapp-cta-card { border-color: #1d4a3a; }
[data-theme="dark"] .whatsapp-cta-title { color: #7ff0b4; }
[data-theme="dark"] .whatsapp-cta-text { color: #a9d6c0; }
[data-theme="dark"] .callout { background: radial-gradient(70% 120% at 100% 0%, rgb(186 27 27 / .5), transparent 60%), linear-gradient(135deg, #12305a, #050f20); }
[data-theme="dark"] .contact-card a:hover { color: #ff7b7b; }
[data-theme="dark"] .site-footer { background: #050c18; }
[data-theme="dark"] .founder img { box-shadow: 0 30px 70px -20px rgb(0 0 0 / .8); }
[data-theme="dark"] .g-item { box-shadow: 0 4px 14px rgb(0 0 0 / .5); }
[data-theme="dark"] .card-img-evento { background: #0b1626; }
[data-theme="dark"] .modal-content { background: var(--surface); }
[data-theme="dark"] .accordion-button:not(.collapsed) { background: rgb(255 255 255 / .05); }
[data-theme="dark"] .accordion { --bs-accordion-bg: var(--surface); --bs-accordion-btn-bg: var(--surface); }
[data-theme="dark"] .alert-light { background: var(--surface); color: var(--muted); border-color: var(--line) !important; }

/* menú de escritorio: ajuste fino entre 1400 y 1599 px para que todo quepa en una línea */
@media (min-width: 1400px) and (max-width: 1599.98px) {
  .brand-subtitle { display: none; }
  .navbar .nav-link { font-size: .78rem; padding-inline: .5rem !important; }
  .navbar .nav-link::after { inset-inline: .5rem; }
}

/* móvil: el menú ocupa dos filas (logo + herramientas), así que el contenido debe empezar más abajo */
@media (max-width: 575.98px) {
  :root { --nav-h: 172px; }
  .hero-inner { padding-top: calc(var(--nav-h) + .5rem); }
  .navbar { padding-block: .3rem .5rem; }
  .nav-tools { margin-right: .2rem; }
}

@media (max-width: 575.98px) {
  .hero { min-height: 640px; }
  .hero h1 { margin: .9rem 0 .7rem; font-size: clamp(1.6rem, min(8vw, 6.8svh), 2.2rem); }
  .hero-lead { margin-bottom: 1.1rem; font-size: 1rem; line-height: 1.5; }
  .hero-caption { display: none; }
  .hero-cta { gap: .6rem; }
  .hero-cta .btn-pill { padding: .75rem 1.3rem; }
}

/* ------------------------------------------------ interruptor Caballeros ⇄ Damas (hero) */
.site-switch {
  position: relative;
  isolation: isolate;
  display: grid;
  inline-size: fit-content;                 /* en su propia línea, sobre la etiqueta */
  grid-template-columns: 1fr 1fr;
  margin-block-end: 1.3rem;
  padding: 5px;
  border: 1px solid rgb(255 255 255 / .35);
  border-radius: 999px;
  background: rgb(255 255 255 / .12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -16px rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 255 255 / .25);
}
.ss-thumb {
  position: absolute;
  z-index: -1;
  inset: 5px auto 5px 5px;
  inline-size: calc(50% - 5px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--red-600), var(--red));
  box-shadow: 0 10px 24px -8px rgb(186 27 27 / .9);
  transition: transform .45s var(--ease);
}
.site-switch[data-on="2"] .ss-thumb { transform: translateX(100%); }
.ss-opt {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-inline-size: 9.5rem;
  padding: .85rem 1.5rem;
  font: 800 .92rem var(--font-head);
  letter-spacing: .02em;
  color: rgb(255 255 255 / .82);
  text-decoration: none;
  border-radius: 999px;
  transition: color .3s, transform .3s var(--ease);
}
.ss-opt svg { inline-size: 20px; block-size: 20px; flex: none; }
.ss-opt:hover { color: #fff; }
.ss-opt.is-on { color: #fff; cursor: default; }
.ss-opt:not(.is-on):hover { transform: scale(1.04); }
@media (max-width: 575.98px) {
  .site-switch { display: grid; inline-size: min(100%, 360px); margin-block-end: 1rem; }
  .ss-opt { min-inline-size: 0; padding: .75rem .8rem; font-size: .86rem; }
}
@media (max-height: 560px) { .site-switch { margin-block-end: .6rem; } }
@media (prefers-reduced-motion: reduce) { .ss-thumb, .ss-opt { transition: none; } }

/* pantallas bajas (laptops chicas, tablets en horizontal): hero más compacto */
@media (max-height: 760px) and (min-width: 576px) {
  .hero h1 { margin-block: .9rem .7rem; }
  .hero-lead { margin-bottom: 1.1rem; }
  .site-switch { margin-block-end: .9rem; }
  .ss-opt { padding-block: .65rem; }
}

/* ------------------------------------------------ selector de capítulo (debajo del hero) */
.site-pick { padding-block: clamp(2rem, 4vw, 3rem) 0; text-align: center; background: var(--bg); }
.site-pick .eyebrow { margin-block-end: 1.1rem; }
.sp-box { display: grid; justify-items: center; inline-size: fit-content; margin-inline: auto; }
.sp-logos { display: grid; grid-template-columns: 1fr 1fr; inline-size: 100%; margin-block-end: .9rem; }
.sp-logo {
  justify-self: center;
  display: grid; place-items: center;
  inline-size: clamp(84px, 22vw, 112px);
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 26px;
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  opacity: .62;
  filter: saturate(.7);
  transform: scale(.92);
  transition: transform .5s var(--ease), opacity .4s, filter .4s, border-color .4s, box-shadow .4s;
}
.sp-logo img { display: block; inline-size: 100%; block-size: 100%; object-fit: contain; }
.sp-men { background: #fff; }
.sp-ladies { background: #000; border-color: #2a2a2a; padding: 6px; overflow: hidden; }
.sp-ladies img { border-radius: 18px; }
.sp-logo:hover { opacity: .9; filter: none; transform: scale(.98); }
.sp-logo.is-on { opacity: 1; filter: none; transform: scale(1.06); border-color: var(--red); box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 22%, transparent), var(--shadow-lg); }
.site-pick .site-switch { margin-block-end: 0; border-color: var(--line); background: var(--surface); box-shadow: var(--shadow); -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-pick .ss-opt { color: var(--muted); }
.site-pick .ss-opt:hover { color: var(--heading); }
.site-pick .ss-opt.is-on { color: #fff; }
@media (max-width: 575.98px) { .sp-box { inline-size: min(100%, 360px); } .site-pick .site-switch { inline-size: 100%; } }
/* el logo de Damas viene sobre fondo negro: sobre menús oscuros se funde con "screen" */
.logo-ladies { mix-blend-mode: screen; }
@media (prefers-reduced-motion: reduce) { .sp-logo { transition: none; } }

.album-vacio { margin: 0; padding: 2.5rem 1rem; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.album-vacio[hidden] { display: none; }

.footer-link { display: inline-block; padding: .5rem 1.2rem; font: 700 .85rem var(--font-head); color: #fff; text-decoration: none; border: 1px solid rgb(255 255 255 / .35); border-radius: 999px; transition: background-color .25s; }
.footer-link:hover { color: #fff; background: rgb(255 255 255 / .16); }

/* ------------------------------------------------------------ botón flotante de mensajes */
.msg-fab {
  position: fixed; z-index: 1035;
  inset: auto max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) auto;
  display: grid; place-items: center;
  inline-size: 60px; block-size: 60px; padding: 0;
  color: #fff; border: 0; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, var(--red-600), var(--red));
  box-shadow: 0 18px 36px -10px rgb(186 27 27 / .75), 0 0 0 4px rgb(255 255 255 / .18);
  transition: transform .3s var(--ease), box-shadow .3s;
  animation: fabIn .6s var(--ease) both .4s;
}
.msg-fab[hidden] { display: none; }
.msg-fab:hover { transform: translateY(-4px) scale(1.06); }
.msg-fab > svg { inline-size: 28px; block-size: 28px; }
.msg-fab.has-new::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgb(214 45 45 / .6); animation: fabPulse 2s infinite; }
.msg-badge { position: absolute; inset: -4px -4px auto auto; display: grid; place-items: center; min-inline-size: 22px; block-size: 22px; padding: 0 5px; font: 800 .68rem var(--font-head); color: #3b2a00; border: 2px solid #fff; border-radius: 999px; background: var(--gold); }
.msg-badge[hidden] { display: none; }
.msg-tip { position: absolute; inset-inline-end: calc(100% + .7rem); inset-block-start: 50%; translate: 0 -50%; padding: .45rem .8rem; font: 700 .75rem var(--font-head); white-space: nowrap; color: #fff; border-radius: 999px; background: rgb(5 15 32 / .88); opacity: 0; pointer-events: none; transition: opacity .25s, translate .25s; }
@media (hover: hover) { .msg-fab:hover .msg-tip { opacity: 1; translate: -4px -50%; } }
body.msg-open .msg-fab { opacity: 0; pointer-events: none; }
@keyframes fabIn { from { opacity: 0; transform: translateY(24px) scale(.6); } }
@keyframes fabPulse { 70% { box-shadow: 0 0 0 16px #0000; } 100% { box-shadow: 0 0 0 0 #0000; } }

.msg-scrim { position: fixed; inset: 0; z-index: 1990; background: rgb(5 15 32 / .55); opacity: 0; visibility: hidden; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); transition: opacity .35s, visibility 0s linear .35s; }
.msg-scrim.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.msg-panel {
  position: fixed; z-index: 2000; inset: 0 0 0 auto;
  display: flex; flex-direction: column;
  inline-size: min(440px, 100vw);
  color: var(--text); background: var(--surface);
  box-shadow: -30px 0 70px -20px rgb(0 0 0 / .5);
  transform: translateX(104%); visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s linear .5s;
}
.msg-panel.open { transform: none; visibility: visible; transition-delay: 0s; }
.msg-panel header { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.3rem; color: #fff; background: linear-gradient(120deg, var(--navy-800), var(--navy-950)); border-block-end: 3px solid var(--red); }
.msg-panel header small { display: block; font: 800 .66rem var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.msg-panel header h2 { margin: 0; font-size: 1.4rem; color: #fff; }
.msg-close { display: grid; place-items: center; inline-size: 40px; block-size: 40px; padding: 0; color: #fff; border: 0; border-radius: 50%; background: rgb(255 255 255 / .14); cursor: pointer; transition: transform .3s var(--ease), background-color .25s; }
.msg-close:hover { background: var(--red); transform: rotate(90deg); }
.msg-close svg { inline-size: 16px; block-size: 16px; }
.msg-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1rem 1.2rem; display: grid; align-content: start; gap: 1rem; }
.msg-item { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.msg-item time { display: block; font: 800 .66rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.msg-item h3 { margin: .3rem 0 .6rem; font-size: 1.1rem; line-height: 1.25; }
.msg-text { font-size: .95rem; line-height: 1.7; }
.msg-text p { margin: 0 0 .7rem; }
.msg-text.clamp { display: -webkit-box; -webkit-line-clamp: 5; line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.msg-more { padding: 0; font: 800 .78rem var(--font-head); color: var(--red); border: 0; background: none; cursor: pointer; }
.msg-empty { text-align: center; color: var(--muted); }
.msg-panel footer { flex: none; padding: 1rem 1.2rem calc(1rem + env(safe-area-inset-bottom)); border-block-start: 1px solid var(--line); background: var(--surface); }
.msg-all { display: block; padding: .85rem 1rem; text-align: center; font: 800 .9rem var(--font-head); color: #fff; text-decoration: none; border-radius: 999px; background: linear-gradient(135deg, var(--red-600), var(--red)); box-shadow: 0 14px 28px -10px rgb(186 27 27 / .7); }
.msg-all:hover { color: #fff; }
body.msg-open { overflow: hidden; }
@media (max-width: 575.98px) {
  .msg-fab { inline-size: 56px; block-size: 56px; }
  .msg-panel { inline-size: 100vw; inset: 12vh 0 0 0; border-radius: 22px 22px 0 0; transform: translateY(104%); }
  .msg-panel.open { transform: none; }
  .msg-panel header { border-radius: 22px 22px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .msg-fab, .msg-panel, .msg-scrim { transition: none; animation: none; } .msg-fab.has-new::before { animation: none; } }

/* ------------------------------------------------ ESTILO PLANO (menos tarjetas) */
.card-x { background: none; border: 0; border-radius: 0; box-shadow: none; }
.card-x:hover { transform: none; box-shadow: none; }

.vm-card { padding: .2rem 0 .2rem 1.6rem; border-inline-start: 3px solid var(--navy-700); }
.vm-card:nth-child(2) { border-inline-start-color: var(--red); }
.pillars { gap: 1.6rem 2rem; margin-top: 2.4rem; }
.pillar { padding: 1rem 0 0; border-top: 2px solid var(--line); }
.pillar h4 { position: relative; }
.pillar h4::before { content: ""; position: absolute; inset: -1.1rem auto auto 0; width: 36px; height: 2px; background: var(--red); }

.stat { background: none; border: 0; border-radius: 0; box-shadow: none; padding: .6rem; }
.stat + .stat { border-inline-start: 1px solid var(--line); }

.board { gap: 0; border-top: 1px solid var(--line); }
.board-card { padding: .85rem .4rem; border-radius: 0; border-bottom: 1px solid var(--line); transition: background-color .25s; }
.board-card:hover { transform: none; background: color-mix(in srgb, var(--red) 5%, transparent); }
.board-card span.role { padding: 0; background: none; }
@media (max-width: 520px) { .board-card { border-radius: 0; } }

.contact-grid { gap: 0 2.5rem; border-top: 1px solid var(--line); }
.contact-card { padding: 1.2rem .2rem; border-bottom: 1px solid var(--line); }

/* Estructura de la reunión: línea de tiempo vertical */
.steps { display: block; max-width: 760px; margin-inline: auto; position: relative; }
.steps::before { content: ""; position: absolute; inset: 1.4rem auto 1.4rem 1.4rem; width: 2px; margin-inline-start: -1px; background: linear-gradient(var(--red), var(--gold)); opacity: .5; }
.steps li { min-height: 0; padding: .7rem 0 1.5rem 4rem; border: 0; border-radius: 0; background: none; box-shadow: none; line-height: 1.55; }
.steps li:last-child { padding-bottom: .7rem; }
.steps li:hover { transform: none; box-shadow: none; }
.steps li::before { inset: .35rem auto auto 0; width: 2.8rem; height: 2.8rem; border-radius: 50%; box-shadow: 0 8px 16px -6px rgb(186 27 27 / .55); }
.steps li:last-child::before { background: linear-gradient(135deg, var(--gold), var(--red)); }
@media (max-width: 520px) { .steps li { padding-left: 3.6rem; } .steps li::before { width: 2.5rem; height: 2.5rem; } .steps::before { inset-inline-start: 1.25rem; } }

/* Estructura de la reunión: numeración tipográfica (sin círculos) */
.steps::before { display: none; }
.steps li { padding: 1.05rem 0 1.05rem 4.6rem; border-bottom: 1px solid var(--line); }
.steps li:first-child { border-top: 1px solid var(--line); }
.steps li:last-child { padding-bottom: 1.05rem; }
.steps li::before,
.steps li:last-child::before {
  content: counter(paso, decimal-leading-zero);
  inset: 50% auto auto 0;
  transform: translateY(-50%);
  display: block;
  width: auto; height: auto;
  border-radius: 0;
  box-shadow: none;
  font: 800 1.9rem/1 var(--font-head);
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--red), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: transform .3s var(--ease);
}
.steps li:hover::before { transform: translateY(-50%) translateX(4px); }
@media (max-width: 520px) { .steps li { padding-left: 3.4rem; } .steps li::before, .steps li:last-child::before { width: auto; height: auto; font-size: 1.5rem; } }
