/* TimerDown — Diseño "E · Grupo"
   Reglas: los colores se usan SOLO vía variables CSS (nada de colores sueltos en las páginas).
   El tema claro/oscuro sigue al dispositivo automáticamente (prefers-color-scheme). */

:root {
  color-scheme: light dark;

  /* Tema claro */
  --bg: #EEF1FF;
  --surf: #FFFFFF;
  --bubble: #EEF1FF;
  --line: #D3D8FA;
  --text: #0E1033;
  --mute: #454A78;
  --btn2: #0E1033;
  --name: #2B4BFF;
  --link: #2B4BFF;
  --chip-on: #0E1033;
  --chip-on-text: #FFFFFF;

  /* Fijos (iguales en claro y oscuro) */
  --cobalt: #2B4BFF;   /* texto encima: blanco */
  --coral: #FF7A59;    /* texto encima: tinta, nunca blanco */
  --sun: #FFC93C;      /* amarillo de la portada; texto encima: tinta */
  --ink: #0E1033;
  --white: #FFFFFF;
  --wa: #25D366;       /* WhatsApp; texto encima: --wa-ink */
  --wa-ink: #0B2A17;
  --scrim: rgba(11, 13, 36, .55);
  --on-cobalt-soft: rgba(255, 255, 255, .14);  /* cajitas sobre fondo cobalto */

  --font-display: 'Dela Gothic One', 'Arial Black', Impact, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0D24;
    --surf: #171A3A;
    --bubble: #22264D;
    --line: #2A2F5C;
    --text: #EEF1FF;
    --mute: #A7ADD6;
    --btn2: #EEF1FF;
    --name: #FF9E85;
    --link: #FF9E85;
    --chip-on: #EEF1FF;
    --chip-on-text: #0B0D24;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .9; }
button { font-family: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }

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

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
}

/* ---------- Cabecera y logo ---------- */
.site-header { padding: 14px 0; }
.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 16px 8px;
  background: var(--cobalt);
  color: var(--white);
  border-radius: 18px 18px 18px 4px;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.2;
}

/* ---------- Textos ---------- */
.h1 { font-size: 38px; }
.lead { font-size: 17px; line-height: 1.5; color: var(--mute); }
.section-title { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.2; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.link-strong { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; font-size: 15px; color: var(--link); }
.muted-note { font-size: 14px; color: var(--mute); }

/* ---------- Botones ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}
.btn-primary { background: var(--cobalt); color: var(--white); }
.btn-coral { background: var(--coral); color: var(--ink); }
.btn-outline { background: transparent; border-color: var(--btn2); color: var(--text); }

/* Botón que todavía no funciona: se ve apagado y no se puede tocar */
.is-soon,
.btn[aria-disabled="true"] { pointer-events: none; cursor: not-allowed; }
.btn.is-soon { background: transparent; border: 2px dashed var(--mute); color: var(--mute); }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px 3px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.3;
}

/* ---------- Tarjetas ---------- */
.card { background: var(--surf); border-radius: 22px; }
.card-lg { background: var(--surf); border-radius: 28px; }

/* ---------- Chat: panel y burbujas ---------- */
.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 300px;
  padding: 14px;
  background: var(--surf);
  border-radius: 28px;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 4px 10px;
  border-bottom: 1px solid var(--line);
}
.avatar {
  flex: none;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
}
.chat-title { display: flex; flex-direction: column; min-width: 0; }
.chat-title strong { font-weight: 800; font-size: 15px; line-height: 1.3; }
.chat-title span { font-size: 13px; color: var(--mute); line-height: 1.3; }
.chat-tag { margin-left: auto; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--mute); }

.bubble-in {
  align-self: flex-start;
  max-width: 82%;
  padding: 9px 13px;
  background: var(--bubble);
  border-radius: 18px 18px 18px 6px;
  font-size: 15px;
  line-height: 1.35;
}
.bubble-in b { color: var(--name); }
.bubble-out {
  align-self: flex-end;
  width: 78%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 7px;
  background: var(--cobalt);
  color: var(--white);
  border-radius: 18px 18px 6px 18px;
}
.bubble-out .bubble-text { padding: 0 6px 3px; font-size: 15px; line-height: 1.35; }
.preview-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  background: var(--coral);
  color: var(--ink);
  border-radius: 13px;
}
.preview-num { font-family: var(--font-display); font-size: 34px; line-height: 1.05; }
.preview-src { font-weight: 800; font-size: 14px; line-height: 1.3; }

.msg { transition: opacity .35s ease, transform .35s ease; }
.msg.is-pending { opacity: 0; transform: translateY(10px); }

/* Burbujas sueltas ("Así de fácil", cierre de Descubre) */
.say { padding: 12px 16px; font-size: 16px; line-height: 1.4; max-width: 86%; }
.say-in { align-self: flex-start; background: var(--surf); border-radius: 20px 20px 20px 6px; }
.say-out { align-self: flex-end; background: var(--cobalt); color: var(--white); border-radius: 20px 20px 6px 20px; }
.say-coral { align-self: flex-start; background: var(--coral); color: var(--ink); border-radius: 20px 20px 20px 6px; }

.bubble-btn {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px 0 26px;
  border: 0;
  border-radius: 22px 22px 6px 22px;
  background: var(--cobalt);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
}
.bubble-btn { cursor: pointer; text-decoration: none; }

/* ---------- Filas de evento ---------- */
.event-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.event-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px 14px;
  background: var(--surf);
  border-radius: 22px;
}
.dot {
  flex: none;
  width: 52px; height: 52px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
}
.dot-lg { width: 56px; height: 56px; font-size: 19px; }
.dot-lg small { margin-top: 2px; font-family: var(--font-body); font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.event-row:nth-child(even) .dot { background: var(--cobalt); color: var(--white); }
/* El script alterna los colores solo entre las filas visibles */
.event-row.tone-a .dot { background: var(--coral); color: var(--ink); }
.event-row.tone-b .dot { background: var(--cobalt); color: var(--white); }
.event-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex-grow: 1; }
.event-title { font-weight: 800; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.event-meta { font-size: 14px; line-height: 1.3; color: var(--mute); }
.event-chevron { flex: none; color: var(--text); }
.event-row { position: relative; }
/* Toda la tarjeta lleva al evento; el botón de WhatsApp queda por encima */
.event-link { display: flex; align-items: center; gap: 12px; flex-grow: 1; min-width: 0; color: inherit; text-decoration: none; }
.event-link::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.event-link:focus-visible { outline: none; }
.event-link:focus-visible::after { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.event-wa {
  position: relative; z-index: 1;
  flex: none;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bubble);
  color: #1FAF54;
}
@media (prefers-color-scheme: dark) { .event-wa { color: #25D366; } }
.event-wa:hover { background: var(--line); }

/* ---------- Tarjetas póster (Descubre) ---------- */
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.follow-count {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 0 12px;
  background: var(--coral); color: var(--ink);
  border-radius: 999px;
  font-weight: 800; font-size: 14px; line-height: 1;
}

.pcard { background: var(--surf); border-radius: 28px; overflow: hidden; }
.pcard-top {
  display: flex; align-items: flex-start; gap: 8px;
  --band: var(--cobalt); --on-band: var(--white);
  background: var(--band); color: var(--on-band);
}
.pcard.is-near .pcard-top { --band: var(--coral); --on-band: var(--ink); }
.pcard-band { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; padding: 18px 0 18px 18px; color: inherit; }
.pcard-band:focus-visible { outline-color: currentColor; outline-offset: -4px; }
.pcard-tag { font-size: 12px; font-weight: 800; letter-spacing: .12em; line-height: 1.3; }
.pcard-days { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-display); }
.pcard-num { font-size: 56px; line-height: 1; }
.pcard-unit { font-size: 18px; line-height: 1; }
.pcard-clock { font-family: var(--font-display); font-size: 16px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.pcard-bell {
  flex: none;
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin: 14px 14px 0 0; padding: 0;
  border: 2px solid currentColor; border-radius: 50%;
  background: transparent; color: var(--on-band);
  cursor: pointer;
}
.pcard-bell:focus-visible { outline-color: currentColor; }
.pcard-bell[aria-pressed="true"] { background: var(--on-band); color: var(--band); }
.pcard-bell[aria-pressed="true"] svg { fill: currentColor; }

.pcard-bottom { display: flex; align-items: center; gap: 12px; padding: 14px 16px 16px 18px; }
.pcard-info { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; min-height: 44px; justify-content: center; }
.pcard-title { font-weight: 800; font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.pcard-meta { font-size: 14px; line-height: 1.3; color: var(--mute); }
.pcard-share {
  flex: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 14px;
  border-radius: 999px;
  background: var(--wa); color: var(--wa-ink);
  font-weight: 800; font-size: 14px; line-height: 1;
}

/* ---------- Hoja "Seguir" ---------- */
#follow-sheet, #auth-sheet, #cal-sheet, #rep-sheet, #confirm-sheet, #name-sheet, #att-sheet {
  width: calc(100% - 24px); max-width: 520px;
  margin: auto auto 12px;
  padding: 0; border: 0;
  background: var(--surf); color: var(--text);
  border-radius: 28px;
}
#follow-sheet::backdrop, #auth-sheet::backdrop, #cal-sheet::backdrop, #rep-sheet::backdrop, #confirm-sheet::backdrop, #name-sheet::backdrop, #att-sheet::backdrop { background: var(--scrim); }
.sheet-body { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; }
.sheet-title { font-size: 22px; overflow-wrap: anywhere; }
.sheet-text { font-size: 15px; color: var(--mute); }
.sheet-btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 20px;
  border: 2px solid transparent; border-radius: 18px;
  font-family: var(--font-body); font-weight: 800; font-size: 16px; line-height: 1.2;
  text-align: center; cursor: pointer;
}
.sheet-gcal { background: var(--cobalt); color: var(--white); }
.sheet-danger { background: var(--coral); color: var(--ink); }
.sheet-ics { background: transparent; border-color: var(--text); color: var(--text); }
.sheet-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 0 20px;
  border: 2px dashed var(--line); border-radius: 18px;
  color: var(--mute); font-weight: 800; font-size: 16px;
}
.sheet-done {
  min-height: 44px; padding: 0 16px; align-self: center;
  border: 0; background: transparent; color: var(--text);
  font-family: var(--font-body); font-weight: 800; font-size: 16px; cursor: pointer;
}

/* ---------- Hoja "Entrar" (3 pasos: elegir, correo, código) ---------- */
#auth-sheet [hidden], #name-sheet [hidden] { display: none !important; }
.auth-step { display: flex; flex-direction: column; gap: 12px; }
.auth-head { position: relative; display: flex; justify-content: center; align-items: center; min-height: 28px; margin: -12px 0 -4px; }
.auth-handle { width: 40px; height: 5px; border-radius: 3px; background: var(--line); }
.auth-x {
  position: absolute; right: -10px; top: -8px;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--text); cursor: pointer;
}
.auth-tag {
  align-self: flex-start; padding: 6px 12px;
  background: var(--sun); color: var(--ink);
  border-radius: 14px 14px 14px 4px;
  font-size: 13px; font-weight: 800; line-height: 1.2;
}
.auth-title { font-family: var(--font-display); font-weight: 400; font-size: 28px; line-height: 1.15; }
.auth-title-s { font-size: 26px; }
.auth-step .sheet-btn { min-height: 54px; border-radius: 16px; gap: 10px; }
.auth-google { background: var(--surf); border: 1.5px solid var(--line); color: var(--text); }
.auth-mail { background: var(--btn2); border-color: var(--btn2); color: var(--surf); }
.auth-back {
  display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
  min-height: 44px; padding: 0 12px 0 0; margin-top: -4px;
  border: 0; background: transparent; color: var(--text);
  font-family: var(--font-body); font-weight: 800; font-size: 15px; cursor: pointer;
}
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-label { font-size: 14px; font-weight: 800; color: var(--text); }
.auth-input {
  width: 100%; min-height: 54px; padding: 0 16px;
  border: 2px solid var(--mute); border-radius: 16px;
  background: var(--surf); color: var(--text);
  font-family: var(--font-body); font-size: 17px;
}
.auth-input:focus { outline: 3px solid var(--cobalt); outline-offset: 2px; border-color: var(--cobalt); }
.auth-codebox { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--cobalt); border-radius: 20px 20px 20px 6px; }
.auth-codelabel { color: var(--white); font-size: 14px; font-weight: 800; }
.auth-code {
  width: 100%; min-height: 64px; padding: 0 8px 0 16px;
  border: 0; border-radius: 14px; outline: 0;
  background: var(--white); color: var(--ink);
  font-family: var(--font-body); font-size: 30px; font-weight: 800;
  letter-spacing: 8px; text-align: center;
}
.auth-code:focus { box-shadow: 0 0 0 3px var(--sun); }
.auth-code:disabled { opacity: .7; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.auth-pill {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--sun); color: var(--ink);
  font-family: var(--font-body); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.auth-pill.is-ready { cursor: pointer; }
.auth-pill:disabled { cursor: default; }
.auth-sheet-btn:disabled { opacity: .6; cursor: default; }
.auth-link {
  min-height: 44px; padding: 0 4px; margin-left: auto;
  border: 0; background: transparent; color: var(--link);
  font-family: var(--font-body); font-weight: 800; font-size: 15px; text-decoration: underline; cursor: pointer;
}
.auth-err {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 10px 12px; border-radius: 14px;
  background: var(--bubble); color: var(--text);
  font-size: 14px; font-weight: 700; line-height: 1.4;
}
.auth-small { font-size: 13px; color: var(--mute); text-align: center; }
.auth-small a { color: var(--link); text-decoration: underline; }
@media (prefers-color-scheme: dark) {
  .auth-google { border-color: var(--mute); }
}
/* Paso 4 "¡Listo!" */
.auth-done { align-items: center; text-align: center; }
.auth-done .auth-head { align-self: stretch; }
.auth-badge {
  display: flex; align-items: center; justify-content: center;
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--cobalt); color: var(--white);
  animation: auth-pop .25s ease-out;
}
.auth-done .sheet-btn { align-self: stretch; }
@keyframes auth-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* Aviso flotante al volver de Google */
.auth-toast-host {
  position: fixed; top: 76px; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: center; padding: 0 16px; pointer-events: none;
}
.auth-toast {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: calc(100% - 32px); min-height: 44px; padding: 10px 18px;
  border: 0; border-radius: 999px;
  background: var(--btn2); color: var(--surf);
  box-shadow: 0 6px 20px rgba(11, 13, 36, .28);
  font-family: var(--font-body); font-weight: 800; font-size: 15px; line-height: 1.3; text-align: left;
  cursor: pointer; pointer-events: auto;
  animation: auth-toast-in .2s ease-out;
}
.auth-toast svg { flex: none; }
@keyframes auth-toast-in { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .auth-badge, .auth-toast { animation: none; }
}

/* ---------- Chips y buscador ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--surf);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--chip-on); color: var(--chip-on-text); }

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  background: var(--surf);
  color: var(--mute);
  border-radius: 999px;
}
.search:focus-within { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.search input {
  flex-grow: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
}
.search input::placeholder { color: var(--mute); opacity: 1; }

.group { display: flex; flex-direction: column; gap: 10px; }
.group-label { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--mute); }
.empty { padding: 24px 20px; text-align: center; font-size: 16px; color: var(--mute); background: var(--surf); border-radius: 22px; }

/* ---------- Pie ---------- */
.site-footer {
  margin-top: 40px;
  padding: 28px 20px 36px;
  background: var(--surf);
  border-radius: 32px 32px 0 0;
  text-align: left;
}
.site-footer .wrap { padding: 0; }
.footer-tag { margin: 12px 0 0; font-size: 15px; line-height: 1.4; color: var(--mute); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 12px; font-size: 15px; font-weight: 800; color: var(--text); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-copy { margin: 8px 0 0; font-size: 13px; color: var(--mute); }

/* ---------- Páginas: portada ---------- */
.stack { display: flex; flex-direction: column; }
.hero { display: flex; flex-direction: column; gap: 16px; padding: 14px 0 24px; }
.hero-text { display: flex; flex-direction: column; gap: 16px; }
.cta { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.cta .muted-note { text-align: center; }
.band { display: flex; flex-direction: column; gap: 12px; padding: 6px 0 26px; }
.steps { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 26px; }
.steps .section-title { margin-bottom: 4px; }

/* ---------- Páginas: Descubre ---------- */
.d-head { display: flex; flex-direction: column; gap: 14px; padding: 12px 0 10px; }
.d-head .h1 { font-size: 34px; }
.d-groups { display: flex; flex-direction: column; gap: 18px; padding: 10px 0 24px; }
.d-end { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }

/* ---------- Páginas: evento (prefijo ev-) ---------- */
.wrap-narrow { max-width: 720px; }
.ev-wrap { max-width: 640px; }
.ev-head-right { display: flex; align-items: center; gap: 12px; }

.ev { display: flex; flex-direction: column; gap: 20px; padding: 6px 0 8px; }
.ev-top { display: flex; flex-direction: column; gap: 10px; }
.ev-tag { font-size: 12px; font-weight: 800; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; color: var(--mute); }
.ev-h1 { font-size: 34px; line-height: 1.08; overflow-wrap: anywhere; }
.ev-h1 em { font-style: normal; color: var(--name); }
.ev-h2 { font-size: 20px; line-height: 1.2; }

/* Tarjeta de la cuenta regresiva */
.ev-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px 18px;
  background: var(--cobalt); color: var(--white);
  border-radius: 32px;
}
.ev-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 800; font-size: 15px; line-height: 1.3; }
.ev-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .04em; }
.ev-live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); animation: ev-pulse 1.8s ease-in-out infinite; }
@keyframes ev-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.8); } }
.ev-days { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-family: var(--font-display); }
.ev-days-num { font-size: 104px; line-height: .85; color: var(--white); font-variant-numeric: tabular-nums; }
.ev-days-unit { font-size: 26px; line-height: 1; }
.ev-units { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ev-unit { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 12px 4px 10px; background: var(--on-cobalt-soft); border-radius: 18px; }
.ev-unit-num { font-family: var(--font-display); font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ev-unit-lbl { font-size: 12px; font-weight: 800; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }
.ev-card.is-arrived {
  align-items: center; justify-content: center; text-align: center;
  min-height: 220px;
  font-family: var(--font-display); font-size: 32px; line-height: 1.15;
}

.ev-desc { display: flex; flex-direction: column; gap: 12px; }
.ev-desc p { font-size: 16px; line-height: 1.55; color: var(--mute); }

/* Botones de acción (uno debajo del otro) */
.ev-actions { display: flex; flex-direction: column; gap: 10px; }
.ev-actions .btn { min-height: 52px; font-size: 16px; }
.ev-wa { background: var(--wa); color: var(--wa-ink); }
.ev-follow[aria-pressed="true"] { background: var(--chip-on); border-color: var(--chip-on); color: var(--chip-on-text); }
.ev-follow[aria-pressed="true"] svg { fill: currentColor; }
/* Aviso de 'copiado' solo para lectores de pantalla: lo visible es el propio botón */
.ev-copied { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Botón de copiar en estado 'copiado' (unos segundos) */
.is-copied, .btn.is-copied { background: var(--cobalt) !important; border-color: var(--cobalt) !important; color: var(--white) !important; }

/* Reacciones: píldora segmentada (los botones los maneja reactions.js) */
.reactions { display: flex; flex-direction: column; gap: 12px; }
.reactions-row { display: flex; gap: 4px; padding: 6px; background: var(--surf); border-radius: 999px; }
.reaction {
  flex: 1 1 0; min-width: 0; min-height: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 6px 4px;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--text);
  font-family: var(--font-body); cursor: pointer;
}
.reaction > span:first-child { font-size: 20px; line-height: 1.1; }
.reaction-label { font-size: 12px; font-weight: 800; line-height: 1.2; text-align: center; color: inherit; }
.reaction:hover { background: var(--bubble); }
.reaction.is-selected, .reaction.is-selected:hover { background: var(--chip-on); color: var(--chip-on-text); }
.reaction-msg { min-height: 21px; font-size: 14px; line-height: 21px; color: var(--mute); }

/* "También se viene" */
.ev-cta { display: flex; flex-direction: column; gap: 10px; }
.ev-more { display: flex; flex-direction: column; gap: 12px; }
.ev-more-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ev-more-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 12px 14px;
  background: var(--surf); border-radius: 22px;
  font-weight: 800; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere;
}
.ev-dot {
  flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--cobalt); color: var(--white);
  font-family: var(--font-display); font-size: 17px; line-height: 1;
}
.ev-dot.is-near { background: var(--coral); color: var(--ink); }
.ev-dot small { margin-top: 2px; font-family: var(--font-body); font-size: 10px; font-weight: 800; }

/* ---------- Páginas de texto: Acerca de y Términos (.prose) ---------- */
.prose { max-width: 720px; padding-top: 10px; padding-bottom: 8px; }
.prose h1 { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.1; margin-bottom: 12px; overflow-wrap: anywhere; }
.prose h1 em { font-style: normal; color: var(--name); }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.2; margin: 36px 0 10px; }
.prose h3 { font-size: 17px; font-weight: 800; line-height: 1.3; margin: 22px 0 4px; }
.prose p { margin: 0 0 14px; font-size: 16px; line-height: 1.6; }
.prose .lead { font-size: 18px; line-height: 1.5; margin-bottom: 20px; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 6px 0; font-size: 16px; line-height: 1.6; }
.prose section { scroll-margin-top: 12px; }
.prose .updated { font-size: 14px; color: var(--mute); }
.prose .toc { display: flex; flex-wrap: wrap; gap: 0 20px; }
.prose .toc a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; }
.prose .grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 12px 0 14px; }
.prose .card { padding: 16px 18px; font-size: 16px; line-height: 1.5; }
.prose .card strong { display: block; margin-bottom: 4px; font-weight: 800; }
.prose .prose-cta { max-width: 360px; margin-top: 24px; color: var(--white); text-decoration: none; }

/* ---------- Pantallas más grandes ---------- */
@media (min-width: 700px) {
  #follow-sheet, #auth-sheet, #confirm-sheet, #name-sheet, #att-sheet { margin: auto; }
  .ev-h1 { font-size: 46px; }
  .ev-days-num { font-size: 120px; }
  .prose h1 { font-size: 44px; }
  .prose .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .event-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .steps .section-title { grid-column: 1 / -1; }
  .steps .say { max-width: 100%; align-self: stretch; }
  .search { max-width: 560px; }
  .d-head .h1 { font-size: 44px; }
}
@media (min-width: 900px) {
  .site-header { padding: 22px 0; }
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; padding: 28px 0 40px; }
  .h1 { font-size: 56px; }
  .lead { font-size: 19px; }
  .cta { max-width: 380px; }
  .chat { max-width: 480px; justify-self: end; width: 100%; }
}

/* ---------- Sin animaciones si el dispositivo lo pide ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .msg.is-pending { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) { .ev-live-dot { animation: none; } }

/* ==========================================================
   Idiomas (ES / EN / PT): botón del globo, menú y aviso
   Solo usa variables existentes, así el modo oscuro sigue funcionando.
   ========================================================== */
.header-bar { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 2px solid var(--text);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.lang-menu {
  position: absolute;
  right: 20px;
  top: calc(100% + 8px);
  z-index: 20;
  width: 190px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  background: var(--surf);
  border: 2px solid var(--text);
  border-radius: 20px;
}
.lang-menu[hidden] { display: none; }
.lang-menu a,
.lang-menu button {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
}
.lang-menu button {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
}
.lang-menu a[aria-current="true"],
.lang-menu button[aria-current="true"] { background: var(--text); color: var(--bg); }

.lang-banner {
  width: calc(100% - 40px);
  max-width: 1040px;
  margin: 12px auto 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--cobalt);
  color: var(--white);
  border-radius: 22px 22px 22px 6px;
}
.lang-banner-msg { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; line-height: 1.35; }
.lang-banner-msg svg { flex: none; }
.lang-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-banner-btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}
.lang-banner-accept { background: var(--coral); color: var(--ink); }
.lang-banner-dismiss { background: transparent; border-color: var(--white); color: var(--white); }
.lang-banner :focus-visible { outline-color: var(--white); }

@media (min-width: 900px) {
  .lang-banner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ==========================================================
   Portada nueva (T34): "¿Qué estás esperando?", "Cuenta con nosotros"
   y animación "sticker" al aparecer. Solo usa variables del tema,
   así el modo oscuro funciona solo.
   Sin JavaScript todo se ve normal: lo que se oculta antes de aparecer
   solo se oculta cuando landing.js agrega la clase js-reveal.
   ========================================================== */

/* Animación: el elemento "se pega" con un pequeño rebote */
@keyframes tdSlap {
  0%   { opacity: 0; transform: scale(1.45) rotate(-9deg); }
  55%  { opacity: 1; transform: scale(.93) rotate(2deg); }
  100% { opacity: 1; transform: none; }
}
html.js-reveal .reveal { opacity: 0; }
html.js-reveal .reveal.is-in { animation: tdSlap .6s cubic-bezier(.3, 1.4, .5, 1) both; }
/* La animación agranda un poco los bloques: que eso nunca genere scroll horizontal */
html.js-reveal main { overflow-x: clip; }

/* Carrusel de ideas */
.uses { display: flex; flex-direction: column; gap: 14px; padding: 14px 0 22px; }
.uses-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.uses-titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.uses .section-title { font-size: 24px; line-height: 1.1; }
.uses-sub { font-size: 14px; line-height: 1.35; color: var(--mute); }
.uses-hint { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 13px; font-weight: 800; white-space: nowrap; color: var(--name); }

.uses-scroll {
  display: flex;
  gap: 14px;
  margin: 0 -20px;               /* llega hasta el borde de la pantalla */
  padding: 10px 20px 14px;
  scroll-padding-left: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.uses-scroll::-webkit-scrollbar { display: none; }
.use-item { flex: 0 0 214px; scroll-snap-align: start; display: flex; }

.use-card {
  --tilt: 0deg;
  --use-bg: var(--coral);
  --use-ink: var(--ink);
  --use-chip-bg: var(--ink);
  --use-chip-ink: var(--white);
  flex: 1 1 auto;
  min-height: 268px;
  padding: 18px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--use-bg);
  color: var(--use-ink);
  border-radius: 26px;
  transform: rotate(var(--tilt));
}
.use-a { --tilt: -2deg; }
.use-b { --tilt: 1.5deg; --use-bg: var(--cobalt); --use-ink: var(--white); --use-chip-bg: var(--white); --use-chip-ink: var(--cobalt); }
.use-c { --tilt: -1deg; --use-bg: var(--sun); --use-chip-bg: var(--ink); --use-chip-ink: var(--sun); }
/* La cuarta se invierte entre tema claro y oscuro con las variables del tema */
.use-d { --tilt: 2deg; --use-bg: var(--chip-on); --use-ink: var(--chip-on-text); --use-chip-bg: var(--coral); --use-chip-ink: var(--ink); }

.use-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.use-chip { flex: none; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--use-chip-bg); color: var(--use-chip-ink); }
.use-kind { font-size: 12px; font-weight: 800; letter-spacing: .1em; line-height: 1.2; text-align: right; opacity: .85; }
.use-mid { display: flex; flex-direction: column; gap: 2px; }
.use-pre { font-size: 13px; font-weight: 800; line-height: 1.3; opacity: .85; }
.use-days { display: flex; align-items: baseline; gap: 6px; line-height: 1; font-family: var(--font-display); }
.use-num { font-size: 64px; }
.use-unit { font-size: 18px; }
.use-bottom { display: flex; flex-direction: column; gap: 2px; }
.use-title { font-weight: 800; font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }
.use-date { font-size: 13px; line-height: 1.3; opacity: .85; }

/* Última tarjeta: "¿Y lo tuyo?" */
.use-end {
  flex: 1 1 auto;
  min-height: 268px;
  padding: 18px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  border: 2px dashed var(--text);
  border-radius: 26px;
}
.use-end-title { font-family: var(--font-display); font-weight: 400; font-size: 26px; line-height: 1.1; }
.use-end-text { font-size: 15px; line-height: 1.4; color: var(--mute); }
.use-want {
  align-self: flex-start;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* Confianza: "Cuenta con nosotros" (va al final, justo antes del pie) */
.trust { display: flex; flex-direction: column; gap: 14px; margin: 6px 0 0; padding: 20px 18px; background: var(--surf); border-radius: 26px; }
.trust-title { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.15; }
.trust-list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.trust-item { display: flex; align-items: flex-start; gap: 12px; }
.trust-ico { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--cobalt); color: var(--white); }
.trust-b { background: var(--coral); color: var(--ink); }
.trust-c { background: var(--sun); color: var(--ink); }
.trust-d { background: var(--chip-on); color: var(--chip-on-text); }
.trust-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trust-text strong { font-weight: 800; font-size: 15px; line-height: 1.3; }
.trust-text span { font-size: 14px; line-height: 1.4; color: var(--mute); }
.trust-note { margin-top: 2px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--mute); }
.trust-note a { font-weight: 800; color: var(--name); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 700px) {
  .trust-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
  .trust { padding: 26px 28px; }
}

/* Páginas de evento: línea de fuente oficial */
.ev-desc .ev-source { font-size: 13px; line-height: 1.45; color: var(--mute); }
.ev-source a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; font-weight: 800; }

/* Sin animación si el dispositivo lo pide: todo visible al instante */
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal { opacity: 1; }
}

/* T35 · respuesta directa y preguntas frecuentes en eventos */
.ev-desc .ev-answer { font-size: 17px; line-height: 1.5; color: var(--text); }
.ev-answer strong { font-weight: 800; }
.ev-faq { display: flex; flex-direction: column; gap: 10px; }
.ev-faq-item { background: var(--surf); border: 2px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.ev-faq-item summary { cursor: pointer; font-weight: 800; color: var(--text); list-style-position: inside; }
.ev-faq-item p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--mute); }

/* T13 · Login (solo staging por ahora) */
.header-bar .auth-btn { margin-left: auto; }
.auth-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 14px; border: 2px solid var(--text); border-radius: 999px;
  background: var(--text); color: var(--bg); font-family: var(--font-body); font-weight: 800; font-size: 14px; cursor: pointer;
}
.auth-btn.is-in { width: 44px; padding: 0; background: var(--coral); color: var(--ink); border-color: var(--text); font-size: 17px; }
.auth-menu { position: absolute; right: 20px; top: calc(100% + 8px); z-index: 21; width: 220px; display: flex; flex-direction: column; gap: 4px; padding: 6px; background: var(--surf); border: 2px solid var(--text); border-radius: 20px; }
.auth-menu[hidden] { display: none; }
.auth-menu .auth-hello { padding: 10px 14px 6px; font-size: 14px; color: var(--mute); }
.auth-menu .auth-email { display: flex; flex-direction: column; gap: 2px; padding: 0 14px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.auth-menu .auth-email[hidden] { display: none; }
.auth-email-label { font-size: 12px; color: var(--mute); }
.auth-email-value { font-size: 14px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.auth-menu button, .auth-menu .auth-menu-link { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 0 14px; border: 0; border-radius: 14px; background: transparent; color: var(--text); font-family: var(--font-body); font-weight: 800; font-size: 15px; text-align: left; cursor: pointer; text-decoration: none; box-sizing: border-box; }
@media (max-width: 420px) {
  .ev-head-right .auth-btn:not(.is-in) { width: 44px; padding: 0; }
  .ev-head-right .auth-btn .auth-txt { display: none; }
}

/* ---------- Crear evento (/crear/) y evento de usuario (/e/) ---------- */
.cr-soon { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 0; }
.cr-edit { display: flex; flex-direction: column; gap: 20px; padding: 6px 0 8px; }
.cr-form { display: flex; flex-direction: column; gap: 16px; }
.cr-card { display: flex; flex-direction: column; gap: 18px; padding: 20px 18px; background: var(--surf); border-radius: 28px; }
.cr-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cr-label { font-weight: 800; font-size: 15px; line-height: 1.3; color: var(--text); }
.cr-input {
  width: 100%; min-height: 52px; padding: 0 16px;
  background: var(--bg); color: var(--text);
  border: 2px solid var(--line); border-radius: 16px;
  font-family: var(--font-body); font-size: 16px; line-height: 1.3;
}
.cr-input { box-sizing: border-box; min-width: 0; max-width: 100%; }
/* iPhone: los campos de fecha y hora traen su propio ancho y centrado; los igualamos al resto */
.cr-input[type="date"], .cr-input[type="time"] {
  -webkit-appearance: none; appearance: none; display: block; text-align: left;
  /* iPhone pone el valor arriba: alto fijo + padding parejo lo deja centrado en vertical */
  height: 52px; padding-top: 13px; padding-bottom: 13px; line-height: 22px;
}
.cr-input::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 22px; line-height: 22px; }
.cr-input::-webkit-datetime-edit { padding: 0; line-height: 22px; }
.cr-input::placeholder { color: var(--mute); opacity: .8; }
.cr-input:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.cr-input[aria-invalid="true"] { border-color: var(--coral); }
.cr-area { min-height: 96px; padding: 12px 16px; resize: vertical; }
.cr-count { align-self: flex-end; font-size: 13px; line-height: 1.2; color: var(--mute); }
.cr-help { font-size: 13px; line-height: 1.4; color: var(--mute); }
.cr-tz { margin-top: -8px; }
.cr-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cr-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--bg); border: 2px solid var(--line); border-radius: 999px; }
.cr-seg-btn {
  min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--text);
  font-family: var(--font-body); font-weight: 800; font-size: 15px; cursor: pointer;
}
.cr-seg-btn.is-on { background: var(--chip-on); color: var(--chip-on-text); }
.cr-chips .chip { background: var(--bg); border: 2px solid var(--line); min-height: 44px; padding: 0 14px; }
.cr-chips .chip[aria-pressed="true"] { background: var(--chip-on); border-color: var(--chip-on); color: var(--chip-on-text); }
.cr-card .auth-err { margin-top: 2px; }

/* Barra fija abajo */
.cr-bar {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; flex-direction: column; gap: 8px;
  margin: 0 -20px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--bg); border-top: 1px solid var(--line);
}
.cr-publish { width: 100%; min-height: 54px; }
.cr-publish:disabled { opacity: .7; cursor: default; }
.cr-bar-note { font-size: 12px; line-height: 1.4; text-align: center; color: var(--mute); }

/* Pantalla de éxito */
.cr-done { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 12px 0 8px; text-align: center; }
.cr-done h1:focus { outline: none; }
.cr-done > * { max-width: 100%; }
.cr-ok-card { width: 100%; border-radius: 26px; text-align: left; gap: 8px; }
.cr-ok-kick { font-size: 12px; font-weight: 800; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.cr-ok-title { font-family: var(--font-display); font-size: 24px; line-height: 1.15; overflow-wrap: anywhere; }
.cr-ok-card .ev-days-num { font-size: 72px; }
.cr-ok-card .ev-days-num.cr-today { font-size: 48px; line-height: 1; }
.cr-done .ev-wa { width: 100%; min-height: 54px; }
.cr-urlrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 6px 6px 16px; background: var(--surf); border-radius: 999px; }
.cr-url { flex: 1 1 auto; min-width: 0; text-align: left; font-weight: 800; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; user-select: all; }
.cr-copy {
  flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--chip-on); color: var(--chip-on-text);
  font-family: var(--font-body); font-weight: 800; font-size: 15px; cursor: pointer;
}
.cr-view { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; font-size: 16px; color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* Evento de usuario (/e/) */
.evu-by { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 5px 14px 5px 5px; background: var(--surf); border-radius: 999px; font-weight: 800; font-size: 14px; line-height: 1.3; }
.evu-by .avatar { width: 30px; height: 30px; font-size: 13px; }
.evu-where { display: flex; flex-direction: column; gap: 12px; padding: 20px 18px; background: var(--surf); border-radius: 28px; }
.evu-where .btn { min-height: 52px; font-size: 16px; }
.evu-place { font-weight: 800; font-size: 18px; line-height: 1.35; overflow-wrap: anywhere; }
.evu-desc { margin-top: 2px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.55; color: var(--mute); white-space: pre-line; overflow-wrap: anywhere; }
.evu-foot { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 4px; }
.evu-disc { font-size: 13px; line-height: 1.5; color: var(--mute); }
.evu-report {
  min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--link);
  font-family: var(--font-body); font-weight: 800; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.evu-repform { display: flex; flex-direction: column; gap: 12px; }
.evu-reasons { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.evu-reason { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border: 2px solid var(--line); border-radius: 16px; font-weight: 800; font-size: 16px; cursor: pointer; }
.evu-reason input { width: 20px; height: 20px; accent-color: var(--cobalt); }
.evu-reason:has(input:checked) { border-color: var(--cobalt); }
.evu-repdone { padding: 8px 0; }
/* Asistencia (/e/) y casilla de dirección privada (/crear/) */
.evu-att { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.evu-proof { margin: 0; text-align: center; font-weight: 800; font-size: 16px; line-height: 1.3; }
.evu-rsvp { min-height: 56px; font-size: 18px; width: 100%; }
.evu-rsvp:disabled { opacity: .7; cursor: default; }
.evu-chip {
  display: flex; align-items: center; justify-content: center; margin: 0; min-height: 48px; padding: 0 18px;
  border-radius: 999px; background: var(--cobalt); color: var(--white); font-weight: 800; font-size: 16px;
}
.evu-cancel {
  align-self: center; min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--link);
  font-family: var(--font-body); font-weight: 800; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.evu-cancel:disabled { opacity: .7; cursor: default; }
.evu-locked { display: flex; align-items: flex-start; gap: 12px; font-weight: 800; font-size: 16px; line-height: 1.4; }
.evu-locked svg { flex: none; margin-top: 1px; }
.evu-locked p { margin: 0; overflow-wrap: anywhere; }
.cr-check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 800; font-size: 15px; line-height: 1.3; cursor: pointer; }
.cr-check input { flex: none; width: 22px; height: 22px; accent-color: var(--cobalt); }
#cal-sheet [hidden], #rep-sheet [hidden] { display: none !important; }

/* Esqueleto mientras carga */
.evu-sk { display: flex; flex-direction: column; gap: 14px; padding: 6px 0; }
.evu-sk-line, .evu-sk-card { display: block; background: var(--surf); border-radius: 14px; animation: evu-sk 1.4s ease-in-out infinite; }
.evu-sk-short { width: 55%; height: 14px; }
.evu-sk-title { width: 85%; height: 40px; }
.evu-sk-card { height: 260px; border-radius: 32px; }
@keyframes evu-sk { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .evu-sk-line, .evu-sk-card { animation: none; } }

/* ---------- T13 · PR 3b: asistentes, Mis eventos ---------- */
.evu-note { margin: -2px 0 0; text-align: center; font-size: 13px; line-height: 1.4; color: var(--mute); }
.evu-owner { display: flex; flex-direction: column; gap: 12px; padding: 20px 18px; background: var(--surf); border-radius: 28px; }
.evu-owner-h { margin: 0; font-weight: 800; font-size: 18px; line-height: 1.3; }
.evu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.evu-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 16px; }
.evu-list li:first-child { border-top: 0; }
.evu-list .avatar { width: 32px; height: 32px; font-size: 13px; }
.evu-list .evu-aname { font-weight: 800; min-width: 0; overflow-wrap: anywhere; }
.evu-list .evu-aname.is-none { font-weight: 600; color: var(--mute); }
.evu-empty { margin: 0; font-size: 15px; line-height: 1.5; color: var(--mute); }
.evu-owner .btn, .att-sheet .btn { min-height: 48px; }
.evu-all, .evu-more { width: 100%; }
.evu-all { margin-top: 4px; }
.evu-more { margin-top: 8px; }
/* Cabecera del organizador: etiqueta "Tú" y botones ícono */
.evu-byrow { display: flex; align-items: center; gap: 10px; }
.evu-byrow .evu-by { align-self: auto; min-width: 0; flex: 0 1 auto; }
.evu-by-name { min-width: 0; overflow-wrap: anywhere; }
.evu-you { flex: none; padding: 2px 9px; border-radius: 999px; background: var(--line); color: var(--text); font-weight: 800; font-size: 12px; line-height: 1.4; }
.evu-by .evu-you:first-child { margin-left: 9px; }
.evu-owner-acts { display: flex; gap: 8px; margin-left: auto; flex: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0;
  border: 2px solid var(--line); border-radius: 50%;
  background: transparent; color: var(--text); text-decoration: none; cursor: pointer;
}
.icon-btn:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.icon-btn-danger { border-color: var(--coral); }
.icon-btn-wa { background: var(--wa); border-color: var(--wa); color: var(--wa-ink); }
.icon-btn:disabled { opacity: .6; cursor: default; }
/* Hoja con todos los asistentes */
#att-sheet { max-height: calc(100dvh - 24px); overflow: hidden; display: none; flex-direction: column; }
#att-sheet[open] { display: flex; }
#att-sheet .sheet-body { min-height: 0; flex: 1 1 auto; }
.evu-search { width: 100%; }
.evu-sheet-list { min-height: 0; max-height: 70vh; overflow-y: auto; overscroll-behavior: contain; }

.me-wrap { display: flex; flex-direction: column; gap: 18px; padding: 6px 0 8px; }
.me-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--surf); border: 2px solid var(--line); border-radius: 999px; }
.me-tab { min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font-family: var(--font-body); font-weight: 800; font-size: 15px; cursor: pointer; }
.me-tab[aria-selected="true"] { background: var(--chip-on); color: var(--chip-on-text); }
.me-list { display: flex; flex-direction: column; gap: 14px; }
.me-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--surf); border-radius: 22px; }
.me-card.is-past { opacity: .6; }
.me-title { margin: 0; font-weight: 800; font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.me-meta { margin: 0; font-size: 15px; line-height: 1.4; color: var(--mute); }
.me-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.me-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--line); color: var(--text); font-weight: 800; font-size: 13px; }
.me-badge-hidden { background: var(--coral); color: var(--ink); }
.me-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.me-actions .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
.me-actions .me-first-icon { margin-left: auto; }
.me-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px 20px; background: var(--surf); border-radius: 22px; }
.me-empty p { margin: 0; font-size: 16px; color: var(--mute); }
