/* Mesial · aplicación. Tokens en tokens.css; dirección de marca en docs/marca/DIRECCION.md.
   Componentes base (.btn, .chip, .input, .select, .tag, .event-card) definidos aquí; buscar.css los reutiliza. */

/* Tokens locales de la interfaz (si pasan a tokens.css, se borran de aquí). */
:root {
  --header-h: 72px;
  --r-btn: 12px;
  --r-tile: 14px;
  --r-lg: 24px;
  --h-sm: 40px;
  --h-md: 44px;
  --h-lg: 52px;
  --h-field: 48px;
  --line-soft: #efebe4;
  --noche-text-2: rgba(246, 244, 240, 0.74);
  --overlay: rgba(11, 34, 54, 0.48);
  --z-header: 40;
  --z-mobile: 45;
  --z-overlay: 60;
  --z-toast: 90;
  --dur: 0.18s;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 1.45rem + 1.1vw, 2.25rem); line-height: 1.15; }
h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.01em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; line-height: 1.45; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--coral-050); color: var(--noche); }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid var(--linea); border-bottom-width: 2px; border-radius: 6px; background: var(--blanco); font: 500 0.75rem/1 var(--font-sans); color: var(--ink-2); }

.container { width: min(1240px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 48px); margin-inline: auto; }
.stack > * + * { margin-top: var(--s-4); }
.section { padding-block: var(--s-20); }
.section-tight { padding-block: var(--s-12); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-8); }
.section-head h2 { font-size: clamp(1.625rem, 1.35rem + 0.9vw, 2.125rem); }
.section-head p { color: var(--ink-2); margin-top: var(--s-2); max-width: 58ch; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 500; color: var(--link); text-decoration: none; white-space: nowrap; border-radius: 6px; }
.link-arrow .icon { transition: transform var(--dur) var(--ease); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link-arrow:hover .icon { transform: translateX(3px); }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 22px; height: 22px; }
.icon-sm { width: 15px; height: 15px; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--noche); color: var(--blanco); padding: 10px 14px; border-radius: 10px; z-index: 100; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: var(--crema); border-bottom: 1px solid var(--linea); }
.header-inner { display: flex; align-items: center; gap: var(--s-6); height: var(--header-h); }
.brand-link { display: inline-flex; align-items: center; flex: none; border-radius: 8px; padding: 4px 2px; }
.brand-logo { height: 30px; width: auto; }
.main-nav { display: flex; gap: 2px; }
.nav-link { position: relative; display: inline-flex; white-space: nowrap; align-items: center; gap: 6px; height: var(--h-sm); padding: 0 12px; border-radius: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: 0.9688rem; color: var(--ink-2); transition: color var(--dur), background-color var(--dur); }
.nav-link:hover { color: var(--ink); background: var(--crema-200); }
.nav-link.active { color: var(--ink); }
/* El punto de la marca marca la sección activa: aparece una vez, sin repetirse como adorno. */
.nav-link::after { content: ''; position: absolute; left: 50%; bottom: -2px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--coral); transform: scale(0); transition: transform 0.28s var(--ease); }
.nav-link.active::after { transform: scale(1); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: var(--s-3); }
.header-actions { display: flex; align-items: center; gap: var(--s-2); }
.user-chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; height: var(--h-sm); text-decoration: none; font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; padding: 0 12px 0 4px; border: 1px solid var(--linea); border-radius: var(--r-pill); background: var(--blanco); transition: border-color var(--dur); }
.user-chip:hover { border-color: var(--linea-fuerte); }
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--noche-100); }
.avatar-lg { width: 72px; height: 72px; }

/* Disparador de la búsqueda global (search.js monta la paleta). */
.search-trigger { display: inline-flex; align-items: center; gap: 10px; height: var(--h-sm); width: clamp(200px, 19vw, 300px); padding: 0 8px 0 14px; border: 1px solid var(--linea); border-radius: var(--r-pill); background: var(--blanco); color: var(--ink-2); font-size: 0.9rem; cursor: pointer; text-align: left; transition: border-color var(--dur), box-shadow var(--dur); }
.search-trigger:hover { border-color: var(--linea-fuerte); box-shadow: var(--shadow-sm); }
.search-trigger:focus-visible { outline: none; border-color: var(--focus); box-shadow: var(--focus-ring); }
.search-trigger span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-trigger kbd { flex: none; }

/* ---------- Botones ---------- */
.btn {
  --spin: var(--noche);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h-md); padding: 0 18px; border-radius: var(--r-btn); border: 1px solid var(--linea-fuerte);
  background: var(--blanco); color: var(--ink); font-family: var(--font-display); font-weight: 500; font-size: 0.9688rem; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap; user-select: none;
  transition: background-color var(--dur), border-color var(--dur), color var(--dur), box-shadow var(--dur), transform 0.12s var(--ease);
}
.btn:hover { border-color: var(--noche-700); background: var(--blanco); }
.btn:active { transform: translateY(1px) scale(0.985); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-btn); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { --spin: var(--blanco); background: var(--cta); border-color: var(--cta); color: var(--blanco); font-weight: 600; }
.btn-primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn-primary[disabled]:hover { background: var(--cta); border-color: var(--cta); }
.btn-dark { --spin: var(--blanco); background: var(--noche); border-color: var(--noche); color: var(--blanco); font-weight: 600; }
.btn-dark:hover { background: var(--noche-900); border-color: var(--noche-900); }
.btn-soft { background: var(--noche-050); border-color: transparent; }
.btn-soft:hover { background: var(--noche-100); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--crema-200); border-color: transparent; }
.btn-sm { min-height: var(--h-sm); padding: 0 14px; font-size: 0.9rem; border-radius: 10px; }
.btn-lg { min-height: var(--h-lg); padding: 0 24px; font-size: 1.0313rem; border-radius: 14px; }
.btn-pill { border-radius: var(--r-pill); }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: var(--h-md); }
.btn-sm.btn-icon { width: var(--h-sm); }
.btn-danger { color: var(--error); }
.btn-danger:hover { color: var(--error); background: var(--error-bg); }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--spin); border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Campos ---------- */
.field { display: grid; gap: 6px; }
.field label, .label { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.field-hint { font-size: 0.8125rem; color: var(--ink-2); }
.input, .select, .textarea { width: 100%; min-height: var(--h-field); padding: 11px 14px; border: 1px solid var(--linea-fuerte); border-radius: var(--r-field); background: var(--blanco); color: var(--ink); transition: border-color var(--dur), box-shadow var(--dur); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--tenue); }
.input::placeholder, .textarea::placeholder { color: var(--tenue); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--focus); box-shadow: var(--focus-ring); }
.input:disabled, .select:disabled { background: var(--crema); color: var(--tenue); cursor: not-allowed; }
.input[aria-invalid='true'] { border-color: var(--error); }
.select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2312304a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px; }
input[type='date'].input, input[type='time'].input { font-variant-numeric: tabular-nums; }
input[type='date']::-webkit-calendar-picker-indicator, input[type='time']::-webkit-calendar-picker-indicator { opacity: 0.55; cursor: pointer; }
.form-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.error-text { color: var(--error); font-size: 0.875rem; min-height: 1em; }
.error-text:empty { display: none; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; margin-bottom: var(--s-3); }

/* Casillas y radios propios */
input[type='checkbox']:not(.sr-only):not(.switch input),
input[type='radio']:not(.sr-only) {
  appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; display: inline-grid; place-items: center;
  border: 1.5px solid var(--linea-fuerte); background: var(--blanco) no-repeat center / 14px; cursor: pointer;
  transition: background-color var(--dur), border-color var(--dur), box-shadow var(--dur);
}
input[type='checkbox']:not(.sr-only):not(.switch input) { border-radius: 6px; }
input[type='radio']:not(.sr-only) { border-radius: 50%; }
input[type='checkbox']:not(.sr-only):not(.switch input):hover, input[type='radio']:not(.sr-only):hover { border-color: var(--noche-700); }
input[type='checkbox']:not(.sr-only):not(.switch input):checked { background-color: var(--noche); border-color: var(--noche); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
input[type='radio']:not(.sr-only):checked { border: 6px solid var(--noche); }
input[type='checkbox']:not(.sr-only):focus-visible, input[type='radio']:not(.sr-only):focus-visible { outline: none; box-shadow: var(--focus-ring); border-color: var(--focus); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; line-height: 1.5; cursor: pointer; }
.check a { color: var(--link); text-underline-offset: 3px; }

/* Interruptor */
.switch { position: relative; display: inline-flex; flex: none; width: 44px; height: 26px; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: var(--r-pill); background: var(--linea-fuerte); transition: background-color 0.2s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--blanco); box-shadow: 0 1px 3px rgba(18, 48, 74, 0.25); transition: transform 0.22s var(--ease); }
.switch input:checked + span { background: var(--noche); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: var(--focus-ring); outline: 2px solid var(--focus); outline-offset: 2px; }
.switch input:disabled + span { opacity: 0.5; }
.switch-line { display: inline-flex; align-items: center; gap: 10px; font-size: 0.875rem; font-weight: 500; cursor: pointer; }

/* ---------- Chips, segmentados y etiquetas ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-block: 2px; margin-inline: -24px; padding-inline: 24px; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: var(--h-sm); padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--linea); background: var(--blanco); font-family: var(--font-display); font-size: 0.9rem; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; color: var(--ink); transition: background-color var(--dur), border-color var(--dur), color var(--dur); }
.chip:hover { border-color: var(--linea-fuerte); background: var(--crema); }
.chip:active { transform: translateY(1px); }
.chip[aria-pressed='true'], .chip.active, label.chip:has(input:checked) { background: var(--noche); border-color: var(--noche); color: var(--blanco); }
.chip .muted { color: inherit; opacity: 0.6; font-family: var(--font-sans); font-size: 0.8rem; }
span.chip { cursor: default; }
span.chip:hover { background: var(--blanco); border-color: var(--linea); }
label.chip { user-select: none; }
label.chip:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }

.segmented { display: inline-flex; gap: 2px; background: var(--crema-200); border-radius: 12px; padding: 4px; }
.segmented button { border: 0; background: transparent; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 9px; font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; color: var(--ink-2); cursor: pointer; transition: background-color var(--dur), color var(--dur), box-shadow var(--dur); }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed='true'], .segmented button[aria-selected='true'] { background: var(--blanco); color: var(--ink); box-shadow: 0 1px 2px rgba(18, 48, 74, 0.08), 0 0 0 1px rgba(18, 48, 74, 0.04); }

.tag { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; font-size: 0.78rem; font-weight: 600; padding: 2px 9px; border-radius: 7px; background: var(--noche-050); color: var(--noche); white-space: nowrap; line-height: 1.4; }
.tag .icon { width: 14px; height: 14px; }
.tag-plain { background: var(--crema-200); color: var(--gris); }
.tag-warn { background: var(--alerta-bg); color: var(--alerta); }
.tag-ok { background: var(--exito-bg); color: var(--exito); }
.tag-muted { background: var(--crema-200); color: var(--gris); }
.tag-dark { background: var(--noche); color: var(--blanco); }
.tag-line { background: var(--blanco); color: var(--noche); box-shadow: inset 0 0 0 1px var(--linea-fuerte); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* Sello de organizador verificado */
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--noche); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.verified .icon { width: 16px; height: 16px; color: var(--coral-700); stroke-width: 1.8; }
.verified-icon { display: inline-grid; place-items: center; flex: none; color: var(--coral-700); }
.verified-icon .icon { width: 15px; height: 15px; stroke-width: 1.9; }

/* ---------- Portada ---------- */
.hero { position: relative; padding-block: var(--s-16) var(--s-16); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--s-16); align-items: center; }
.hero h1 { max-width: 13ch; font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.25rem); line-height: 1.02; letter-spacing: -0.035em; }
.hero h1 .brand-word { display: block; color: var(--ink-2); font-weight: 500; }
.hero-lede { font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); max-width: 44ch; margin-top: var(--s-6); }
.hero-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-6); }
.hero-search { margin-top: var(--s-8); display: flex; align-items: center; gap: 8px; max-width: 640px; padding: 8px 8px 8px 22px; background: var(--blanco); border: 1px solid var(--linea); border-radius: 20px; box-shadow: 0 1px 2px rgba(18, 48, 74, 0.04), 0 18px 40px -28px rgba(18, 48, 74, 0.35); transition: border-color var(--dur), box-shadow var(--dur); }
.hero-search:hover { border-color: var(--linea-fuerte); }
.hero-search:focus-within { border-color: var(--focus); box-shadow: var(--focus-ring), 0 18px 40px -28px rgba(18, 48, 74, 0.35); }
.hero-search > .icon { color: var(--ink-2); width: 22px; height: 22px; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; min-height: 52px; font-size: 1.0625rem; color: var(--ink); }
.hero-search input::placeholder { color: var(--tenue); }
.hero-search .btn { min-height: 52px; border-radius: 14px; padding-inline: 26px; }
.hero-hints { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: var(--s-4); font-size: 0.875rem; color: var(--ink-2); }
.hero-hints a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: var(--crema-200); color: var(--ink); text-decoration: none; font-weight: 500; transition: background-color var(--dur); }
.hero-hints a:hover { background: var(--noche-100); }
.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); margin: var(--s-10) 0 0; padding-top: var(--s-6); border-top: 1px solid var(--linea); max-width: 640px; }
.hero-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; }
.hero-stats dt { color: var(--ink-2); font-size: 0.8125rem; line-height: 1.35; }
.hero-stats dd { margin: 0; font-family: var(--font-display); font-size: 1.875rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.15; }
/* El punto de "Mesial." es el de la marca: baja a su sitio una vez al cargar la portada. */
.hero-dot { display: inline-block; width: 0.19em; height: 0.19em; margin-left: 0.05em; border-radius: 50%; background: var(--coral); vertical-align: baseline; }
.hero-art { position: relative; justify-self: end; width: 100%; max-width: 500px; }
.hero-art figure { margin: 0; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--noche-100); }
.hero-art figure img { width: 100%; height: 100%; object-fit: cover; }
.hero-card { position: absolute; left: -48px; bottom: 36px; width: min(300px, 80%); padding: var(--s-4); border-radius: 18px; background: var(--blanco); box-shadow: var(--shadow-pop); display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; transition: transform 0.25s var(--ease); }
.hero-card:hover { transform: translateY(-3px); }
.hero-card img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.hero-card small { display: block; color: var(--ink-2); font-size: 0.78rem; font-weight: 500; }
.hero-card b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; line-height: 1.3; }

/* Accesos rápidos */
.quick { display: grid; gap: var(--s-6); }
.quick-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.spec-tile { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 84px; padding: var(--s-4) var(--s-5); border-radius: 16px; background: var(--blanco); border: 1px solid var(--linea); text-decoration: none; transition: border-color var(--dur), transform 0.2s var(--ease), box-shadow 0.2s; }
.spec-tile:hover { border-color: var(--linea-fuerte); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.spec-tile b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.25; }
.spec-tile small { display: block; color: var(--ink-2); font-size: 0.8125rem; margin-top: 2px; }
.spec-tile .icon { color: var(--ink-2); transition: transform var(--dur) var(--ease), color var(--dur); }
.spec-tile:hover .icon { transform: translateX(3px); color: var(--ink); }
.date-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.date-grid .spec-tile { min-height: 112px; align-items: flex-end; }

/* Categorías (compatibilidad) */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); }
.cat-card { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); min-height: 120px; padding: var(--s-5); border-radius: 16px; background: var(--blanco); border: 1px solid var(--linea); text-decoration: none; transition: border-color var(--dur), transform 0.2s var(--ease); }
.cat-card:hover { border-color: var(--linea-fuerte); transform: translateY(-2px); }
.cat-card b { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.cat-card b small { display: block; font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); margin-top: 2px; }

/* Ciudades */
.city-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-3); }
.city-card { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; text-decoration: none; color: #fff; background: var(--noche-100); }
.city-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.city-card::after { content: ""; position: absolute; inset: 0; background: rgba(10, 28, 44, 0.32); pointer-events: none; transition: background 0.3s var(--ease); }
.city-card:hover img { transform: scale(1.04); }
.city-card:hover::after { background: rgba(10, 28, 44, 0.2); }
.city-card:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.city-card span { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.15; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 2px 14px rgba(0, 0, 0, 0.35); }
.city-card small { display: block; font-family: var(--font-sans); font-weight: 500; color: #fff; font-size: 0.8rem; margin-top: 3px; opacity: 0.95; }
.city-card-virtual { color: var(--noche); box-shadow: inset 0 0 0 1px rgba(18, 48, 74, 0.16); }
.city-card-virtual::after { display: none; }
.city-card-virtual span { text-shadow: none; }
.city-card-virtual small { color: var(--ink-2); }

/* Organizadores (B2B) */
.b2b { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--s-12); padding: var(--s-16) var(--s-12); border-radius: 28px; background: var(--noche); color: var(--crema); }
.b2b h2 { color: var(--crema); font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.5rem); line-height: 1.12; max-width: 18ch; }
.b2b p { color: var(--noche-text-2); margin-top: var(--s-4); max-width: 48ch; font-size: 1.0625rem; }
.b2b .hero-actions { margin-top: var(--s-8); }
.b2b .btn:not(.btn-primary) { background: transparent; color: var(--crema); border-color: rgba(246, 244, 240, 0.32); }
.b2b .btn:not(.btn-primary):hover { border-color: var(--crema); background: rgba(246, 244, 240, 0.06); }
.b2b-list { list-style: none; margin: 0; padding: 0; display: grid; align-content: center; }
.b2b-list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: var(--s-4) 0; border-top: 1px solid rgba(246, 244, 240, 0.14); }
.b2b-list li:last-child { border-bottom: 1px solid rgba(246, 244, 240, 0.14); }
.b2b-list b { font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem; color: var(--crema); }
.b2b-list span { color: var(--noche-text-2); font-size: 0.9rem; }
.logo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-3); margin-top: var(--s-6); }
.logo-strip a { display: grid; place-items: center; height: 76px; padding: 12px 18px; border-radius: 14px; background: var(--blanco); border: 1px solid var(--linea); transition: border-color var(--dur); }
.logo-strip a:hover { border-color: var(--linea-fuerte); }
.logo-strip img { max-height: 40px; max-width: 100%; object-fit: contain; }

/* Manifiesto */
.values { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--s-16); align-items: start; }
.values-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.values-intro h2 { font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.5rem); line-height: 1.12; max-width: 14ch; }
.values-intro p { color: var(--ink-2); margin-top: var(--s-4); max-width: 42ch; }
.values-list { margin: 0; display: grid; }
.values-list > div { display: grid; grid-template-columns: minmax(150px, 0.42fr) minmax(0, 1fr); gap: var(--s-6); padding: var(--s-6) 0; border-top: 1px solid var(--linea-fuerte); }
.values-list > div:last-child { border-bottom: 1px solid var(--linea-fuerte); }
.values-list dt { font-family: var(--font-serif); font-size: 1.625rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; color: var(--ink); }
.values-list dd { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.55; max-width: 52ch; }

/* ---------- Portada viva (frente G) ---------- */
/* Cerca de ti, a la manera de Luma: lista compacta y mapa pequeño. */
.near-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s-4) var(--s-6); flex-wrap: wrap; margin-bottom: var(--s-6); }
.near-head h2 { font-size: clamp(1.625rem, 1.35rem + 0.9vw, 2.125rem); }
.city-pick { position: relative; display: inline-flex; align-items: center; gap: 2px; border-radius: 8px; cursor: pointer; }
.city-pick select { appearance: none; -webkit-appearance: none; field-sizing: content; border: 0; margin: 0; padding: 0 2px; background: transparent; font: inherit; letter-spacing: inherit; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--linea-fuerte); text-decoration-thickness: 2px; text-underline-offset: 6px; transition: text-decoration-color var(--dur); }
.city-pick:hover select { text-decoration-color: var(--noche); }
.city-pick select:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.city-pick .icon { transform: rotate(90deg); color: var(--ink-2); width: 20px; height: 20px; pointer-events: none; }
.near-status { margin-top: var(--s-2); color: var(--ink-2); font-size: 0.875rem; min-height: 1.4em; }
.near-actions { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.near-actions .btn .icon { width: 17px; height: 17px; }
.near-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.near-list { display: grid; gap: var(--s-3); min-width: 0; transition: opacity var(--dur); }
.near-list.is-loading { opacity: 0.45; }
.near-rows { display: grid; gap: var(--s-2); }
.near-sub { font-size: 1rem; margin-top: var(--s-4); color: var(--ink-2); font-weight: 500; }
.near-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: var(--s-1) var(--s-4); align-items: center; padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--linea); text-decoration: none; transition: border-color var(--dur), box-shadow 0.2s var(--ease), transform 0.2s var(--ease); }
.near-item:hover { border-color: var(--linea-fuerte); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.near-item:focus-visible { outline-offset: 3px; border-radius: 16px; }
.ni-img { grid-row: 1 / span 2; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--noche-100); }
.ni-img img { width: 100%; height: 100%; object-fit: cover; }
.ni-body { display: grid; gap: 3px; min-width: 0; grid-row: 1 / span 2; }
.ni-when { font-size: 0.8125rem; font-weight: 600; color: var(--noche-700); font-variant-numeric: tabular-nums; }
.ni-body b { font-family: var(--font-display); font-weight: 600; font-size: 1.0313rem; line-height: 1.3; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ni-where, .ni-host { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 0.8125rem; color: var(--ink-2); }
.ni-where > span:not(.ni-km), .ni-host span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ni-km { flex: none; padding-left: 8px; margin-left: 2px; border-left: 1px solid var(--linea-fuerte); color: var(--ink); font-weight: 500; }
.ni-host img { width: 18px; height: 18px; object-fit: contain; border-radius: 5px; border: 1px solid var(--linea); background: var(--blanco); flex: none; }
.ni-price { grid-row: 1 / span 2; grid-column: 3; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ni-price small { font-family: var(--font-sans); font-weight: 500; font-size: 0.72rem; color: var(--ink-2); }
.near-map-wrap { position: sticky; top: calc(var(--header-h) + 20px); border-radius: 20px; overflow: hidden; border: 1px solid var(--linea); background: var(--noche-050); }
.near-map { height: 460px; }
.near-map-off { display: grid; place-items: center; height: 100%; padding: var(--s-6); text-align: center; }
/* El punto de la marca en el mapa: aquí estás tú. El halo crece dos veces y se desvanece. */
.map-me { position: relative; display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px var(--blanco), 0 2px 6px rgba(11, 34, 54, 0.3); }
.map-me::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--coral); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .map-me::after { animation: dot-halo 0.9s var(--ease) 0.3s 2; }
}
@keyframes dot-halo { from { opacity: 0.35; transform: scale(1); } to { opacity: 0; transform: scale(2.2); } }

/* Esta semana: siete días con el volumen de cada uno. */
.week-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--s-2); }
.week-day { display: grid; justify-items: center; align-content: start; gap: 4px; min-height: 124px; padding: 12px 4px 10px; border-radius: 16px; border: 1px solid var(--linea); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; transition: background-color var(--dur), border-color var(--dur), color var(--dur), transform 0.12s var(--ease); }
.week-day:hover { border-color: var(--linea-fuerte); }
.week-day:active { transform: scale(0.97); }
.week-day[aria-pressed='true'] { background: var(--noche); border-color: var(--noche); color: var(--blanco); }
.wd-dow { font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); }
.wd-n { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.week-day[data-empty] .wd-n { color: var(--tenue); }
.week-day[aria-pressed='true'] .wd-dow, .week-day[aria-pressed='true'] .wd-c, .week-day[aria-pressed='true'] .wd-n { color: inherit; }
.wd-bar { display: flex; align-items: flex-end; width: 8px; height: 28px; margin-top: 4px; border-radius: 4px; background: var(--crema-200); overflow: hidden; }
.wd-bar i { display: block; width: 100%; height: var(--h); border-radius: 4px; background: var(--noche-700); transform-origin: bottom; }
.week-day[aria-pressed='true'] .wd-bar { background: rgba(255, 255, 255, 0.18); }
.week-day[aria-pressed='true'] .wd-bar i { background: var(--blanco); }
.wd-c { font-size: 0.75rem; color: var(--ink-2); white-space: nowrap; }
.week-list { margin-top: var(--s-4); }
.week-list .near-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.week-list .empty-inline { padding: var(--s-6); }
.week-list .empty-inline a { color: var(--link); font-weight: 600; }

/* Riel de tarjetas: rejilla en escritorio, desplazamiento horizontal en el celular. */
.rail-item { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }

/* Cifras y gráficos con datos reales. */
.figures { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s-12); align-items: start; }
.fig-intro h2 { font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.5rem); line-height: 1.12; max-width: 14ch; }
.fig-intro p { color: var(--ink-2); margin-top: var(--s-4); max-width: 42ch; }
.fig-photo { margin: var(--s-8) 0 0; border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--noche-100); }
.fig-photo img { width: 100%; height: 100%; object-fit: cover; }
.charts { display: grid; gap: var(--s-4); min-width: 0; }
.chart-card { margin: 0; padding: var(--s-6); border-radius: 20px; background: var(--surface); border: 1px solid var(--linea); min-width: 0; }
.chart-card figcaption { margin-bottom: var(--s-4); }
.chart-card figcaption b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; }
.chart-card figcaption span { color: var(--ink-2); font-size: 0.875rem; }
.chart { min-height: 120px; }
.chart svg { display: block; overflow: visible; }
.chart text { font-family: var(--font-sans); font-size: 13px; fill: var(--ink-2); }
.chart text.val { fill: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart .trk { fill: var(--crema); }
.chart .bar, .chart .col { fill: var(--noche-700); transition: fill var(--dur); }
.chart .col.now { fill: var(--noche); }
.chart a:hover .bar, .chart a:hover .col { fill: var(--noche-900); }
.chart a:hover .lbl { fill: var(--ink); }
.chart a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.chart .axis { stroke: var(--linea-fuerte); stroke-width: 1; }

/* En línea */
.online-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 28px; overflow: hidden; background: var(--surface); border: 1px solid var(--linea); }
.online-band figure { margin: 0; min-height: 100%; background: var(--noche-100); }
.online-band figure img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.online-body { display: grid; gap: var(--s-4); align-content: center; padding: var(--s-10); }
.online-body h2 { font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.5rem); line-height: 1.12; }
.online-body > p { color: var(--ink-2); }
.online-list { display: grid; gap: var(--s-2); }

/* Organizadores: foto, lista y carrusel continuo de logos, todos del mismo tamaño. */
.b2b-side { display: grid; gap: var(--s-6); align-content: start; min-width: 0; }
.b2b-photo { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--noche-700); }
.b2b-photo img { width: 100%; height: 100%; object-fit: cover; }
.org-head { margin: var(--s-12) 0 var(--s-5); }
.org-head h2 { font-size: 1.25rem; }
.logo-marquee { overflow: hidden; margin-inline: -8px; padding: 4px 8px; }
.lm-track { display: flex; gap: var(--s-3); width: max-content; list-style: none; margin: 0; padding: 0; }
.lm-track a { display: grid; place-items: center; width: 184px; height: 80px; padding: 12px 20px; border-radius: 14px; background: var(--blanco); border: 1px solid var(--linea); transition: border-color var(--dur); }
.lm-track a:hover { border-color: var(--linea-fuerte); }
.lm-track img { max-height: 40px; max-width: 100%; object-fit: contain; }
.lm-name { font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; line-height: 1.2; text-align: center; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .lm-track { animation: marquee 48s linear infinite; }
  .logo-marquee:hover .lm-track, .logo-marquee:focus-within .lm-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(calc(-50% - var(--s-3) / 2)); } }
@media (prefers-reduced-motion: reduce) {
  .lm-track { width: auto; flex-wrap: wrap; }
  .lm-track .lm-dup { display: none; }
}

/* Movimiento sobrio al hacer scroll. Solo existe si home.js añade .motion (no lo hace con movimiento reducido). */
.motion [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion .spec-tile[data-reveal].is-in { transition: border-color var(--dur), transform 0.2s var(--ease), box-shadow 0.2s; transition-delay: 0s; }
.motion .chart .bar { transform: scaleX(0); transform-box: fill-box; transform-origin: left center; transition: transform 0.8s var(--ease), fill var(--dur); transition-delay: calc(var(--i, 0) * 60ms + 150ms); }
.motion .chart .col { transform: scaleY(0); transform-box: fill-box; transform-origin: center bottom; transition: transform 0.8s var(--ease), fill var(--dur); transition-delay: calc(var(--i, 0) * 70ms + 150ms); }
.motion .chart text.val { opacity: 0; transition: opacity 0.4s var(--ease) 0.7s; }
.motion .is-in .chart .bar, .motion .is-in .chart .col { transform: none; }
.motion .is-in .chart text.val { opacity: 1; }
.motion .week .wd-bar i { transform: scaleY(0); transition: transform 0.6s var(--ease); }
.motion .week.is-in .wd-bar i { transform: none; }
.motion .week.is-in .week-day:nth-child(2) .wd-bar i { transition-delay: 60ms; }
.motion .week.is-in .week-day:nth-child(3) .wd-bar i { transition-delay: 120ms; }
.motion .week.is-in .week-day:nth-child(4) .wd-bar i { transition-delay: 180ms; }
.motion .week.is-in .week-day:nth-child(5) .wd-bar i { transition-delay: 240ms; }
.motion .week.is-in .week-day:nth-child(6) .wd-bar i { transition-delay: 300ms; }
.motion .week.is-in .week-day:nth-child(7) .wd-bar i { transition-delay: 360ms; }
@media (prefers-reduced-motion: no-preference) {
  .hero-dot { animation: dot-drop 0.42s var(--ease) 0.15s both; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-dot { animation: dot-fade 0.15s linear both; }
}
@keyframes dot-drop { from { opacity: 0; transform: translateY(-40%); } to { opacity: 1; transform: none; } }
@keyframes dot-fade { from { opacity: 0; } }

@media (max-width: 1080px) {
  .near-grid { grid-template-columns: minmax(0, 1fr); }
  .near-map-wrap { position: static; order: -1; }
  .near-map { height: 300px; }
  .figures { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
  .fig-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-2) var(--s-8); align-items: start; }
  .fig-photo { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b2b-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 860px) {
  .online-band { grid-template-columns: minmax(0, 1fr); }
  .online-band figure { aspect-ratio: 16 / 9; }
  .online-body { padding: var(--s-6); }
  .charts { grid-template-columns: minmax(0, 1fr); }
  .week-list .near-rows { grid-template-columns: minmax(0, 1fr); }
  .b2b-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-5); margin-top: var(--s-8); }
  .hero-stats dd { font-size: 1.5rem; }
  .near-head { margin-bottom: var(--s-5); }
  .near-actions { width: 100%; justify-content: space-between; }
  .near-map { height: 240px; }
  .near-item { grid-template-columns: 64px minmax(0, 1fr); padding: 8px 12px 8px 8px; gap: 2px var(--s-3); }
  .ni-img { width: 64px; height: 64px; grid-row: 1 / span 2; }
  .ni-body { grid-row: 1; }
  .ni-host { display: none; }
  #near-list .near-rows .near-item:nth-child(n + 5) { display: none; }
  .ni-price { grid-row: 2; grid-column: 2; font-size: 0.875rem; }
  .ni-body b { font-size: 0.975rem; }
  .week-days { gap: 6px; margin-inline: -4px; }
  .week-day { min-height: 104px; padding: 10px 2px 8px; border-radius: 14px; }
  .wd-n { font-size: 1.25rem; }
  .wd-c { display: none; }
  .event-grid.rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: var(--s-3); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px 12px; scroll-padding-inline: 16px; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }
  .fig-intro { display: block; }
  .fig-photo { margin-top: var(--s-6); }
  .chart-card { padding: var(--s-4); border-radius: 18px; }
  .online-band { border-radius: 22px; }
  .online-body { padding: var(--s-5) var(--s-4) var(--s-6); }
  .lm-track a { width: 148px; height: 68px; padding: 10px 14px; }
}

/* ---------- Tarjeta de evento ---------- */
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
.event-card { position: relative; display: flex; flex-direction: column; padding: 8px; border-radius: 20px; background: var(--surface); border: 1px solid var(--linea); transition: border-color 0.2s, box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.event-card:hover { border-color: var(--linea-fuerte); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.event-card > a { position: absolute; inset: 0; z-index: 1; border-radius: 20px; }
.event-card > a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.ec-media { position: relative; aspect-ratio: 16 / 10; background: var(--noche-100); overflow: hidden; border-radius: 14px; }
.ec-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.event-card:hover .ec-media img { transform: scale(1.035); }
.ec-fav { position: absolute; right: 10px; top: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--blanco); display: grid; place-items: center; cursor: pointer; color: var(--noche); box-shadow: 0 2px 8px rgba(11, 34, 54, 0.18); transition: transform 0.15s var(--ease); }
.ec-fav:hover { transform: scale(1.06); }
.ec-fav:active { transform: scale(0.94); }
.ec-fav.on .icon { fill: var(--coral-700); stroke: var(--coral-700); }
.ec-badge { position: absolute; left: 10px; top: 10px; }
.ec-flags { position: absolute; left: 10px; bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.ec-flags .tag { background: var(--blanco); color: var(--noche); box-shadow: 0 1px 4px rgba(11, 34, 54, 0.14); }
.ec-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 10px 6px; }
.ec-when { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--noche-700); font-variant-numeric: tabular-nums; }
.ec-when .icon { width: 16px; height: 16px; }
.ec-body h3 { font-size: 1.125rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Calificación: estrellas en noche, sin amarillo. */
.ec-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ec-rating b { color: var(--ink); font-weight: 600; }
.stars { display: inline-flex; gap: 1px; }
.star { width: 14px; height: 14px; fill: none; stroke: var(--noche); stroke-width: 1.6; stroke-linejoin: round; }
.star.star-full { fill: var(--noche); }
.star .star-half { fill: var(--noche); stroke: none; clip-path: inset(0 50% 0 0); }
.ec-kicker { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--ink-2); font-weight: 500; }
.ec-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.875rem; color: var(--ink-2); }
.ec-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ec-meta .icon { width: 15px; height: 15px; }
.ec-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ec-body .ec-meta + .ec-foot { margin-top: 10px; }
.host { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 0.8125rem; color: var(--ink-2); }
.host img { width: 26px; height: 26px; object-fit: contain; border-radius: 7px; background: var(--blanco); border: 1px solid var(--linea); padding: 2px; flex: none; }
.host span:not(.verified-icon) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price { font-family: var(--font-display); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 1rem; color: var(--ink); }
.price small { font-family: var(--font-sans); font-weight: 500; color: var(--ink-2); font-size: 0.75rem; margin-right: 3px; }
.spots-low { display: inline-flex; align-items: center; gap: 6px; color: var(--alerta); font-weight: 600; }

/* Línea de tiempo (Explorar) */
.timeline { display: grid; gap: var(--s-8); }
.tl-day { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: var(--s-6); position: relative; }
.tl-date { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; padding-left: 22px; }
.tl-date::before { content: ''; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--linea-fuerte); }
.tl-day::before { content: ''; position: absolute; left: 4px; top: 22px; bottom: calc(var(--s-8) * -1); border-left: 1px dashed var(--linea-fuerte); }
.tl-day:last-child::before { display: none; }
.tl-date b { display: block; font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; }
.tl-date span { color: var(--ink-2); font-size: 0.9rem; }
.tl-list { display: grid; gap: var(--s-3); }
.tl-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: var(--s-5); padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5); border: 1px solid var(--linea); border-radius: 18px; background: var(--surface); transition: border-color 0.15s, box-shadow 0.2s, transform 0.2s var(--ease); }
.tl-card:hover { border-color: var(--linea-fuerte); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.tl-card > a { position: absolute; inset: 0; z-index: 1; border-radius: 18px; }
.tl-card .tl-time { color: var(--ink-2); font-size: 0.875rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.tl-card h3 { font-size: 1.1875rem; margin: 2px 0 6px; }
.tl-card .ec-meta { gap: 6px 16px; }
.tl-card .tl-img { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--noche-100); }
.tl-card .tl-img img { width: 100%; height: 100%; object-fit: cover; }
.tl-card .tl-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* Lista compacta */
.event-list { display: grid; gap: var(--s-3); }
.event-row { position: relative; display: grid; grid-template-columns: 64px 120px minmax(0, 1fr) auto; gap: var(--s-5); align-items: center; padding: var(--s-3); background: var(--surface); border: 1px solid var(--linea); border-radius: 18px; transition: border-color 0.15s, box-shadow 0.2s; }
.event-row:hover { border-color: var(--linea-fuerte); box-shadow: var(--shadow-hover); }
.event-row > a { position: absolute; inset: 0; border-radius: 18px; }
.er-date, .date-tile { text-align: center; border: 1px solid var(--linea); border-radius: 12px; overflow: hidden; background: var(--blanco); }
.er-date span, .date-tile small { display: block; font-size: 0.6875rem; font-weight: 600; color: var(--blanco); background: var(--noche); padding: 2px 0; line-height: 1.4; }
.er-date b, .date-tile b { display: block; font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; line-height: 1.5; font-variant-numeric: tabular-nums; }
.er-img { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--noche-100); }
.er-img img { width: 100%; height: 100%; object-fit: cover; }
.er-body h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.er-side { text-align: right; display: grid; gap: 6px; justify-items: end; align-items: center; }

/* ---------- Explorar (estructura base; el detalle vive en buscar.css) ---------- */
.explore-head { padding-block: var(--s-10) var(--s-4); }
.explore-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: var(--s-10); align-items: start; padding-bottom: var(--s-16); }
.filters { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: var(--s-5); padding: var(--s-5); border-radius: 18px; background: var(--surface); border: 1px solid var(--linea); }
.filters h3 { font-size: 1.0625rem; }
.filter-group { display: grid; gap: 8px; }
.filter-group .label { color: var(--ink-2); font-weight: 600; font-size: 0.8125rem; }
.filter-group .chip { min-height: 36px; padding: 0 12px; font-size: 0.85rem; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-6); flex-wrap: wrap; }
.toolbar-actions { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.filters-toggle { display: none; }
.active-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.active-filters button { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; border: 0; background: var(--noche-050); color: var(--noche); font-weight: 600; font-size: 0.8rem; padding: 0 8px 0 12px; border-radius: var(--r-pill); cursor: pointer; transition: background-color var(--dur); }
.active-filters button:hover { background: var(--noche-100); }
.active-filters .icon { width: 14px; height: 14px; }
.filters-close, .filters-head-close { display: none; }
.toolbar .select { width: auto; min-height: var(--h-md); padding-block: 8px; }
.compare > .panel + .panel { margin-top: 0; }
.filters, .filters-form { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.filters .input, .filters .select { min-width: 0; min-height: 44px; }
.filters input[type='date'] { padding-inline: 10px; font-size: 0.875rem; }

/* Calendario */
.calendar { background: var(--surface); border: 1px solid var(--linea); border-radius: 18px; overflow: hidden; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--linea); }
.cal-head h3 { font-size: 1.25rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow { padding: 8px; font-size: 0.75rem; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--linea); }
.cal-day { min-height: 112px; padding: 6px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.out { background: var(--crema); color: var(--tenue); }
.cal-day.today .cal-n { background: var(--noche); color: var(--blanco); }
.cal-n { font-size: 0.8rem; font-weight: 600; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.cal-ev { display: block; font-size: 0.75rem; line-height: 1.25; padding: 4px 6px; border-radius: 6px; background: var(--noche-050); color: var(--noche); text-decoration: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev:hover { background: var(--noche); color: var(--blanco); }
.cal-agenda { display: none; }

/* Mapa */
.map-wrap { height: 560px; border-radius: 18px; overflow: hidden; border: 1px solid var(--linea); background: var(--noche-100); }
.map-pin { display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--noche); border: 3px solid var(--blanco); box-shadow: 0 2px 6px rgba(11, 34, 54, 0.35); }
.map-pin.featured { background: var(--coral-700); }
.leaflet-popup-content { font-family: var(--font-sans); margin: 12px 14px; }
.leaflet-popup-content a { color: var(--noche); font-weight: 700; }
.map-pop b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1rem; margin-bottom: 4px; }

/* ---------- Página del evento ---------- */
.breadcrumb { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 0.875rem; margin-bottom: var(--s-4); flex-wrap: wrap; }
.breadcrumb a { text-decoration: none; border-radius: 4px; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb .icon { width: 14px; height: 14px; }
.ev-page { width: min(1120px, 100% - 48px); margin-inline: auto; padding-block: var(--s-8) var(--s-16); }
.ev-grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: var(--s-12); align-items: start; }
.ev-side { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: var(--s-6); position: sticky; top: calc(var(--header-h) + 20px); }
.ev-cover { border-radius: 22px; overflow: hidden; aspect-ratio: 1; background: var(--noche-100); }
.ev-cover img { width: 100%; height: 100%; object-fit: cover; }
.side-block { display: grid; gap: var(--s-3); }
.side-block h4 { font-family: var(--font-sans); font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0; padding-bottom: var(--s-2); border-bottom: 1px solid var(--linea); }
.host-line { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 0.9375rem; border-radius: 10px; }
.host-line img { width: 36px; height: 36px; border-radius: 9px; object-fit: contain; border: 1px solid var(--linea); background: var(--blanco); padding: 3px; flex: none; }
.host-line img.round { border-radius: 50%; object-fit: cover; padding: 0; }
.host-line > div { display: grid; gap: 1px; min-width: 0; }
a.host-line:hover > span, a.host-line:hover > div > span:first-child { text-decoration: underline; text-underline-offset: 3px; }
.ev-main { min-width: 0; }
.ev-title { font-size: clamp(2rem, 1.5rem + 1.8vw, 3.125rem); line-height: 1.06; letter-spacing: -0.03em; margin-top: var(--s-3); }
.ev-sub { font-size: 1.1875rem; color: var(--ink-2); margin-top: var(--s-3); max-width: 56ch; }
.ev-facts { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.ev-fact { display: flex; gap: var(--s-4); align-items: center; }
.ev-fact b { display: block; font-weight: 600; font-size: 1rem; line-height: 1.4; }
.ev-fact span { color: var(--ink-2); font-size: 0.9rem; }
.ev-fact a { color: inherit; }
.date-tile { width: 50px; flex: none; }
.date-tile b { font-size: 1.25rem; }
.icon-tile { width: 50px; height: 50px; flex: none; border: 1px solid var(--linea); border-radius: 12px; display: grid; place-items: center; color: var(--noche); background: var(--blanco); }
.reg-card { margin-top: var(--s-8); border: 1px solid var(--linea); border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: 0 1px 2px rgba(18, 48, 74, 0.04), 0 24px 48px -36px rgba(18, 48, 74, 0.35); }
.reg-card-head { padding: 12px var(--s-6); background: var(--crema); font-family: var(--font-display); font-size: 0.875rem; font-weight: 500; color: var(--ink-2); border-bottom: 1px solid var(--linea); }
.reg-card-body { padding: var(--s-6); display: grid; gap: var(--s-4); }
.reg-status { display: flex; gap: var(--s-3); align-items: flex-start; }
.reg-status .icon-tile { width: 42px; height: 42px; border: 0; background: var(--noche-050); color: var(--noche); }
.reg-status.ok .icon-tile { background: var(--exito-bg); color: var(--exito); }
.reg-status.wait .icon-tile { background: var(--alerta-bg); color: var(--alerta); }
.reg-status b { display: block; font-size: 1.0625rem; }
.ev-section { margin-top: var(--s-12); }
.ev-section > h2 { font-size: 1.25rem; letter-spacing: -0.015em; padding-bottom: var(--s-3); border-bottom: 1px solid var(--linea); margin-bottom: var(--s-4); }
.prose { max-width: 68ch; }
.prose p + p { margin-top: var(--s-3); }
.syllabus { list-style: none; padding: 0; margin: 0; }
.syllabus li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.syllabus li::before { content: ''; width: 14px; height: 1.5px; background: var(--noche); margin-top: 12px; flex: none; }
.syllabus li:last-child { border-bottom: 0; }
.includes { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.includes li { display: flex; gap: 10px; }
.includes .icon { color: var(--exito); margin-top: 3px; }
.person { display: flex; gap: var(--s-4); align-items: flex-start; }
.person img { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; flex: none; background: var(--noche-100); }
.person b { display: block; font-size: 1.0625rem; }
.org-strip { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-4); border: 1px solid var(--linea); border-radius: 18px; background: var(--surface); }
.org-strip img { width: 88px; height: 52px; object-fit: contain; border-radius: 10px; background: var(--blanco); padding: 6px; border: 1px solid var(--linea); }
.org-strip .grow { flex: 1; min-width: 0; }
.attendees { display: flex; align-items: center; gap: var(--s-3); }
.faces { display: flex; }
.faces img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--crema); margin-left: -8px; object-fit: cover; background: var(--noche-100); }
.faces img:first-child { margin-left: 0; }
.guest-names { font-size: 0.875rem; color: var(--ink-2); }
.ev-map { height: 260px; border-radius: 18px; overflow: hidden; border: 1px solid var(--linea); margin-top: var(--s-4); background: var(--noche-100); }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mobile-buy { display: none; }

/* Hechos genéricos (certificados, marketplace) */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact > .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--noche); }
.fact b { display: block; font-weight: 600; line-height: 1.35; }
.fact span { color: var(--ink-2); font-size: 0.875rem; }
.confirm-mark { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--exito-bg); color: var(--exito); }

/* Inscripción */
.tickets { display: grid; gap: 8px; }
.ticket { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: start; text-align: left; width: 100%; padding: 14px 16px; border: 1px solid var(--linea-fuerte); border-radius: 14px; background: var(--blanco); cursor: pointer; transition: border-color var(--dur), background-color var(--dur), box-shadow var(--dur); }
.ticket:hover { border-color: var(--noche-700); }
.ticket[aria-pressed='true'] { border-color: var(--noche); box-shadow: inset 0 0 0 1px var(--noche); background: var(--noche-050); }
.ticket[disabled] { opacity: 0.5; cursor: not-allowed; }
.ticket .radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--linea-fuerte); margin-top: 2px; background: var(--blanco); transition: border-width var(--dur), border-color var(--dur); }
.ticket[aria-pressed='true'] .radio { border: 6px solid var(--noche); }
.ticket b { display: block; font-weight: 600; }
.ticket small { color: var(--ink-2); }
.capacity { display: grid; gap: 8px; font-size: 0.85rem; color: var(--ink-2); }
.capacity > div:first-child { display: flex; justify-content: space-between; gap: 8px; }
.bar { height: 6px; background: var(--crema-200); border-radius: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--noche); border-radius: 6px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--noche-050); color: var(--noche); font-size: 0.9rem; line-height: 1.5; }
.notice > .icon { margin-top: 2px; }
.notice-sim, .notice-warn { background: var(--alerta-bg); color: var(--alerta); }
.notice-ok { background: var(--exito-bg); color: var(--exito); }
.notice-error { background: var(--error-bg); color: var(--error); }
.buy-price { font-family: var(--font-display); font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }

/* Entrada con QR */
.ticket-page { width: min(440px, 100% - 32px); margin-inline: auto; padding-block: var(--s-10) var(--s-16); }
.pass { position: relative; border: 1px solid var(--linea); border-radius: 24px; background: var(--blanco); box-shadow: var(--shadow-hover); overflow: hidden; }
.pass-cover { aspect-ratio: 16 / 7; background: var(--noche-100); overflow: hidden; }
.pass-cover img { width: 100%; height: 100%; object-fit: cover; }
.pass-body { padding: var(--s-6); display: grid; gap: var(--s-4); }
.pass-body h1 { font-size: 1.5rem; line-height: 1.2; }
.pass-cut { position: relative; height: 0; border-top: 1px dashed var(--linea-fuerte); margin-inline: var(--s-4); }
.pass-cut::before, .pass-cut::after { content: ""; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--crema-200); border: 1px solid var(--linea); }
.pass-cut::before { left: -28px; }
.pass-cut::after { right: -28px; }
.pass-qr { padding: var(--s-6); display: grid; justify-items: center; gap: var(--s-3); text-align: center; }
.pass-qr .qr { width: 232px; height: 232px; padding: 12px; border-radius: 16px; border: 1px solid var(--linea); background: var(--blanco); }
.pass-qr .qr svg { width: 100%; height: 100%; display: block; }
.pass-qr code { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.06em; }
.pass-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-4); font-size: 0.875rem; }
.pass-grid span { display: block; color: var(--ink-2); font-size: 0.75rem; }
.pass-grid b { font-weight: 600; }
.pass.void .pass-qr .qr { opacity: 0.18; filter: grayscale(1); }
body.ticket-mode { background: var(--crema-200); }

/* Escáner de check-in */
.scanner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.scan-view { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--noche); display: grid; place-items: center; color: var(--blanco); text-align: center; padding: var(--s-6); }
.scan-view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-view .frame { position: absolute; inset: 18%; border: 3px solid rgba(255, 255, 255, 0.9); border-radius: 20px; pointer-events: none; }
.scan-result { border-radius: 18px; padding: var(--s-5); display: grid; gap: 6px; }
.scan-result.ok { background: var(--exito-bg); color: var(--exito); }
.scan-result.again { background: var(--alerta-bg); color: var(--alerta); }
.scan-result.bad { background: var(--error-bg); color: var(--error); }
.scan-result b { font-size: 1.25rem; color: var(--ink); }

/* ---------- Paneles, pestañas y tablas ---------- */
.page-head { padding-block: var(--s-10) var(--s-8); display: flex; align-items: end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; }
.page-head p { color: var(--ink-2); margin-top: var(--s-2); max-width: 64ch; }
.page-head h1 { font-size: clamp(1.875rem, 1.45rem + 1.5vw, 2.75rem); }
.page-head .tag { vertical-align: middle; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.stat { background: var(--surface); border: 1px solid var(--linea); border-radius: 18px; padding: var(--s-5); }
.stat span { display: block; color: var(--ink-2); font-size: 0.85rem; font-weight: 500; }
.stat b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 2rem; letter-spacing: -0.02em; line-height: 1.15; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stat small { color: var(--ink-2); font-size: 0.8rem; }
.panel { background: var(--surface); border: 1px solid var(--linea); border-radius: 20px; padding: var(--s-6); }
.panel + .panel { margin-top: var(--s-5); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-5); flex-wrap: wrap; }
.panel-head h2 { font-size: 1.25rem; letter-spacing: -0.015em; }
.tabs { display: flex; gap: var(--s-6); border-bottom: 1px solid var(--linea); margin-bottom: var(--s-6); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { position: relative; border: 0; background: none; min-height: var(--h-md); padding: 0 2px; font-family: var(--font-display); font-weight: 500; font-size: 0.9688rem; color: var(--ink-2); cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color var(--dur); }
.tabs button::after, .tabs a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--noche); transform: scaleX(0); transition: transform 0.25s var(--ease); }
.tabs button:hover, .tabs a:hover { color: var(--ink); }
.tabs button[aria-selected='true'], .tabs a[aria-selected='true'] { color: var(--ink); }
.tabs button[aria-selected='true']::after, .tabs a[aria-selected='true']::after { transform: scaleX(1); }
.tabs .count { font-family: var(--font-sans); font-size: 0.75rem; background: var(--crema-200); color: var(--ink-2); padding: 1px 7px; border-radius: var(--r-pill); }
.table-wrap { overflow-x: auto; margin-inline: calc(var(--s-6) * -1); padding-inline: var(--s-6); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 0.8rem; padding: 10px 12px; border-bottom: 1px solid var(--linea); white-space: nowrap; }
.data td { padding: 14px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.data tbody tr { transition: background-color var(--dur); }
.data tbody tr:hover { background: #fbfaf8; }
.data tr:last-child td { border-bottom: 0; }
.data .r { text-align: right; font-variant-numeric: tabular-nums; }
.data .title-cell { font-weight: 600; max-width: 340px; }
.data .title-cell a { text-decoration: none; }
.data .title-cell a:hover { text-decoration: underline; text-underline-offset: 3px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) 48px; gap: 10px; align-items: center; font-size: 0.875rem; }
.bar-row .bar { height: 10px; }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: var(--s-16) var(--s-4); display: grid; gap: var(--s-3); justify-items: center; }
.empty h1, .empty h2 { max-width: 22ch; }
.empty p { color: var(--ink-2); max-width: 46ch; }
.empty-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; justify-content: center; margin-top: var(--s-2); }
.empty-inline { padding: var(--s-10) var(--s-6); text-align: center; color: var(--ink-2); border: 1px dashed var(--linea-fuerte); border-radius: 18px; background: rgba(255, 255, 255, 0.5); }

/* Gestión de un evento */
.manage-head { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: var(--s-5); align-items: center; padding-block: var(--s-8) var(--s-6); }
.manage-head img { width: 96px; height: 96px; border-radius: 18px; object-fit: cover; background: var(--noche-100); }
.manage-head h1 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); }
.guest { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: var(--s-3) 0; border-bottom: 1px solid var(--line-soft); }
.guest:last-child { border-bottom: 0; }
.guest .initial { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--noche-050); color: var(--noche); font-weight: 600; font-family: var(--font-display); }
.guest b { display: block; font-weight: 600; }
.guest .answers { margin-top: 4px; display: grid; gap: 2px; font-size: 0.8125rem; color: var(--ink-2); }
.guest .answers em { font-style: normal; color: var(--ink); }
.option-list { border: 1px solid var(--linea); border-radius: 18px; overflow: hidden; background: var(--blanco); }
.option { display: flex; align-items: center; gap: var(--s-4); padding: 16px var(--s-5); border-bottom: 1px solid var(--line-soft); }
.option:last-child { border-bottom: 0; }
.option > .icon { color: var(--ink-2); }
.option .grow { flex: 1; min-width: 0; }
.option .grow b { display: block; font-weight: 600; font-size: 0.9375rem; }
.option .grow span { display: block; color: var(--ink-2); font-size: 0.8125rem; line-height: 1.4; }
.option .select, .option .input { width: auto; min-width: 150px; min-height: 40px; padding-block: 6px; }

/* Editor de eventos */
.editor { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--s-10); align-items: start; padding-bottom: var(--s-16); }
.editor-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); min-width: 0; }
.cover-pick { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--noche-100); }
.cover-pick img { width: 100%; height: 100%; object-fit: cover; }
.cover-pick label { position: absolute; right: 12px; bottom: 12px; }
.editor-main { display: grid; gap: var(--s-6); min-width: 0; }
.editor-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.editor-meta .select { min-height: 44px; }
.title-input { width: 100%; border: 0; outline: none; padding: 0; background: transparent; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); letter-spacing: -0.025em; line-height: 1.15; color: var(--ink); }
.title-input::placeholder { color: var(--linea-fuerte); }
.title-input:focus-visible { outline: none; box-shadow: 0 2px 0 var(--focus); }
.when-box { display: grid; gap: 10px; padding: var(--s-4); border-radius: 18px; background: var(--blanco); border: 1px solid var(--linea); }
.when-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 0.7fr); gap: 10px; align-items: center; }
.when-row .label { color: var(--ink-2); font-weight: 500; }
.ticket-editor { display: grid; gap: 10px; }
.ticket-line { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 110px 44px; gap: 8px; align-items: end; }
.question-line { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; gap: 10px; align-items: center; }
.upload { display: flex; align-items: center; gap: var(--s-3); }
.upload img { width: 120px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: var(--noche-100); }
.editor-preview { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); min-width: 0; }
.editor-preview .event-card:hover { transform: none; }
.editor-main .panel + .panel { margin-top: 0; }

/* ---------- Acceso ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100dvh - var(--header-h)); }
.auth-photo { position: relative; margin: 16px 0 16px 16px; border-radius: 28px; background: var(--noche); overflow: hidden; }
.auth-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-photo blockquote { position: absolute; left: var(--s-6); right: var(--s-6); bottom: var(--s-6); margin: 0; padding: var(--s-5) var(--s-6); border-radius: 18px; background: var(--noche); color: var(--crema); font-family: var(--font-display); font-weight: 500; font-size: 1.375rem; line-height: 1.3; letter-spacing: -0.01em; max-width: 30ch; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: var(--s-12) var(--s-6); }
.auth-form form { width: min(420px, 100%); display: grid; gap: var(--s-4); }
.auth-form h1 { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.5rem); }
.switch-role { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--crema-200); border-radius: 12px; padding: 4px; }
.switch-role a { display: grid; place-items: center; min-height: 40px; text-decoration: none; border-radius: 9px; font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; color: var(--ink-2); transition: background-color var(--dur), color var(--dur); }
.switch-role a:hover { color: var(--ink); }
.switch-role a.active { background: var(--blanco); color: var(--ink); box-shadow: 0 1px 2px rgba(18, 48, 74, 0.08); }

/* ---------- Comunidad y perfiles ---------- */
.org-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.org-card { position: relative; background: var(--surface); border: 1px solid var(--linea); border-radius: 20px; padding: var(--s-6); display: grid; gap: var(--s-3); align-content: start; transition: border-color 0.15s, box-shadow 0.2s, transform 0.2s var(--ease); }
.org-card:hover { border-color: var(--linea-fuerte); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.org-card .logo { height: 56px; display: flex; align-items: center; }
.org-card .logo img { max-height: 48px; max-width: 70%; object-fit: contain; }
.org-card h3 { font-size: 1.125rem; }
.org-card .stretched { position: absolute; inset: 0; border-radius: 20px; }
.org-card .btn { position: relative; z-index: 1; justify-self: start; }
.people-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.person-card { background: var(--surface); border: 1px solid var(--linea); border-radius: 20px; overflow: hidden; padding: 8px; }
.person-card img { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 14px; background: var(--noche-100); }
.person-card div { padding: var(--s-4) var(--s-3) var(--s-3); display: grid; gap: 4px; }
.profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s-6); align-items: center; padding-block: var(--s-10) var(--s-6); }
.profile-head .logo-box { width: 104px; height: 104px; border-radius: 22px; background: var(--blanco); border: 1px solid var(--linea); display: grid; place-items: center; padding: 14px; }
.profile-head h1 { font-size: clamp(1.875rem, 1.45rem + 1.5vw, 2.75rem); }
.profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 6px; color: var(--ink-2); }

/* ---------- Publica tu evento ---------- */
.pub-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-12); align-items: center; padding-block: var(--s-12); }
.pub-hero img { border-radius: 24px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.compare .panel h3 { font-size: 1.375rem; }
.compare .big { font-family: var(--font-display); font-weight: 600; font-size: 2.75rem; letter-spacing: -0.03em; line-height: 1; margin: var(--s-3) 0; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); }
.steps div { border-top: 1.5px solid var(--noche); padding-top: var(--s-4); }
.steps b { display: block; margin-bottom: 6px; font-family: var(--font-display); font-weight: 600; }
.steps p { color: var(--ink-2); font-size: 0.95rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-12); align-items: center; }
.split img { border-radius: 22px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.check-list { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 10px; }
.check-list .icon { color: var(--exito); margin-top: 3px; }
.band { position: relative; overflow: hidden; background: var(--noche); color: var(--crema); border-radius: 28px; padding: var(--s-12); display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; }
.band h2 { color: var(--crema); }
.band p { color: var(--noche-text-2); margin-top: var(--s-2); max-width: 52ch; }
.band .btn:not(.btn-primary) { background: var(--crema); border-color: var(--crema); color: var(--noche); }
.band .btn:not(.btn-primary):hover { background: var(--blanco); }

/* ---------- Pie ---------- */
.site-footer { margin-top: var(--s-16); padding-block: var(--s-16) var(--s-8); background: var(--noche); color: var(--crema); }
/* Izquierda: qué es Mesial, el correo y las redes. Derecha: cuatro columnas cortas. En el celular solo queda lo de la izquierda. */
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: var(--s-12); }
.footer-brand img { display: block; height: 34px; width: auto; }
.footer-brand p { color: var(--noche-text-2); font-size: 0.95rem; line-height: 1.55; margin-top: var(--s-5); max-width: 36ch; }
.footer-mail { display: inline-flex; align-items: center; min-height: 44px; margin-top: var(--s-3); font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; color: var(--crema); text-decoration: underline; text-decoration-color: rgba(246, 244, 240, 0.35); text-underline-offset: 5px; transition: text-decoration-color var(--dur); }
.footer-mail:hover { text-decoration-color: var(--coral); }
.footer-squares { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.footer-brand .footer-squares { margin-top: var(--s-3); }
.footer-sq { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(246, 244, 240, 0.18); border-radius: var(--r-btn); color: var(--crema); transition: background-color var(--dur), color var(--dur), border-color var(--dur); }
.footer-sq:hover { background: var(--crema); border-color: var(--crema); color: var(--noche); }
.footer-ico { width: 20px; height: 20px; fill: currentColor; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); }
.footer-grid h4, .site-footer .footer-h { line-height: inherit; font-family: var(--font-display); font-size: 0.95rem; font-weight: 500; color: var(--crema); margin-bottom: var(--s-4); letter-spacing: 0; }
.footer-grid nav { display: grid; gap: 4px; }
.footer-grid nav a, .footer-legal a { display: inline-flex; align-items: center; min-height: 32px; color: var(--noche-text-2); text-decoration: none; font-size: 0.9rem; border-radius: 6px; transition: color var(--dur); justify-self: start; }
.footer-grid nav a:hover, .footer-legal a:hover { color: var(--blanco); }
.site-footer :focus-visible { outline-color: var(--coral); }
.footer-ai { margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid rgba(246, 244, 240, 0.14); display: flex; align-items: center; gap: var(--s-3) var(--s-6); flex-wrap: wrap; }
.site-footer .footer-ai .footer-h { margin: 0; }
.footer-bottom { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid rgba(246, 244, 240, 0.14); display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); color: var(--noche-text-2); font-size: 0.82rem; flex-wrap: wrap; }
/* La línea legal corta es del celular; en pantallas grandes esos enlaces ya están en las columnas. */
.footer-legal { display: none; }
.demo-box { margin-top: var(--s-10); padding: var(--s-4) var(--s-5); border: 1px solid rgba(246, 244, 240, 0.16); border-radius: 16px; background: var(--noche-900); display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; font-size: 0.875rem; }
.demo-box p { color: var(--noche-text-2); }
.demo-box b { color: var(--crema); }
.demo-box .chips { gap: 6px; }
.demo-box .chip { background: transparent; color: var(--crema); border-color: rgba(246, 244, 240, 0.3); }
.demo-box .chip:hover { background: rgba(246, 244, 240, 0.08); border-color: var(--crema); }

/* ---------- Navegación móvil, avisos y diálogos ---------- */
.mobile-nav { display: none; }
.toast-container { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: var(--z-toast); display: grid; gap: 8px; width: min(440px, 100% - 32px); }
.toast { display: flex; align-items: center; gap: 10px; background: var(--noche); color: var(--crema); padding: 14px 18px; border-radius: 14px; font-size: 0.9rem; font-weight: 500; box-shadow: var(--shadow-pop); animation: toast-in 0.3s var(--ease); }
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex: none; }
.toast.error { background: var(--error); color: var(--blanco); }
.toast.error::before { background: var(--blanco); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

dialog.modal { border: 0; padding: 0; border-radius: 24px; width: min(520px, 100% - 32px); box-shadow: var(--shadow-pop); color: var(--ink); background: var(--blanco); }
dialog.modal[open] { animation: modal-in 0.25s var(--ease); }
dialog.modal::backdrop { background: var(--overlay); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-6) var(--s-6) 0; }
.modal-head h2 { font-size: 1.25rem; }
.modal-body { padding: var(--s-5) var(--s-6) var(--s-6); display: grid; gap: var(--s-4); }

/* Esqueletos: pulso de opacidad, sin degradados. */
.skeleton { background: var(--crema-200); border-radius: 14px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }
.loading { padding-block: var(--s-12); display: grid; gap: var(--s-6); }
.loading .sk-title { height: 44px; width: 40%; }
.loading .sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.loading .sk-card { height: 320px; border-radius: 20px; }

.legal { padding-block: var(--s-10) var(--s-16); }
.legal h2 { font-size: 1.375rem; margin-top: var(--s-8); margin-bottom: var(--s-3); }
.legal p, .legal li { color: var(--noche-700); }

/* Microinteracción de la marca al cargar: el punto activo aparece una vez. */
@media (prefers-reduced-motion: no-preference) {
  .nav-link.active::after { animation: dot-in 0.5s var(--ease) both; }
  @keyframes dot-in { 0% { transform: scale(0); } 60% { transform: scale(1.5); } 100% { transform: scale(1); } }
}

/* ---------- Responsive ---------- */
@media (max-width: 1520px) { .header-actions .hide-l { display: none; } }
@media (max-width: 1180px) {
  .search-trigger { width: var(--h-sm); padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
}
@media (max-width: 1080px) {
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .spec-grid, .date-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ev-grid { grid-template-columns: 300px minmax(0, 1fr); gap: var(--s-8); }
  .editor { grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-6); }
  .editor-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-day { grid-template-columns: 1fr; gap: var(--s-3); }
  .tl-date { position: static; }
  .tl-day::before { display: none; }
  .values { grid-template-columns: 1fr; gap: var(--s-8); }
  .values-intro { position: static; }
  .b2b { grid-template-columns: 1fr; gap: var(--s-8); padding: var(--s-12) var(--s-8); }
  .hero-card { left: 16px; }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .main-nav, .header-actions .hide-m { display: none; }
  .header-inner { gap: var(--s-3); }
  .hero-grid, .pub-hero, .split { grid-template-columns: 1fr; gap: var(--s-8); }
  .hero { padding-block: var(--s-8) var(--s-10); }
  .hero-art { max-width: none; justify-self: stretch; }
  .hero-art figure { aspect-ratio: 16 / 10; border-radius: 22px; }
  .hero-card { left: 12px; bottom: 12px; }
  .hero h1 { max-width: none; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .ev-grid, .editor { grid-template-columns: 1fr; }
  .ev-side, .editor-side { position: static; }
  .ev-side { grid-template-columns: 1fr; }
  .ev-cover { aspect-ratio: 16 / 10; }
  .editor-side .cover-pick { aspect-ratio: 16 / 9; }
  .explore-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: var(--z-overlay); border-radius: 0; border: 0; padding: var(--s-5); overflow-y: auto; display: none; align-content: start; }
  .filters.open { display: grid; }
  .filters.open .filters-close, .filters.open .filters-head-close { display: inline-flex; }
  .filters-toggle { display: inline-flex; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .org-grid { grid-template-columns: 1fr; }
  .compare, .steps { grid-template-columns: 1fr; }
  .scanner { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth-photo { height: 220px; margin: 12px 12px 0; border-radius: 22px; }
  .auth-photo blockquote { font-size: 1.05rem; left: var(--s-3); right: var(--s-3); bottom: var(--s-3); padding: var(--s-3) var(--s-4); }
  .auth-form { padding: var(--s-8) var(--s-5); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-10); }
  .profile-head, .manage-head { grid-template-columns: auto minmax(0, 1fr); }
  .profile-head > :last-child, .manage-head > :last-child { grid-column: 1 / -1; }
  .manage-head img { width: 64px; height: 64px; }
  .mobile-buy { display: flex; position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 35; background: var(--blanco); border-top: 1px solid var(--linea); padding: 10px 16px; align-items: center; justify-content: space-between; gap: var(--s-3); }
  .mobile-nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-mobile); background: var(--blanco); border-top: 1px solid var(--linea); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-nav a { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 64px; padding: 8px 2px; white-space: nowrap; text-decoration: none; font-family: var(--font-display); font-size: 0.72rem; font-weight: 500; color: var(--ink-2); transition: color var(--dur); }
  .mobile-nav a::before { content: ''; position: absolute; top: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); transform: scale(0); transition: transform 0.28s var(--ease); }
  .mobile-nav a.active { color: var(--ink); }
  .mobile-nav a.active::before { transform: scale(1); }
  .mobile-nav a .icon { margin-top: 4px; }
  /* El pie absorbe el alto de la navegación inferior: así no queda una franja crema debajo del pie. */
  .site-footer { padding-bottom: calc(var(--s-8) + 64px + env(safe-area-inset-bottom)); }
  body.has-buybar .site-footer { padding-bottom: calc(var(--s-8) + 128px + env(safe-area-inset-bottom)); }
  .toast-container { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .cal-grid { display: none; }
  .cal-agenda { display: grid; }
  .cal-agenda .day { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--linea); }
  .cal-agenda .day b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; line-height: 1; }
  .cal-agenda .day small { display: block; color: var(--ink-2); font-size: 0.75rem; }
  .cal-agenda .day > div:last-child { display: grid; gap: 6px; }
  .map-wrap { height: 70vh; }
  .event-row { grid-template-columns: 56px minmax(0, 1fr); }
  .event-row .er-img { display: none; }
  .event-row .er-side { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; text-align: left; }
  .ticket-line { grid-template-columns: 1fr 1fr; }
  .bar-row { grid-template-columns: 110px minmax(0, 1fr) 40px; }
  /* Página de evento en móvil: portada, título e inscripción primero; organización y detalles después. */
  .ev-grid { display: flex; flex-direction: column; gap: var(--s-6); }
  .ev-side { display: contents; }
  .ev-cover { order: 0; }
  .ev-main { order: 1; }
  .ev-side .side-block { order: 2; }
  .values-list > div { grid-template-columns: 1fr; gap: var(--s-2); padding: var(--s-5) 0; }
  .values-list dt { font-size: 1.375rem; }
}
@media (max-width: 600px) {
  .container, .narrow, .ev-page { width: calc(100% - 32px); }
  .event-grid { grid-template-columns: minmax(0, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .spec-tile { min-height: 72px; padding: var(--s-3) var(--s-4); }
  .spec-tile .icon { display: none; }
  .date-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .date-grid .spec-tile { min-height: 88px; }
  .city-row { grid-template-columns: repeat(6, 44%); overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .city-row::-webkit-scrollbar { display: none; }
  .chips-scroll { margin-inline: -16px; padding-inline: 16px; }
  .section { padding-block: var(--s-12); }
  .section-tight { padding-block: var(--s-8); }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: var(--s-5); }
  .form-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 2.75rem); }
  .hero-lede { font-size: 1.0625rem; }
  .hero-search { padding: 6px 6px 6px 16px; border-radius: 16px; }
  .hero-search input { min-height: 48px; font-size: 1rem; }
  .hero-search .btn { min-height: 48px; padding-inline: 16px; }
  .hero-stats { gap: var(--s-5); font-size: 0.8rem; margin-top: var(--s-8); }
  .hero-stats b { font-size: 1.4rem; }
  .hero-card { position: static; width: auto; margin-top: -40px; margin-inline: 12px; position: relative; }
  .panel { padding: var(--s-4); border-radius: 18px; }
  .table-wrap { margin-inline: calc(var(--s-4) * -1); padding-inline: var(--s-4); }
  .table-wrap table.data { min-width: 760px; }
  .data .title-cell { min-width: 230px; }
  /* Tablas en tarjetas: el nombre de la columna va encima de cada dato. */
  .table-wrap:has(> .data-cards) { margin-inline: 0; padding-inline: 0; overflow: visible; }
  .table-wrap table.data.data-cards { min-width: 0; }
  .data-cards thead { display: none; }
  .data-cards, .data-cards tbody { display: block; }
  .data-cards tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--linea); }
  .data-cards tr:last-child { border-bottom: 0; }
  .data-cards td { display: block; padding: 0; border: 0; text-align: left; }
  .data-cards td.r { text-align: left; }
  .data-cards td[data-label]:not(.title-cell)::before { content: attr(data-label); display: block; font-size: 0.75rem; color: var(--ink-2); margin-bottom: 2px; }
  .data-cards .title-cell, .data-cards td:last-child { grid-column: 1 / -1; min-width: 0; max-width: none; }
  .data-cards .row-actions { justify-content: flex-start; }
  .data-cards tbody tr:hover { background: transparent; }
  .stat { padding: var(--s-4); }
  .stat b { font-size: 1.5rem; overflow-wrap: anywhere; }
  .band { padding: var(--s-8) var(--s-5); }
  .b2b { padding: var(--s-10) var(--s-5); border-radius: 22px; }
  .brand-logo { height: 26px; }
  .people-grid { grid-template-columns: 1fr 1fr; }
  .loading .sk-grid { grid-template-columns: 1fr; }
  .tl-card { grid-template-columns: minmax(0, 1fr) 84px; gap: var(--s-3); padding: var(--s-3); }
  .when-row { grid-template-columns: 1fr 1fr; }
  .when-row .label { grid-column: 1 / -1; }
  .editor-meta { grid-template-columns: 1fr; }
  .option { flex-wrap: wrap; }
  .facts { grid-template-columns: 1fr; }
  .hide-s { display: none; }
  /* Pie corto: marca, correo, redes, la fila de IA y una sola línea legal. */
  .site-footer { margin-top: var(--s-12); padding-top: var(--s-10); }
  .footer-cols { display: none; }
  .footer-ai { margin-top: var(--s-8); padding-top: var(--s-5); flex-direction: column; align-items: flex-start; }
  .footer-bottom { margin-top: var(--s-5); padding-top: var(--s-4); flex-direction: column; align-items: flex-start; gap: var(--s-1); }
  .footer-legal { display: flex; flex-wrap: wrap; align-items: center; order: -1; }
  .footer-legal a { min-height: 44px; }
  .footer-legal span { margin-inline: 10px; color: rgba(246, 244, 240, 0.4); }
}
/* Objetivos táctiles de 44 px en pantallas de toque. */
@media (pointer: coarse) {
  .btn-sm, .chip, .search-trigger, .segmented button, .filter-group .chip, .hero-hints a, .link-arrow, .breadcrumb a { min-height: var(--h-md); }
  .breadcrumb a { display: inline-flex; align-items: center; }
  .btn-sm.btn-icon, .search-trigger { width: auto; min-width: var(--h-md); }
  .ec-fav { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .event-card:hover, .org-card:hover, .spec-tile:hover, .tl-card:hover { transform: none; }
}

/* ---------- Ficha con caja de compra (marketplace) y campo de búsqueda compacto ---------- */
.ev-hero { padding-top: var(--s-8); }
.ev-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-12); align-items: start; padding-bottom: var(--s-16); }
.ev-layout > article { min-width: 0; }
.buy { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: var(--s-4); padding: var(--s-6); border-radius: 20px; background: var(--surface); border: 1px solid var(--linea); box-shadow: 0 1px 2px rgba(18, 48, 74, 0.04), 0 24px 48px -36px rgba(18, 48, 74, 0.35); }
.ev-layout .ev-title { font-size: clamp(1.75rem, 1.35rem + 1.4vw, 2.5rem); }
.search-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; background: var(--blanco); border: 1px solid var(--linea); border-radius: 16px; transition: border-color var(--dur), box-shadow var(--dur); }
.search-box:hover { border-color: var(--linea-fuerte); }
.search-box:focus-within { border-color: var(--focus); box-shadow: var(--focus-ring); }
.search-box .sb-field { display: flex; align-items: center; gap: 10px; min-width: 0; }
.search-box .sb-field .icon { color: var(--ink-2); }
.search-box input, .search-box select { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; min-height: 44px; font-size: 1rem; color: var(--ink); }
.search-box input::placeholder { color: var(--tenue); }
@media (max-width: 860px) {
  .ev-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
  .buy { position: static; }
}

/* Administración: bandeja de correos con vista previa */
.mail-tools { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin: var(--s-6) 0 var(--s-4); }
.mail-tools .select { width: auto; min-width: 220px; }
.mail-layout { display: grid; gap: var(--s-4); }
.mail-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); align-content: start; max-height: 760px; overflow: auto; }
.mail-list button { display: grid; gap: 4px; width: 100%; text-align: left; padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--linea); border-radius: var(--r-card); color: var(--ink); font: inherit; cursor: pointer; transition: border-color 160ms var(--ease), transform 160ms var(--ease); }
.mail-list button:hover { border-color: var(--linea-fuerte); transform: translateY(-1px); }
.mail-list button[aria-pressed='true'] { border-color: var(--noche); box-shadow: inset 3px 0 0 var(--noche); }
.mail-list button:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.mail-list .tag { justify-self: start; }
.mail-preview { min-height: 720px; background: var(--crema); border: 1px solid var(--linea); border-radius: var(--r-card); overflow: hidden; }
.mail-preview iframe { display: block; width: 100%; height: 820px; border: 0; }
@media (min-width: 1000px) { .mail-layout { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); } }

/* Cuenta: foto de perfil y docentes */
.avatar-xl { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--noche-050); border: 1px solid var(--linea); flex: none; }
.avatar-xl.is-loading { opacity: 0.55; }
.account-photo { display: flex; gap: var(--s-5); align-items: center; }
.account-photo b { font-family: var(--font-display); font-weight: 600; }
.account-photo p { margin: 4px 0 var(--s-3); max-width: 46ch; }
.inst-layout { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 980px) { .inst-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.inst-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.inst-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--s-3); align-items: center; padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--linea); border-radius: var(--r-card); }
.inst-list img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--noche-050); }
.inst-list li > div:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.inst-form { margin: 0; }

/* Portada sin eventos publicados (lanzamiento) */
.launch-grid { display: grid; gap: var(--s-10); align-items: center; padding: var(--s-10); border-radius: 28px; background: var(--blanco); border: 1px solid var(--linea); }
.launch-grid h2 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.2rem); letter-spacing: -0.03em; line-height: 1.05; }
.launch-grid p { margin-top: var(--s-4); font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2); max-width: 48ch; }
.launch-photo { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; }
.launch-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .launch-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
@media (max-width: 640px) { .launch-grid { padding: var(--s-6); } }

/* Mostrar u ocultar la contraseña (util.js enhancePasswords) */
.pw-wrap { position: relative; display: block; }
.pw-wrap > .input { width: 100%; padding-right: 52px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--gris, #5b6b7a); cursor: pointer; }
.pw-toggle:hover { color: var(--noche, #12304A); background: rgba(18, 48, 74, 0.06); }
.pw-toggle:focus-visible { outline: 2px solid var(--coral, #EF6C4E); outline-offset: 1px; }
.pw-toggle .icon { width: 20px; height: 20px; }
