/* GENERADO por build-damas.js a partir de index.css + calendario.css. No editar a mano. */
/* ==========================================================================
   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: #1f0a18;
  --navy-900: #3a1030;
  --navy-800: #5b1a4a;
  --navy-700: #7a2563;
  --red: #d6336c;
  --red-600: #ee4d86;
  --gold: #ffb3d1;
  --ink: #3a1030;
  --muted: #7a5a6c;
  --line: #f4d9e6;
  --bg: #fdf1f6;
  --surface: #ffffff;
  --heading: var(--navy-900);
  --text: #5a3a4e;
  --wa-card: #ffffff;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 8px rgb(58 16 48 / .06);
  --shadow: 0 14px 40px -12px rgb(58 16 48 / .22);
  --shadow-lg: 0 30px 70px -20px rgb(58 16 48 / .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(31 10 24 / .75), rgb(31 10 24 / 0));
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), min-height .35s var(--ease);
}
.navbar.solid {
  background: rgb(31 10 24 / .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(31 10 24 / .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(31 10 24 / .35), rgb(31 10 24 / .8) 80%),
    linear-gradient(180deg, rgb(31 10 24 / .65) 0%, rgb(31 10 24 / .15) 38%, rgb(31 10 24 / .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(255 179 209 / .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), #c77dff);
  -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(214 51 108 / .65);
}
.btn-pill--solid:hover { color: #fff; box-shadow: 0 20px 38px -8px rgb(214 51 108 / .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(58 16 48 / .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(214 51 108 / .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(31 10 24 / .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(214 51 108 / .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(214 51 108 / .35), transparent 60%),
    linear-gradient(135deg, #4a1240, #3a0e33 60%, #220a1d);
}
.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(214 51 108 / .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(214 51 108 / .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(214 51 108 / .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(31 10 24 / .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(31 10 24 / .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(31 10 24 / .15), rgb(31 10 24 / .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(214 51 108 / .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: #26111f;
  --bg: #170a14;
  --heading: #f1f5ff;
  --text: #e0c3d4;
  --ink: #f6e6ef;
  --muted: #c4a0b6;
  --line: #4a2442;
  --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: #ff8fb8; }
[data-theme="dark"] a:hover { color: #ffb0cd; }
[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: #ff8fb8; }
[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(214 51 108 / .5), transparent 60%), linear-gradient(135deg, #6a1f58, #1f0a18); }
[data-theme="dark"] .contact-card a:hover { color: #ff8fb8; }
[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: #1d0c19; }
[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(214 51 108 / .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(214 51 108 / .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(238 77 134 / .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: #4a0f2b; 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(31 10 24 / .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(31 10 24 / .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(214 51 108 / .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(214 51 108 / .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; } }

/* ==========================================================================
   Calendario visual de eventos
   CSS moderno: @property + conic-gradient animado, container queries por celda,
   :has(), color-mix(), mask-composite, aspect-ratio, line-clamp y subgrid-free grid.
   Usa los tokens de index.css, así que respeta el tema claro/oscuro.
   ========================================================================== */

@property --ang {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.cal {
  --up: var(--red);
  --up-2: var(--gold);
  --past: #a8909f;
  --cell-min: 128px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
[data-theme="dark"] .cal { --past: #8a6b7d; }

.cal-intro { margin: 0 auto 1.6rem; max-width: 56ch; text-align: center; color: var(--muted); font-size: 1.05rem; }
.cal-sub { margin: 0 0 .4rem; font-size: 1.3rem; }

/* ------------------------------------------------------ próximo evento */
.cal-next-wrap { margin-bottom: 1.4rem; }
.next-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  inline-size: 100%;
  padding: .9rem 1.1rem;
  text-align: start;
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  background:
    radial-gradient(80% 140% at 100% 0%, rgb(255 179 209 / .35), transparent 60%),
    linear-gradient(120deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.next-card::before {                               /* aro animado */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--ang), var(--red-600), var(--gold), #fff0, var(--red-600));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: ang 4s linear infinite;
}
.next-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.next-thumb {
  flex: none;
  inline-size: 74px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgb(0 0 0 / .4);
}
.next-body { display: grid; gap: .1rem; min-inline-size: 0; flex: 1; }
.next-kicker { font: 800 .68rem var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.next-title { font: 800 clamp(1.05rem, .95rem + .5vw, 1.35rem) var(--font-head); line-height: 1.2; text-wrap: balance; }
.next-sub { font-size: .88rem; color: rgb(255 255 255 / .8); }
.next-cta {
  flex: none;
  padding: .55rem 1rem;
  border-radius: 999px;
  font: 700 .8rem var(--font-head);
  background: linear-gradient(135deg, var(--red-600), var(--red));
  box-shadow: 0 10px 22px -8px rgb(214 51 108 / .8);
}
@media (max-width: 575.98px) {
  .next-card { flex-wrap: wrap; }
  .next-cta { inline-size: 100%; text-align: center; }
  .next-thumb { inline-size: 60px; }
}
@keyframes ang { to { --ang: 360deg; } }

/* ------------------------------------------------------------ tarjeta */
.cal-card {
  padding: clamp(.8rem, 2.4vw, 1.6rem);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.cal.is-loading .cal-grid { opacity: .4; }

.cal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; }
.cal-nav { display: flex; align-items: center; gap: .6rem; }
.cal-title {
  margin: 0;
  min-inline-size: 11ch;
  text-align: center;
  font: 800 clamp(1.25rem, 1rem + 1.2vw, 1.9rem) var(--font-head);
  letter-spacing: -.01em;
}
.cal-btn {
  display: grid;
  place-items: center;
  inline-size: 42px; block-size: 42px;
  padding: 0;
  color: var(--heading);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.cal-btn:hover { color: #fff; background: var(--red); border-color: var(--red); transform: scale(1.08); }
.cal-btn svg { inline-size: 18px; block-size: 18px; }

.cal-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem; }
.cal-today {
  padding: .5rem 1.1rem;
  font: 700 .8rem var(--font-head);
  color: var(--heading);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.cal-today:hover { color: #fff; background: var(--navy-800); border-color: var(--navy-800); }
.cal-legend { display: flex; gap: .9rem; margin: 0; padding: 0; list-style: none; font: 700 .72rem var(--font-head); color: var(--muted); }
.lg { display: inline-flex; align-items: center; gap: .45rem; }
.lg::before { content: ""; inline-size: .7rem; block-size: .7rem; border-radius: 50%; }
.lg--prox::before { background: conic-gradient(var(--red), var(--gold), var(--red)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 25%, transparent); }
.lg--past::before { background: var(--past); }
.cal-count { margin: .6rem 0 1rem; font-size: .88rem; color: var(--muted); }

/* --------------------------------------------------------------- grilla */
.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-weekdays { gap: 0; padding-block: .4rem; }
.cal-wd { text-align: center; font: 800 .7rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wd-short { display: none; }
@media (max-width: 767.98px) { .wd-long { display: none; } .wd-short { display: inline; letter-spacing: 0; } }

.cal-grid {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--line);
}

.day {
  container: day / inline-size;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  min-block-size: clamp(66px, 11vw, var(--cell-min));
  padding: .35rem;
  background: var(--surface);
  transition: background-color .3s;
}
.day--out { background: color-mix(in srgb, var(--bg) 70%, var(--surface)); }
.day--out .day-num { opacity: .4; }
.day--out .day-events { opacity: .7; }
.day:has(.ev--prox, .ev--hoy) { background: color-mix(in srgb, var(--red) 6%, var(--surface)); }
.day-num { align-self: flex-start; display: grid; place-items: center; min-inline-size: 1.7rem; block-size: 1.7rem; padding-inline: .2rem; font: 700 .85rem var(--font-head); color: var(--heading); border-radius: 999px; }
.day--today .day-num { color: #fff; background: linear-gradient(135deg, var(--red-600), var(--red)); box-shadow: 0 6px 14px -4px rgb(214 51 108 / .7); }
.day--today { box-shadow: inset 0 0 0 2px var(--gold); }
.day-events { display: grid; gap: .3rem; }

/* --------------------------------------------------- evento en la celda */
.ev {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: .4rem;
  inline-size: 100%;
  padding: .25rem;
  text-align: start;
  font: inherit;
  color: var(--heading);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s;
}
.ev:hover { transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow); z-index: 2; }
.ev-thumb {
  flex: none;
  inline-size: 2.4rem;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 7px;
  background: var(--bg);
}
.ev-body { display: grid; min-inline-size: 0; flex: 1; line-height: 1.15; }
.ev-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font: 700 .7rem var(--font-body);
}
.ev-tag { margin-top: .15rem; font: 800 .56rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; }
.ev-mark { position: absolute; inset: -4px -4px auto auto; inline-size: 14px; block-size: 14px; border-radius: 50%; }

/* próximamente / hoy: aro de color animado + pulso */
.ev--prox, .ev--hoy {
  border-color: transparent;
  background: color-mix(in srgb, var(--red) 9%, var(--surface));
  box-shadow: 0 6px 18px -8px rgb(214 51 108 / .55);
}
.ev--prox::before, .ev--hoy::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--ang), var(--red), var(--gold), var(--red-600), var(--red));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: ang 3.4s linear infinite;
}
.ev--prox .ev-tag, .ev--hoy .ev-tag { color: var(--red); }
[data-theme="dark"] .ev--prox .ev-tag, [data-theme="dark"] .ev--hoy .ev-tag { color: var(--gold); }
.ev--prox .ev-mark, .ev--hoy .ev-mark {
  background: var(--red-600);
  box-shadow: 0 0 0 0 rgb(238 77 134 / .6);
  animation: pulse 1.8s infinite;
}
.ev--hoy .ev-mark { background: var(--gold); box-shadow: 0 0 0 0 rgb(255 179 209 / .7); }
.ev--hoy { background: color-mix(in srgb, var(--gold) 16%, var(--surface)); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px #0000; } 100% { box-shadow: 0 0 0 0 #0000; } }

/* ya pasó: apagado + check */
.ev--past { filter: saturate(.15); opacity: .72; background: color-mix(in srgb, var(--bg) 80%, var(--surface)); }
.ev--past:hover { filter: saturate(.7); opacity: 1; }
.ev--past .ev-tag { color: var(--muted); }
.ev--past .ev-mark {
  display: grid; place-items: center;
  background: var(--past);
}
.ev--past .ev-mark::after { content: "✓"; font: 800 .55rem/1 var(--font-head); color: #fff; }

.ev-more {
  padding: .15rem .5rem;
  justify-self: start;
  font: 800 .68rem var(--font-head);
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: var(--navy-700);
  cursor: pointer;
}

/* celdas angostas (móvil): solo afiche o barrita de color */
@container day (max-width: 120px) {
  .ev { padding: 0; border-radius: 8px; }
  .ev-body { display: none; }
  .ev-thumb { inline-size: 100%; border-radius: 7px; }
  .ev--sin { block-size: 12px; background: var(--up); border: 0; }
  .ev--sin.ev--past { background: var(--past); }
  .ev--sin.ev--hoy { background: var(--gold); }
  .ev-mark { inset: -3px -3px auto auto; inline-size: 11px; block-size: 11px; }
  .ev--past .ev-mark::after { font-size: .45rem; }
  .day-num { font-size: .72rem; min-inline-size: 1.4rem; block-size: 1.4rem; }
}
@container day (min-width: 121px) and (max-width: 138px) {
  .ev-tag { display: none; }
  .ev-thumb { inline-size: 2rem; }
}

.cal-empty { margin: 1rem 0 .2rem; text-align: center; color: var(--muted); font-size: .95rem; }

/* ---------------------------------------- lista del mes (solo pantallas chicas) */
.cal-list { display: none; margin-top: 1rem; gap: .6rem; }
@media (max-width: 767.98px) { .cal-list { display: grid; } }
.row-ev {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .8rem;
  text-align: start;
  font: inherit;
  color: var(--heading);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.row-date { flex: none; display: grid; place-items: center; inline-size: 46px; line-height: 1.05; }
.row-date b { font: 800 1.4rem var(--font-head); }
.row-date small { font: 700 .62rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.row-ev .ev-thumb { inline-size: 48px; border-radius: 10px; }
.row-txt { display: grid; flex: 1; min-inline-size: 0; }
.row-title { font: 700 .92rem var(--font-head); line-height: 1.25; }
.row-sub { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-tag { flex: none; padding: .25rem .6rem; font: 800 .6rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; }
.row-ev--prox, .row-ev--hoy { border-color: color-mix(in srgb, var(--red) 55%, var(--line)); background: color-mix(in srgb, var(--red) 6%, var(--surface)); }
.row-ev--prox .row-tag, .row-ev--hoy .row-tag { color: #fff; background: linear-gradient(135deg, var(--red-600), var(--red)); animation: pulse-bg 2s infinite; }
.row-ev--hoy .row-tag { color: #4a0f2b; background: var(--gold); }
.row-ev--past { opacity: .7; filter: saturate(.2); }
.row-ev--past .row-tag { color: var(--muted); background: var(--bg); }
@keyframes pulse-bg { 50% { filter: brightness(1.25); } }

/* ------------------------------------------------------------------ modal */
.evm-content { position: relative; overflow: hidden; border: 0; border-radius: calc(var(--radius) + 4px); background: var(--surface); }
.evm-close {
  position: absolute; z-index: 5; inset: .8rem .8rem auto auto;
  display: grid; place-items: center;
  inline-size: 40px; block-size: 40px; padding: 0;
  color: #fff; border: 0; border-radius: 50%;
  background: rgb(31 10 24 / .6);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s;
}
.evm-close:hover { background: var(--red); transform: rotate(90deg); }
.evm-close svg { inline-size: 18px; block-size: 18px; }

.evm { padding: 0; }
.evm-tabs { display: flex; gap: .4rem; overflow-x: auto; padding: .9rem 4rem .5rem 1.2rem; scrollbar-width: none; }
.evm-tab { flex: none; max-inline-size: 18ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .4rem .9rem; font: 700 .75rem var(--font-head); color: var(--heading); border: 1px solid var(--line); border-radius: 999px; background: var(--bg); cursor: pointer; }
.evm-tab.is-on { color: #fff; background: var(--red); border-color: var(--red); }

.evm-grid { display: grid; }
@media (min-width: 768px) { .evm-grid.has-poster { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

.evm-poster {
  position: relative;
  display: block;
  background: #1a0714;
  max-block-size: min(70vh, 640px);
  overflow: hidden;
}
.evm-poster img { display: block; inline-size: 100%; block-size: 100%; object-fit: contain; max-block-size: min(70vh, 640px); }
.evm-poster::after {
  content: "";
  position: absolute; inset: auto 0 0 0; block-size: 40%;
  background: linear-gradient(transparent, rgb(31 10 24 / .35));
  pointer-events: none;
}
@media (max-width: 767.98px) { .evm-poster, .evm-poster img { max-block-size: 46vh; } }

.evm-info { padding: clamp(1.2rem, 3vw, 2rem); display: grid; align-content: start; gap: .7rem; }
.evm-grid:not(.has-poster) .evm-info { padding-inline-end: 4rem; }
.evm-tag {
  justify-self: start;
  padding: .3rem .8rem;
  font: 800 .68rem var(--font-head); letter-spacing: .14em; text-transform: uppercase;
  border-radius: 999px;
}
.evm-tag--prox { color: #fff; background: linear-gradient(135deg, var(--red-600), var(--red)); box-shadow: 0 8px 20px -8px rgb(214 51 108 / .8); animation: pulse-bg 2s infinite; }
.evm-tag--hoy { color: #4a0f2b; background: linear-gradient(135deg, var(--gold), #ffd6e7); }
.evm-tag--past { color: var(--muted); background: var(--bg); border: 1px solid var(--line); }
.evm-tag--past::before { content: "✓ "; }
.evm-title { margin: 0; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.8rem); line-height: 1.15; }
.evm-date { margin: 0; font: 700 .95rem var(--font-head); color: var(--red); }
[data-theme="dark"] .evm-date { color: var(--gold); }
.evm-meta { display: grid; gap: .5rem; margin: .3rem 0; }
.evm-meta > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .6rem; padding-block: .45rem; border-block-end: 1px dashed var(--line); }
.evm-meta dt { font: 800 .68rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); align-self: center; }
.evm-meta dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.evm-desc { margin: 0; color: var(--text); white-space: pre-line; }
.evm-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.btn-pill--wa { color: #fff; background: #25d366; box-shadow: 0 12px 24px -8px rgb(26 123 69 / .6); }
.btn-pill--wa:hover { color: #fff; background: #1fb458; }
.btn-pill--line { color: var(--heading); background: transparent; border-color: var(--line); }
.btn-pill--line:hover { color: var(--heading); border-color: var(--heading); }
.evm--past .evm-poster img { filter: grayscale(.6); }

/* ------------------------------------------------- movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .next-card::before, .ev--prox::before, .ev--hoy::before, .ev-mark, .row-tag, .evm-tag { animation: none !important; }
}

/* en oscuro los enlaces globales son rosados: los botones conservan su color */
[data-theme="dark"] .btn-pill--wa, [data-theme="dark"] .btn-pill--wa:hover { color: #fff; }
[data-theme="dark"] .btn-pill--line, [data-theme="dark"] .btn-pill--line:hover { color: var(--heading); }

/* ======================================================================
   Calendario plegable: tarjeta cerrada → se despliega al tocarla
   (grid-template-rows 0fr→1fr anima la altura real sin JavaScript)
   ====================================================================== */
.cal-toggle {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  inline-size: 100%;
  padding: clamp(1rem, 2.6vw, 1.5rem) clamp(1.1rem, 3vw, 1.8rem);
  text-align: start;
  font: inherit;
  color: #fff;
  border: 0;
  border-radius: calc(var(--radius) + 4px);
  cursor: pointer;
  overflow: hidden;
  background:
    radial-gradient(70% 160% at 100% 0%, rgb(255 179 209 / .35), transparent 60%),
    radial-gradient(60% 120% at 0% 100%, rgb(214 51 108 / .45), transparent 60%),
    linear-gradient(120deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cal-toggle::before {                      /* aro animado, igual que los eventos próximos */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 2px;
  border-radius: inherit;
  background: conic-gradient(from var(--ang), var(--red-600), var(--gold), #fff0 35%, var(--red-600));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: ang 5s linear infinite;
}
.cal-toggle:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ct-ico {
  flex: none;
  display: grid;
  place-items: center;
  inline-size: clamp(48px, 9vw, 64px);
  aspect-ratio: 1;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--red-600), var(--red));
  box-shadow: 0 12px 26px -8px rgb(214 51 108 / .8);
}
.ct-ico svg { inline-size: 55%; block-size: 55%; }
.ct-text { display: grid; gap: .15rem; flex: 1; min-inline-size: 0; }
.ct-text b { font: 800 clamp(1.1rem, .95rem + .9vw, 1.6rem) var(--font-head); line-height: 1.15; text-wrap: balance; }
.ct-text small { font: 700 .72rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ct-close { display: none; }
.cal.is-open .ct-open { display: none; }
.cal.is-open .ct-close { display: block; }
.ct-chev {
  flex: none;
  display: grid;
  place-items: center;
  inline-size: 44px; block-size: 44px;
  border-radius: 50%;
  background: rgb(255 255 255 / .14);
  border: 1px solid rgb(255 255 255 / .3);
  transition: transform .5s var(--ease), background-color .3s;
}
.ct-chev svg { inline-size: 20px; block-size: 20px; }
.cal-toggle:hover .ct-chev { background: rgb(255 255 255 / .26); }
.cal.is-open .ct-chev { transform: rotate(180deg); }
.cal.is-open .cal-toggle { box-shadow: var(--shadow-lg); }

.cal-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .65s var(--ease), visibility 0s linear .65s;
}
.cal.is-open .cal-panel { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.cal-panel-inner { min-block-size: 0; overflow: hidden; }
.cal-panel-inner > :first-child { margin-block-start: 1.6rem; }
.cal-panel-inner { padding-inline: 4px; opacity: 0; transform: translateY(-12px); transition: opacity .5s ease, transform .6s var(--ease); }
.cal.is-open .cal-panel-inner { opacity: 1; transform: none; transition-delay: .12s; }

@media (max-width: 575.98px) {
  .ct-chev { inline-size: 38px; block-size: 38px; }
  .ct-text small { font-size: .64rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cal-toggle::before { animation: none; }
  .cal-panel, .cal-panel-inner, .ct-chev { transition-duration: .01ms !important; }
}

/* la agenda (calendario + próximas + anteriores) es una sola sección bajo el hero */
#eventos { padding-block-start: clamp(2.5rem, 5vw, 4rem); }

/* ======================================================================
   Tarjeta "próximo evento" entre el título y el calendario + bienvenida 6:30 p.m.
   ====================================================================== */
.cal-next-wrap { margin-block: 0 1.2rem; }
.next-card--static { cursor: default; }
.next-card--static:hover { transform: none; box-shadow: var(--shadow); }
.next-thumb--logo { object-fit: contain; background: #fff; padding: 4px; }

.next-card--welcome {
  justify-content: center;
  padding-block: clamp(1.4rem, 4vw, 2.4rem);
  text-align: center;
  background:
    radial-gradient(60% 120% at 15% 0%, rgb(255 179 209 / .55), transparent 60%),
    radial-gradient(60% 120% at 90% 100%, rgb(238 77 134 / .6), transparent 60%),
    linear-gradient(120deg, #4a0f2b, var(--navy-900) 55%, #4a0f2b);
  animation: glow 3.2s ease-in-out infinite;
}
.next-card--welcome::after {                       /* destello que cruza la tarjeta */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .18) 50%, transparent 65%);
  background-size: 250% 100%;
  animation: sweep 3.8s ease-in-out infinite;
}
.next-card--welcome .next-body { justify-items: center; flex: 0 1 auto; gap: .35rem; }
.next-card--welcome .next-thumb { inline-size: clamp(64px, 12vw, 96px); border-radius: 50%; }
.welcome-title {
  font: 400 clamp(2rem, 1.2rem + 3.6vw, 3.6rem) / 1.1 'Satisfy', cursive;
  color: var(--gold);
  text-shadow: 0 4px 24px rgb(0 0 0 / .45);
  text-wrap: balance;
}
.welcome-note { margin-block-start: .2rem; font: 700 .78rem var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .8); }
@media (max-width: 575.98px) { .next-card--welcome { flex-direction: column; } }
@keyframes sweep { 0% { background-position: 120% 0; } 60%, 100% { background-position: -120% 0; } }
@keyframes glow { 50% { box-shadow: 0 0 0 4px rgb(255 179 209 / .25), var(--shadow-lg); } }
@media (prefers-reduced-motion: reduce) { .next-card--welcome, .next-card--welcome::after { animation: none; } }

/* ======================================================================
   Tarjeta del siguiente evento: se despliega en una tarjeta ampliada
   ====================================================================== */
.next-wrap { display: grid; }
.next-card--static { cursor: pointer; }
.next-cta { display: inline-flex; align-items: center; gap: .45rem; }
.next-cta svg { inline-size: 16px; block-size: 16px; transition: transform .5s var(--ease); }
.next-cta-close { display: none; }
.next-wrap.is-open .next-cta-open { display: none; }
.next-wrap.is-open .next-cta-close { display: inline; }
.next-wrap.is-open .next-cta svg { transform: rotate(180deg); }
.next-card--welcome::after { pointer-events: none; }

.next-more {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .6s var(--ease), visibility 0s linear .6s;
}
.next-wrap.is-open .next-more { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
.next-more-inner { min-block-size: 0; overflow: hidden; }
.next-wrap.is-open .next-more-inner { padding: 4px 2px 8px; }
.next-evm {
  margin-block-start: .7rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .45s ease, transform .55s var(--ease);
}
.next-wrap.is-open .next-evm { opacity: 1; transform: none; transition-delay: .1s; }
.next-evm .evm-grid:not(.has-poster) .evm-info { padding-inline-end: clamp(1.2rem, 3vw, 2rem); }
.next-evm .evm-poster, .next-evm .evm-poster img { max-block-size: 520px; }
@media (prefers-reduced-motion: reduce) { .next-more, .next-evm, .next-cta svg { transition-duration: .01ms !important; } }

.next-thumb--dark { background: #000; padding: 2px; }

/* ------------------------------------------------------------ compartir */
.cal-share { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; font: 700 .8rem var(--font-head); color: #fff; border: 0; border-radius: 999px; cursor: pointer; background: linear-gradient(135deg, var(--red-600), var(--red)); box-shadow: 0 10px 22px -10px rgb(0 0 0 / .6); transition: transform .25s var(--ease); }
.cal-share:hover { transform: translateY(-2px); }
.cal-share svg { inline-size: 16px; block-size: 16px; }
@media (max-width: 420px) { .cal-share span { display: none; } .cal-share { padding: .55rem .7rem; } }

.share-dlg { inline-size: min(440px, calc(100vw - 1.5rem)); padding: 0; border: 0; background: transparent; overflow: visible; margin: auto; }
.share-dlg::backdrop { background: rgb(31 10 24 / .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.share-dlg[open] { animation: shareIn .35s var(--ease) both; }
@keyframes shareIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.share-card { position: relative; padding: 1.6rem; border-radius: calc(var(--radius) + 4px); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.share-card h3 { font-size: 1.25rem; margin: 0 2.5rem .3rem 0; }
.share-what { margin: 0 0 1.2rem; font-size: .88rem; color: var(--muted); }
.share-x { position: absolute; inset: .9rem .9rem auto auto; display: grid; place-items: center; inline-size: 34px; block-size: 34px; padding: 0; color: var(--heading); border: 1px solid var(--line); border-radius: 50%; background: var(--bg); cursor: pointer; }
.share-x svg { inline-size: 14px; block-size: 14px; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-bottom: 1.2rem; }
.share-net { display: grid; justify-items: center; gap: .4rem; padding: .8rem .3rem; font: 700 .74rem var(--font-head); color: var(--heading); text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; transition: transform .25s var(--ease), border-color .25s; }
.share-net:hover { color: var(--heading); transform: translateY(-3px); border-color: var(--c); }
.share-net--poster { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: center; align-items: center; gap: .6rem; font-size: .85rem; border-color: var(--c); }
.sn-ic { display: grid; place-items: center; inline-size: 46px; block-size: 46px; color: #fff; border-radius: 14px; background: var(--c); }
.sn-ic svg { inline-size: 24px; block-size: 24px; }
.share-copy { display: flex; gap: .5rem; }
.share-copy input { flex: 1; min-inline-size: 0; padding: .7rem .9rem; font: 500 .82rem var(--font-body); color: var(--heading); border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); }
.share-copy .btn-pill { flex: none; padding: .65rem 1.1rem; font-size: .8rem; border: 0; cursor: pointer; }
.share-copy .btn-pill.ok { background: #1f9d57; }
@media (prefers-reduced-motion: reduce) { .share-dlg[open] { animation: none; } }

/* modal del evento: en pantallas bajas/móviles todo el contenido (incluidos los botones) debe poder desplazarse */
#modalEventoCal .modal-dialog { margin: .75rem auto; max-block-size: calc(100dvh - 1.5rem); }
#modalEventoCal .modal-content.evm-content {
  max-block-size: calc(100dvh - 1.5rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.evm-close { position: sticky; inset-block-start: .6rem; float: inline-end; margin: .6rem .6rem -46px 0; inset-inline-end: auto; }
.evm-actions { padding-block-end: env(safe-area-inset-bottom); }
@media (max-width: 767.98px) {
  .evm-poster, .evm-poster img { max-block-size: 34vh; }
  .evm-actions .btn-pill { flex: 1 1 100%; justify-content: center; }
  .evm-info { padding-block-end: 1.4rem; }
}
#modalEventoCal .evm-close { position: sticky; inset: .6rem auto auto auto; float: none; display: grid; margin: .6rem .6rem -46px auto; z-index: 5; }

/* barra superior fija del modal: compartir + cerrar siempre visibles, sin depender del desplazamiento */
#modalEventoCal .evm-top { position: sticky; inset-block-start: .6rem; z-index: 6; display: flex; justify-content: flex-end; gap: .5rem; margin: .6rem .6rem -46px auto; pointer-events: none; inline-size: max-content; margin-inline-start: auto; }
#modalEventoCal .evm-top > * { pointer-events: auto; }
#modalEventoCal .evm-top .evm-close { position: static; margin: 0; inset: auto; }
.evm-share { display: grid; place-items: center; inline-size: 40px; block-size: 40px; padding: 0; color: #fff; border: 0; border-radius: 50%; background: linear-gradient(135deg, var(--red-600), var(--red)); box-shadow: 0 8px 18px -6px rgb(0 0 0 / .6); cursor: pointer; transition: transform .25s var(--ease); }
.evm-share:hover { transform: scale(1.1); }
.evm-share svg { inline-size: 18px; block-size: 18px; }
/* botones de acción siempre al alcance al fondo de la ventana */
#modalEventoCal .evm-actions { position: sticky; inset-block-end: 0; z-index: 4; margin-inline: calc(-1 * clamp(1.2rem, 3vw, 2rem)); padding: .8rem clamp(1.2rem, 3vw, 2rem) calc(.8rem + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--surface) 22%); }

/* modal del evento: misma estructura que el detalle desplegable (botones compactos, alineados a la izquierda, en el flujo normal) */
#modalEventoCal .evm-actions { position: static; margin: .4rem 0 0; padding: 0; background: none; justify-content: flex-start; }
#modalEventoCal .evm-actions .btn-pill { flex: 0 0 auto; inline-size: auto; justify-content: flex-start; padding: .6rem 1.1rem; font-size: .8rem; }
@media (max-width: 767.98px) {
  #modalEventoCal .evm-actions .btn-pill { flex: 0 0 auto; }
  #modalEventoCal .evm-info { padding-block-end: 1.6rem; }
}
