/* WExpo Araucanía 2026 — design system ported from mini-site.html (Claude Design canonical).
   Light cream default · dark night theme on .theme-dark · zero rounded corners. */

:root {
  /* Brand tokens — foundations.jsx + mini-site.html */
  --cream:     #F4ECE0;
  --almond:    #E9DCC7;
  --paper:     #FBF7F0;
  --ink:       #1B1B1E;
  --ink-soft:  #3A3A40;
  /* --mist oscurecido de #9A9090 → #6B6363 para cumplir WCAG AA (4.5:1)
     sobre fondos cream/paper. El anterior daba 3.0:1, falla AA en body. */
  --mist:      #6B6363;
  --line:      #D6C9B4;
  --sage:      #8A9783;
  --sage-deep: #5E6B57;
  --slate:     #4A5258;
  --stone:     #8B8276;
  --night:     #1F2A37;
  --champagne: #B8A878;

  /* Aliases used by prototype (kept for parity) */
  --terracota: var(--sage);
  --terra-deep:var(--sage-deep);
  --blush:     var(--champagne);
  --oro:       var(--champagne);

  /* Semantic for default light theme */
  --bg:        var(--paper);       /* canvas — lightest */
  --bg-elev:   var(--cream);       /* elevated surfaces */
  --bg-soft:   var(--almond);      /* warmest light surface */
  --fg:        var(--ink);
  --fg-soft:   var(--ink-soft);
  --fg-muted:  var(--stone);       /* warm gray — readable */
  --fg-dim:    var(--mist);        /* truly secondary */
  --accent:    var(--sage);
  --accent-deep: var(--sage-deep);
  --accent-warm: var(--champagne); /* badges & accents */
  --border:    var(--line);
  --border-soft: rgba(214, 201, 180, 0.5);

  /* Fonts */
  --title:   "Special Gothic Expanded One", "DM Sans", system-ui, sans-serif;
  --display: "DM Sans", "Inter", system-ui, sans-serif;
  --serif:   "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans:    "DM Sans", "Inter", system-ui, sans-serif;
  --mono:    "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --max: 1280px;
  --pad-x: clamp(20px, 5vw, 80px);

  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

/* Dark theme override (vendor portal pages) — tuned for AA contrast */
body.theme-dark {
  --bg:        var(--night);           /* #1F2A37 */
  --bg-elev:   #2A3645;                /* +5% lift */
  --bg-soft:   #34414F;                /* card surfaces */
  --fg:        var(--cream);           /* primary text — 13.4:1 contrast */
  --fg-soft:   #E2D6C0;                /* almond-tinted — 11:1 contrast */
  --fg-muted:  #B5AC9E;                /* readable muted — 6.2:1 contrast */
  --fg-dim:    #897F70;                /* truly dim — 4.6:1 */
  --accent:    var(--sage);
  --accent-deep: #A8B5A1;              /* lighter sage for dark surfaces */
  --accent-warm: var(--champagne);
  --border:    rgba(244, 236, 224, 0.22);
  --border-soft: rgba(244, 236, 224, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-feature-settings: "ss01", "ss02";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--terracota); color: var(--cream); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Checkbox/radio inline-with-text: el text debe ir pegado al box, no
   separado por el line-height. Aplica a TODO el sitio donde un <label>
   envuelva un input[type=checkbox|radio]. */
label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
  cursor: pointer;
}
label > input[type="checkbox"],
label > input[type="radio"] {
  flex-shrink: 0;
  margin: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Skip-to-content para usuarios de teclado / lector de pantalla. Visible
   solo al recibir foco (primer tab desde el top de la página). */
.skip-link {
  position: absolute; top: -40px; left: 16px; z-index: 9999;
  padding: 10px 16px;
  background: var(--ink); color: var(--cream);
  font-family: var(--mono); font-size: 13px;
  text-decoration: none;
  transform: translateY(-100%);
  transition: transform 120ms var(--ease, ease);
}
.skip-link:focus {
  top: 8px;
  transform: translateY(0);
  outline: 2px solid var(--cream); outline-offset: 2px;
}

/* ─── Type utilities ─── */
.display { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; line-height: 0.88; }
.serif   { font-family: var(--serif); font-style: italic; line-height: 1; }
.eyebrow {
  font-family: var(--sans); font-weight: 500;
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--terracota);
  margin: 0;
}
.caption {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--mist);
}
.lead {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(20px, 2.4vw, 30px); line-height: 1.4;
  color: var(--ink-soft);
}
.mono { font-family: var(--mono); font-feature-settings: 'tnum' 1; }
.muted { color: var(--fg-muted); }
.soft  { color: var(--fg-soft); }
.center { text-align: center; }
.accent-text { color: var(--accent-deep); }

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--pad-x);
  background: transparent;
  backdrop-filter: blur(0);
  transition: background 400ms var(--ease), padding 400ms var(--ease), backdrop-filter 400ms var(--ease);
}
.nav.scrolled {
  background: rgba(244, 236, 224, 0.86);
  backdrop-filter: blur(14px);
  padding-top: 14px; padding-bottom: 14px;
}
body.theme-dark .nav.scrolled {
  background: rgba(31, 42, 55, 0.86);
}
.nav-logo {
  display: flex; align-items: center; color: var(--fg);
  transition: opacity 200ms var(--ease), transform 320ms var(--ease);
}
.nav-logo:hover { opacity: 0.85; transform: translateY(-1px); }
.nav-logo img {
  height: 48px; width: auto; display: block;
  transition: height 320ms var(--ease);
}
.nav.scrolled .nav-logo img { height: 36px; }
@media (max-width: 720px) {
  /* Larger wordmark on mobile so it carries the visual weight of the bar
     instead of competing with the account-icon button on the right. */
  .nav-logo img { height: 42px; }
  .nav.scrolled .nav-logo img { height: 34px; }
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 500; position: relative; padding: 6px 0;
  transition: color 200ms;
}
body.theme-dark .nav-link { color: var(--champagne); }
.nav-link::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--terracota); transform: scaleX(0); transform-origin: left;
  transition: transform 320ms var(--ease);
}
.nav-link:hover { color: var(--terracota); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-cta {
  padding: 12px 22px; background: var(--ink); color: var(--cream) !important;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 500;
  transition: background 200ms, transform 200ms;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--terracota); transform: translateY(-1px); }
body.theme-dark .nav-cta { background: var(--cream); color: var(--ink) !important; }
body.theme-dark .nav-cta:hover { background: var(--terracota); color: var(--cream) !important; }

/* Unified login chip — always visible (including mobile) for logged-out users. */
.nav-login {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--ink-soft);
  color: var(--ink) !important;
  transition: background 200ms, border-color 200ms, color 200ms, transform 200ms;
}
.nav-login::after { display: none; }
.nav-login svg { flex-shrink: 0; opacity: 0.85; }
.nav-login:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream) !important;
  transform: translateY(-1px);
}
body.theme-dark .nav-login {
  border-color: rgba(244, 236, 224, 0.45);
  color: var(--cream) !important;
}
body.theme-dark .nav-login:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink) !important;
}

/* ─── Mobile-only account / menu trigger ──────────────────────────────
   Visually unified with .psn-mob-titlechip (internal portal pages): inline
   pill with [ico] [LABEL] [chev], mono-uppercase typography, same hover
   tint behaviour. The label makes the navigation affordance explicit so
   users don't have to guess what the icon does.

   IMPORTANT: the base rule MUST come before the @media override.
   Same-specificity rules — the later one wins. Declaring "hidden by default"
   first lets the mobile media query promote it to inline-flex. */
.nav-account-btn {
  display: none;
  position: relative;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink, #1B1B1E);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

@media (max-width: 720px) {
  /* Mobile collapses the entire .nav-links row into the account drawer. */
  .nav-links { display: none; }
  .nav-account-btn { display: inline-flex; }
}
.nav-account-btn:hover,
.nav-account-btn[aria-expanded="true"] {
  background: rgba(31, 42, 55, 0.07);
  border-color: transparent;
}
.nav-account-btn[aria-expanded="true"] { background: rgba(31, 42, 55, 0.10); }

.nav-account-btn__ico {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--sageDeep, #5E6B57);
  flex-shrink: 0;
}
.nav-account-btn__ico svg { display: block; width: 14px; height: 14px; }
.nav-account-btn__lbl {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.nav-account-btn__chev {
  opacity: 0.55;
  flex-shrink: 0;
  transition: transform .18s ease, opacity .18s ease;
}
.nav-account-btn[aria-expanded="true"] .nav-account-btn__chev {
  transform: rotate(180deg);
  opacity: 1;
}

body.theme-dark .nav-account-btn { color: var(--cream, #F4ECE0); }
body.theme-dark .nav-account-btn:hover { background: rgba(244, 236, 224, 0.08); }
body.theme-dark .nav-account-btn[aria-expanded="true"] { background: rgba(244, 236, 224, 0.12); }
body.theme-dark .nav-account-btn__ico { color: var(--champagne, #B8A878); }

/* Tiny dot indicates the user has apps available (admin / scanner / portal). */
.nav-account-btn__dot {
  position: absolute;
  top: 2px; right: 2px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--terracota);
  box-shadow: 0 0 0 2px var(--paper);
}
body.theme-dark .nav-account-btn__dot { box-shadow: 0 0 0 2px #1F2A37; }

/* Very narrow phones (≤360px): hide the label, keep ico + chev so the
   nav doesn't crush the wordmark on the left. */
@media (max-width: 380px) {
  .nav-account-btn__lbl { display: none; }
}

/* ─── Drawer (mobile menu, full-bleed, slides from top) ──────────────── */
.nav-drawer {
  position: fixed; inset: 0;
  z-index: 60;
  background: rgba(27,27,30,0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .22s ease;
}
.nav-drawer[hidden] { display: none !important; }
.nav-drawer.is-open { opacity: 1; }

.nav-drawer__panel {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform .28s cubic-bezier(.2,.7,.2,1);
  /* Safe-area-aware for notch / dynamic island in standalone browsers. */
  padding:
    calc(18px + env(safe-area-inset-top, 0px))
    calc(18px + env(safe-area-inset-right, 0px))
    20px
    calc(18px + env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column;
  gap: 18px;
}
.nav-drawer.is-open .nav-drawer__panel { transform: translateY(0); }
body.theme-dark .nav-drawer__panel { background: #1F2A37; color: var(--cream); border-bottom-color: rgba(244,236,224,0.1); }

.nav-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
body.theme-dark .nav-drawer__head { border-bottom-color: rgba(244,236,224,0.1); }

/* User pill — el header del drawer cuando hay credencial/entrada. Integra
   el role+email arriba y un cuerpo con QR + nombre + tipo + acción "ampliar".
   La versión sin credencial mantiene el layout horizontal compacto vía .top. */
.nav-drawer__user {
  position: relative;
  display: flex; flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.nav-drawer__user.has-cred {
  border-color: color-mix(in srgb, var(--type-color, var(--sage)) 30%, var(--line));
  border-left: 4px solid var(--type-color, var(--sage));
  padding-left: 14px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--type-color, var(--sage)) 10%, var(--paper)) 0%,
    color-mix(in srgb, var(--type-color, var(--sage)) 4%, var(--paper)) 100%);
}
body.theme-dark .nav-drawer__user {
  background: rgba(244,236,224,0.04);
  border-color: rgba(244,236,224,0.10);
}
body.theme-dark .nav-drawer__user.has-cred {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--type-color, var(--sage)) 22%, rgba(255,255,255,0.04)) 0%,
    color-mix(in srgb, var(--type-color, var(--sage)) 8%, rgba(255,255,255,0.02)) 100%);
  border-color: color-mix(in srgb, var(--type-color, var(--sage)) 40%, rgba(244,236,224,0.10));
}

/* Close X flotando arriba/derecha sobre el pill */
.nav-drawer__user .nav-drawer__close {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border-radius: 8px;
}
.nav-drawer__user .nav-drawer__who { padding-right: 44px; /* espacio para el close */ }

.nav-drawer__user-cred {
  display: flex; align-items: stretch;
  gap: 14px;
}

/* CTA "Mi cuenta" integrado al pill */
.nav-drawer__user-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  background: color-mix(in srgb, var(--type-color, var(--sage)) 14%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--type-color, var(--sage)) 28%, var(--line));
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  transition: background 160ms var(--ease, ease), transform 160ms var(--ease, ease);
}
.nav-drawer__user-cta:hover {
  background: color-mix(in srgb, var(--type-color, var(--sage)) 22%, var(--paper));
}
.nav-drawer__user-cta:active { transform: scale(0.99); }
.nav-drawer__user-cta-lbl {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav-drawer__user-cta-arr {
  display: inline-flex; align-items: center;
  color: var(--type-color, var(--sage-deep));
}
body.theme-dark .nav-drawer__user-cta {
  background: color-mix(in srgb, var(--type-color, var(--sage)) 22%, rgba(244,236,224,0.06));
  border-color: color-mix(in srgb, var(--type-color, var(--sage)) 40%, rgba(244,236,224,0.12));
  color: var(--cream);
}
body.theme-dark .nav-drawer__user-cta:hover {
  background: color-mix(in srgb, var(--type-color, var(--sage)) 32%, rgba(244,236,224,0.10));
}
body.theme-dark .nav-drawer__user-cta-arr { color: var(--champagne); }

/* QR mini con badge "lupa" para indicar que se amplía */
.nav-drawer__user-qr {
  flex: 0 0 auto;
  position: relative;
  width: 96px; height: 96px;
  padding: 8px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--type-color, var(--sage)) 25%, var(--line));
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform 160ms var(--ease, ease), border-color 160ms var(--ease, ease);
}
.nav-drawer__user-qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.nav-drawer__user-qr:hover { transform: scale(1.02); border-color: var(--type-color, var(--sage)); }
.nav-drawer__user-qr:active { transform: scale(0.98); }
.nav-drawer__user-qr-zoom {
  position: absolute;
  right: -6px; bottom: -6px;
  width: 24px; height: 24px;
  background: var(--type-color, var(--sage));
  color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

.nav-drawer__user-info {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: center;
  gap: 4px;
}
.nav-drawer__user-name {
  font-family: 'Special Gothic Expanded One', var(--sans);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--ink, #1b1b1e);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
body.theme-dark .nav-drawer__user-name { color: var(--cream); }
.nav-drawer__user-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-soft, #4a4a4a);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
body.theme-dark .nav-drawer__user-tag { color: rgba(244,236,224,0.75); }
.nav-drawer__user-dot {
  flex-shrink: 0;
  width: 8px; height: 8px;
  background: var(--type-color, var(--sage));
  border-radius: 50%;
}
.nav-drawer__user-code {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  color: var(--fg-muted, #6f6f6f);
  margin-top: 2px;
}
body.theme-dark .nav-drawer__user-code { color: rgba(244,236,224,0.55); }

/* ─── QR ampliado — overlay sobre todo el drawer ─── */
.nav-drawer__qr-overlay {
  position: fixed; /* anchor a viewport, no al panel scrollable */
  inset: 0;
  z-index: 70; /* sobre .nav-drawer (z-index:60) */
  background: rgba(31, 42, 55, 0.65);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 220ms ease;
}
/* `display: flex` arriba anula el atributo HTML [hidden] — sin esta línea
   el overlay queda renderizado invisible y captura todos los clicks (X,
   "Mi cuenta", "Ampliar QR" parecían no funcionar). */
.nav-drawer__qr-overlay[hidden] { display: none; }
.nav-drawer__qr-overlay.is-open { opacity: 1; }
.nav-drawer__qr-overlay-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.92);
  color: var(--ink, #1b1b1e);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.nav-drawer__qr-overlay-close:hover { background: #fff; }
.nav-drawer__qr-overlay-card {
  background: #fff;
  border: 1px solid var(--line, rgba(0,0,0,0.10));
  border-top: 4px solid var(--type-color, var(--sage));
  border-radius: 14px;
  padding: 24px 24px 22px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  transform: scale(0.92);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav-drawer__qr-overlay.is-open .nav-drawer__qr-overlay-card { transform: scale(1); }
.nav-drawer__qr-overlay-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.20em;
  text-transform: uppercase; color: var(--ink-soft, #4a4a4a);
  margin-bottom: 10px;
}
.nav-drawer__qr-overlay-name {
  font-family: 'Special Gothic Expanded One', var(--sans);
  font-size: clamp(20px, 5.6vw, 28px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 16px;
  overflow-wrap: anywhere;
}
.nav-drawer__qr-overlay-qr {
  padding: 12px;
  border: 1px solid var(--line, rgba(0,0,0,0.08));
  border-radius: 10px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1;
  max-width: 320px;
  margin: 0 auto;
}
.nav-drawer__qr-overlay-qr img {
  width: 100%; height: auto; display: block; image-rendering: pixelated;
}
.nav-drawer__qr-overlay-code {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.26em;
  color: var(--fg-muted, #6f6f6f);
  margin-top: 14px;
}
.nav-drawer__qr-overlay-hint {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-soft, #4a4a4a);
  margin-top: 6px;
}
.nav-drawer__who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-drawer__role {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
body.theme-dark .nav-drawer__role { color: rgba(244,236,224,0.55); }
.nav-drawer__email {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  word-break: break-all;
}
body.theme-dark .nav-drawer__email { color: var(--cream); }
.nav-drawer__close {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-drawer__close:hover { background: var(--bg-soft); }
body.theme-dark .nav-drawer__close { color: var(--cream); border-color: rgba(244,236,224,0.2); }
body.theme-dark .nav-drawer__close:hover { background: rgba(244,236,224,0.08); }

.nav-drawer__section { display: flex; flex-direction: column; gap: 8px; }
.nav-drawer__h {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
body.theme-dark .nav-drawer__h { color: rgba(244,236,224,0.55); }

/* App launcher (portals + admin + scanner shortcuts) — grid of tappable cards. */
.nav-drawer__apps { display: flex; flex-direction: column; gap: 8px; }
.nav-drawer__app-form { margin: 0; }
.nav-drawer__app {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 14px 14px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}
.nav-drawer__app:active { transform: scale(0.99); }
.nav-drawer__app:hover { background: #ece2d2; }
.nav-drawer__app.is-active { border-color: var(--sage); background: rgba(138,151,131,0.1); }
body.theme-dark .nav-drawer__app { background: rgba(244,236,224,0.06); border-color: rgba(244,236,224,0.12); color: var(--cream); }
body.theme-dark .nav-drawer__app:hover { background: rgba(244,236,224,0.1); }
body.theme-dark .nav-drawer__app.is-active { border-color: var(--sage); background: rgba(138,151,131,0.18); }

/* Mini credencial/entrada en el drawer — muestra el QR como thumbnail (96px)
   al costado del nombre + tipo. Aprox 100px de alto = 2 botones del drawer
   apilados. Tap → /q/{code} para ver el QR full-screen y escanear de cerca. */
.nav-drawer__cred {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 1px solid var(--line, rgba(0,0,0,0.10));
  border-left: 4px solid var(--type-color, var(--sage));
  background: var(--paper, #fff);
  color: var(--ink, #1b1b1e);
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  transition: background 160ms var(--ease, ease), transform 160ms var(--ease, ease), border-color 160ms var(--ease, ease);
  margin-bottom: 4px;
}
.nav-drawer__cred:hover {
  border-color: var(--type-color, var(--sage));
  background: color-mix(in srgb, var(--type-color, var(--sage)) 6%, var(--paper));
}
.nav-drawer__cred:active { transform: scale(0.995); }

.nav-drawer__cred-qr {
  flex: 0 0 auto;
  width: 96px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
  border-right: 1px solid var(--line, rgba(0,0,0,0.08));
}
.nav-drawer__cred-qr img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.nav-drawer__cred-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 6px;
  padding: 10px 12px;
}
.nav-drawer__cred-eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-muted, #6f6f6f);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-drawer__cred-dot {
  flex-shrink: 0;
  width: 8px; height: 8px;
  background: var(--type-color, var(--sage));
  border-radius: 50%;
}
.nav-drawer__cred-name {
  font-family: 'Special Gothic Expanded One', var(--sans);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--ink, #1b1b1e);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.nav-drawer__cred-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--type-color, var(--sage-deep));
}

body.theme-dark .nav-drawer__cred {
  background: rgba(244,236,224,0.06);
  border-color: rgba(244,236,224,0.12);
  color: var(--cream);
}
body.theme-dark .nav-drawer__cred:hover {
  background: rgba(244,236,224,0.10);
}
body.theme-dark .nav-drawer__cred-qr {
  background: #fff; /* QR siempre fondo blanco para el escáner */
  border-right-color: rgba(244,236,224,0.10);
}
body.theme-dark .nav-drawer__cred-eyebrow { color: rgba(244,236,224,0.7); }
body.theme-dark .nav-drawer__cred-name { color: var(--cream); }
body.theme-dark .nav-drawer__cred-cta { color: var(--champagne); }
.nav-drawer__app-ico {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--sage-deep);
}
body.theme-dark .nav-drawer__app-ico { background: rgba(244,236,224,0.08); color: var(--champagne); }
.nav-drawer__app-ico svg { display: block; }
.nav-drawer__app-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.nav-drawer__app-label {
  font-family: 'Special Gothic Expanded One', var(--sans);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  color: inherit;
}
.nav-drawer__app-desc {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
body.theme-dark .nav-drawer__app-desc { color: rgba(244,236,224,0.55); }

/* Plain link rows (marketing nav + account actions). */
.nav-drawer__list { display: flex; flex-direction: column; gap: 2px; }
.nav-drawer__row {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 160ms var(--ease);
}
.nav-drawer__row:hover { background: var(--bg-soft); }
body.theme-dark .nav-drawer__row { color: var(--cream); }
body.theme-dark .nav-drawer__row:hover { background: rgba(244,236,224,0.06); }
.nav-drawer__row--primary {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}
.nav-drawer__row--primary:hover { background: var(--terracota); color: var(--cream); }
body.theme-dark .nav-drawer__row--primary { background: var(--cream); color: var(--ink); }
body.theme-dark .nav-drawer__row--primary:hover { background: var(--terracota); color: var(--cream); }
.nav-drawer__row--danger { color: #b96a5a; }
.nav-drawer__row--danger:hover { background: rgba(232,168,157,0.12); }

/* Lock body scroll while the drawer is open. */
html.nav-drawer-open, html.nav-drawer-open body { overflow: hidden; }

@media (min-width: 721px) {
  /* On desktop the drawer must NEVER appear, even if a stale class lingers. */
  .nav-drawer, .nav-account-btn { display: none !important; }
}

/* ─── HERO (logo as the headline; calm, single conversion point) ─── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px var(--pad-x) 56px;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--paper);
  overflow: hidden;
}
/* Subtle decorative warm wash on hero bg for depth (no gradient — solid layer) */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--cream);
  clip-path: polygon(0 78%, 100% 60%, 100% 100%, 0 100%);
  opacity: 1;
  z-index: 0;
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: 880px; margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  gap: 24px;
}
.hero__eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--stone);
  margin: 0;
  display: inline-flex; align-items: center; gap: 12px;
  animation: fadeUp 1s 0.05s var(--ease) backwards;
}
.hero__eyebrow::before, .hero__eyebrow::after {
  content: ""; display: block; width: 24px; height: 1px; background: var(--stone); opacity: 0.5;
}
.hero__logo {
  display: block;
  width: 100%;
  max-width: min(760px, 86vw);
  height: auto;
  margin: 0 auto;
  animation: heroRise 1.2s 0.15s var(--ease) backwards;
}
.hero__sub {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(18px, 2.4vw, 26px); line-height: 1.4;
  color: var(--ink-soft); margin: 0; max-width: 540px;
  animation: fadeUp 1.2s 0.55s var(--ease) backwards;
}
.hero__sub .accent { color: var(--accent-deep); }
.hero__cta {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  margin-top: 10px;
  animation: fadeUp 1.2s 0.75s var(--ease) backwards;
}
.hero__meta {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-muted);
  margin-top: 14px;
  animation: fadeUp 1.2s 0.95s var(--ease) backwards;
}
.hero__meta strong { color: var(--accent-deep); font-weight: 600; }
.hero__meta-dot { color: var(--line); }
.hero__meta-promo {
  color: var(--accent-deep);
  background: var(--bg-soft);
  padding: 4px 10px;
  border: 1px solid var(--line);
}

.hero__countdown {
  position: relative; z-index: 1;
  display: flex; gap: 18px; justify-content: center;
  margin: 48px auto 0; max-width: 480px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  animation: fadeUp 1.4s 1.1s var(--ease) backwards;
}
.cd-cell {
  display: flex; flex-direction: column; gap: 6px;
  min-width: 64px; text-align: center;
}
.cd-num {
  font-family: var(--mono); font-feature-settings: 'tnum' 1;
  font-size: clamp(24px, 3.4vw, 32px); line-height: 1;
  color: var(--ink);
}
.cd-lbl {
  font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--fg-muted);
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── TRUST STRIP (slim full-bleed band) ─── */
.trust {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust__row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--max); margin: 0 auto;
}
.trust__cell {
  padding: 24px var(--pad-x);
  border-right: 1px solid var(--line);
}
.trust__cell:last-child { border-right: none; }
.trust__k {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--mist); margin-bottom: 6px;
}
.trust__v {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(16px, 1.6vw, 20px); line-height: 1.2;
  color: var(--ink);
}

/* ─── Reveal on scroll ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(2)  { transition-delay: 0.08s; }
.reveal-stagger.in-view > *:nth-child(3)  { transition-delay: 0.16s; }
.reveal-stagger.in-view > *:nth-child(4)  { transition-delay: 0.24s; }
.reveal-stagger.in-view > *:nth-child(5)  { transition-delay: 0.32s; }
.reveal-stagger.in-view > *:nth-child(6)  { transition-delay: 0.40s; }
.reveal-stagger.in-view > *:nth-child(7)  { transition-delay: 0.48s; }
.reveal-stagger.in-view > *:nth-child(8)  { transition-delay: 0.56s; }
.reveal-stagger.in-view > *:nth-child(9)  { transition-delay: 0.64s; }
.reveal-stagger.in-view > *:nth-child(10) { transition-delay: 0.72s; }

/* ─── Section-title underline (sage hairline + diamond) — draws in on reveal */
.section-title { position: relative; padding-bottom: 18px; }
.section-title::after {
  content: ""; position: absolute;
  bottom: 0; left: 0;
  width: 72px; height: 2px;
  background: var(--sage);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.2s 0.35s var(--ease);
}
.section-head.in-view .section-title::after,
.section-head.reveal.in-view .section-title::after { transform: scaleX(1); }
body.theme-dark .section-title::after { background: var(--champagne); }

/* ─── Card hover treatments — lift + sage shadow (calm, premium) ─── */
.pillar, .price, .feature, .program-item, .faq-list details, .venue-photo {
  transition: transform 380ms var(--ease),
              box-shadow 380ms var(--ease),
              border-color 380ms var(--ease),
              background 380ms var(--ease);
}
.feature:hover,
.program-item:hover,
.faq-list details:hover {
  transform: translateY(-3px);
  background: rgba(138, 151, 131, 0.04);
}
.price:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(94, 107, 87, 0.45);
}
body.theme-dark .price:hover {
  box-shadow: 0 18px 40px -22px rgba(184, 168, 120, 0.30);
}

/* CTA buttons get a tiny lift + animated arrow */
.btn-primary, .btn-secondary, .btn-light {
  position: relative;
  transition: background 240ms var(--ease),
              color 240ms var(--ease),
              transform 240ms var(--ease),
              box-shadow 280ms var(--ease);
}
.btn-primary:hover, .btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -16px rgba(27, 27, 30, 0.55);
}
body.theme-dark .btn-light:hover {
  box-shadow: 0 12px 26px -16px rgba(244, 236, 224, 0.45);
}
.btn-primary .arr, .btn-secondary .arr, .btn-light .arr {
  display: inline-block;
  transition: transform 240ms var(--ease);
}
.btn-primary:hover .arr,
.btn-secondary:hover .arr,
.btn-light:hover .arr { transform: translateX(4px); }

/* ─── Eyebrow ornaments (subtle sage diamond on either side of section eyebrows) ─── */
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
}
.section-head .eyebrow::after {
  content: ""; display: inline-block;
  width: 5px; height: 5px;
  background: var(--sage);
  transform: rotate(45deg);
  opacity: 0;
  transition: opacity 0.6s 0.6s var(--ease);
}
.section-head.in-view .eyebrow::after { opacity: 0.65; }
body.theme-dark .section-head .eyebrow::after { background: var(--champagne); }

/* ─── Live pulse for the countdown seconds digit (gentle) ─── */
@keyframes cdPulse {
  0%, 70% { opacity: 1; }
  85%     { opacity: 0.55; }
  100%    { opacity: 1; }
}
.cd-cell:last-child .cd-num { animation: cdPulse 1s var(--ease) infinite; }

/* ─── Featured price-badge: subtle shimmer (sage-tinted) ─── */
@keyframes badgeShimmer {
  0%, 100% { box-shadow: 0 0 0 0 rgba(138, 151, 131, 0.0); }
  50%      { box-shadow: 0 0 0 6px rgba(138, 151, 131, 0.15); }
}
.price-badge { animation: badgeShimmer 3.2s var(--ease) infinite; }

/* ─── Hero ambient wash gets a slow shift (sage tint) ─── */
@keyframes heroAmbient {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%      { transform: translateY(-6px); opacity: 0.92; }
}
.hero::before { animation: heroAmbient 9s ease-in-out infinite; }

/* ─── MANIFIESTO ─── */
.manifest { padding: clamp(72px, 9vw, 140px) var(--pad-x); max-width: 1080px; margin: 0 auto; text-align: center; }
.manifest-quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(28px, 4.2vw, 56px); line-height: 1.25;
  color: var(--ink);
}
.manifest-quote .accent { color: var(--terracota); }
.manifest-credit {
  margin-top: 36px; font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--mist);
}

/* ─── AUDIENCE PICKER ─── */
.picker {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin: 0 var(--pad-x); border-top: 1px solid var(--line);
}
@media (max-width: 720px) { .picker { grid-template-columns: 1fr; } }
.picker-card {
  padding: 80px 56px; display: flex; flex-direction: column; gap: 24px;
  position: relative; cursor: pointer; transition: background 400ms var(--ease);
  border-right: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.picker-card:last-child { border-right: none; }
@media (max-width: 720px) {
  .picker-card { border-right: none; border-bottom: 1px solid var(--line); padding: 56px 32px; }
  .picker-card:last-child { border-bottom: none; }
}
.picker-card:hover { background: var(--paper); }
.picker-card .picker-arrow {
  position: absolute; top: 80px; right: 56px;
  font-family: var(--serif); font-style: italic; font-size: 44px;
  color: var(--terracota); transition: transform 320ms var(--ease);
}
.picker-card:hover .picker-arrow { transform: translate(8px, -4px); }
.picker-number { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--mist); }
.picker-title {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(48px, 7vw, 92px); line-height: 0.95; color: var(--ink);
}
.picker-desc {
  font-size: 16px; line-height: 1.6; color: var(--ink-soft); max-width: 460px;
}
.picker-meta { margin-top: 12px; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--terracota); }

/* ─── Section header ─── */
.section { padding: clamp(72px, 9vw, 140px) var(--pad-x); position: relative; }
.section--tight { padding-top: 0; }

/* Section background variants — create vertical rhythm */
.section--paper  { background: var(--paper); }
.section--cream  { background: var(--cream); }
.section--almond { background: var(--almond); }
.section--ink    { background: var(--ink); color: var(--cream); }
.section-head {
  display: grid; grid-template-columns: 1fr 2fr; gap: 56px;
  align-items: end; margin-bottom: 72px;
}
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; gap: 24px; } }
.section-head .eyebrow { margin-bottom: 0; }
.section-title {
  font-family: var(--title); font-weight: 400;
  font-size: clamp(44px, 6.4vw, 96px); line-height: 0.95;
  letter-spacing: 0.005em; text-transform: uppercase; margin: 0;
}
.section-title .it {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  text-transform: lowercase; letter-spacing: 0; color: var(--terracota);
}

/* ─── Feature grid (Para Novias) ─── */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); margin-top: 40px;
  border: 1px solid var(--line);
}
.feature-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .feature-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px)  { .feature-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px)  { .feature-grid--4 { grid-template-columns: 1fr; } }
.feature {
  background: var(--cream); padding: 40px 32px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background 400ms var(--ease);
}
.feature:hover { background: var(--paper); }
.feature-num { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--terracota); }
.feature-title {
  font-family: var(--serif); font-style: italic;
  font-size: 32px; line-height: 1.1; color: var(--ink);
}
.feature-desc { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

/* ─── Photo strip ─── */
.photo-strip {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px;
  margin-top: 80px;
}
@media (max-width: 720px) { .photo-strip { grid-template-columns: 1fr; } }
.photo-slot {
  aspect-ratio: 4/5;
  background: var(--almond);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
  padding: 16px;
  text-align: center;
}
.photo-slot.wide { aspect-ratio: 4/3; }

/* ─── CTA row ─── */
.cta-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap; margin-top: 80px;
  padding-top: 40px; border-top: 1px solid var(--line);
}
.cta-row-text {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.1; color: var(--ink);
  max-width: 680px;
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 22px 36px; background: var(--ink); color: var(--cream);
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 500;
  transition: background 200ms, transform 200ms;
}
.btn-primary:hover { background: var(--terracota); transform: translateY(-1px); }
.btn-primary .arr { font-family: var(--serif); font-style: italic; font-size: 22px; letter-spacing: 0; text-transform: none; font-weight: 400; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 22px 36px; border: 1px solid var(--ink); color: var(--ink);
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 500;
  transition: background 200ms, color 200ms;
  background: transparent;
}
.btn-secondary:hover { background: var(--ink); color: var(--cream); }

.btn-light {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 22px 36px; background: var(--terracota); color: var(--cream);
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 500;
  width: fit-content;
  transition: background 200ms, transform 200ms;
}
.btn-light:hover { background: var(--cream); color: var(--ink); transform: translateY(-1px); }
.btn-light .arr { font-family: var(--serif); font-style: italic; font-size: 22px; letter-spacing: 0; text-transform: none; font-weight: 400; }

.btn[disabled], .btn-primary[aria-disabled="true"], .btn-secondary[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

/* ─── EXPOSITORES (dark section in light page) ─── */
.section--dark {
  background: var(--night); color: var(--cream);
  position: relative; overflow: hidden;
}
.section--dark .eyebrow { color: var(--champagne); }
.section--dark .section-title { color: var(--cream); }
.section--dark .section-title .it { color: var(--sage); }
.section--dark .lead { color: #E2D6C0; opacity: 1; } /* almond-tinted for readability */

/* Dark-theme fallbacks for pages whose <section> isn't tagged .section--dark
   (e.g. expositores/index.php sets body theme=dark but uses bare .section).
   Without these, .lead inherits --ink-soft (#3A3A40) over a navy background → unreadable. */
body.theme-dark .lead     { color: #E2D6C0; }
body.theme-dark .eyebrow  { color: var(--champagne); }
body.theme-dark .muted    { color: var(--fg-muted); }   /* already correct, kept explicit */
body.theme-dark .section-title { color: var(--cream); }
body.theme-dark .section-title .it { color: var(--sage); }
.section--dark .section-head + .lead { max-width: 720px; margin-bottom: 56px; }

.pillars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 40px;
}
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  padding: 32px 28px 28px;
  border-top: 1px solid rgba(244, 236, 224, 0.28);
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color 400ms var(--ease), background 400ms var(--ease);
}
.pillar:hover { border-top-color: var(--sage); background: rgba(244, 236, 224, 0.03); }
.pillar-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--champagne); text-transform: uppercase;
}
.pillar-title {
  font-family: var(--serif); font-style: italic;
  font-size: 38px; line-height: 1; color: var(--cream);
}
.pillar-desc {
  font-size: 14px; line-height: 1.65;
  color: #E2D6C0; /* almond-tinted — passes AA */
}

/* ─── Pricing (adapted: 2 tramos by date) ─── */
.pricing {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: rgba(244, 236, 224, 0.22);
  margin-top: 80px;
  border: 1px solid rgba(244, 236, 224, 0.22);
}
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; } }
.price {
  background: var(--night); padding: 40px 32px;
  display: flex; flex-direction: column; gap: 16px; position: relative;
}
.price.featured { background: rgba(138, 151, 131, 0.12); }
.price-tier {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--champagne);
}
.price-name {
  font-family: var(--serif); font-style: italic;
  font-size: 36px; line-height: 1.1; color: var(--cream);
}
.price-num {
  font-family: var(--title); font-weight: 400; font-size: 52px;
  line-height: 1; letter-spacing: 0.005em; color: var(--cream); margin-top: 8px;
}
.price-num .unit {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 20px; color: var(--champagne); margin-left: 6px;
}
.price-strike {
  font-family: var(--mono); font-size: 18px;
  color: rgba(244, 236, 224, 0.55); text-decoration: line-through;
  margin-left: 10px; vertical-align: 14px;
}
.price-list {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: flex; flex-direction: column; gap: 10px;
}
.price-list li {
  font-size: 14px; line-height: 1.55;
  color: #E2D6C0; /* almond — AA pass */
  padding-left: 20px; position: relative;
}
.price-list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 1px; background: var(--sage);
}
.price-badge {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  padding: 6px 12px; background: var(--sage); color: var(--cream);
}

.expo-cta {
  margin-top: 80px; padding: 56px;
  background: rgba(244, 236, 224, 0.06);
  border: 1px solid rgba(244, 236, 224, 0.22);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
@media (max-width: 900px) { .expo-cta { grid-template-columns: 1fr; } }
.expo-cta-text {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.15; color: var(--cream);
}

/* ─── Programa ─── */
.program {
  display: grid; grid-template-columns: 200px 1fr; gap: 0;
  margin-top: 40px;
}
@media (max-width: 720px) { .program { grid-template-columns: 1fr; } }
.program-day {
  font-family: var(--title); font-weight: 400;
  font-size: clamp(44px, 6.4vw, 80px); letter-spacing: 0.005em; text-transform: uppercase;
  line-height: 0.95;
  padding-top: 20px;
}
.program-day .it { font-family: var(--serif); font-style: italic; font-weight: 400; text-transform: lowercase; letter-spacing: 0; color: var(--terracota); display: block; margin-top: 4px; font-size: 0.7em; }
.program-list { display: flex; flex-direction: column; }
.program-item {
  display: grid; grid-template-columns: 100px 1fr 1fr;
  gap: 24px; padding: 28px 0; border-top: 1px solid var(--line);
  align-items: baseline;
}
@media (max-width: 720px) {
  .program-item { grid-template-columns: 80px 1fr; }
  .program-item .program-host { grid-column: 1 / 3; padding-left: 80px; }
}
.program-item:last-child { border-bottom: 1px solid var(--line); }
.program-time { font-family: var(--mono); font-size: 14px; color: var(--terracota); letter-spacing: 0.05em; }
.program-name {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px); line-height: 1.2; color: var(--ink);
}
.program-host { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mist); }

/* ─── Venue ─── */
.venue {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-top: 40px; min-height: 540px;
}
@media (max-width: 900px) { .venue { grid-template-columns: 1fr; } }
.venue-photo {
  background: var(--almond);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--stone); padding: 24px; text-align: center;
}
.venue-text {
  padding: 56px; background: var(--paper);
  display: flex; flex-direction: column; gap: 24px; justify-content: center;
}
.venue-name {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(36px, 5vw, 64px); letter-spacing: 0.02em;
  text-transform: uppercase; line-height: 0.95;
}
.venue-desc { font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.venue-details {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 8px;
}
.venue-detail .k { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mist); margin-bottom: 4px; }
.venue-detail .v {
  font-family: var(--serif); font-style: italic;
  font-size: 18px; line-height: 1.3; color: var(--ink);
}
.venue-credit { margin-top: 12px; font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mist); }
.venue-credit a { color: var(--terracota); border-bottom: 1px solid var(--terracota); padding-bottom: 1px; }

/* ─── Logos grid (expositores confirmados / cupos) ─── */
.logos-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--line); margin-top: 40px;
  border: 1px solid var(--line);
}
@media (max-width: 900px) { .logos-grid { grid-template-columns: repeat(3, 1fr); } }
.logo-cell {
  aspect-ratio: 1; background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(15px, 1.4vw, 20px); line-height: 1.1;
  color: var(--ink-soft); padding: 16px; text-align: center;
  transition: background 320ms var(--ease), color 320ms var(--ease);
  text-decoration: none;
}
.logo-cell:hover { background: var(--paper); color: var(--ink); }
.logo-cell--vacant {
  color: var(--mist);
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.logo-cell--vacant:hover { background: var(--almond); color: var(--terracota); }

/* ─── FAQ ─── */
.faq-list { margin-top: 40px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 28px 0; }
summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; font-family: var(--serif); font-style: italic;
  font-size: clamp(20px, 2.6vw, 32px); line-height: 1.2; color: var(--ink);
  transition: color 200ms;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; font-family: var(--serif); font-style: normal;
  font-size: 32px; color: var(--terracota); transition: transform 320ms;
  flex-shrink: 0; line-height: 1;
}
details[open] summary::after { transform: rotate(45deg); }
details:hover summary { color: var(--terracota); }
.faq-answer {
  margin-top: 16px; font-size: 15px; line-height: 1.7;
  color: var(--ink-soft); max-width: 800px;
}

/* ─── Footer ─── */
.footer {
  background: var(--ink); color: var(--cream);
  padding: 0 var(--pad-x) 32px;
}

/* Direct-access band — sits above footer-main, primary conversion paths */
.footer-cta {
  display: grid; grid-template-columns: 1fr auto; gap: 40px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid rgba(244, 236, 224, 0.16);
}
.footer-cta__copy { display: flex; flex-direction: column; gap: 6px; }
.footer-cta__eyebrow {
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--mist);
}
.footer-cta__title {
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1;
  color: var(--cream);
}
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-cta__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500;
  color: var(--cream);
  border: 1px solid rgba(244, 236, 224, 0.32);
  transition: background 200ms, border-color 200ms, color 200ms, transform 200ms;
}
.footer-cta__btn .arr {
  font-family: var(--serif); font-style: italic;
  letter-spacing: 0; text-transform: none; font-size: 15px;
}
.footer-cta__btn:hover {
  background: var(--cream); color: var(--ink); border-color: var(--cream);
  transform: translateY(-1px);
}
.footer-cta__btn--primary {
  background: var(--cream); color: var(--ink); border-color: var(--cream);
}
.footer-cta__btn--primary:hover {
  background: var(--terracota); border-color: var(--terracota); color: var(--cream);
}
@media (max-width: 720px) {
  .footer-cta { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .footer-cta__actions { flex-direction: column; align-items: stretch; }
  .footer-cta__btn { justify-content: space-between; }
}

.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px;
  padding: 80px 0;
  border-bottom: 1px solid rgba(244, 236, 224, 0.16);
}
.footer-logo { grid-column: span 1; }
@media (max-width: 1100px) {
  .footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; padding-bottom: 16px; border-bottom: 1px solid rgba(244, 236, 224, 0.12); margin-bottom: 16px; }
  .footer-tag { max-width: none; }
}
@media (max-width: 720px) { .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-main { grid-template-columns: 1fr; } }
.footer-logo img { width: 320px; max-width: 100%; height: auto; display: block; }
.footer-tag {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; line-height: 1.4; color: var(--blush);
  margin-top: 24px; max-width: 360px;
}
.footer-col-head { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--mist); margin-bottom: 24px; }
.footer-col a, .footer-col li {
  display: block; padding: 6px 0; color: var(--cream);
  font-size: 14px; transition: color 200ms;
}
.footer-col a:hover { color: var(--terracota); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--mist); flex-wrap: wrap; gap: 16px;
}
.footer-bottom a { color: var(--terracota); }

/* ===========================================================
   Vendor portal (dark theme) — reuses tokens via body.theme-dark
   =========================================================== */

/* Forms */
.form { display: grid; gap: 24px; max-width: 720px; }
.form__row { display: grid; gap: 10px; }
.form__row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form label {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--fg-soft); font-weight: 500;
}
.form input, .form textarea, .form select {
  background: var(--bg-elev); border: 1px solid var(--border);
  color: var(--fg); padding: 14px 16px;
  font-family: var(--sans); font-size: 15px;
  border-radius: 0; width: 100%;
  transition: border-color 200ms, background 200ms;
}
.form input::placeholder, .form textarea::placeholder { color: var(--fg-muted); opacity: 0.7; }
.form input:hover, .form textarea:hover, .form select:hover {
  background: var(--bg-soft);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--accent); background: var(--bg-soft);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
}
.form textarea { min-height: 140px; resize: vertical; }
.form__hint {
  font-size: 12px; color: var(--fg-muted);
  font-family: var(--mono); letter-spacing: 0.04em;
}
.form__error {
  background: color-mix(in srgb, #D88E7F 12%, var(--bg));
  border: 1px solid #D88E7F; color: #E8A89D;
  padding: 14px 16px; font-size: 14px;
}
.form__success {
  background: color-mix(in srgb, var(--accent) 15%, var(--bg));
  border: 1px solid var(--accent); color: #B4C0AC;
  padding: 14px 16px; font-size: 14px;
}
body.theme-light .form__success { color: var(--accent-deep); }
body.theme-light .form__error { color: #A05442; }

/* Bank info card */
.bank {
  background: var(--bg-elev); border: 1px solid var(--border);
  padding: 40px; max-width: 560px;
  position: relative;
}
.bank::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 32px; height: 1px; background: var(--accent);
}
.bank__row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border-soft);
}
.bank__row:last-child { border-bottom: 0; }
.bank__label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--fg-soft); /* upgraded from --fg-muted for legibility */
}
.bank__value { color: var(--fg); font-family: var(--sans); text-align: right; font-weight: 500; }
.bank__value--mono { font-family: var(--mono); }

/* Pills */
.pill {
  display: inline-block; padding: 5px 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; border: 1px solid;
}
.pill--pending   { color: #D6B57A; border-color: #D6B57A; }
.pill--paid      { color: var(--sage); border-color: var(--sage); }
.pill--expired,
.pill--cancelled { color: #C77B6A; border-color: #C77B6A; }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td {
  text-align: left; padding: 14px 12px;
  border-bottom: 1px solid var(--border);
}
.table th {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--fg-muted); font-weight: 500;
}

/* Stand picker — SVG floor plan */
.floorplan { background: var(--bg-elev); border: 1px solid var(--border); padding: 32px; }
.floorplan__svg { width: 100%; height: auto; max-height: 80vh; display: block; }
.fp-room { fill: var(--night); stroke: var(--border); stroke-width: 2; }
.fp-grid line { stroke: var(--border); stroke-width: 0.5; opacity: 0.35; }
.fp-pasarela { fill: var(--accent); fill-opacity: 0.18; stroke: var(--accent); stroke-width: 1.5; }
.fp-pasarela-label { font-family: var(--mono); font-size: 14px; letter-spacing: 3px; fill: var(--accent); opacity: 0.7; pointer-events: none; }
.fp-access { stroke: var(--night); stroke-width: 6; }
.fp-label { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; fill: var(--fg-muted); }
.fp-pillar { fill: rgba(0,0,0,0.45); stroke: var(--fg-muted); stroke-width: 1; }
.fp-salon  { fill: rgba(143, 161, 192, 0.08); stroke: rgba(143, 161, 192, 0.45); stroke-width: 1.5; stroke-dasharray: 6 4; }
.fp-table  { fill: rgba(232, 168, 157, 0.18); stroke: rgba(232, 168, 157, 0.55); stroke-width: 1; }
.stand { cursor: pointer; }
.stand rect, .stand circle { transition: fill 0.15s var(--ease), stroke 0.15s var(--ease); }
.stand text { font-family: var(--mono); letter-spacing: 1px; pointer-events: none; }
.stand__dims { font-family: var(--mono); letter-spacing: 0.5px; opacity: 0.65; pointer-events: none; }
.stand.is-standard rect, .stand.is-standard circle { fill: var(--night); stroke: rgba(244, 236, 224, 0.55); stroke-width: 1.5; }
.stand.is-standard text { fill: var(--cream); }
.stand.is-premium rect, .stand.is-premium circle  { fill: var(--night); stroke: var(--accent); stroke-width: 1.75; }
.stand.is-premium text  { fill: var(--accent); }
.stand.is-occupied      { cursor: not-allowed; }
.stand.is-occupied rect, .stand.is-occupied circle { fill: var(--night); stroke: var(--mist); stroke-width: 1; stroke-dasharray: 4 4; }
.stand.is-occupied text { fill: var(--mist); }
a.stand:hover rect, a.stand:focus rect, a.stand:hover circle, a.stand:focus circle { fill: var(--accent); stroke: var(--accent); }
a.stand:hover text, a.stand:focus text { fill: var(--night); }

.legend {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--fg-muted);
  margin-top: 24px;
}
.legend__swatch {
  display: inline-block; width: 14px; height: 14px;
  vertical-align: middle; margin-right: 8px;
  border: 1.5px solid var(--border); background: var(--night);
}
.legend__swatch--standard { border-color: rgba(244, 236, 224, 0.55); }
.legend__swatch--premium  { border-color: var(--accent); }
.legend__swatch--occupied { border-color: var(--mist); border-style: dashed; }

/* ─── Sticky mobile CTA ─── */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: none;
  /* Bottom padding = breathing room + home-indicator inset. Without the +14px
     baseline the buttons sit flush against the edge on Android (inset=0) and
     just kiss the home-bar on iPhone. */
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  gap: 10px;
  background: rgba(27, 27, 30, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(244, 236, 224, 0.18);
  transform: translateY(100%);
  transition: transform 360ms var(--ease);
  pointer-events: none;
}
.mobile-cta.is-visible { transform: translateY(0); pointer-events: auto; }
.mobile-cta__btn {
  flex: 1; text-align: center;
  padding: 16px 12px;
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.mobile-cta__btn--primary {
  background: var(--sage); color: var(--cream);
}
.mobile-cta__btn--primary:hover { background: var(--sage-deep); }
.mobile-cta__btn--ghost {
  background: transparent;
  border: 1px solid var(--cream);
  color: var(--cream);
}
.mobile-cta__btn--ghost:hover { background: var(--cream); color: var(--ink); }

@media (max-width: 720px) {
  .mobile-cta { display: flex; }
}

/* ─── Mobile overrides (≤ 720px) ─── */
@media (max-width: 720px) {
  :root { --pad-x: 20px; }
  .hero { padding-top: 92px; padding-bottom: 60px; min-height: auto; }
  .hero__inner { gap: 18px; }
  .hero__logo { max-width: min(360px, 78vw); }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn-primary,
  .hero__cta .btn-secondary { width: 100%; justify-content: center; padding: 18px 24px; }
  .hero__countdown { margin-top: 24px; gap: 10px; }
  .cd-cell { min-width: 50px; }
  /* Body bottom padding mirrors the sticky CTA height so the last section
     never sits under the bar. Math: 14 (top pad) + 48 (button min-height) +
     14 (bottom pad) + env(safe-area-inset-bottom) ≈ 76 + inset. */
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .trust__row { grid-template-columns: 1fr 1fr; }
  .trust__cell { padding: 18px 20px; border-right: 1px solid var(--line); }
  .trust__cell:nth-child(2) { border-right: none; }
  .trust__cell:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-head { margin-bottom: 40px; gap: 16px; }
  .section-title { font-size: clamp(34px, 9vw, 60px); }
  .picker-card { padding: 48px 24px; }
  .picker-card .picker-arrow { top: 48px; right: 24px; font-size: 36px; }
  .pillars { gap: 14px; }
  .pillar { padding: 24px 20px; }
  .pillar-title { font-size: 28px; }
  .price { padding: 32px 24px; }
  .price-num { font-size: 44px; }
  .expo-cta { padding: 32px 24px; }
  .feature { padding: 32px 22px; }
  .feature-title { font-size: 26px; }
  .cta-row { gap: 24px; margin-top: 48px; padding-top: 32px; }
  .program-day { padding-top: 0; margin-bottom: 8px; }
  .venue-text { padding: 36px 24px; }
  .venue-details { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer { padding: 64px var(--pad-x) 28px; }
  .footer-logo img { width: 200px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero__logo, .hero__headline, .hero__sub, .hero__cta, .hero__meta, .hero__eyebrow, .hero__countdown { transform: none !important; opacity: 1 !important; animation: none !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ─── Registration form (dark theme) ─── */
.reg { padding-top: 180px; }
.reg-form { display: flex; flex-direction: column; gap: 48px; max-width: 920px; }
.reg-section {
  border: none; padding: 0; margin: 0;
  border-top: 1px solid var(--border-soft);
  padding-top: 32px;
}
.reg-section:first-of-type { border-top: none; padding-top: 0; }
.reg-section legend {
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--title); font-size: clamp(22px, 2.6vw, 30px);
  color: var(--cream); margin-bottom: 6px; padding: 0;
}
.reg-n {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em;
  color: var(--champagne); padding: 4px 8px;
  border: 1px solid var(--champagne);
}
.reg-hint { color: var(--fg-muted); font-size: 13px; margin: 0 0 24px; max-width: 60ch; }
.reg-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px;
}
@media (max-width: 720px) { .reg-grid-2 { grid-template-columns: 1fr; } }
.reg-row { display: flex; flex-direction: column; gap: 6px; }
.reg-row--full { grid-column: 1 / -1; }
.reg-row span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--fg-muted);
}
.reg-row span small { font-size: 9.5px; letter-spacing: 0.12em; color: var(--fg-dim); text-transform: none; margin-left: 6px; }
.reg-row input, .reg-row textarea {
  padding: 12px 14px;
  background: var(--bg-elev); color: var(--cream);
  border: 1px solid var(--border);
  font-family: var(--sans); font-size: 14px;
}
.reg-row input:focus, .reg-row textarea:focus {
  outline: none; border-color: var(--sage); background: var(--bg-soft);
}
.reg-row input[readonly] { opacity: 0.7; cursor: not-allowed; }
.reg-row textarea { resize: vertical; min-height: 88px; }

.reg-asset-row {
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: 28px; align-items: start;
}
@media (max-width: 860px) { .reg-asset-row { grid-template-columns: 1fr; } }
.reg-asset-input input[type="file"] {
  padding: 14px;
  background: var(--bg-elev); color: var(--fg-soft);
  border: 1px dashed var(--border); width: 100%;
  font-family: var(--sans); font-size: 13px;
}
.reg-current-file { display: block; margin-top: 8px; color: var(--fg-muted); font-size: 12px; }
.reg-current-file a { color: var(--accent-deep); border-bottom: 1px solid var(--accent-deep); }

.reg-asset-guide {
  background: var(--bg-elev); border: 1px solid var(--border-soft);
  padding: 18px 20px;
}
.reg-guide-title {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--champagne); margin-bottom: 14px;
}
.reg-asset-guide ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  color: var(--fg-soft); font-size: 13px; line-height: 1.55;
}
.reg-asset-guide ul li { padding-left: 14px; position: relative; }
.reg-asset-guide ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 1px; background: var(--sage);
}
.reg-guide-samples {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.reg-sample-swatch {
  aspect-ratio: 1;
  border: 1px solid var(--border-soft);
}
.reg-sample-cap {
  font-size: 10.5px; line-height: 1.4; color: var(--fg-muted); margin-top: 6px;
}

.reg-submit { margin-top: 16px; }
.reg-fine { color: var(--fg-muted); font-size: 12px; margin-top: 12px; }

/* Reservation summary card (reservar.php) */
.reg-summary {
  border: 1px solid var(--border-soft);
  background: var(--bg-elev);
  padding: 24px 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.reg-summary-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: var(--fg-soft);
}
.reg-summary-row span {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--fg-muted);
}
.reg-summary-row strong { color: var(--cream); font-weight: 500; }

/* ─── Public registration (/registro/) ─── */
.party-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--border);
}
.party-toggle__opt {
  display: flex; align-items: center; justify-content: center;
  padding: 18px 12px;
  cursor: pointer;
  border-right: 1px solid var(--border);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--bg-elev);
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.party-toggle__opt:last-child { border-right: none; }
.party-toggle__opt input { position: absolute; opacity: 0; pointer-events: none; }
.party-toggle__opt:hover { background: var(--bg-soft); }
.party-toggle__opt:has(input:checked) {
  background: var(--ink); color: var(--cream);
}

.reg-success { background: var(--cream); }
.reg-ticket-link {
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: baseline;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 160ms var(--ease), transform 160ms var(--ease);
}
.reg-ticket-link:hover { border-color: var(--accent); transform: translateY(-1px); }
.reg-ticket-name { font-weight: 500; font-size: 16px; }
.reg-ticket-code { font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em; color: var(--fg-muted); }
.reg-ticket-arr {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent-deep);
}

/* ─── Public ticket (/ticket/) ─── */
.ticket {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(20px, 4vw, 36px);
  margin-bottom: 24px;
  break-inside: avoid;
}
.ticket--mine { border-color: var(--accent); }
.ticket--other { opacity: 0.86; }
.ticket__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 24px;
}
.ticket__eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--fg-muted);
}
.ticket__name {
  font-family: var(--title); font-weight: 400;
  font-size: clamp(22px, 4vw, 36px); line-height: 1.05;
  letter-spacing: 0.005em; text-transform: uppercase;
  margin-top: 8px; color: var(--ink);
  /* Long Chilean compound names ("María Fernanda González Rodríguez") must
     wrap before they push the card edge. `anywhere` lets the browser break
     even inside a word as a last resort. */
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* Hero title on /ticket/?t=… — name only, no period. Safer clamp than
   .section-title (44–96px), because a real holder name can be long and the
   section-title floor of 44px was already overflowing on narrow mobile. */
.ticket-hero {
  font-family: var(--title); font-weight: 400;
  font-size: clamp(28px, 6vw, 56px); line-height: 1;
  letter-spacing: 0.005em; text-transform: uppercase;
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.ticket__status {
  margin-top: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent-deep);
}
.ticket__view {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent-deep);
  text-decoration: none; padding: 6px 0;
  border-bottom: 1px solid currentColor;
}
.ticket__qr {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.ticket__qr img {
  width: 100%; max-width: 280px; height: auto;
  background: #fff; padding: 12px; border: 1px solid var(--line);
}
.ticket__code {
  font-family: var(--mono); font-size: 18px; letter-spacing: 0.28em;
  color: var(--ink);
}
.ticket__meta {
  margin-top: 20px;
  display: grid; gap: 10px;
  font-size: 13px;
}
.ticket__meta > div { display: grid; grid-template-columns: 100px 1fr; gap: 16px; }
.ticket__meta span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--fg-muted);
}
.ticket__meta strong { color: var(--ink); font-weight: 500; }
.ticket__actions {
  margin-top: 24px;
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* Print: ticket-only, no chrome */
@media print {
  body { background: #fff !important; }
  .nav, .footer, .no-print, .hero__countdown, .ticket--other { display: none !important; }
  .ticket--mine { border: 1px solid #ccc; }
}

/* ─── /mi-cuenta/ — attendee portal credential card ─────────────────────────
   The ticket is presented as a boarding-pass-style credential: portrait on
   mobile (the dominant surface), with a colored stripe per ticket type,
   the holder's name as the hero, and the QR centered and tappable to expand.
   Each card sets `--type-color` inline so the stripe + chip pick up the
   ticket_types.color_hex value. ─────────────────────────────────────────── */
.mc-tickets { display: grid; gap: 20px; }

.mc-ticket {
  --type-color: var(--accent, #8A9783);
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0;
  /* Two-column on roomy widths: QR on the left, info on the right. Falls
     back to stacked at ≤640px via the media query below. */
  display: grid;
  grid-template-columns: 156px 1fr;
  grid-template-areas:
    "stripe stripe"
    "qr     top"
    "qr     hero"
    "qr     code"
    "qr     body";
  overflow: hidden;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease);
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 6px 18px -12px rgba(0,0,0,0.15);
}
.mc-ticket::before {
  grid-area: stripe;
  content: '';
  display: block;
  height: 3px;
  background: var(--type-color);
}
.mc-ticket:hover { border-color: var(--type-color); }

/* Top bar: event eyebrow + type chip. Brand mark dropped — the page already
   identifies the event in the header above the tickets list. */
.mc-ticket__top {
  grid-area: top;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px 4px;
}
.mc-ticket__brand { display: none; }
.mc-ticket__top-meta { flex: 1; min-width: 0; }
.mc-ticket__eyebrow {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--fg-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mc-ticket__type {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 2px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink);
}
.mc-ticket__type-dot {
  width: 7px; height: 7px;
  background: var(--type-color);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Hero: name — compact now, no separate "Titular" label. */
.mc-ticket__hero {
  grid-area: hero;
  padding: 2px 14px 6px;
  text-align: left;
}
.mc-ticket__name-label { display: none; }
.mc-ticket__name {
  font-family: var(--title); font-weight: 400;
  font-size: clamp(16px, 2.6vw, 20px); line-height: 1.15;
  letter-spacing: 0.005em; text-transform: uppercase; color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

/* QR — left column, smaller, clickable. Tap hint hidden on desktop. */
.mc-ticket__qr-link {
  grid-area: qr;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  padding: 12px 0 12px 14px;
  margin: 0;
  max-width: none;
  width: auto;
  align-items: center;
  justify-content: center;
}
.mc-ticket__qr-link:hover .mc-ticket__qr { border-color: var(--type-color); }
.mc-ticket__qr {
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px;
  aspect-ratio: 1 / 1;
  width: 124px;
  transition: border-color 160ms var(--ease);
}
.mc-ticket__qr img { width: 100%; height: auto; display: block; image-rendering: pixelated; }
.mc-ticket__qr-hint {
  font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--fg-muted);
  text-align: center;
  margin-top: 6px;
}

/* Ticket code — small, under the name on the right side. */
.mc-ticket__code {
  grid-area: code;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em;
  color: var(--fg-muted);
  text-align: left;
  padding: 0 14px 6px;
}

/* Body holds status, siblings, confirm/cancel blocks, actions */
.mc-ticket__body {
  grid-area: body;
  display: grid; gap: 8px; align-content: start;
  padding: 8px 14px 14px;
  border-top: 1px dashed var(--line);
}

/* Past events render with the type-color stripe muted */
.mc-ticket:not(.is-current)::before { opacity: 0.35; }

/* Stack on narrow screens — QR full-width on top, info below. */
@media (max-width: 640px) {
  .mc-ticket {
    grid-template-columns: 1fr;
    grid-template-areas:
      "stripe"
      "top"
      "qr"
      "hero"
      "code"
      "body";
  }
  .mc-ticket__top { padding: 12px 14px 6px; }
  .mc-ticket__qr-link { padding: 8px 14px; }
  .mc-ticket__qr { width: 140px; }
  .mc-ticket__hero { padding-top: 4px; text-align: center; }
  .mc-ticket__code { text-align: center; }
}
.mc-ticket__statusrow { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.mc-ticket__status {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid currentColor;
}
.mc-ticket__status--active    { color: var(--accent-deep); }
.mc-ticket__status--confirmed { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.mc-ticket__status--in        { color: var(--ink); background: var(--accent); border-color: var(--accent); }
.mc-ticket__status--expired   { color: #9A8A78; }
.mc-ticket__status--cancelled { color: #9A8A78; text-decoration: line-through; }
.mc-ticket__meta {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--fg-dim);
}
.mc-ticket__siblings {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px;
}
.mc-ticket__actions {
  margin-top: 12px;
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
}
.mc-ticket__actions .btn-secondary[disabled] { opacity: 0.5; cursor: not-allowed; }
.mc-ticket__cancel {
  background: none; border: none; padding: 4px 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--fg-dim); cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px;
}
.mc-ticket__cancel:hover { color: var(--ink); }
/* Compact "credencial" link button — inline in dashboards (/cuenta/,
   /expositores/cuenta.php). One-tap shortcut to /q/{code} without taking
   the vertical space of an embedded credential card. */
.account-credlink {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 14px;
  border: 1px solid var(--line, rgba(0,0,0,0.10));
  border-left: 4px solid var(--type-color, var(--accent, #8A9783));
  background: var(--cream, #f5efe3);
  color: var(--ink, #1b1b1e);
  text-decoration: none;
  border-radius: 4px;
  width: 100%;
  max-width: 520px;
  margin: 12px 0 20px;
  transition: background 160ms var(--ease, ease), transform 160ms var(--ease, ease);
}
.account-credlink:hover {
  background: color-mix(in srgb, var(--type-color, var(--accent)) 8%, var(--cream));
}
.account-credlink:active { transform: scale(0.995); }
.account-credlink__ico {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--type-color, var(--accent)) 16%, var(--paper, #fff));
  color: var(--type-color, var(--accent));
}
.account-credlink__text {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.account-credlink__label {
  font-family: var(--mono, 'DM Mono', monospace);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
}
.account-credlink__meta {
  font-size: 12.5px;
  color: var(--fg-muted, #6f6f6f);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.account-credlink__arr {
  flex: 0 0 auto;
  font-family: var(--mono); font-size: 14px;
  color: var(--type-color, var(--accent));
}
body.theme-dark .account-credlink {
  background: rgba(244,236,224,0.06);
  border-color: rgba(244,236,224,0.14);
  color: var(--cream);
}
body.theme-dark .account-credlink__ico {
  background: rgba(244,236,224,0.10);
}
body.theme-dark .account-credlink__meta {
  color: rgba(244,236,224,0.7);
}

/* Sticky mobile shortcut → jumps to #mi-credencial. Hidden on desktop,
   hidden while the credential is already on screen (toggled via JS).
   Sits ABOVE the floating bottom-nav chip on mobile (z-index higher than
   .psn-bottomnav's 100, position offset clears the chip's ~70px footprint). */
.mc-credfab {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--ink, #1b1b1e);
  color: var(--cream, #f5efe3);
  text-decoration: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.18);
  z-index: 110;
  transition: opacity 180ms ease, transform 200ms ease;
}
.mc-credfab__ico { display: inline-flex; align-items: center; }
.mc-credfab.is-hidden { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(8px); }
@media (max-width: 860px) {
  .mc-credfab { display: inline-flex; }
}
/* When the portal bottom-nav is also showing (≤720px on dashboard pages),
   lift the FAB so it sits above the chip instead of being clipped behind it. */
@media (max-width: 720px) {
  body.has-portal-nav .mc-credfab {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
}

.mc-flash {
  padding: 14px 18px;
  border: 1px solid var(--line); background: var(--cream);
  font-size: 14px; line-height: 1.5; color: var(--ink);
}
.mc-flash--ok  { border-color: var(--accent); }
.mc-flash--err { border-color: #C76A5C; color: #6B2C24; background: #FBEDEA; }

/* ─── Subtle "set password" promo on /mi-cuenta/ ─── */
.pw-promo {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  /* Separa el banner del párrafo "lead" + lista de tickets que viene a
     continuación; antes el bottom margin era 0 y el contenido se pegaba. */
  margin: 14px 0 28px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  flex-wrap: wrap;
}
.pw-promo__ico {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--sage-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.pw-promo__body { flex: 1 1 220px; min-width: 0; }
.pw-promo__title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0;
}
.pw-promo__desc {
  margin: 2px 0 0;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.45;
  color: var(--fg-soft);
}
.pw-promo__actions {
  display: flex; gap: 8px; align-items: center; flex: 0 0 auto;
}
.pw-promo__cta {
  display: inline-block;
  padding: 9px 16px;
  background: var(--ink);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.pw-promo__cta:hover { background: var(--terracota); }
.pw-promo__dismiss-form { margin: 0; }
.pw-promo__dismiss {
  background: transparent;
  border: 0;
  color: var(--fg-muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 9px 6px;
}
.pw-promo__dismiss:hover { color: var(--ink); }
@media (max-width: 560px) {
  .pw-promo__actions { width: 100%; justify-content: space-between; }
  .pw-promo__cta { flex: 1 1 auto; text-align: center; }
}

@media (max-width: 600px) {
  .mc-ticket { grid-template-columns: 1fr; }
  .mc-ticket__qr { max-width: 200px; margin: 0 auto; }
}

/* ─── Public expositor card (/expositor/?c=…) ────────────────────────────── */
.expositor-card {
  padding-top: 140px;
  padding-bottom: 80px;
  max-width: 760px;
  margin: 0 auto;
}
.expositor-card__inner {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: clamp(28px, 6vw, 56px);
  display: flex; flex-direction: column; gap: 24px;
}
.expositor-card__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap;
  padding-bottom: 18px; border-bottom: 1px solid var(--border-soft);
}
.expositor-card__stand {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-soft);
}
.expositor-card__stand strong { color: var(--accent-deep); letter-spacing: 0.22em; }
.expositor-card__zone { color: var(--fg-muted); }
.expositor-card__tier {
  display: inline-block; margin-left: 10px; padding: 3px 9px;
  background: var(--accent-warm); color: var(--ink);
  font-size: 10px; letter-spacing: 0.18em;
}
.expositor-card__title {
  font-family: var(--title); font-weight: 500;
  font-size: clamp(32px, 6vw, 52px); line-height: 1;
  margin: 0; color: var(--fg);
  text-transform: uppercase; letter-spacing: 0.01em;
}
.expositor-card__rubro {
  font-size: clamp(18px, 2.6vw, 24px);
  color: var(--accent-deep);
  margin-top: -8px;
}
.expositor-card__logo {
  margin: 12px 0;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  min-height: 180px;
}
.expositor-card__logo img {
  max-width: 280px; max-height: 160px; width: auto; height: auto;
}
.expositor-card__logo-fallback { opacity: 0.6; max-height: 80px !important; }
.expositor-card__desc {
  font-size: 16px; line-height: 1.7; color: var(--fg-soft);
  margin: 0;
}
.expositor-card__links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.expositor-card__link {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.expositor-card__link:hover { border-color: var(--accent); background: var(--paper); }
.expositor-card__link-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--fg-muted);
}
.expositor-card__link-value { font-size: 15px; color: var(--fg); }
.expositor-card__cta { margin-top: 4px; }
.expositor-card__softcta {
  display: inline-block;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent-deep);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}
.expositor-card__foot {
  margin-top: 20px; padding-top: 22px; border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 18px; flex-wrap: wrap;
}
.expositor-card__event { font-size: 14px; color: var(--fg-soft); line-height: 1.5; }
.expositor-card__event .eyebrow { display: block; margin-bottom: 6px; }
.expositor-card__home {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent-deep);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}
@media (max-width: 600px) {
  .expositor-card { padding-top: 110px; }
  .expositor-card__links { grid-template-columns: 1fr; }
  .expositor-card__foot { flex-direction: column; align-items: flex-start; }
}

/* ─── Favorite toggle button (graceful if Agent F's favorites ship later) ── */
.fav-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  background: var(--accent); color: var(--cream);
  border: 1px solid var(--accent);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}
.fav-btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.fav-btn.is-on { background: var(--accent-warm); border-color: var(--accent-warm); color: var(--ink); }
.fav-btn__star { font-size: 16px; line-height: 1; }

/* ─── Vendor portal: stand QR cards (dark theme) ─────────────────────────── */
.stand-qr-grid {
  margin-top: 24px;
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.stand-qr-card {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  padding: 24px;
  display: flex; flex-direction: column; gap: 18px;
}
.stand-qr-card__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border-soft);
}
.stand-qr-card__qr {
  background: var(--paper); padding: 16px;
  display: flex; align-items: center; justify-content: center;
}
.stand-qr-card__qr img { width: 100%; height: auto; max-width: 220px; }
.stand-qr-card__meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding: 12px 0; border-top: 1px solid var(--border-soft);
}
.stand-qr-card__actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 4px;
}
.stand-qr-card__actions .btn-light,
.stand-qr-card__actions .btn-secondary { justify-self: stretch; text-align: center; }

/* ─── Printable Carta (Letter) poster (/expositores/poster.php) ─────────────
   Carta = 216 × 279 mm (8.5" × 11"). Standard in Chile. */
.qr-poster {
  width: 216mm; height: 279mm;
  background: var(--cream);
  color: var(--ink);
  padding: 16mm 16mm 12mm;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px -16px rgba(31, 42, 55, 0.32);
  font-family: var(--sans);
  position: relative;
  overflow: hidden;
}
/* Subtle paper texture via a very light dotted overlay (kept understated) */
.qr-poster::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 1px 1px, rgba(94,107,87,0.04) 1px, transparent 1px) 0 0 / 6mm 6mm;
  pointer-events: none;
}

/* ── Header: event brand + vendor logo (or edition mark) ── */
.qr-poster__head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16mm;
  padding-bottom: 10mm;
}
.qr-poster__brand { height: 14mm; width: auto; }
.qr-poster__vlogo {
  height: 18mm; min-width: 18mm;
  display: flex; align-items: center; justify-content: flex-end;
}
.qr-poster__vlogo img {
  max-height: 18mm; max-width: 60mm; width: auto; height: auto;
  object-fit: contain;
}
.qr-poster__edition {
  text-align: right; display: flex; flex-direction: column; gap: 2mm;
  font-family: var(--mono); font-size: 8pt; letter-spacing: 0.36em;
  text-transform: uppercase; color: var(--accent-deep);
}
.qr-poster__edition .serif {
  font-family: var(--serif); font-style: italic; font-size: 12pt;
  text-transform: none; letter-spacing: 0; color: var(--ink);
}

/* ── Hairline + diamond rule (used as a section divider) ── */
.qr-poster__rule {
  display: flex; align-items: center; gap: 4mm;
  margin: 2mm 0 6mm;
}
.qr-poster__rule-line {
  flex: 1; height: 0.4mm;
  background: var(--accent-deep);
}
.qr-poster__rule-diamond {
  width: 2.4mm; height: 2.4mm;
  background: var(--accent-deep);
  transform: rotate(45deg);
}

/* ── Lead: stand eyebrow + vendor name + rubro + IG ── */
.qr-poster__lead {
  text-align: center;
  margin-top: 4mm;
  margin-bottom: 6mm;
}
.qr-poster__eyebrow {
  display: inline-flex; align-items: center; gap: 6mm;
  font-family: var(--mono); font-size: 10pt; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--accent-deep);
  margin-bottom: 6mm;
}
.qr-poster__premium {
  color: var(--champagne);
  letter-spacing: 0.28em;
}
.qr-poster__vendor {
  font-family: var(--title);
  font-weight: 400;
  font-size: 44pt; line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  word-break: break-word;
}
.qr-poster__rubro {
  margin: 4mm 0 0;
  font-family: var(--serif); font-style: italic;
  font-size: 18pt; line-height: 1.1;
  color: var(--accent-deep);
}
.qr-poster__insta {
  margin: 3mm 0 0;
  font-family: var(--mono); font-size: 11pt; letter-spacing: 0.18em;
  color: var(--ink-soft);
}

/* ── QR centerpiece ── */
.qr-poster__qr {
  margin: 4mm auto 4mm;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.qr-poster__qr-frame {
  width: 88mm; height: 88mm;
  padding: 4mm;
  background: #fff;
  border: 0.4mm solid var(--accent-deep);
  position: relative;
}
.qr-poster__qr-frame::before,
.qr-poster__qr-frame::after {
  content: ""; position: absolute;
  width: 6mm; height: 6mm;
  border: 0.4mm solid var(--accent-deep);
}
.qr-poster__qr-frame::before { top: -1mm; left: -1mm; border-right: none; border-bottom: none; }
.qr-poster__qr-frame::after  { bottom: -1mm; right: -1mm; border-left: none; border-top: none; }
.qr-poster__qr-frame img { width: 100%; height: 100%; display: block; }

.qr-poster__qrcaption {
  margin-top: 5mm;
  max-width: 130mm;
}
.qr-poster__qrcaption-big {
  margin: 0;
  font-family: var(--serif); font-style: italic;
  font-size: 17pt; line-height: 1.25;
  color: var(--ink);
}
.qr-poster__qrcaption-small {
  margin: 2mm 0 0;
  font-size: 9.5pt; line-height: 1.5;
  color: var(--ink-soft);
}

/* ── Footer: event facts + credit ── */
.qr-poster__foot {
  margin-top: auto;
}
.qr-poster__foot .qr-poster__rule {
  margin: 0 0 6mm;
}
.qr-poster__foot-row {
  display: grid; grid-template-columns: 1fr 1.4fr 1fr;
  gap: 8mm;
  margin-bottom: 6mm;
}
.qr-poster__foot-lbl {
  font-family: var(--mono); font-size: 7.5pt; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent-deep);
  margin-bottom: 2mm;
}
.qr-poster__foot-val {
  font-size: 9pt; line-height: 1.4; color: var(--ink-soft);
}
.qr-poster__foot-credit {
  text-align: center;
  font-family: var(--mono); font-size: 8pt; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent-deep);
  padding-top: 4mm;
  border-top: 0.2mm dashed var(--accent-deep);
}

/* ── B&W version (for printing on cream paper or grayscale printers) ──
   Replaces sage + champagne accents with ink + medium grays.
   Background goes WHITE so the paper color (cream, manila, etc.) shows
   through cleanly — we don't waste ink printing a fake cream rectangle. */
.qr-poster.is-bw                              { background: #fff; }
.qr-poster.is-bw::before                      { display: none; }
.qr-poster.is-bw .qr-poster__rule-line,
.qr-poster.is-bw .qr-poster__rule-diamond     { background: var(--ink); }
.qr-poster.is-bw .qr-poster__eyebrow          { color: var(--ink); }
.qr-poster.is-bw .qr-poster__premium          { color: var(--ink-soft); }
.qr-poster.is-bw .qr-poster__rubro            { color: var(--ink-soft); }
.qr-poster.is-bw .qr-poster__insta            { color: var(--ink-soft); }
.qr-poster.is-bw .qr-poster__edition          { color: var(--ink); }
.qr-poster.is-bw .qr-poster__edition .serif   { color: var(--ink-soft); }
.qr-poster.is-bw .qr-poster__qr-frame         { border-color: var(--ink); }
.qr-poster.is-bw .qr-poster__qr-frame::before,
.qr-poster.is-bw .qr-poster__qr-frame::after  { border-color: var(--ink); }
.qr-poster.is-bw .qr-poster__qrcaption-small  { color: var(--ink-soft); }
.qr-poster.is-bw .qr-poster__foot-lbl         { color: var(--ink); }
.qr-poster.is-bw .qr-poster__foot-val         { color: var(--ink-soft); }
.qr-poster.is-bw .qr-poster__foot-credit      { color: var(--ink); border-top-color: var(--ink-soft); }

@media print {
  html, body { margin: 0; padding: 0; background: #fff !important; }
  .qr-poster { box-shadow: none !important; page-break-inside: avoid; }
  .qr-poster::before { display: none; /* dots dropped on print to save ink */ }
}

/* ─── /mi-cuenta/ — tab navigation, favorites, voting ───────────────────── */
.mc-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
}
.mc-tabs::-webkit-scrollbar { display: none; }
.mc-tab {
  flex-shrink: 0;
  scroll-snap-align: start;
  scroll-margin-inline: 12px;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg-muted);
  border-bottom: 2px solid transparent;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
  text-decoration: none;
}
@media (min-width: 760px) {
  .mc-tab { padding: 12px 16px; letter-spacing: 0.18em; }
}
@media (min-width: 1100px) {
  .mc-tabs { mask-image: none; -webkit-mask-image: none; }
}
.mc-tab:hover { color: var(--accent-deep); }
.mc-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.mc-tab__badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  background: var(--accent); color: var(--cream);
  font-size: 10px; letter-spacing: 0;
  font-weight: 500;
}

.mc-flash {
  margin: 0 0 20px;
  padding: 12px 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em;
  border: 1px solid var(--accent); color: var(--accent-deep);
  background: var(--cream);
}
.mc-flash--err { border-color: #C58A7E; color: #8E443A; background: #FCEEEA; }

.mc-voting-banner {
  display: flex; gap: 16px; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  padding: 18px 20px; margin: 0 0 24px;
  background: var(--cream);
  border: 1px solid var(--accent);
}
.mc-voting-banner__body { flex: 1 1 280px; }
.mc-voting-banner__copy {
  font-family: var(--serif); font-style: italic; font-size: 18px;
  color: var(--ink-soft); line-height: 1.35;
}

/* ─── Favorites list ─── */
.mc-fav-list { display: grid; gap: 14px; }
.mc-fav {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  background: var(--cream);
  border: 1px solid var(--line);
  transition: border-color 160ms var(--ease);
}
.mc-fav:hover { border-color: var(--accent); }
.mc-fav__logo {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1px solid var(--line); overflow: hidden;
}
.mc-fav__logo img { width: 100%; height: 100%; object-fit: contain; }
.mc-fav__logo-placeholder {
  font-size: 22px; color: var(--accent);
}
.mc-fav__body { display: grid; gap: 4px; align-content: center; }
.mc-fav__eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent-deep);
}
.mc-fav__name {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(18px, 2.2vw, 22px); line-height: 1.2;
  margin: 2px 0 0; color: var(--ink);
}
.mc-fav__name a { color: var(--ink); border-bottom: 1px solid transparent; transition: border-color 160ms var(--ease); }
.mc-fav__name a:hover { border-bottom-color: var(--accent); }
.mc-fav__meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  color: var(--fg-muted);
}

/* Star/favorite button — must coexist with Agent E's .fav-btn for the expositor page.
   Both renderings produce a sage-on-cream ★ pill. */
.fav-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--paper);
  border: 1px solid var(--accent);
  transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.fav-btn:hover { background: var(--accent); color: var(--cream); }
.fav-btn__icon { font-size: 14px; line-height: 1; }
.fav-btn--on { background: var(--accent); color: var(--cream); }
.fav-btn--on:hover { background: var(--accent-deep); }
.fav-btn[aria-pressed="true"] { background: var(--accent); color: var(--cream); }

@media (max-width: 600px) {
  .mc-fav { grid-template-columns: 56px 1fr; }
  .mc-fav__logo { width: 56px; height: 56px; }
  .mc-fav__actions { grid-column: 1 / -1; justify-self: end; }
}

/* ─── Voting cards ─── */
.vote-category {
  padding: 24px 22px;
  margin: 0 0 18px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.vote-category__head { margin-bottom: 14px; }
.vote-category__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(24px, 3vw, 32px); line-height: 1.05;
  margin: 6px 0 0; color: var(--ink);
}
.vote-category__status {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  padding: 14px 16px; background: var(--cream);
  border: 1px dashed var(--accent);
}
.vote-category__voted {
  font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-soft);
  flex: 1 1 240px;
}
.vote-category__voted-label {
  font-family: var(--mono); font-style: normal; font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent-deep); margin-right: 6px;
}

.btn-secondary--sm {
  padding: 8px 12px !important;
  font-size: 11px !important;
}

.vote-pick__group { margin-bottom: 18px; }
.vote-pick__group-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent-deep);
  margin-bottom: 8px;
}
.vote-pick__search {
  margin-bottom: 10px; width: 100%;
}
.vote-pick__list {
  display: grid; gap: 4px;
  max-height: 360px; overflow-y: auto;
  border: 1px solid var(--line); padding: 6px;
  background: var(--cream);
}
.vote-pick__opt {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 160ms var(--ease);
}
.vote-pick__opt:hover { background: var(--paper); }
.vote-pick__opt input[type="radio"] { margin: 0; accent-color: var(--accent); width: 16px; height: 16px; }
.vote-pick__opt-label {
  font-size: 14px; color: var(--ink);
}
.vote-pick__opt-meta {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  color: var(--fg-muted); text-transform: uppercase;
}
.vote-pick__opt:has(input:checked) {
  background: var(--paper); outline: 1px solid var(--accent);
}
.vote-pick__actions {
  margin-top: 16px;
  display: flex; gap: 12px; flex-wrap: wrap;
}

/* Inline tally bar (used in admin and could be re-used on a public results page). */
.vote-tally-bar {
  display: block; height: 6px;
  background: var(--border-soft);
  position: relative;
}
.vote-tally-bar__fill {
  display: block; height: 100%;
  background: var(--accent);
  transition: width 240ms var(--ease);
}

@media (max-width: 600px) {
  .vote-pick__opt { grid-template-columns: 22px 1fr; }
  .vote-pick__opt-meta { grid-column: 2; }
}


/* ─── Portal chooser (/portal/) ─── */
.portal-section {
  padding-top: clamp(120px, 14vw, 160px);
  padding-bottom: clamp(72px, 9vw, 110px);
  max-width: 1080px;
  margin: 0 auto;
}
.portal-head { grid-template-columns: 1fr; }
.portal-lead {
  margin-bottom: clamp(40px, 6vw, 64px);
  max-width: 640px;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 760px) {
  .portal-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* The <form> wraps each card but should not break the grid layout. */
.portal-form { margin: 0; display: contents; }

.portal-card {
  /* Reset native button look */
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;

  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr auto;
  gap: 20px;
  padding: 28px 26px 22px;
  background: var(--paper);
  border: 1px solid var(--line);

  transition: transform 380ms var(--ease),
              box-shadow 380ms var(--ease),
              border-color 380ms var(--ease),
              background 380ms var(--ease);
}
.portal-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 2px;
  background: var(--sage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 480ms var(--ease);
}
.portal-card:hover,
.portal-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--sage);
  box-shadow: 0 22px 44px -26px rgba(94, 107, 87, 0.55);
  outline: none;
}
.portal-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(138, 151, 131, 0.32),
              0 22px 44px -26px rgba(94, 107, 87, 0.55);
}
.portal-card:hover::before,
.portal-card:focus-visible::before { transform: scaleX(1); }
.portal-card:active { transform: translateY(-2px); }

.portal-card__num {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--fg-muted);
  transition: color 280ms var(--ease);
}
.portal-card:hover .portal-card__num { color: var(--accent-deep); }

.portal-card__ico {
  width: 54px; height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--accent-deep);
  background: transparent;
  transition: background 280ms var(--ease),
              border-color 280ms var(--ease),
              transform 380ms var(--ease);
}
.portal-card:hover .portal-card__ico {
  background: rgba(138, 151, 131, 0.10);
  border-color: var(--sage);
  transform: translateY(-1px);
}

.portal-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.portal-card__label {
  font-family: var(--title);
  font-weight: 400;
  font-size: clamp(22px, 2.3vw, 30px);
  letter-spacing: 0.005em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--ink);
}
.portal-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
}

.portal-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 240ms var(--ease), border-color 280ms var(--ease);
}
.portal-card:hover .portal-card__cta,
.portal-card:focus-visible .portal-card__cta {
  color: var(--accent-deep);
  border-color: var(--sage);
}
.portal-card__cta-arr {
  margin-left: auto;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
  transition: transform 280ms var(--ease);
}
.portal-card:hover .portal-card__cta-arr,
.portal-card:focus-visible .portal-card__cta-arr { transform: translateX(6px); }

.portal-footer {
  margin-top: clamp(48px, 7vw, 72px);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: var(--fg-muted);
}
.portal-logout {
  font-family: var(--mono);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.portal-logout:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

/* ─── Nav: portal-switch chip ─── */
.nav-portal-switch {
  padding: 6px 12px;
  border: 1px solid var(--fg-muted);
  border-radius: 0;
  color: var(--fg) !important;
  font-size: 10px !important;
  letter-spacing: 0.20em !important;
}
.nav-portal-switch::after { display: none; }
.nav-portal-switch:hover {
  background: var(--accent);
  color: var(--bg) !important;
  border-color: var(--accent);
}
body.theme-dark .nav-portal-switch {
  border-color: var(--champagne);
  color: var(--cream) !important;
}
body.theme-dark .nav-portal-switch:hover {
  background: var(--cream);
  color: var(--ink) !important;
}

/* ─── Required-field asterisk marker (forms) ─── */
.req {
  color: #C77B6A;
  font-weight: 600;
  margin-left: 2px;
}

/* ─── Portal switcher dropdown (popup menu in header) ─── */
.portal-switch { position: relative; display: inline-block; }
.portal-switch__btn {
  padding: 6px 12px;
  border: 1px solid var(--fg-muted);
  background: transparent;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.portal-switch__btn:hover,
.portal-switch__btn[aria-expanded="true"] {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.portal-switch__chev {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 160ms ease;
}
.portal-switch__btn[aria-expanded="true"] .portal-switch__chev {
  transform: rotate(-135deg) translate(-2px, -2px);
}
body.theme-dark .portal-switch__btn {
  border-color: var(--champagne);
  color: var(--cream);
}
body.theme-dark .portal-switch__btn:hover,
body.theme-dark .portal-switch__btn[aria-expanded="true"] {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
/* Liquid-glass dropdown surface — same material family as the admin
   pill's user menu, but kept *high-opacity* (~0.93) so body text and
   icons stay perfectly legible over busy content. The treatment is:
   warm cream tint + heavy blur/saturation + top-edge specular + soft
   ambient shadow. Rounded 18px so the chrome reads as one lozenge. */
.portal-switch__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 260px;
  background: rgba(255, 252, 245, 0.93);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(31, 42, 55, 0.05),
    0 18px 56px rgba(31, 42, 55, 0.18),
    0 4px 12px rgba(31, 42, 55, 0.08);
  padding: 8px;
  z-index: 100;
  display: none;
}
.portal-switch__menu[data-open="true"] { display: block; }
.portal-switch__item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--fg);
  transition: background 120ms ease;
}
.portal-switch__item:hover,
.portal-switch__item:focus-visible { background: var(--cream); outline: none; }
.portal-switch__item--active {
  background: rgba(184, 168, 120, 0.14);
  cursor: default;
}
.portal-switch__item--active:hover { background: rgba(184, 168, 120, 0.14); }
.portal-switch__ico {
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.portal-switch__lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 4px;
}
.portal-switch__lbl .pill {
  font-size: 9px;
  letter-spacing: 0.16em;
  background: var(--accent);
  color: var(--bg);
  padding: 2px 6px;
  margin-left: 6px;
  vertical-align: 1px;
}
.portal-switch__desc {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.4;
}
body.theme-dark .portal-switch__menu {
  background: rgba(20, 28, 38, 0.88);
  border-color: rgba(244, 236, 224, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20),
    0 22px 64px rgba(0, 0, 0, 0.55),
    0 4px 14px rgba(0, 0, 0, 0.32);
}
body.theme-dark .portal-switch__item:hover,
body.theme-dark .portal-switch__item:focus-visible { background: rgba(244, 236, 224, 0.08); }
body.theme-dark .portal-switch__lbl { color: var(--cream); }
body.theme-dark .portal-switch__desc { color: rgba(244, 236, 224, 0.65); }

/* ── Account-chip variant (icon + email, replaces the lone Mi cuenta / Salir
   nav-links on desktop — consolidates everything into one popup menu). ── */
.portal-switch__btn--account {
  /* Override the uppercase-mono pill look — emails read better in sans. */
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
  border-radius: 999px;
  padding: 6px 12px 6px 10px;
  gap: 8px;
  max-width: 320px;     /* widened to fit avatar + role pill + email + chev */
}
.portal-switch__btn--account svg { flex-shrink: 0; opacity: 0.7; }
.portal-switch__email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}

/* In-menu group header (e.g. "Cambiar portal") */
.portal-switch__group-h {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 8px 12px 4px;
}

/* Divider between sections of the dropdown */
.portal-switch__divider {
  height: 1px;
  background: var(--line);
  margin: 6px 4px;
}
body.theme-dark .portal-switch__divider { background: rgba(244, 236, 224, 0.12); }

/* Plain link rows (Mi cuenta / Cerrar sesión) */
.portal-switch__link {
  display: block;
  padding: 10px 12px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--fg);
  text-decoration: none;
  border-radius: 4px;
  transition: background 120ms ease;
}
.portal-switch__link:hover,
.portal-switch__link:focus-visible {
  background: var(--cream);
  outline: none;
}
.portal-switch__link--danger { color: #b96a5a; }
.portal-switch__link--danger:hover,
.portal-switch__link--danger:focus-visible { background: rgba(232, 168, 157, 0.12); }
body.theme-dark .portal-switch__link { color: var(--cream); }
body.theme-dark .portal-switch__link:hover,
body.theme-dark .portal-switch__link:focus-visible { background: rgba(244, 236, 224, 0.08); }
body.theme-dark .portal-switch__link--danger { color: #f3c0b6; }

/* ─── Inscríbete chooser page ─── */
.choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 720px) {
  .choose-grid { grid-template-columns: 1fr; }
}
.choose-card {
  display: flex; flex-direction: column;
  padding: 36px 32px;
  background: var(--cream);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--fg);
  transition: background 200ms ease, transform 200ms ease;
}
.choose-card:hover {
  background: var(--bg);
  transform: translateY(-2px);
}
.choose-card__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 16px;
}
.choose-card__title {
  font-family: var(--title);
  font-size: 36px;
  line-height: 1.05;
  margin: 0 0 12px;
  color: var(--fg);
}
.choose-card__title .it {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}
.choose-card__lead {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin: 0 0 24px;
  flex: 1;
}
.choose-card__bullets {
  list-style: none;
  padding: 0; margin: 0 0 28px;
  font-size: 13px;
  color: var(--fg-muted);
}
.choose-card__bullets li {
  padding: 6px 0;
  border-top: 1px dashed var(--line);
}
.choose-card__bullets li:first-child { border-top: none; }
.choose-card__cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
}
.choose-card__cta .arr { font-family: var(--serif); font-style: italic; font-size: 16px; letter-spacing: 0; text-transform: none; }

/* ─── Exhibidor self-service portal (mirror of /mi-cuenta/ but for vendors) ─── */
.exh-section { max-width: 1080px; margin: 0 auto; }

.exh-head { margin-bottom: 24px; }
.exh-title {
  font-family: var(--title);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  margin: 8px 0 0;
}
.exh-title .serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--accent-deep);
  letter-spacing: 0;
}

.exh-tabs {
  display: flex;
  gap: 0;
  margin: 0 0 40px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 24px), transparent 100%);
}
.exh-tabs::-webkit-scrollbar { display: none; }
.exh-tab {
  flex-shrink: 0;
  scroll-snap-align: start;
  scroll-margin-inline: 12px;
  padding: 14px 18px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
  margin-bottom: -1px;
  white-space: nowrap;
}
@media (min-width: 760px) {
  .exh-tab { padding: 14px 22px 16px; letter-spacing: 0.22em; }
}
/* On really wide screens, all tabs fit — kill the edge fade so it doesn't look broken. */
@media (min-width: 1280px) {
  .exh-tabs { mask-image: none; -webkit-mask-image: none; }
}
.exh-tab:hover { color: var(--ink); }
.exh-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.exh-flash { margin-bottom: 24px; }

.exh-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 40px;
}
@media (max-width: 640px) { .exh-stats { grid-template-columns: 1fr; } }
.exh-stat {
  background: var(--paper);
  padding: 20px 22px;
}
.exh-stat__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.exh-stat__value {
  font-family: var(--title);
  font-size: 36px;
  line-height: 1;
  margin-top: 8px;
  color: var(--ink);
}

.exh-block {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 32px);
  margin-bottom: 32px;
}
.exh-block__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.exh-link {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent-deep);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 1px;
}
.exh-link:hover { color: var(--ink); border-color: var(--ink); }

.exh-empty {
  padding: 32px 0;
  text-align: center;
}

/* Customers table (clientes.php) — also used by any future tabular list inside .exh-block */
.exh-table-wrap { overflow-x: auto; margin: 0 -4px; }
.exh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--ink);
}
.exh-table thead th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.exh-table tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.exh-table tbody tr:last-child td { border-bottom: 0; }
.exh-table .num { text-align: right; white-space: nowrap; }
.exh-cell-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 140ms var(--ease);
}
.exh-cell-link:hover { border-bottom-color: var(--accent); }
.exh-cell-sub { margin-top: 4px; font-size: 12px; color: var(--fg-muted); }
@media (max-width: 640px) {
  .exh-table thead { display: none; }
  .exh-table, .exh-table tbody, .exh-table tr, .exh-table td { display: block; width: 100%; }
  .exh-table tr {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }
  .exh-table tbody td {
    padding: 4px 0;
    border-bottom: 0;
  }
  .exh-table .num { text-align: left; }
}

/* Reservation cards */
.exh-resv-list { display: grid; gap: 14px; }
.exh-resv {
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 20px 22px;
}
.exh-resv__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.exh-resv__code {
  font-family: var(--title);
  font-size: 22px;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--ink);
}
.exh-resv__meta {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}
.exh-resv__price { text-align: right; }
.exh-resv__amount {
  margin-top: 8px;
  font-size: 18px;
  color: var(--ink);
}
.exh-resv__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.exh-btn-text {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 12px 0;
}
.exh-btn-text:hover { color: #A85746; }

/* CTA row */
.exh-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 640px) { .exh-cta-row { grid-template-columns: 1fr; } }
.exh-cta-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 28px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 160ms var(--ease), background 160ms var(--ease);
}
.exh-cta-card:hover {
  border-color: var(--accent);
  background: var(--almond);
}
.exh-cta-card__title {
  font-family: var(--title);
  font-size: 22px;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.exh-cta-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-muted);
}
.exh-cta-card__link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

/* Profile form */
.exh-form { max-width: none; }

.exh-logo-preview {
  display: inline-block;
  padding: 18px;
  background: var(--cream);
  border: 1px solid var(--line);
}
.exh-logo-preview img {
  max-width: 220px;
  max-height: 120px;
  display: block;
}

/* QR cards */
.exh-qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.exh-qr-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.exh-qr-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.exh-qr-card__code {
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--ink);
  margin-top: 4px;
}
.exh-qr-card__stats {
  text-align: right;
  font-size: 13px;
  color: var(--fg-muted);
}
.exh-qr-card__stats strong { color: var(--ink); font-size: 18px; }
.exh-qr-card__qr {
  background: var(--cream);
  padding: 16px;
  border: 1px solid var(--line);
  text-align: center;
}
.exh-qr-card__qr img {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto;
}
.exh-qr-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Pill status overrides for light context (the existing .pill works on dark — this tunes for cream bg) */
.exh-resv .pill {
  display: inline-block;
}

/* ─── Ayuda page (/ayuda/) ─── */
.ayuda-block {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.ayuda-block:first-of-type { border-top: 0; padding-top: 0; }
.ayuda-block__head {
  margin-bottom: 32px;
}
.ayuda-h2 {
  font-family: var(--title);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.0;
  margin: 8px 0 0;
}
.ayuda-h2 .it {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  color: var(--accent-deep);
  letter-spacing: 0;
}
.ayuda-q {
  margin-bottom: 28px;
  max-width: 720px;
}
.ayuda-q:last-child { margin-bottom: 0; }
.ayuda-q h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 10px;
}
.ayuda-q p,
.ayuda-q li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--fg-soft);
}
.ayuda-q p { margin: 0 0 10px; }
.ayuda-q code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--cream);
  padding: 1px 6px;
  letter-spacing: 0.04em;
}
.ayuda-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  gap: 8px;
}
.ayuda-list li {
  padding-left: 18px;
  position: relative;
}
.ayuda-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 8px; height: 1px;
  background: var(--accent-deep);
}
.ayuda-link {
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent-deep);
  text-decoration: none;
  padding-bottom: 1px;
  transition: color 160ms ease, border-color 160ms ease;
}
.ayuda-link:hover { color: var(--ink); border-color: var(--ink); }

/* ─── /mi-cuenta/sorteos.php — attendee-portal raffle cards ─────────────── */
.mc-raffle-list { display: grid; gap: 18px; }
.mc-raffle {
  padding: 22px 24px;
  background: var(--cream);
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
  transition: border-color 200ms var(--ease);
}
.mc-raffle:hover { border-color: var(--accent); }
.mc-raffle__head { display: grid; gap: 4px; }
.mc-raffle__eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--accent-deep);
}
.mc-raffle__title {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 3vw, 28px); line-height: 1.15;
  margin: 0; color: var(--ink);
}
.mc-raffle__prize {
  font-family: var(--display);
  font-weight: 500; text-transform: uppercase; letter-spacing: 0.02em;
  font-size: clamp(18px, 2.4vw, 22px); line-height: 1.2;
  color: var(--ink); margin-top: 4px;
}
.mc-raffle__desc {
  margin: 0; font-size: 14px; line-height: 1.5; color: var(--fg-soft);
}
.mc-raffle__elig {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--fg-muted);
}
.mc-raffle__status {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  margin-top: 4px;
}
.mc-raffle__pill {
  display: inline-flex; align-items: center; padding: 6px 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; border: 1px solid var(--line); background: var(--paper);
  color: var(--fg-muted);
}
.mc-raffle__pill--on { background: var(--accent); color: var(--cream); border-color: var(--accent); }
.mc-raffle__pill--won { background: var(--sage-deep); color: var(--cream); border-color: var(--sage-deep); font-weight: 600; }
.mc-raffle__pill--off { background: var(--paper); color: var(--fg-muted); }
.mc-raffle__pill--neutral { background: var(--cream); color: var(--ink-soft); }
.mc-raffle__hint {
  font-size: 12px; color: var(--fg-muted); line-height: 1.4;
}
.mc-raffle--won {
  border-color: var(--sage-deep);
  border-width: 2px;
  padding: 26px 26px;
  background: var(--paper);
}
.mc-raffle--won .mc-raffle__title { color: var(--sage-deep); }
.mc-raffle--cancelled { opacity: 0.6; }

/* ─── Live banner (above hero on /) ───────────────────────────────────────── */
.live-banner {
  position: relative;
  background: var(--cream);
  border-left: 3px solid var(--accent);
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.live-banner__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
}
.live-banner__eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  white-space: nowrap;
}
.live-banner__copy {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.35;
}
.live-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  border-bottom: 1px solid var(--accent-deep);
  padding: 2px 0;
  transition: color 160ms var(--ease), border-color 160ms var(--ease);
  white-space: nowrap;
}
.live-banner__cta:hover { color: var(--ink); border-color: var(--ink); }
.live-banner__cta .arr { font-family: var(--sans); }
.live-banner__close {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1;
  color: var(--fg-dim);
  background: transparent;
  border: 0;
  padding: 4px 6px;
  cursor: pointer;
  transition: color 160ms var(--ease);
}
.live-banner__close:hover { color: var(--ink); }

.live-banner--voting     { border-left-color: var(--accent); }
.live-banner--favorites  { border-left-color: var(--champagne); background: var(--paper); }
.live-banner--favorites .live-banner__eyebrow { color: var(--champagne); }
.live-banner--results    { border-left-color: var(--sage-deep); background: var(--almond); }
.live-banner--results .live-banner__eyebrow { color: var(--sage-deep); }

@media (max-width: 720px) {
  .live-banner__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "eyebrow close"
      "copy    copy"
      "cta     cta";
    gap: 10px 12px;
    padding: 12px var(--pad-x);
  }
  .live-banner__eyebrow { grid-area: eyebrow; }
  .live-banner__copy    { grid-area: copy; font-size: 15px; }
  .live-banner__cta     { grid-area: cta; justify-self: start; }
  .live-banner__close   { grid-area: close; justify-self: end; }
}

/* ─── /mi-cuenta/ — voting chip on tab ───────────────────────────────────── */
.mc-tab__chip {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 8px; height: 18px;
  background: var(--paper);
  border: 1px solid var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--accent-deep);
  text-transform: uppercase;
}

/* ─── /resultados/ — public results page ────────────────────────────────── */
.results-placeholder {
  padding: 36px 32px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}
.results-placeholder .lead { margin: 0 0 18px; }
.results-placeholder__meta {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.results-placeholder__meta strong {
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 13px;
}

.resultados-section {
  margin: 0 0 72px;
  padding: 0 0 40px;
  border-bottom: 1px solid var(--border-soft);
}
.resultados-section:last-of-type {
  border-bottom: 0;
}
.resultados-section__head {
  display: grid;
  gap: 6px;
  margin-bottom: 28px;
}
.resultados-section__title {
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1;
  margin: 0;
  color: var(--ink);
}
.resultados-section__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.resultados-section__empty {
  padding: 24px;
  font-family: var(--serif); font-style: italic;
  color: var(--fg-muted);
  background: var(--paper);
  border: 1px solid var(--border-soft);
}

.podium {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.podium-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 12px;
  padding: 22px 22px 20px;
  background: var(--paper);
  border: 1px solid var(--border);
  transition: border-color 160ms var(--ease);
}
.podium-card:hover { border-color: var(--accent); }
.podium-card--first {
  grid-column: 1 / -1;
  background: var(--cream);
  border: 2px solid var(--accent-deep);
  padding: 28px 28px 26px;
}
.podium-card__rank {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent-deep);
}
.podium-card--first .podium-card__rank {
  font-size: 13px;
  color: var(--sage-deep);
}
.podium-card__media { display: flex; }
.podium-card__logo {
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
  border: 1px solid var(--border);
  overflow: hidden;
}
.podium-card--first .podium-card__logo {
  width: 112px; height: 112px;
  background: var(--paper);
}
.podium-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.podium-card__logo--placeholder span {
  font-family: var(--display);
  font-size: 32px;
  color: var(--accent-deep);
  letter-spacing: 0.02em;
}
.podium-card__empresa {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 20px;
  line-height: 1.1;
  color: var(--ink);
}
.podium-card--first .podium-card__empresa {
  font-size: clamp(26px, 3.4vw, 34px);
}
.podium-card__empresa a {
  border-bottom: 1px solid transparent;
  transition: border-color 160ms var(--ease);
}
.podium-card__empresa a:hover { border-color: var(--accent-deep); }
.podium-card__rubro {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--accent-deep);
  line-height: 1.2;
}
.podium-card--first .podium-card__rubro { font-size: 18px; }
.podium-card__votes {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-top: 8px;
  border-top: 1px solid var(--border-soft);
}

.resultados-raffles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.resultados-raffle {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--border);
}
.resultados-raffle__eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 6px;
}
.resultados-raffle__name {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 12px;
}
.resultados-raffle__winner {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-style: italic;
  font-size: 17px; color: var(--ink-soft);
  padding-top: 10px; border-top: 1px solid var(--border-soft);
}

.resultados-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 24px;
}
.resultados-footer__cell {
  background: var(--cream);
  padding: 22px;
  display: grid;
  gap: 6px;
}
.resultados-footer__k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.resultados-footer__v {
  font-family: var(--display);
  font-size: 32px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .podium { grid-template-columns: 1fr; }
  .podium-card--first { grid-column: auto; }
  .resultados-footer { grid-template-columns: 1fr; }
}

/* ─── Unified auth chooser (/auth/) ─────────────────────────────────── */
.auth-shell { max-width: 560px; margin: 0 auto; }
.auth-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  padding: clamp(28px, 5vw, 56px);
  display: flex; flex-direction: column; gap: 32px;
}
.auth-head { display: flex; flex-direction: column; gap: 14px; }
.auth-title {
  font-family: var(--title);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 0.94; letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.auth-title .it {
  font-family: var(--serif); font-style: italic;
  text-transform: none; letter-spacing: 0;
  color: var(--accent-deep);
  display: inline-block; padding-left: 4px;
}
.auth-sub {
  font-size: 14px; line-height: 1.6;
  color: var(--fg-muted);
  max-width: 440px; margin: 0;
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-method-head {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 4px;
}
.auth-method-num {
  font-size: 11px; letter-spacing: 0.22em; color: var(--fg-muted);
}
.auth-method-lbl {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink); font-weight: 500;
}
.auth-method-hint {
  font-size: 13px; line-height: 1.5; color: var(--fg-muted); margin: 0;
}

.auth-form .form__row { display: grid; gap: 8px; }
.auth-form .form__row label {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-muted); font-weight: 500;
}
.auth-form .form__row input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans); font-size: 15px;
  transition: border-color 160ms, background 160ms;
}
.auth-form .form__row input:focus {
  outline: none;
  border-color: var(--accent-deep);
  background: var(--paper);
}

.auth-submit {
  justify-self: start; align-self: flex-start;
  margin-top: 4px;
}
.auth-error {
  font-size: 13px;
  padding: 10px 14px;
  background: rgba(199, 123, 106, 0.10);
  border-left: 3px solid #C77B6A;
  color: #8B3F2F;
}

/* "o también" divider */
.auth-or {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 14px;
}
.auth-or__line { height: 1px; background: var(--border); }
.auth-or__lbl {
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--fg-muted);
}

/* Magic-link success state */
.auth-sent-card {
  padding: 20px;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
}
.auth-sent-eyebrow {
  font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--accent-deep); margin-bottom: 8px;
}
.auth-sent-msg {
  font-size: 14px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 12px;
}
.auth-sent-fine {
  font-size: 12px; color: var(--fg-muted); margin: 0;
}

.auth-bottom {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}
.auth-bottom a {
  font-size: 13px; color: var(--fg-muted);
  transition: color 160ms;
}
.auth-bottom a strong {
  color: var(--accent-deep); font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 160ms;
}
.auth-bottom a:hover { color: var(--ink); }
.auth-bottom a:hover strong { border-bottom-color: var(--accent-deep); }

/* ────────────────────────────────────────────────────────────────────────────
   Perk + Q&A + Appointment sections — on the /expositor/?c= page.
   ──────────────────────────────────────────────────────────────────────── */

.card-flash {
  margin: 16px auto;
  max-width: 460px;
  padding: 12px 16px;
  background: var(--cream, #F4ECE0);
  border-left: 3px solid var(--accent, #B8A878);
  color: var(--ink, #1B1B1E);
  font-size: 14px;
  border-radius: 6px;
}

.perk-card {
  margin: 22px auto 18px;
  max-width: 460px;
  padding: 20px 22px 22px;
  background: var(--champagne, #B8A878);
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 28px rgba(184, 168, 120, 0.25);
}
.perk-card--empty {
  background: transparent;
  color: var(--sageDeep, #5E6B57);
  border: 1px dashed rgba(94, 107, 87, 0.3);
  box-shadow: none;
}
.perk-card__eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 10px;
}
.perk-card__short {
  font-family: 'Special Gothic Expanded One', 'DM Sans', sans-serif;
  font-size: clamp(20px, 5vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 10px;
}
.perk-card__long {
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 12px;
  opacity: 0.95;
}
.perk-card__meta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  opacity: 0.85;
  margin-bottom: 16px;
}
.perk-card__hint {
  font-size: 12.5px;
  line-height: 1.5;
  margin-top: 10px;
  opacity: 0.9;
}
.perk-card__cta {
  display: block;
  width: 100%;
  background: #1B1B1E;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 18px;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-weight: 500;
  transition: transform 120ms, background 120ms;
}
.perk-card__cta:hover { background: #000; transform: translateY(-1px); }
.perk-card__done {
  background: rgba(255, 255, 255, 0.12);
  padding: 14px 16px;
  border-radius: 10px;
  margin-top: 8px;
}
.perk-card__done-label {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
  opacity: 0.85;
}
.perk-card__code {
  font-family: 'DM Mono', monospace;
  font-size: 22px;
  letter-spacing: 0.2em;
  font-weight: 500;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  display: inline-block;
  margin: 4px 0;
}
.perk-card__off {
  background: rgba(0, 0, 0, 0.18);
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13px;
  opacity: 0.85;
}

.stand-block {
  max-width: 460px;
  margin: 14px auto;
  background: var(--paper, #FBF7F0);
  border: 1px solid rgba(94, 107, 87, 0.12);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}
.stand-block > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stand-block > summary::-webkit-details-marker { display: none; }
.stand-block > summary::after {
  content: '+';
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  color: var(--sage, #8A9783);
}
.stand-block[open] > summary::after { content: '−'; }
.stand-block__pill {
  display: inline-block;
  background: var(--champagne, #B8A878);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.1em;
  margin-left: 8px;
}
.stand-block--login {
  padding: 16px 18px;
  text-align: center;
}
.stand-block--login a {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
  text-decoration: none;
}
.stand-block__title {
  padding: 14px 18px 0;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
}
.stand-form {
  padding: 0 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.stand-form__label {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
  margin-top: 6px;
}
.stand-form input,
.stand-form select,
.stand-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(94, 107, 87, 0.25);
  border-radius: 8px;
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink, #1B1B1E);
  resize: vertical;
}
.stand-form input:focus,
.stand-form select:focus,
.stand-form textarea:focus {
  outline: none;
  border-color: var(--sage, #8A9783);
  box-shadow: 0 0 0 3px rgba(138, 151, 131, 0.15);
}
.stand-form .btn-outline {
  align-self: flex-start;
  margin-top: 4px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--ink, #1B1B1E);
  border-radius: 999px;
  color: var(--ink, #1B1B1E);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 120ms;
}
.stand-form .btn-outline:hover { background: var(--ink, #1B1B1E); color: #fff; }
.stand-form__hint {
  font-size: 12px;
  color: var(--fg-muted, #6B6B6B);
  margin-top: 4px;
}
.qa-pair {
  padding: 12px 18px;
  border-top: 1px solid rgba(94, 107, 87, 0.1);
}
.qa-pair:first-of-type { border-top: none; }
.qa-pair__q {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--sageDeep, #5E6B57);
  margin-bottom: 6px;
}
.qa-pair__a {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink, #1B1B1E);
}

/* ────────────────────────────────────────────────────────────────────────────
   Verified reviews — rating input + review rows on the /expositor/?c= page.
   ──────────────────────────────────────────────────────────────────────── */

.rating-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  margin-bottom: 4px;
}
.rating-input input[type="radio"] {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}
.rating-input label {
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  color: rgba(94, 107, 87, 0.25);
  transition: color 120ms;
  padding: 2px 4px;
  border: none;
  background: none;
}
.rating-input input[type="radio"]:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
  color: var(--champagne, #B8A878);
}

.review-row {
  padding: 14px 18px;
  border-top: 1px solid rgba(94, 107, 87, 0.1);
}
.review-row:first-of-type { border-top: none; }
.review-row__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 13px;
}
.review-row__stars {
  font-size: 15px;
  letter-spacing: 1px;
}
.review-row__name {
  font-weight: 500;
  color: var(--ink, #1B1B1E);
}
.review-row__verified {
  background: var(--sageDeep, #5E6B57);
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
}
.review-row__time {
  color: var(--fg-muted, #6B6B6B);
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  margin-left: auto;
}
.review-row__body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink, #1B1B1E);
  margin-top: 4px;
}

/* Exhibitor tabs: unread/pending badge */
.exh-tab__badge {
  display: inline-block;
  background: var(--champagne, #B8A878);
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 4px;
  min-width: 16px;
  text-align: center;
  vertical-align: middle;
  font-weight: 600;
}
.exh-tab.is-active .exh-tab__badge {
  background: #fff;
  color: var(--ink, #1B1B1E);
}

/* ════════════════════════════════════════════════════════════════════════
   /expositor/{slug} — public profile page (redesigned 2026-05-21).
   Mobile-first. Max-width 720px on desktop for readability. Sticky action
   bar appears after scrolling past the hero.
   ════════════════════════════════════════════════════════════════════════ */

.prof {
  max-width: 760px;
  margin: 0 auto;
  /* Push the hero below the fixed nav. Matches the convention used by
     /registro/, /mi-cuenta/ et al, but a touch tighter so the hero feels
     close to the top without colliding. */
  padding: 96px 0 60px;
  color: var(--ink, #1B1B1E);
}
@media (min-width: 760px) {
  .prof { padding-top: 120px; }
}

/* ── Hero: floating rounded card, inset from page edges ───────────────── */
.prof__hero {
  position: relative;
  height: clamp(180px, 38vw, 320px);
  margin: 0 16px;
  background-color: var(--sage, #8A9783);
  background-size: cover;
  background-position: center;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(31, 42, 55, 0.10);
}
@media (min-width: 540px) {
  .prof__hero { margin: 0 22px; }
}
.prof__hero--blank {
  background-image: linear-gradient(135deg, var(--sage, #8A9783) 0%, var(--sageDeep, #5E6B57) 100%);
}
.prof__hero-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,27,30,0) 40%, rgba(27,27,30,0.55) 100%);
}
.prof__hero-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 22px;
  height: 100%;
}
.prof__hero-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  margin-left: auto;
}
.prof__hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 236, 224, 0.9);
  background: rgba(27, 27, 30, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.prof__tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: var(--champagne, #B8A878);
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 600;
}

/* ── Identity row: logo overlaps hero/content boundary ────────────────── */
.prof__id {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  padding: 0 22px;
  margin-top: -56px;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}
.prof__logo {
  width: 112px;
  height: 112px;
  border-radius: 16px;
  background: var(--paper, #FBF7F0);
  border: 3px solid var(--paper, #FBF7F0);
  box-shadow: 0 6px 24px rgba(31, 42, 55, 0.18);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prof__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.prof__logo-fallback {
  font-family: 'Special Gothic Expanded One', sans-serif;
  font-size: 36px;
  color: var(--sageDeep, #5E6B57);
}
.prof__head { padding-top: 60px; }
.prof__name {
  font-family: 'Special Gothic Expanded One', 'DM Sans', sans-serif;
  font-size: clamp(22px, 5vw, 32px);
  line-height: 1.05;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  word-break: break-word;
}
.prof__rubro {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--sageDeep, #5E6B57);
  margin-bottom: 10px;
}
.prof__factbar {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--sageDeep, #5E6B57);
}
.prof__fact { display: inline-flex; align-items: center; gap: 4px; }
.prof__fact strong { color: var(--ink, #1B1B1E); font-weight: 600; }
.prof__fact--rating .prof__stars { color: var(--champagne, #B8A878); font-size: 14px; }

@media (max-width: 540px) {
  .prof__id { grid-template-columns: 1fr; margin-top: -52px; }
  .prof__logo { width: 88px; height: 88px; }
  .prof__head { padding-top: 0; }
}

/* ── Action bar (becomes sticky on scroll) ────────────────────────────── */
.prof__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 4px;
  padding: 8px 16px;
  margin: 0 6px 18px;
  background: var(--paper, #FBF7F0);
  border: 1px solid rgba(94, 107, 87, 0.14);
  border-radius: 14px;
  position: sticky;
  top: 8px;
  z-index: 30;
  transition: box-shadow 200ms;
}
.prof__actions.is-stuck {
  box-shadow: 0 8px 28px rgba(31, 42, 55, 0.10);
}
.prof__action,
.prof__action-form button {
  appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px;
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
  text-decoration: none;
  border-radius: 10px;
  transition: background 120ms, color 120ms;
  width: 100%;
}
.prof__action-form { margin: 0; }
.prof__action:hover,
.prof__action:focus-visible {
  background: rgba(138, 151, 131, 0.1);
  color: var(--ink, #1B1B1E);
}
.prof__action.is-on { color: var(--coral, #E8A89D); }
.prof__action svg { width: 18px; height: 18px; }

/* ── Flash ─────────────────────────────────────────────────────────────── */
.prof__flash {
  margin: 0 22px 16px;
  padding: 12px 16px;
  background: var(--cream, #F4ECE0);
  border-left: 3px solid var(--accent, #B8A878);
  border-radius: 6px;
  font-size: 14px;
}

/* ── Perk card — the centerpiece ──────────────────────────────────────── */
.prof__perk {
  margin: 4px 22px 26px;
  padding: 22px 22px 24px;
  background: linear-gradient(135deg, #1B1B1E 0%, #2A2A30 100%);
  color: #F4ECE0;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(27, 27, 30, 0.18);
  position: relative;
  overflow: hidden;
}
.prof__perk::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(184, 168, 120, 0.35) 0%, transparent 70%);
  pointer-events: none;
}
.prof__perk-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--champagne, #B8A878);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.prof__perk-headline {
  font-family: 'Special Gothic Expanded One', sans-serif;
  font-size: clamp(22px, 5vw, 28px);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
  position: relative;
  z-index: 1;
}
.prof__perk-body {
  font-size: 14.5px;
  line-height: 1.55;
  opacity: 0.92;
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}
.prof__perk-meta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--champagne, #B8A878);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.prof__perk-hint {
  font-size: 12.5px;
  line-height: 1.55;
  opacity: 0.78;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}
.prof__perk-cta {
  display: block;
  width: 100%;
  background: var(--champagne, #B8A878);
  color: #1B1B1E;
  border: none;
  border-radius: 12px;
  padding: 16px 20px;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 120ms, background 120ms;
  position: relative;
  z-index: 1;
}
.prof__perk-cta:hover { background: #C9B98C; transform: translateY(-1px); }
.prof__perk-form { margin: 0; position: relative; z-index: 1; }
.prof__perk-state {
  background: rgba(244, 236, 224, 0.08);
  padding: 14px 16px;
  border-radius: 12px;
  position: relative;
  z-index: 1;
}
.prof__perk-state--done { background: rgba(184, 168, 120, 0.18); }
.prof__perk-state--off { opacity: 0.7; }
.prof__perk-state--unlock { background: rgba(244, 236, 224, 0.08); }
.prof__perk-state-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--champagne, #B8A878);
}
.prof__perk-state p { margin: 6px 0 10px; font-size: 14px; line-height: 1.5; }
.prof__perk-code {
  font-family: 'DM Mono', monospace;
  font-size: 22px;
  letter-spacing: 0.18em;
  font-weight: 600;
  padding: 8px 14px;
  background: rgba(244, 236, 224, 0.12);
  border-radius: 8px;
  display: inline-block;
  margin: 6px 0;
  color: var(--champagne, #B8A878);
}
.prof__perk-secondary {
  display: inline-block;
  margin-top: 8px;
  color: var(--champagne, #B8A878);
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--champagne, #B8A878);
}

/* ── Section wrappers (about / social / qna / appt / reviews / event) ──── */
.prof__about,
.prof__social,
.prof__qna,
.prof__appt,
.prof__reviews,
.prof__event {
  padding: 22px 22px;
  border-top: 1px solid rgba(94, 107, 87, 0.12);
}
.prof__section-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
  margin-bottom: 14px;
}
.prof__premium-mini {
  display: inline-block;
  background: var(--champagne, #B8A878);
  color: #fff;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 9px;
  margin-left: 6px;
  letter-spacing: 0.08em;
}
.prof__desc {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(19px, 2.6vw, 23px);
  line-height: 1.45;
  margin: 0;
  padding: 6px 0 0 44px;
  position: relative;
  color: var(--sageDeep, #5E6B57);
  letter-spacing: 0.005em;
}
.prof__desc::before {
  content: '\201C';                /* curly opening double-quote */
  position: absolute;
  left: -4px;
  top: -14px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: normal;
  font-size: 86px;
  line-height: 1;
  color: var(--champagne, #B8A878);
  opacity: 0.85;
  pointer-events: none;
}
@media (max-width: 540px) {
  .prof__desc { padding-left: 36px; font-size: 18px; }
  .prof__desc::before { font-size: 68px; top: -10px; }
}

/* ── Social ──────────────────────────────────────────────────────────── */
.prof__social {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.prof__social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--paper, #FBF7F0);
  border: 1px solid rgba(94, 107, 87, 0.12);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink, #1B1B1E);
  transition: transform 120ms, box-shadow 120ms;
}
.prof__social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31, 42, 55, 0.08);
}
.prof__social-link svg { color: var(--sageDeep, #5E6B57); flex-shrink: 0; }
.prof__social-label {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
  margin-bottom: 2px;
}
.prof__social-value { font-weight: 500; font-size: 14px; }

/* ── Forms (Q&A + appointment + review) ───────────────────────────────── */
.prof__form-wrap {
  background: var(--paper, #FBF7F0);
  border: 1px solid rgba(94, 107, 87, 0.12);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}
.prof__form-wrap > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.prof__form-wrap > summary::-webkit-details-marker { display: none; }
.prof__form-wrap > summary::after {
  content: '+'; font-family: 'DM Sans', sans-serif; font-size: 18px; color: var(--sage, #8A9783);
}
.prof__form-wrap[open] > summary::after { content: '−'; }
.prof__form {
  padding: 0 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.prof__form label {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
  margin-top: 8px;
}
.prof__form input,
.prof__form select,
.prof__form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(94, 107, 87, 0.25);
  border-radius: 8px;
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink, #1B1B1E);
  resize: vertical;
  box-sizing: border-box;
}
.prof__form input:focus,
.prof__form select:focus,
.prof__form textarea:focus {
  outline: none;
  border-color: var(--sage, #8A9783);
  box-shadow: 0 0 0 3px rgba(138, 151, 131, 0.15);
}
.prof__form button {
  align-self: flex-start;
  margin-top: 12px;
  padding: 10px 20px;
  background: var(--ink, #1B1B1E);
  border: none;
  border-radius: 999px;
  color: var(--cream, #F4ECE0);
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 120ms;
}
.prof__form button:hover { background: #000; }
.prof__hint {
  font-size: 12px;
  color: var(--fg-muted, #6B6B6B);
  margin-top: 6px;
}
.prof__login-prompt {
  display: block;
  padding: 14px 18px;
  background: var(--cream, #F4ECE0);
  border-radius: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
  text-decoration: none;
  text-align: center;
}
.prof__login-prompt:hover { color: var(--ink, #1B1B1E); }

/* ── Q&A list ────────────────────────────────────────────────────────── */
.prof__qa-list { margin-top: 8px; }
.prof__qa {
  padding: 14px 0;
  border-top: 1px solid rgba(94, 107, 87, 0.1);
}
.prof__qa:first-child { border-top: none; }
.prof__qa-q {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--sageDeep, #5E6B57);
  margin-bottom: 6px;
}
.prof__qa-a {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink, #1B1B1E);
}

/* ── Reviews ─────────────────────────────────────────────────────────── */
.prof__reviews-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  background: var(--paper, #FBF7F0);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 18px;
}
.prof__reviews-avg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.prof__reviews-num {
  font-family: 'Special Gothic Expanded One', sans-serif;
  font-size: 44px;
  line-height: 1;
  color: var(--ink, #1B1B1E);
}
.prof__reviews-stars { font-size: 18px; color: rgba(94, 107, 87, 0.3); letter-spacing: 1px; }
.prof__reviews-stars .on { color: var(--champagne, #B8A878); }
.prof__reviews-count {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
}
.prof__reviews-dist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.prof__reviews-bar {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  gap: 10px;
  align-items: center;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--sageDeep, #5E6B57);
}
.prof__reviews-bar-track {
  height: 6px;
  background: rgba(94, 107, 87, 0.12);
  border-radius: 999px;
  overflow: hidden;
}
.prof__reviews-bar-track span {
  display: block;
  height: 100%;
  background: var(--champagne, #B8A878);
  border-radius: 999px;
  transition: width 400ms;
}
.prof__reviews-bar-count { text-align: right; }
@media (max-width: 480px) {
  .prof__reviews-summary { grid-template-columns: 1fr; gap: 16px; }
}

.prof__reviews-list { display: flex; flex-direction: column; gap: 12px; }
.prof__review {
  background: var(--paper, #FBF7F0);
  border: 1px solid rgba(94, 107, 87, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
}
.prof__review header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}
.prof__review-stars {
  color: var(--champagne, #B8A878);
  font-size: 14px;
  letter-spacing: 1px;
}
.prof__review-name { font-weight: 500; font-size: 13px; }
.prof__review-time {
  margin-left: auto;
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  color: var(--fg-muted, #6B6B6B);
  letter-spacing: 0.04em;
}
.prof__review-body {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.55;
}
.prof__verified-pill {
  background: var(--sageDeep, #5E6B57);
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
}

/* ── Event footer ────────────────────────────────────────────────────── */
.prof__event { text-align: center; padding-bottom: 32px; }
.prof__event-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
  font-size: 15px;
}
.prof__event-info strong {
  font-family: 'Special Gothic Expanded One', sans-serif;
  font-size: 18px;
  letter-spacing: -0.005em;
}
.prof__event-info span { color: var(--sageDeep, #5E6B57); font-size: 13px; }
.prof__home-link {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
  text-decoration: none;
  border-bottom: 1px solid var(--sage, #8A9783);
  padding-bottom: 2px;
}
.prof__home-link:hover { color: var(--ink, #1B1B1E); }

/* ════════════════════════════════════════════════════════════════════════
   /expositores/perfil.php — "Tu perfil público" panel.
   Mini preview card + URL editor + quick-edit shortcuts.
   ════════════════════════════════════════════════════════════════════════ */

.profsite { margin: 0 0 36px; max-width: 760px; }
.profsite__head { margin-bottom: 18px; }
.profsite__title {
  font-family: 'Special Gothic Expanded One', 'DM Sans', sans-serif;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.1;
  margin: 6px 0 8px;
  letter-spacing: -0.005em;
}
.profsite__title .serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
}
.profsite__lead {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-muted, #6B6B6B);
  margin: 0;
  max-width: 640px;
}

.profsite__card {
  background: var(--paper, #FBF7F0);
  border: 1px solid rgba(94, 107, 87, 0.14);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 18px;
  box-shadow: 0 4px 18px rgba(31, 42, 55, 0.04);
}

/* Mini preview (visual hint of how the public page looks). */
.profsite__preview {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(94, 107, 87, 0.08);
}
.profsite__preview-hero {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.profsite__preview-hero--blank {
  background: linear-gradient(135deg, var(--sage, #8A9783) 0%, var(--sageDeep, #5E6B57) 100%);
}
.profsite__preview-pill {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(27, 27, 30, 0.5);
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.profsite__preview-body {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.profsite__preview-logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(94, 107, 87, 0.12);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.profsite__preview-logo img {
  width: 100%; height: 100%; object-fit: contain;
}
.profsite__preview-logo span {
  font-family: 'Special Gothic Expanded One', sans-serif;
  font-size: 18px;
  color: var(--sageDeep, #5E6B57);
}
.profsite__preview-text { display: flex; flex-direction: column; gap: 2px; }
.profsite__preview-text strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink, #1B1B1E);
}
.profsite__preview-text span {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 13px;
  color: var(--sageDeep, #5E6B57);
}
.profsite__preview-hover {
  position: absolute;
  inset: 0;
  background: rgba(27, 27, 30, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 180ms;
}
.profsite__preview:hover .profsite__preview-hover,
.profsite__preview:focus-visible .profsite__preview-hover { opacity: 1; }

/* URL display + edit */
.profsite__url { padding: 14px 18px 16px; }
.profsite__url-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.profsite__url-value {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--ink, #1B1B1E);
  margin-top: 4px;
  word-break: break-all;
}
.profsite__url-host {
  color: var(--fg-muted, #6B6B6B);
  font-weight: 400;
}
.profsite__url-value strong {
  color: var(--ink, #1B1B1E);
  font-weight: 600;
  background: linear-gradient(transparent 60%, rgba(184, 168, 120, 0.32) 60%);
  padding: 0 2px;
}
.profsite__url-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.profsite__copy,
.profsite__open {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(94, 107, 87, 0.3);
  color: var(--sageDeep, #5E6B57);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 120ms, color 120ms, border-color 120ms;
}
.profsite__copy:hover { background: var(--ink, #1B1B1E); color: #fff; border-color: var(--ink, #1B1B1E); }
.profsite__open       { background: var(--ink, #1B1B1E); color: #fff; border-color: var(--ink, #1B1B1E); }
.profsite__open:hover { background: #000; }
.profsite__copy.is-done {
  background: var(--sage, #8A9783); color: #fff; border-color: var(--sage, #8A9783);
}

.profsite__rename { margin-top: 14px; }
.profsite__rename > summary {
  list-style: none;
  cursor: pointer;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
  padding: 6px 0;
}
.profsite__rename > summary::-webkit-details-marker { display: none; }
.profsite__rename > summary::before { content: '+ '; }
.profsite__rename[open] > summary::before { content: '− '; }
.profsite__rename-form { margin-top: 10px; }
.profsite__rename-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0;
  align-items: stretch;
  border: 1px solid rgba(94, 107, 87, 0.25);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.profsite__rename-grid .profsite__url-host {
  padding: 10px 0 10px 12px;
  align-self: center;
  white-space: nowrap;
}
.profsite__rename-grid input {
  border: none;
  outline: none;
  padding: 10px 8px;
  font-family: 'DM Mono', monospace;
  font-size: 14px;
  color: var(--ink, #1B1B1E);
  background: transparent;
  min-width: 0;
}
.profsite__rename-grid input:focus {
  background: rgba(184, 168, 120, 0.08);
}
.profsite__rename-grid button {
  appearance: none;
  background: var(--ink, #1B1B1E);
  color: var(--cream, #F4ECE0);
  border: none;
  padding: 0 18px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.profsite__rename-grid button:hover { background: #000; }
.profsite__hint {
  font-size: 12px;
  color: var(--fg-muted, #6B6B6B);
  margin: 8px 0 0;
  line-height: 1.45;
}
.profsite__hint code {
  background: rgba(94, 107, 87, 0.1);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11.5px;
}

/* Quick-edit links to anchored sections below */
.profsite__quick {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 18px 18px;
  border-top: 1px solid rgba(94, 107, 87, 0.08);
  background: rgba(244, 236, 224, 0.4);
}
.profsite__quick a {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 120ms, border-color 120ms;
}
.profsite__quick a:hover {
  color: var(--ink, #1B1B1E);
  border-bottom-color: var(--sage, #8A9783);
}

/* ════════════════════════════════════════════════════════════════════════
   /expositor/{slug} — Q&A + Reviews redesign (v2).
   Replaces the older .prof__qa / .prof__review with .qa / .review.
   ════════════════════════════════════════════════════════════════════════ */

/* ── Q&A ──────────────────────────────────────────────────────────────── */
.prof__qa-count {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
  margin: 8px 0 18px;
}
.qa {
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(94, 107, 87, 0.08);
}
.qa:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

.qa__q { margin-bottom: 12px; }
.qa__bubble {
  display: inline-block;
  max-width: 92%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.5;
  position: relative;
}
.qa__bubble--q {
  background: var(--cream, #F4ECE0);
  color: var(--sageDeep, #5E6B57);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 16.5px;
  border-bottom-left-radius: 4px;
}
.qa__bubble--q::before {
  content: '?';
  position: absolute;
  left: -8px;
  top: -8px;
  width: 22px;
  height: 22px;
  background: var(--champagne, #B8A878);
  color: #fff;
  border-radius: 50%;
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.qa__a {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  margin-left: 24px;
}
.qa__avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(94, 107, 87, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qa__avatar img { width: 100%; height: 100%; object-fit: contain; }
.qa__avatar span {
  font-family: var(--title);
  font-size: 16px;
  color: var(--sageDeep, #5E6B57);
}
.qa__name {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink, #1B1B1E);
  font-weight: 600;
  margin-bottom: 6px;
}
.qa__name span {
  color: var(--fg-muted, #6B6B6B);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-left: 2px;
}
.qa__bubble--a {
  background: linear-gradient(135deg, var(--paper, #FBF7F0) 0%, #FDF9F2 100%);
  color: var(--ink, #1B1B1E);
  border: 1px solid rgba(184, 168, 120, 0.32);
  border-bottom-left-radius: 4px;
  display: block;
  max-width: 100%;
  font-size: 14.5px;
}
@media (max-width: 540px) {
  .qa__a { margin-left: 12px; grid-template-columns: 36px 1fr; gap: 10px; }
  .qa__avatar { width: 36px; height: 36px; }
}

/* ── Reviews ──────────────────────────────────────────────────────────── */
.prof__reviews-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.prof__filter {
  appearance: none;
  background: transparent;
  border: 1px solid rgba(94, 107, 87, 0.25);
  color: var(--sageDeep, #5E6B57);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 120ms, color 120ms, border-color 120ms;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.prof__filter span {
  background: rgba(94, 107, 87, 0.12);
  color: var(--sageDeep, #5E6B57);
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
}
.prof__filter:hover { color: var(--ink, #1B1B1E); border-color: var(--sage, #8A9783); }
.prof__filter.is-active {
  background: var(--ink, #1B1B1E);
  color: var(--cream, #F4ECE0);
  border-color: var(--ink, #1B1B1E);
}
.prof__filter.is-active span {
  background: rgba(244, 236, 224, 0.18);
  color: var(--cream, #F4ECE0);
}

.review {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  background: var(--paper, #FBF7F0);
  border: 1px solid rgba(94, 107, 87, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: box-shadow 200ms;
}
.review:hover { box-shadow: 0 4px 18px rgba(31, 42, 55, 0.06); }
.review__avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--sage, #8A9783) 0%, var(--sageDeep, #5E6B57) 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--title);
  font-size: 18px;
  flex-shrink: 0;
}
.review__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.review__stars {
  color: var(--champagne, #B8A878);
  font-size: 16px;
  letter-spacing: 2px;
}
.review__verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(94, 107, 87, 0.12);
  color: var(--sageDeep, #5E6B57);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
}
.review__verified svg { color: var(--sage, #8A9783); }
.review__text {
  margin: 4px 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink, #1B1B1E);
}
.review__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-muted, #6B6B6B);
}
.review__name {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--ink, #1B1B1E);
}
.review-empty {
  padding: 30px 16px;
  text-align: center;
  color: var(--fg-muted, #6B6B6B);
  font-style: italic;
}
@media (max-width: 540px) {
  .review { grid-template-columns: 40px 1fr; gap: 10px; padding: 12px 14px; }
  .review__avatar { width: 40px; height: 40px; font-size: 16px; }
}

/* ════════════════════════════════════════════════════════════════════════
   Stand updates — vendor posts.
     * Stories bar on /mi-cuenta/ (.stories)
     * Story viewer (.storyview) on /mi-cuenta/update-view.php
     * Public feed on /expositor/{slug} (.prof__updates / .upd-card)
     * Vendor portal CRUD on /expositores/updates.php (.upd-form / .upd-post)
   ════════════════════════════════════════════════════════════════════════ */

/* ── Stories bar (attendee dashboard) ─────────────────────────────────── */
.stories {
  margin: 0 0 28px;
  padding: 4px 0 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
}
.stories::-webkit-scrollbar { display: none; }
.stories__list {
  list-style: none;
  margin: 0;
  padding: 0 4px;
  display: flex;
  gap: 14px;
}
.stories__item { scroll-snap-align: start; flex-shrink: 0; }
.story {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 76px;
  text-decoration: none;
  color: var(--ink, #1B1B1E);
  cursor: pointer;
}
.story__ring {
  display: block;
  width: 72px; height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 220deg, #B8A878, #E8A89D, #8A9783, #B8A878);
  transition: filter 200ms, transform 200ms;
}
.story:hover .story__ring { transform: scale(1.04); }
.story.is-viewed .story__ring {
  background: none;
  border: 2px solid rgba(94, 107, 87, 0.28);
  padding: 2px;
}
.story__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--paper, #FBF7F0);
  overflow: hidden;
  border: 2px solid var(--cream, #F4ECE0);
}
.story__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.story__initial {
  font-family: 'Special Gothic Expanded One', sans-serif;
  font-size: 26px;
  color: var(--sageDeep, #5E6B57);
}
.story__name {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
  text-align: center;
  line-height: 1.2;
  max-width: 76px;
  word-break: break-word;
}
.story.is-viewed .story__name { opacity: 0.6; }

/* ── Story overlay viewer ─────────────────────────────────────────────────
   In-page modal that opens when a story circle on /mi-cuenta/ is tapped.
   Replaces the navigation to /mi-cuenta/update-view.php so the user stays
   in flow (Instagram-style: tap left/right to navigate, ESC / × to close). */
.story-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 16, 22, 0.78);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  opacity: 0;
  transition: opacity 220ms ease;
  padding: env(safe-area-inset-top, 0) 16px env(safe-area-inset-bottom, 0);
}
.story-overlay.is-open { opacity: 1; }
.story-overlay[hidden] { display: none; }
html.story-overlay-open { overflow: hidden; }

.story-overlay__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: none;
  background: rgba(244, 236, 224, 0.16);
  color: var(--cream, #F4ECE0);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, transform 160ms ease;
  z-index: 3;
}
.story-overlay__close:hover { background: rgba(244, 236, 224, 0.28); transform: scale(1.05); }

.story-overlay__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(244, 236, 224, 0.16);
  color: var(--cream, #F4ECE0);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, opacity 160ms ease;
  z-index: 3;
}
.story-overlay__nav:hover { background: rgba(244, 236, 224, 0.28); }
.story-overlay__nav--prev { left: 18px; }
.story-overlay__nav--next { right: 72px; } /* leave room for close button */
@media (max-width: 720px) {
  /* Mobile: hide explicit nav buttons; the tap-half-of-screen gesture does it. */
  .story-overlay__nav { display: none; }
}

.story-overlay__progress {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 72px;
  display: flex;
  gap: 4px;
  z-index: 2;
}
.story-overlay__progress-seg {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(244, 236, 224, 0.22);
  overflow: hidden;
  position: relative;
}
.story-overlay__progress-seg.is-seen   { background: rgba(244, 236, 224, 0.72); }
.story-overlay__progress-seg.is-active { background: rgba(244, 236, 224, 0.42); }
.story-overlay__progress-seg.is-active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cream, #F4ECE0);
  transform-origin: left center;
  animation: storyProgressTick 600ms ease forwards;
}
@keyframes storyProgressTick {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.story-overlay__stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.story-overlay__slide {
  width: 100%;
  background: var(--paper, #FBF7F0);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.40);
  max-height: 100%;
}
.story-overlay__slide[hidden] { display: none; }

.story-overlay__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(94, 107, 87, 0.10);
}
.story-overlay__avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--sage, #8A9783);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Special Gothic Expanded One', sans-serif;
  font-size: 14px;
  overflow: hidden;
  flex-shrink: 0;
}
.story-overlay__avatar img { width: 100%; height: 100%; object-fit: cover; }
.story-overlay__id { min-width: 0; flex: 1; }
.story-overlay__name {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink, #1B1B1E);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.story-overlay__name:hover { color: var(--sageDeep, #5E6B57); }
.story-overlay__meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted, #6B6B6B);
  margin-top: 2px;
}

.story-overlay__media {
  background: var(--cream, #F4ECE0);
  flex-shrink: 0;
  /* Image fills width, height auto with a sensible cap. */
}
.story-overlay__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 56vh;
  max-height: 56dvh;
  object-fit: cover;
}

.story-overlay__body {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
}
.story-overlay__title {
  font-family: 'Special Gothic Expanded One', sans-serif;
  font-size: 18px;
  letter-spacing: -0.005em;
  margin: 0 0 8px;
  color: var(--ink, #1B1B1E);
}
.story-overlay__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink, #1B1B1E);
}
.story-overlay__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  text-decoration: none;
}
.story-overlay__link:hover { color: var(--ink, #1B1B1E); }

.story-overlay__foot {
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(94, 107, 87, 0.10);
}
.story-overlay__cta {
  display: block;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink, #1B1B1E);
  text-decoration: none;
  padding: 8px 12px;
  background: var(--champagne, #B8A878);
  border-radius: 8px;
}
.story-overlay__cta:hover { background: #A89868; }

/* ── Story viewer page ────────────────────────────────────────────────── */
.storyview {
  max-width: 560px;
  margin: 0 auto;
  padding: 100px 16px 60px;
}
.storyview__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
  text-decoration: none;
  margin-bottom: 18px;
}
.storyview__back:hover { color: var(--ink, #1B1B1E); }
.storyview__card {
  background: var(--paper, #FBF7F0);
  border: 1px solid rgba(94, 107, 87, 0.14);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(31, 42, 55, 0.08);
}
.storyview__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(94, 107, 87, 0.08);
}
.storyview__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(94, 107, 87, 0.12);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.storyview__avatar img { width: 100%; height: 100%; object-fit: cover; }
.storyview__avatar span {
  font-family: 'Special Gothic Expanded One', sans-serif;
  font-size: 18px;
  color: var(--sageDeep, #5E6B57);
}
.storyview__name {
  font-weight: 600;
  font-size: 16px;
  color: var(--ink, #1B1B1E);
  text-decoration: none;
}
.storyview__name:hover { text-decoration: underline; }
.storyview__meta {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-muted, #6B6B6B);
  margin-top: 2px;
}
.storyview__media {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.storyview__media img {
  width: 100%; height: auto;
  display: block;
  max-height: 80vh;
  object-fit: cover;
}
.storyview__body { padding: 18px 22px 6px; }
.storyview__title {
  font-family: 'Special Gothic Expanded One', sans-serif;
  font-size: clamp(20px, 4vw, 26px);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}
.storyview__text {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink, #1B1B1E);
  margin: 0 0 12px;
  white-space: pre-line;
}
.storyview__link {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--champagne-deep, #8B7B45);
  border-bottom: 1px solid var(--champagne, #B8A878);
  padding-bottom: 1px;
  text-decoration: none;
}
.storyview__link:hover { color: var(--ink, #1B1B1E); }
.storyview__foot { padding: 12px 22px 22px; }
.storyview__cta {
  display: block;
  text-align: center;
  background: var(--ink, #1B1B1E);
  color: var(--cream, #F4ECE0);
  padding: 14px 18px;
  border-radius: 12px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.storyview__cta:hover { background: #000; }

/* ── Public profile feed (.upd-card on /expositor/{slug}) ─────────────── */
.prof__updates { padding: 22px 22px; border-top: 1px solid rgba(94, 107, 87, 0.12); }
.upd-feed { display: flex; flex-direction: column; gap: 16px; }
.upd-card {
  background: var(--paper, #FBF7F0);
  border: 1px solid rgba(94, 107, 87, 0.14);
  border-radius: 14px;
  overflow: hidden;
}
.upd-card.is-pinned {
  border-color: var(--champagne, #B8A878);
  box-shadow: 0 0 0 1px rgba(184, 168, 120, 0.4);
}
.upd-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}
.upd-card__avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(94, 107, 87, 0.12);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.upd-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.upd-card__avatar span {
  font-family: 'Special Gothic Expanded One', sans-serif;
  font-size: 14px;
  color: var(--sageDeep, #5E6B57);
}
.upd-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #1B1B1E);
}
.upd-card__time {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--fg-muted, #6B6B6B);
  margin-top: 2px;
}
.upd-card__pin {
  margin-left: auto;
  color: var(--champagne, #B8A878);
  display: flex;
}
.upd-card__media img {
  width: 100%; height: auto;
  display: block;
  max-height: 460px;
  object-fit: cover;
}
.upd-card__body { padding: 14px 16px 16px; }
.upd-card__title {
  font-family: 'Special Gothic Expanded One', sans-serif;
  font-size: 18px;
  line-height: 1.2;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.upd-card__text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink, #1B1B1E);
  margin: 0;
  white-space: pre-line;
}
.upd-card__link {
  display: inline-block;
  margin-top: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
  border-bottom: 1px solid var(--sage, #8A9783);
  padding-bottom: 1px;
  text-decoration: none;
}
.upd-card__link:hover { color: var(--ink, #1B1B1E); }

/* ── Vendor portal CRUD (/expositores/updates.php) ────────────────────── */
.upd-create {
  background: var(--paper, #FBF7F0);
  border: 1px solid rgba(94, 107, 87, 0.14);
  border-radius: 14px;
  margin: 0 0 28px;
  overflow: hidden;
}
.upd-create > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink, #1B1B1E);
  background: linear-gradient(135deg, var(--paper, #FBF7F0), #FDF9F2);
}
.upd-create > summary::-webkit-details-marker { display: none; }
.upd-create > summary::before { content: '+ '; color: var(--sage, #8A9783); }
.upd-create[open] > summary::before { content: '− '; }
.upd-form {
  padding: 16px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.upd-form__label {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
  margin-top: 10px;
}
.upd-form input[type="text"],
.upd-form input[type="url"],
.upd-form input[type="date"],
.upd-form select,
.upd-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(94, 107, 87, 0.25);
  border-radius: 8px;
  background: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink, #1B1B1E);
  resize: vertical;
  box-sizing: border-box;
}
.upd-form input[type="file"] { padding: 8px 0; }
.upd-form__hint {
  font-size: 12px;
  color: var(--fg-muted, #6B6B6B);
  margin-top: 4px;
}
.upd-form__check-row {
  display: flex; gap: 18px; flex-wrap: wrap;
  margin-top: 14px;
}
.upd-form__check {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px;
  cursor: pointer;
}
.upd-form__submit { align-self: flex-start; margin-top: 16px; }

.upd-list-title {
  font-family: 'Special Gothic Expanded One', sans-serif;
  font-size: 20px;
  margin: 8px 0 14px;
}
.upd-list-count {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  background: var(--ink, #1B1B1E);
  color: var(--cream, #F4ECE0);
  padding: 2px 9px;
  border-radius: 999px;
  margin-left: 6px;
  letter-spacing: 0.06em;
  vertical-align: middle;
}
.upd-list { display: flex; flex-direction: column; gap: 14px; }
.upd-post {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  background: var(--paper, #FBF7F0);
  border: 1px solid rgba(94, 107, 87, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  align-items: start;
}
.upd-post.is-pinned { border-color: var(--champagne, #B8A878); }
.upd-post.is-draft   { opacity: 0.7; }
.upd-post.is-expired { opacity: 0.55; }
.upd-post__img {
  display: block;
  width: 120px; height: 120px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.upd-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upd-post__body { min-width: 0; }
.upd-post__meta {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: var(--fg-muted, #6B6B6B);
  margin-bottom: 6px;
}
.upd-post__stand {
  background: rgba(94, 107, 87, 0.12);
  color: var(--sageDeep, #5E6B57);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.upd-post__views { margin-left: auto; }
.upd-pill {
  padding: 2px 8px; border-radius: 999px;
  font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  font-family: 'DM Mono', monospace;
}
.upd-pill--pin   { background: var(--champagne, #B8A878); color: #fff; }
.upd-pill--draft { background: rgba(94, 107, 87, 0.18); color: var(--sageDeep, #5E6B57); }
.upd-pill--exp   { background: #C75A4A; color: #fff; }
.upd-post__title {
  font-family: 'Special Gothic Expanded One', sans-serif;
  font-size: 16px; line-height: 1.2;
  margin: 0 0 6px;
}
.upd-post__text {
  font-size: 14px; line-height: 1.5;
  white-space: pre-line;
  word-break: break-word;
}
.upd-post__link {
  display: inline-block;
  margin-top: 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--sageDeep, #5E6B57);
  text-decoration: none;
  border-bottom: 1px solid var(--sage, #8A9783);
}
.upd-post__actions {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(94, 107, 87, 0.08);
}
.upd-btn {
  appearance: none; cursor: pointer;
  padding: 6px 12px; border-radius: 999px;
  font-family: 'DM Mono', monospace; font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(94, 107, 87, 0.3);
  background: transparent;
  color: var(--sageDeep, #5E6B57);
  transition: all 120ms;
}
.upd-btn--ghost:hover {
  background: var(--ink, #1B1B1E); color: #fff; border-color: var(--ink, #1B1B1E);
}
.upd-btn--danger {
  border-color: rgba(199, 90, 74, 0.3); color: #C75A4A;
}
.upd-btn--danger:hover {
  background: #C75A4A; color: #fff; border-color: #C75A4A;
}

@media (max-width: 540px) {
  .upd-post { grid-template-columns: 1fr; }
  .upd-post__img { width: 100%; height: 200px; }
}

/* ════════════════════════════════════════════════════════════════════════
   /expositores/stats.php — analytics dashboard for vendors.
   ════════════════════════════════════════════════════════════════════════ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 0 0 36px;
}
.stat-tile {
  background: var(--paper, #FBF7F0);
  border: 1px solid rgba(94, 107, 87, 0.14);
  border-radius: 14px;
  padding: 16px 16px 14px;
  transition: transform 160ms, box-shadow 160ms;
}
.stat-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(31, 42, 55, 0.06); }
.stat-tile__label {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
  margin-bottom: 6px;
}
.stat-tile__value {
  font-family: 'Special Gothic Expanded One', sans-serif;
  font-size: 30px;
  line-height: 1;
  color: var(--ink, #1B1B1E);
  letter-spacing: -0.01em;
}
.stat-tile__sub {
  font-size: 11.5px;
  color: var(--fg-muted, #6B6B6B);
  margin-top: 6px;
}

.stats-section { margin: 0 0 40px; }
.stats-section__title {
  font-family: 'Special Gothic Expanded One', sans-serif;
  font-size: 20px;
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.stats-section__intro {
  margin: 0 0 16px;
  font-size: 13.5px;
}

/* ── Funnel ─────────────────────────────────────────────────────────── */
.funnel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.funnel__row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 14px;
  align-items: center;
}
.funnel__label {
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--sageDeep, #5E6B57);
}
.funnel__bar {
  position: relative;
  height: 34px;
  background: rgba(94, 107, 87, 0.06);
  border-radius: 8px;
  overflow: hidden;
}
.funnel__bar-fill {
  display: block;
  width: var(--w);
  height: 100%;
  background: linear-gradient(90deg, var(--sage, #8A9783) 0%, var(--champagne, #B8A878) 100%);
  border-radius: 8px;
  transition: width 400ms;
}
.funnel__bar-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--ink, #1B1B1E);
  font-size: 13px;
}
.funnel__bar-text strong { font-weight: 600; }
.funnel__rate {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--sageDeep, #5E6B57);
  letter-spacing: 0.06em;
}
@media (max-width: 540px) {
  .funnel__row { grid-template-columns: 1fr; gap: 4px; }
  .funnel__label { padding-left: 2px; }
}

/* ── Sparkline 14d ──────────────────────────────────────────────────── */
.spark {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 130px;
  padding: 6px 0 26px;
  background: var(--paper, #FBF7F0);
  border-radius: 12px;
  border: 1px solid rgba(94, 107, 87, 0.12);
}
.spark__bar {
  flex: 1;
  background: linear-gradient(180deg, var(--champagne, #B8A878) 0%, var(--sage, #8A9783) 100%);
  border-radius: 4px 4px 0 0;
  min-height: 6px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  cursor: default;
  transition: filter 160ms;
}
.spark__bar:hover { filter: brightness(1.1); }
.spark__count {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--ink, #1B1B1E);
  background: rgba(244, 236, 224, 0.9);
  padding: 1px 4px;
  border-radius: 4px;
  position: absolute;
  top: -16px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 120ms;
  pointer-events: none;
}
.spark__bar:hover .spark__count { opacity: 1; }
.spark__date {
  position: absolute;
  bottom: -20px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--fg-muted, #6B6B6B);
}

/* ── Per-post performance list ───────────────────────────────────────── */
.stats-posts { display: flex; flex-direction: column; gap: 10px; }
.stats-post {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  background: var(--paper, #FBF7F0);
  border: 1px solid rgba(94, 107, 87, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  align-items: center;
}
.stats-post__thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--cream, #F4ECE0);
}
.stats-post__thumb--blank {
  background: linear-gradient(135deg, var(--sage, #8A9783) 0%, var(--sageDeep, #5E6B57) 100%);
}
.stats-post__body { min-width: 0; }
.stats-post__head { margin-bottom: 8px; }
.stats-post__head h3 {
  margin: 0 0 2px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink, #1B1B1E);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stats-post__notitle {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--sageDeep, #5E6B57);
}
.stats-post__meta {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--fg-muted, #6B6B6B);
}
.stats-post__nums {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.stats-post__nums > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.stats-post__nums strong {
  font-family: 'Special Gothic Expanded One', sans-serif;
  font-size: 18px;
  line-height: 1;
  color: var(--ink, #1B1B1E);
}
.stats-post__nums span {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
  margin-top: 3px;
}
@media (max-width: 540px) {
  .stats-post { grid-template-columns: 60px 1fr; }
  .stats-post__thumb { width: 60px; height: 60px; }
  .stats-post__nums { gap: 12px; }
  .stats-post__nums strong { font-size: 15px; }
}

/* Exhibitor portal explainer panel — used in /expositores/perks.php to teach
   what a "beneficio" is on first visit. */
.exh-explainer {
  background: var(--paper, #FBF7F0);
  border-left: 3px solid var(--champagne, #B8A878);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 0 0 28px;
  max-width: 720px;
}
.exh-explainer__lead {
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 12px;
  color: var(--ink, #1B1B1E);
}
.exh-explainer__lead em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--sageDeep, #5E6B57);
}
.exh-explainer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
}
.exh-explainer__list li {
  padding: 4px 0 4px 22px;
  position: relative;
  color: var(--sageDeep, #5E6B57);
}
.exh-explainer__list li::before {
  content: '·';
  position: absolute;
  left: 6px;
  color: var(--champagne, #B8A878);
  font-weight: 700;
}
.exh-explainer__list strong {
  color: var(--ink, #1B1B1E);
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════════════
   .tabs-wrap — solid "Menú ▾" button anchored at the start of .exh-tabs /
   .mc-tabs. Click opens a vertical dropdown listing every tab. The
   horizontal scroll bar remains as a secondary affordance.
   ════════════════════════════════════════════════════════════════════════ */

.tabs-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--line, var(--border, rgba(94, 107, 87, 0.16)));
}
/* The inner bars no longer carry the bottom border or margin — they live
   inside the wrapper now. */
.tabs-wrap .exh-tabs,
.tabs-wrap .mc-tabs {
  margin: 0;
  flex: 1;
  min-width: 0;
  border-bottom: none;
}
.exh-tabs,
.mc-tabs {
  mask-image: none !important;
  -webkit-mask-image: none !important;
  /* Lock the gesture to horizontal only — prevents diagonal swipes from
     scrolling the page vertically while the user drags the tab bar. */
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
}

/* Solid anchored button — the new primary nav affordance.
   The label shows the CURRENT section's name (filled by JS on mount) so the
   user always sees their context, not just an opaque "Menu". */
.tabs-wrap__menu {
  appearance: none;
  flex-shrink: 0;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px 13px;
  margin-bottom: -1px;            /* sit on the wrapper's bottom border */
  background: var(--ink, #1B1B1E);
  color: var(--cream, #F4ECE0);
  border: none;
  border-radius: 12px 12px 0 0;
  font-family: var(--mono, 'DM Mono', monospace);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 140ms, color 140ms;
  white-space: nowrap;
  max-width: 60vw;
}
.tabs-wrap__menu:hover,
.tabs-wrap__menu[aria-expanded="true"] {
  background: #000;
}
.tabs-wrap__menu:focus-visible {
  outline: 2px solid var(--champagne, #B8A878);
  outline-offset: 2px;
}
.tabs-wrap__menu svg { color: var(--champagne, #B8A878); flex-shrink: 0; }
.tabs-wrap__menu-label {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tabs-wrap__menu-label::before {
  content: 'Sección';
  display: block;
  font-size: 9px;
  letter-spacing: 0.24em;
  opacity: 0.55;
  font-weight: 400;
  margin-bottom: 1px;
  line-height: 1;
}
.tabs-wrap__menu-caret {
  font-size: 12px;
  line-height: 1;
  transition: transform 200ms cubic-bezier(0.65, 0, 0.35, 1);
  color: var(--champagne, #B8A878);
}
.tabs-wrap__menu[aria-expanded="true"] .tabs-wrap__menu-caret {
  transform: rotate(180deg);
}

/* Dropdown sheet — absolute below the button, populated by JS. */
.tabs-wrap__sheet {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 240px;
  max-width: min(360px, calc(100vw - 32px));
  background: var(--paper, #FBF7F0);
  border: 1px solid rgba(94, 107, 87, 0.18);
  border-radius: 14px;
  box-shadow: 0 14px 42px rgba(31, 42, 55, 0.14);
  padding: 6px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 180ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 180ms cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 180ms;
}
.tabs-wrap__sheet.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 200ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 200ms cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0s;
}
.tabs-wrap__sheet a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  font-family: var(--mono, 'DM Mono', monospace);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink, #1B1B1E);
  text-decoration: none;
  border-radius: 8px;
  transition: background 120ms;
}
.tabs-wrap__sheet a:hover,
.tabs-wrap__sheet a:focus-visible {
  background: rgba(184, 168, 120, 0.12);
  outline: none;
}
.tabs-wrap__sheet a.is-active {
  background: var(--ink, #1B1B1E);
  color: var(--cream, #F4ECE0);
}
.tabs-wrap__sheet a .pill {
  background: var(--champagne, #B8A878);
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  padding: 1px 7px;
  border-radius: 999px;
  text-transform: uppercase;
}
.tabs-wrap__sheet a.is-active .pill {
  background: rgba(244, 236, 224, 0.22);
  color: var(--cream, #F4ECE0);
}

/* Compact button on narrow viewports — keep the icon, hide the word. */
@media (max-width: 540px) {
  .tabs-wrap__menu-label { display: none; }
  .tabs-wrap__menu { padding: 10px 12px 12px; gap: 4px; }
}

/* ════════════════════════════════════════════════════════════════════════
   portal-switch v3 — minimal avatar trigger + cream/champagne dropdown.
   The trigger is just a circular avatar with the user's initial. Identity
   (name + email + role) lives inside the dropdown, leading with a primary
   CTA in brand tones (no more dark ink card that broke the palette).
   ════════════════════════════════════════════════════════════════════════ */

/* Role-tinted helpers — applied via portal-switch__btn--role-{key} on the
   avatar, the role pill in the identity header, the primary CTA icon, and
   the secondary items. Keeps the visual link between trigger + content. */
.portal-switch__btn--role-admin     { --ps-tint: #E8A89D; --ps-tint-soft: rgba(232, 168, 157, 0.14); }
.portal-switch__btn--role-exhibidor { --ps-tint: #B8A878; --ps-tint-soft: rgba(184, 168, 120, 0.14); }
.portal-switch__btn--role-attendee  { --ps-tint: #8A9783; --ps-tint-soft: rgba(138, 151, 131, 0.14); }
.portal-switch__btn--role-           { --ps-tint: #8A9783; --ps-tint-soft: rgba(138, 151, 131, 0.14); }

/* Trigger — avatar circle only. Replaces icon+pill+email+caret cluster. */
.portal-switch__btn--avatar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px 3px 3px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(94, 107, 87, 0.16);
  transition: background 160ms, border-color 160ms, transform 160ms;
}
.portal-switch__btn--avatar:hover,
.portal-switch__btn--avatar[aria-expanded="true"] {
  background: var(--paper, #FBF7F0);
  border-color: rgba(94, 107, 87, 0.32);
}
.portal-switch__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ps-tint, var(--sage, #8A9783));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Subtle inner shadow so the icon sits inside the disc rather than
     floating on top. */
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.10);
}
.portal-switch__avatar svg { display: block; color: #fff; }
.portal-switch__btn--avatar .portal-switch__chev {
  color: var(--fg-muted, #6B6B6B);
  /* The rotate-on-expand is already defined on .portal-switch__btn[aria-expanded="true"]
     above (45deg → -135deg), which composes correctly because the shape itself uses
     a 45deg rotation as its base orientation. Don't re-rotate here. */
}

body.theme-dark .portal-switch__btn--avatar {
  border-color: rgba(244, 236, 224, 0.16);
}
body.theme-dark .portal-switch__btn--avatar:hover,
body.theme-dark .portal-switch__btn--avatar[aria-expanded="true"] {
  background: rgba(244, 236, 224, 0.08);
  border-color: rgba(244, 236, 224, 0.32);
}
body.theme-dark .portal-switch__btn--avatar .portal-switch__chev {
  color: rgba(244, 236, 224, 0.6);
}

/* Dropdown menu — wider to host the identity header. */
.portal-switch__menu--card {
  min-width: 280px;
  max-width: min(340px, calc(100vw - 24px));
}

/* Identity header inside the menu — avatar + name + email + role pill. */
.portal-switch__id {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(94, 107, 87, 0.1);
}
.portal-switch__id-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ps-tint, var(--sage, #8A9783));
  color: #fff;
  font-family: var(--mono, 'DM Mono', monospace);
  font-size: 18px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.portal-switch__id-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.portal-switch__id-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #1B1B1E);
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portal-switch__id-email {
  font-size: 12px;
  color: var(--fg-muted, #6B6B6B);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portal-switch__id-role {
  align-self: flex-start;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ps-tint-soft, rgba(138, 151, 131, 0.14));
  color: var(--ps-tint, var(--sage, #8A9783));
  font-family: var(--mono, 'DM Mono', monospace);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Primary CTA — brand-toned soft card (replaces the harsh dark ink card). */
.portal-switch__primary--soft {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  margin: 8px 8px 4px;
  background: var(--ps-tint-soft, rgba(184, 168, 120, 0.14));
  color: var(--ink, #1B1B1E);
  border: 1px solid color-mix(in srgb, var(--ps-tint, #B8A878) 30%, transparent);
  border-radius: 10px;
  text-decoration: none;
  transition: background 160ms, transform 160ms, border-color 160ms;
}
.portal-switch__primary--soft:hover {
  background: color-mix(in srgb, var(--ps-tint, #B8A878) 22%, transparent);
  border-color: color-mix(in srgb, var(--ps-tint, #B8A878) 50%, transparent);
  transform: translateY(-1px);
}
.portal-switch__primary--soft .portal-switch__primary-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #fff;
  color: var(--ps-tint, var(--sageDeep, #5E6B57));
  border: 1px solid color-mix(in srgb, var(--ps-tint, #B8A878) 24%, transparent);
}
.portal-switch__primary--soft .portal-switch__primary-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.portal-switch__primary--soft .portal-switch__primary-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink, #1B1B1E);
  line-height: 1.2;
}
.portal-switch__primary--soft .portal-switch__primary-desc {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--fg-muted, #6B6B6B);
}
.portal-switch__primary--soft .portal-switch__primary-arr {
  font-size: 18px;
  color: var(--ps-tint, var(--sageDeep, #5E6B57));
  transition: transform 160ms;
}
.portal-switch__primary--soft:hover .portal-switch__primary-arr {
  transform: translateX(3px);
}

/* "Cambiar a" header above secondary portals. */
.portal-switch__group-h {
  padding: 12px 14px 4px;
  font-family: var(--mono, 'DM Mono', monospace);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted, #6B6B6B);
}

/* Secondary portal items — line with icon + label + arrow. */
.portal-switch__item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 14px;
  font-family: var(--mono, 'DM Mono', monospace);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink, #1B1B1E);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background 120ms;
}
.portal-switch__item:hover,
.portal-switch__item:focus-visible {
  background: var(--ps-tint-soft, rgba(184, 168, 120, 0.12));
  outline: none;
}
.portal-switch__item .portal-switch__ico {
  color: var(--ps-tint, var(--sageDeep, #5E6B57));
  display: inline-flex;
}
.portal-switch__lbl { font-weight: 500; }
.portal-switch__item-arr {
  font-size: 14px;
  color: var(--fg-muted, #6B6B6B);
}

/* Bottom action (logout). */
.portal-switch__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-family: var(--mono, 'DM Mono', monospace);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink, #1B1B1E);
  text-decoration: none;
  transition: background 120ms;
}
.portal-switch__link:hover { background: rgba(184, 168, 120, 0.12); }
.portal-switch__link--danger { color: #C75A4A; }
.portal-switch__link--danger:hover { background: rgba(199, 90, 74, 0.08); }
.portal-switch__link svg { color: currentColor; opacity: 0.7; }

.portal-switch__divider {
  height: 1px;
  background: rgba(94, 107, 87, 0.1);
  margin: 4px 0;
}

/* ════════════════════════════════════════════════════════════════════════
   portal_nav.php — sidebar (desktop) + bottom scrollable nav (mobile).
   Pattern ported from Andante Maestro (.adm-side / .mob-bottomnav),
   re-prefixed .psn-* and re-skinned to the WExpo Araucanía palette (cream/sage/
   champagne instead of accent blue).
   ════════════════════════════════════════════════════════════════════════ */

/* When the partial is present, add space for the fixed sidebar on desktop
   and the fixed bottom-nav on mobile. */
body.has-portal-nav .section { transition: padding 200ms; }
@media (min-width: 960px) {
  body.has-portal-nav .section,
  body.has-portal-nav main > section { padding-left: calc(240px + 24px) !important; }
  /* Floating variant: shift <main> instead of padding each section so pages
     that already constrain themselves with `max-width + margin: 0 auto` can
     still flow correctly in the remaining horizontal area.
     16px sidebar offset + 220px sidebar width + 20px gap = 256px. */
  body.has-portal-nav--floating main { padding-left: 256px; }
  body.has-portal-nav--floating .section,
  body.has-portal-nav--floating main > section { padding-left: 0 !important; }
  /* Many attendee pages set inline `margin: 0 auto` on the section, which
     CENTERS their content inside main and clashes with pasaporte (no
     margin auto) — content position would flip page-to-page. Force the
     section flush-left so every attendee page reads the same: content
     starts right after the sidebar seam. !important needed to beat the
     inline style. */
  body.has-portal-nav--floating .section,
  body.has-portal-nav--floating main > section {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
@media (max-width: 720px) {
  /* Reserve room for the floating bottom-nav chip (12 gap + ~58 height +
     12 buffer = ~82) plus the device safe-area inset. */
  body.has-portal-nav { padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px)); }
}

/* ── Sidebar — desktop only ──────────────────────────────────────────── */
.psn-side {
  position: fixed;
  top: 72px;                     /* below main .nav (which is ~64-72px tall) */
  left: 0;
  bottom: 0;
  width: 240px;
  background: var(--paper, #FBF7F0);
  border-right: 1px solid rgba(94, 107, 87, 0.14);
  display: flex;
  flex-direction: column;
  z-index: 10;
  overflow: hidden;
}
@media (max-width: 959px) {
  .psn-side { display: none; }
}
body.theme-dark .psn-side {
  background: rgba(244, 236, 224, 0.04);
  border-right-color: rgba(244, 236, 224, 0.10);
}

.psn-side__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(94, 107, 87, 0.10);
  text-decoration: none;
  color: var(--ink, #1B1B1E);
}
.psn-side__brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--champagne, #B8A878);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.psn-side__brand-mark svg { display: block; }
.psn-side__brand-text { display: flex; flex-direction: column; min-width: 0; }
.psn-side__brand-name {
  font-family: 'Special Gothic Expanded One', sans-serif;
  font-size: 13px;
  letter-spacing: -0.005em;
  line-height: 1.1;
}
.psn-side__brand-sub {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
  margin-top: 3px;
}

/* Wordmark variant of the sidebar brand — the logo lives at the top of the
   sidebar, with the role/context line (Expositor · Mi stand) stacked below.
   Used in dashboard mode where the top bar has been removed and the sidebar
   carries the brand identity on its own. */
.psn-side__brand--logo {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 20px 18px 14px;
}
.psn-side__brand-logo {
  display: block;
  width: auto;
  height: 30px;
  max-width: 100%;
  transition: opacity 180ms ease, transform 280ms ease;
}
.psn-side__brand--logo:hover .psn-side__brand-logo { opacity: 0.85; transform: translateY(-1px); }
.psn-side__brand-sub--block { display: block; margin-top: 0; }

/* ── Floating logo chip — attendee variant ────────────────────────────────
   Lives outside .psn-side so the wordmark can sit at the corner of the
   viewport while the sidebar floats below it. Hidden on mobile (the public
   site nav still shows the wordmark on /mi-cuenta/ at ≤720px). */
.psn-logo--floating {
  position: fixed;
  top: 18px;
  left: 22px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 180ms ease, transform 280ms ease;
}
.psn-logo--floating img {
  display: block;
  height: 30px;
  width: auto;
}
.psn-logo--floating:hover { opacity: 0.85; transform: translateY(-1px); }
@media (max-width: 959px) { .psn-logo--floating { display: none; } }

/* ── Floating compact sidebar — attendee variant ──────────────────────────
   Liquid-glass card that occupies the left column. Items right-aligned
   inside the card against its inner right edge — content lives in the
   right column flush-left to the card's seam. Height auto so the card
   is only as tall as its items (no stretch to bottom). */
.psn-side--floating {
  /* Top aligned with the main content blocks of the attendee dashboard
     (most pages start their hero/heading at y=140). The sidebar's top edge
     now shares a horizontal baseline with the page heading. */
  top: 140px;
  left: 16px;
  width: 220px;
  bottom: auto;             /* shrink to content height */
  height: auto;
  /* Cap height so on short viewports (or sidebars with many items, e.g. the
     exhibitor dashboard) the card never spills past the visible area. The
     inner .psn-side__nav owns the scroll. */
  max-height: calc(100vh - 160px);
  max-height: calc(100dvh - 160px);
  /* Heavier liquid-glass: behind the sidebar there's only the page's empty
     left margin, so we can crank transparency way down — blur + saturation
     do the work, the cream tint just warms what's underneath. */
  background: rgba(255, 252, 245, 0.55);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(31, 42, 55, 0.04),
    0 18px 56px rgba(31, 42, 55, 0.16),
    0 4px 12px rgba(31, 42, 55, 0.08);
  padding: 8px;
  overflow: hidden;
}
body.theme-dark .psn-side--floating {
  background: rgba(20, 28, 38, 0.55);
  border-color: rgba(244, 236, 224, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20),
    0 22px 64px rgba(0, 0, 0, 0.55),
    0 4px 14px rgba(0, 0, 0, 0.32);
}
.psn-side--floating .psn-side__nav {
  flex: 1 1 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;     /* items span the full sidebar width */
  gap: 2px;
  /* Scroll the item list when it exceeds the card's max-height (e.g. exhibitor
     dashboard on a short viewport). The card itself stays clipped via the
     parent overflow:hidden + max-height. */
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.psn-side--floating .psn-side__section {
  padding: 10px 12px 4px;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-align: left;
}
.psn-side--floating .psn-side__item {
  /* Full-width items so the active-indicator pill spans the entire menu
     bar width (no leftover gutter on either side). */
  display: grid;
  grid-template-columns: 18px 1fr auto;   /* icon · label · optional badge */
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  margin: 0;
  color: var(--sageDeep, #5E6B57);
  text-align: left;
  font-size: 13px;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.psn-side--floating .psn-side__item:hover {
  background: rgba(94, 107, 87, 0.08);
  color: var(--ink, #1B1B1E);
}
.psn-side--floating .psn-side__item.is-active {
  background: rgba(184, 168, 120, 0.24);
  color: var(--ink, #1B1B1E);
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 0 0 1px rgba(184, 168, 120, 0.30);
}
.psn-side--floating .psn-side__item-label { text-align: left; white-space: nowrap; }
.psn-side--floating .psn-side__divider {
  align-self: stretch;
  height: 1px;
  margin: 6px 6px;
  background: rgba(94, 107, 87, 0.10);
}
.psn-side__eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
  text-align: right;
  padding: 0 12px 10px;
  margin-bottom: 4px;
  align-self: stretch;
}
body.theme-dark .psn-side--floating .psn-side__item { color: rgba(244, 236, 224, 0.65); }
body.theme-dark .psn-side--floating .psn-side__item:hover { background: rgba(244, 236, 224, 0.06); color: var(--cream, #F4ECE0); }
body.theme-dark .psn-side--floating .psn-side__item.is-active { background: rgba(244, 236, 224, 0.10); color: var(--cream, #F4ECE0); }
body.theme-dark .psn-side__eyebrow { color: rgba(244, 236, 224, 0.5); }
body.theme-dark .psn-side--floating .psn-side__divider { background: rgba(244, 236, 224, 0.10); }

.psn-side__nav {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 8px 16px;
}

.psn-side__section {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted, #6B6B6B);
  padding: 10px 10px 6px;
}

.psn-side__divider {
  height: 1px;
  background: rgba(94, 107, 87, 0.10);
  margin: 6px 8px;
}

.psn-side__item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink, #1B1B1E);
  text-decoration: none;
  font-size: 13.5px;
  position: relative;
  transition: background 120ms, color 120ms;
}
.psn-side__item:hover {
  background: rgba(184, 168, 120, 0.10);
}
.psn-side__item.is-active {
  background: var(--cream, #F4ECE0);
  color: var(--ink, #1B1B1E);
  font-weight: 600;
}
.psn-side__item.is-active::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--champagne, #B8A878);
  border-radius: 0 2px 2px 0;
}
.psn-side__item-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sageDeep, #5E6B57);
}
.psn-side__item.is-active .psn-side__item-ico {
  color: var(--champagne-deep, #8B7B45);
}
.psn-side__item-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.psn-side__item-badge {
  background: var(--champagne, #B8A878);
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0;
  padding: 2px 7px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  font-weight: 600;
}
.psn-side__item.is-active .psn-side__item-badge {
  background: #fff;
  color: var(--champagne-deep, #8B7B45);
}

body.theme-dark .psn-side__item { color: var(--cream, #F4ECE0); }
body.theme-dark .psn-side__item:hover { background: rgba(244, 236, 224, 0.06); }
body.theme-dark .psn-side__item.is-active { background: rgba(244, 236, 224, 0.10); }

/* ── Mobile bottom-nav — floating liquid-glass chip on ≤720px ──────────
   The nav lives as a free-floating lozenge anchored to the bottom with a
   12px gap from each side; same material family as the sidebar/menu so
   the chrome reads as one system. Scroll-snap removed so the bar can't
   "jump" while users tap items. */
.psn-bottomnav {
  display: none;
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  background: rgba(255, 252, 245, 0.88);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.60);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(31, 42, 55, 0.05),
    0 18px 48px rgba(31, 42, 55, 0.18),
    0 4px 12px rgba(31, 42, 55, 0.10);
}
@media (max-width: 720px) {
  .psn-bottomnav { display: block; }
}
body.theme-dark .psn-bottomnav {
  background: rgba(20, 28, 38, 0.78);
  border-color: rgba(244, 236, 224, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20),
    0 22px 56px rgba(0, 0, 0, 0.55),
    0 4px 14px rgba(0, 0, 0, 0.32);
}

.psn-bottomnav__scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  scrollbar-width: none;
  touch-action: pan-x;
  padding: 4px;
}
.psn-bottomnav__scroll::-webkit-scrollbar { display: none; }

.psn-bottomnav__item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 62px;
  padding: 8px 8px 6px;
  color: var(--sageDeep, #5E6B57);
  text-decoration: none;
  position: relative;
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 14px;
  transition: color 140ms ease, background 140ms ease, transform 120ms ease, box-shadow 140ms ease;
}
.psn-bottomnav__item:active { transform: scale(0.95); }
.psn-bottomnav__item.is-active {
  color: var(--ink, #1B1B1E);
  background: rgba(184, 168, 120, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 0 0 1px rgba(184, 168, 120, 0.30);
}
.psn-bottomnav__item.is-active::before { content: none; }
body.theme-dark .psn-bottomnav__item { color: rgba(244, 236, 224, 0.6); }
body.theme-dark .psn-bottomnav__item.is-active {
  color: var(--cream, #F4ECE0);
  background: rgba(244, 236, 224, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 0 0 1px rgba(244, 236, 224, 0.16);
}

.psn-bottomnav__ico {
  position: relative;
  display: inline-flex;
}
.psn-bottomnav__badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background: var(--coral, #E8A89D);
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  letter-spacing: 0;
  line-height: 1.2;
}
.psn-bottomnav__label {
  text-align: center;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.psn-bottomnav__sep {
  width: 1px;
  background: rgba(94, 107, 87, 0.12);
  margin: 10px 4px;
  flex-shrink: 0;
}
body.theme-dark .psn-bottomnav__sep { background: rgba(244, 236, 224, 0.12); }

/* ── Mobile title-dropdown trigger — lives INSIDE the top .nav, right after
   the wordmark, so the bar reads: [logo] [current page ▾] · · · [account].
   JS in portal_nav.php injects the chip into the nav at runtime. ─────── */
.psn-mob-titlechip {
  display: none;
  min-width: 0;
  max-width: 60vw;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  margin: 0 8px 0 4px;
  margin-right: auto;        /* hug the logo + push the account-btn to the right edge */
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink, #1B1B1E);
  cursor: pointer;
  text-align: left;
  transition: background 140ms ease, color 140ms ease;
}
@media (max-width: 720px) {
  .psn-mob-titlechip { display: inline-flex; }
}
.psn-mob-titlechip:hover { background: rgba(31, 42, 55, 0.07); }
.psn-mob-titlechip[aria-expanded="true"] {
  background: rgba(31, 42, 55, 0.10);
}
body.theme-dark .psn-mob-titlechip { color: var(--cream, #F4ECE0); }
body.theme-dark .psn-mob-titlechip:hover { background: rgba(244, 236, 224, 0.08); }
body.theme-dark .psn-mob-titlechip[aria-expanded="true"] {
  background: rgba(244, 236, 224, 0.12);
}

.psn-mob-titlechip__ico {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--sageDeep, #5E6B57);
  flex-shrink: 0;
}
.psn-mob-titlechip__ico svg { width: 14px; height: 14px; }
body.theme-dark .psn-mob-titlechip__ico { color: var(--champagne, #B8A878); }
.psn-mob-titlechip__lbl {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0;
}
.psn-mob-titlechip__chev {
  opacity: 0.55; flex-shrink: 0;
  transition: transform .18s ease, opacity .18s ease;
}
.psn-mob-titlechip[aria-expanded="true"] .psn-mob-titlechip__chev {
  transform: rotate(180deg);
  opacity: 1;
}

.psn-mob-title-backdrop {
  position: fixed; inset: 0;
  z-index: 89;
  background: rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  display: none;
  animation: psnMtFade 140ms ease;
}
.psn-mob-title-backdrop[data-open="true"] { display: block; }
@keyframes psnMtFade { from { opacity: 0; } to { opacity: 1; } }

.psn-mob-title-menu {
  position: fixed;
  /* The nav is ~56px tall in dashboard-mode (.nav.nav--dashboard) — the
     dropdown hangs just below it with a small breathing gap. */
  top: calc(56px + env(safe-area-inset-top, 0px) + 8px);
  left: 12px; right: 12px;
  z-index: 90;
  max-height: 70vh;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 252, 245, 0.93);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(31, 42, 55, 0.05),
    0 22px 64px rgba(31, 42, 55, 0.28),
    0 6px 16px rgba(31, 42, 55, 0.14);
  color: var(--ink, #1B1B1E);
}
.psn-mob-title-menu[data-open="true"] {
  display: flex;
  animation: psnMtSlide 200ms cubic-bezier(.2,.8,.2,1);
}
@keyframes psnMtSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.theme-dark .psn-mob-title-menu {
  background: rgba(20, 28, 38, 0.88);
  border-color: rgba(244, 236, 224, 0.16);
  color: var(--cream, #F4ECE0);
}
@media (min-width: 721px) {
  .psn-mob-titlechip,
  .psn-mob-title-backdrop,
  .psn-mob-title-menu { display: none !important; }
}

.psn-mob-title-menu__group {
  padding: 10px 12px 4px;
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted, #6B6B6B);
}
.psn-mob-title-menu__group:first-child { padding-top: 6px; }
body.theme-dark .psn-mob-title-menu__group { color: rgba(244, 236, 224, 0.55); }

.psn-mob-title-menu__item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px;
  border-radius: 11px;
  color: var(--ink, #1B1B1E);
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: background 140ms ease, color 140ms ease;
}
.psn-mob-title-menu__item:hover,
.psn-mob-title-menu__item:focus-visible {
  background: rgba(94, 107, 87, 0.08);
  outline: none;
}
.psn-mob-title-menu__item.is-active {
  background: rgba(184, 168, 120, 0.24);
  color: var(--ink, #1B1B1E);
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 0 0 1px rgba(184, 168, 120, 0.30);
}
.psn-mob-title-menu__item--primary {
  background: rgba(184, 168, 120, 0.18);
  font-weight: 600;
}
.psn-mob-title-menu__item--primary:hover {
  background: rgba(184, 168, 120, 0.30);
}
body.theme-dark .psn-mob-title-menu__item { color: var(--cream, #F4ECE0); }
body.theme-dark .psn-mob-title-menu__item:hover,
body.theme-dark .psn-mob-title-menu__item:focus-visible {
  background: rgba(244, 236, 224, 0.08);
}
body.theme-dark .psn-mob-title-menu__item.is-active {
  background: rgba(244, 236, 224, 0.12);
}
body.theme-dark .psn-mob-title-menu__item--primary {
  background: rgba(244, 236, 224, 0.10);
}

.psn-mob-title-menu__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  color: var(--sageDeep, #5E6B57);
  flex-shrink: 0;
}
.psn-mob-title-menu__ico svg { width: 18px; height: 18px; }
.psn-mob-title-menu__item.is-active .psn-mob-title-menu__ico,
.psn-mob-title-menu__item--primary .psn-mob-title-menu__ico {
  color: var(--champagne-deep, #8B7B45);
}
body.theme-dark .psn-mob-title-menu__ico { color: rgba(244, 236, 224, 0.55); }
body.theme-dark .psn-mob-title-menu__item.is-active .psn-mob-title-menu__ico,
body.theme-dark .psn-mob-title-menu__item--primary .psn-mob-title-menu__ico {
  color: var(--champagne, #B8A878);
}

.psn-mob-title-menu__lbl { flex: 1; min-width: 0; }
.psn-mob-title-menu__badge {
  background: var(--champagne, #B8A878);
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
}

.psn-mob-title-menu__divider {
  height: 1px;
  margin: 8px 4px;
  background: rgba(94, 107, 87, 0.10);
}
body.theme-dark .psn-mob-title-menu__divider { background: rgba(244, 236, 224, 0.10); }

/* ════════════════════════════════════════════════════════════════════════
   Dashboard mode — app-style layout for /expositores/* and /mi-cuenta/*.
   Strips marketing chrome: no footer, no public nav links, slim top bar,
   sidebar runs flush from the top, content area scrolls inside.
   ════════════════════════════════════════════════════════════════════════ */

/* The body becomes an app surface — no transparent backgrounds bleeding. */
body.dashboard-mode {
  background: var(--cream, #F4ECE0);
  min-height: 100vh;
  min-height: 100dvh;
}
body.theme-dark.dashboard-mode {
  background: var(--night, #1F2A37);
}

/* Slim app-bar: hide public marketing links, keep only brand + portal switch. */
.nav.nav--dashboard {
  padding-top: 10px;
  padding-bottom: 10px;
  height: 56px;
  border-bottom: 1px solid rgba(94, 107, 87, 0.10);
  background: var(--paper, #FBF7F0);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
body.theme-dark .nav.nav--dashboard {
  background: rgba(244, 236, 224, 0.04);
  border-bottom-color: rgba(244, 236, 224, 0.10);
}
.nav.nav--dashboard .nav-logo img { height: 26px; }

/* Hide public-facing marketing links (Para Novias, Programa, Expositores).
   Keep only the portal-switch dropdown + nav-cta + nav-login. */
.nav.nav--dashboard .nav-links > a.nav-link:not(.nav-cta):not(.nav-login) {
  display: none;
}

/* Move the sidebar flush with the top of the slim app-bar so they share
   one continuous left edge. */
body.dashboard-mode .psn-side { top: 56px; }

/* Content area: take full available height between the slim app bar and the
   bottom (no footer to push against). The section's padding-bottom doesn't
   need extra room since there's no footer below it. */
body.dashboard-mode main {
  min-height: calc(100vh - 56px);
  min-height: calc(100dvh - 56px);
}
body.dashboard-mode main > .section {
  /* The portal_nav CSS already adds padding-left: 264px on desktop. We just
     tighten the vertical rhythm so the content doesn't feel like a webpage. */
  padding-top: 32px;
  padding-bottom: 64px;
}
@media (max-width: 720px) {
  body.dashboard-mode main > .section { padding-top: 22px; padding-bottom: 96px; }
}

/* Sidebar dark-theme refinement for dashboard mode. */
body.theme-dark.dashboard-mode .psn-side {
  background: rgba(244, 236, 224, 0.03);
}

/* ── Desktop (≥960px): kill the top bar entirely ────────────────────────
   The sidebar carries the brand (wordmark) and a floating liquid-glass
   "Menú" pill replaces the user trigger from the old slim app-bar. Below
   960px we keep the slim top bar — the sidebar is hidden there. */
@media (min-width: 960px) {
  body.dashboard-mode .nav.nav--dashboard {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    height: auto;
    padding: 14px 22px;
    pointer-events: none;
    justify-content: flex-end;
  }
  body.dashboard-mode .nav.nav--dashboard .nav-logo,
  body.dashboard-mode .nav.nav--dashboard .nav-links > a.nav-link {
    display: none;
  }
  body.dashboard-mode .nav.nav--dashboard .nav-links {
    pointer-events: auto;
    gap: 0;
  }
  /* Sidebar runs flush from the top — no top-bar to push against. */
  body.dashboard-mode .psn-side { top: 0; }
  /* Floating variant: sidebar top aligns with the content's heading row
     (sections start at y=140 via inline padding-top). The floating logo
     still lives in the 18-48px strip above. */
  body.dashboard-mode .psn-side--floating { top: 140px; }
  /* The dash-foot padding also tracks the narrower sidebar. */
  body.has-portal-nav--floating .dash-foot { padding-left: 256px; }
  body.dashboard-mode main {
    min-height: 100vh;
    min-height: 100dvh;
  }
  body.dashboard-mode main > .section { padding-top: 28px; }

  /* Liquid-glass floating "Menú" pill — shared between dashboard-mode's
     in-nav trigger and the standalone .floating-menu partial used in the
     admin shell. Light variant (paper surface) by default. */
  body.dashboard-mode .portal-switch__btn--avatar,
  .floating-menu--light .portal-switch__btn--avatar {
    background: rgba(251, 247, 240, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    padding: 8px 14px 8px 10px;
    gap: 8px;
    box-shadow:
      0 10px 32px rgba(31, 42, 55, 0.10),
      0 1px 2px rgba(31, 42, 55, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  }
  body.dashboard-mode .portal-switch__btn--avatar:hover,
  .floating-menu--light .portal-switch__btn--avatar:hover {
    transform: translateY(-1px);
    background: rgba(251, 247, 240, 0.78);
    box-shadow:
      0 14px 38px rgba(31, 42, 55, 0.14),
      0 1px 2px rgba(31, 42, 55, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
  body.dashboard-mode .portal-switch__btn--avatar[aria-expanded="true"],
  .floating-menu--light .portal-switch__btn--avatar[aria-expanded="true"] {
    transform: translateY(0);
    background: rgba(251, 247, 240, 0.92);
  }
  body.dashboard-mode .portal-switch__btn-label,
  .floating-menu .portal-switch__btn-label {
    display: inline;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink, #1B1B1E);
    line-height: 1;
  }
  /* The dropdown menu floats off the same anchor — give it a little more
     prominence since there's no app-bar background behind it. */
  body.dashboard-mode .portal-switch__menu,
  .floating-menu .portal-switch__menu {
    box-shadow:
      0 20px 60px rgba(31, 42, 55, 0.16),
      0 2px 6px rgba(31, 42, 55, 0.06);
  }

  /* Dark glass variant — used by dashboard-mode under theme-dark and by the
     admin shell (which runs on a permanently dark ink surface). */
  body.theme-dark.dashboard-mode .portal-switch__btn--avatar,
  .floating-menu--dark .portal-switch__btn--avatar {
    background: rgba(31, 42, 55, 0.55);
    border-color: rgba(244, 236, 224, 0.2);
    box-shadow:
      0 10px 32px rgba(0, 0, 0, 0.30),
      0 1px 2px rgba(0, 0, 0, 0.20),
      inset 0 1px 0 rgba(244, 236, 224, 0.18);
  }
  body.theme-dark.dashboard-mode .portal-switch__btn--avatar:hover,
  .floating-menu--dark .portal-switch__btn--avatar:hover {
    background: rgba(31, 42, 55, 0.72);
  }
  body.theme-dark.dashboard-mode .portal-switch__btn-label,
  .floating-menu--dark .portal-switch__btn-label {
    color: var(--cream, #F4ECE0);
  }
}

/* ── Standalone floating-menu wrapper ────────────────────────────────────
   Anchors the pill at top-right of the viewport. Desktop only — admin
   has its own .adm-topbar on mobile so a second menu would be redundant. */
.floating-menu {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 80;
}
@media (max-width: 959px) {
  .floating-menu { display: none; }
}
/* The .portal-switch__menu anchor inside .floating-menu uses position:
   absolute relative to .portal-switch, which is correct out of the box. */

/* Label is hidden by default everywhere — only the dashboard-desktop block
   above flips it on. Keeps the public-site avatar trigger icon-only. */
.portal-switch__btn-label { display: none; }

/* ════════════════════════════════════════════════════════════════════════
   .dash-foot — minimal system strip for dashboard pages.
   Visible only when body.dashboard-mode is set. Sits at the end of the
   main content, ABOVE the mobile bottom-nav (so it doesn't get covered).
   ════════════════════════════════════════════════════════════════════════ */

.dash-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 28px;
  margin-top: 48px;
  border-top: 1px solid rgba(94, 107, 87, 0.08);
  color: var(--fg-muted, #6B6B6B);
  font-size: 12px;
}
@media (min-width: 960px) {
  .dash-foot { padding-left: calc(240px + 24px); }
}
@media (max-width: 720px) {
  .dash-foot { margin-bottom: 76px; padding: 22px 18px 26px; }
}

.dash-foot__row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.dash-foot__row--links {}
.dash-foot__row--meta {
  justify-content: space-between;
  border-top: 1px solid rgba(94, 107, 87, 0.08);
  padding-top: 10px;
}

.dash-foot__link {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sageDeep, #5E6B57);
  text-decoration: none;
  transition: color 120ms, border-color 120ms;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.dash-foot__link:hover {
  color: var(--ink, #1B1B1E);
  border-bottom-color: var(--sage, #8A9783);
}

.dash-foot__brand {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted, #6B6B6B);
}

/* Labs credit lives in src/views/_labs_credit.php as the canonical brand
   embed — do not re-style .nm-* here. The dash-foot scope only sizes the
   row that contains it. */

body.theme-dark .dash-foot { color: rgba(244, 236, 224, 0.5); border-top-color: rgba(244, 236, 224, 0.08); }
body.theme-dark .dash-foot__row--meta { border-top-color: rgba(244, 236, 224, 0.08); }
