:root {
  --bg: #0F2440;
  --bg-glow: rgba(58, 168, 173, 0.20);
  --dot-color: rgba(255, 255, 255, 0.035);
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.10);
  --surface-solid: #273A53;
  --border: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.26);
  --text: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.50);
  /* Extraído por muestreo real de logo-ticket-loop.png / icono-ticket-loop.png
     (promedio de píxeles teal/naranja saturados en ambos archivos), no una
     aproximación a ojo. */
  --accent-start: #339689;
  --accent-end: #F39622;
  --accent-gradient: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  --accent: var(--accent-start);
  --accent-soft: rgba(51, 150, 137, 0.18);
  --on-accent: #0B1B30;
  --success: #3FCB82;
  --success-soft: rgba(94, 140, 255, 0.18);
  --warning: #FF8A3D;
  --warning-soft: rgba(255, 138, 61, 0.18);
  --danger: #F1616B;
  --danger-soft: rgba(241, 97, 107, 0.16);
  --radius: 10px;
  --radius-lg: 16px;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
/* Fuente de marca: el título de la card "Ver todos los eventos", el
   renglón animado de Home (.home-tagline) y el texto curvo de la tagline
   del header bajo el logo (.logo-tagline-text) la usan; el resto del
   sitio sigue con --sans. */
@font-face {
  font-family: 'Avega Italic';
  src: url("../fonts/Avega-Italic.4cbd7bd1fb6d.ttf") format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
.app {
  max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; padding-bottom: 24px;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 60% at 50% 100%, rgba(0, 0, 0, 0.45), transparent 100%),
    radial-gradient(circle at 1px 1px, var(--dot-color) 1px, transparent 1.5px),
    radial-gradient(ellipse 900px 560px at 50% 20%, var(--bg-glow), transparent 70%);
  background-repeat: no-repeat, repeat, no-repeat;
  background-size: 100% 100%, 16px 16px, 100% 100%;
}
.app--with-fab { padding-bottom: 88px; }

/* Header */
.header {
  display: flex; align-items: center; gap: 10px; padding: 8px 16px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 20;
}
/* Logo un poco más chico que antes para dejarle lugar prolijo a la
   tagline de abajo sin que el header crezca de alto en total. */
.logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.logo-img { height: 34px; width: auto; display: block; }
/* Texto curvo estilo sello/insignia: el <path> es una guía invisible (el
   arco inferior de un círculo) y el texto sigue esa curva con textPath.
   El viewBox es más ancho que el logo a propósito -- así el font-size en
   unidades del SVG puede ser más grande y nítido, y el ancho final en
   pantalla lo controla el width en CSS, no el viewBox. */
.logo-tagline-svg { width: 88px; height: 27px; display: block; margin-top: 1px; overflow: visible; }
.logo-tagline-text {
  font-family: 'Avega Italic', var(--sans); font-weight: 400;
  fill: var(--text-muted);
}
.logo-tagline-text-1 { font-size: 9px; }
.logo-tagline-text-2 { font-size: 7px; }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.icon-btn { position: relative; cursor: pointer; color: var(--text-secondary); display: flex; text-decoration: none; }
.notif-bell { background: none; border: none; padding: 0; font-size: 15px; font-family: inherit; }
.notif-dot {
  position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); border: 1.5px solid var(--surface);
}

/* Desplegable de notificaciones */
.notif-wrap { position: relative; }
.notif-dropdown {
  display: none; position: absolute; top: 100%; right: 0; margin-top: 10px;
  width: min(280px, calc(100vw - 32px)); max-height: 360px; overflow-y: auto;
  background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4); z-index: 30;
}
.notif-dropdown.open { display: block; }
.notif-dropdown-title { font-size: 12.5px; font-weight: 700; color: var(--text); margin: 0; padding: 12px 14px 8px; }
.notif-item { display: block; padding: 10px 14px; text-decoration: none; border-top: 1px solid var(--border); }
.notif-item:hover { background: var(--surface-2); }
.notif-item-unread { background: var(--accent-soft); }
.notif-item-unread .notif-text { font-weight: 600; }
.notif-text { font-size: 12.5px; color: var(--text); margin: 0; line-height: 1.4; }
.notif-date { font-size: 11px; color: var(--text-muted); margin: 4px 0 0; }
.notif-empty { padding: 6px 14px 14px; margin: 0; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent-gradient); color: var(--on-accent);
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none;
}
.header-auth-link { font-size: 12.5px; color: var(--accent); text-decoration: none; white-space: nowrap; }

.screen { padding: 16px; position: relative; }

/* Mensajes globales (Django messages) */
.app-messages { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.app-message { font-size: 13px; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.app-message-success { background: var(--success-soft); border-color: rgba(63, 203, 130, 0.4); }
.app-message-error { background: var(--danger-soft); border-color: rgba(241, 97, 107, 0.4); }
.app-message-warning { background: var(--warning-soft); border-color: rgba(255, 138, 61, 0.4); }
.app-message-info, .app-message-debug { background: var(--accent-soft); border-color: rgba(51, 150, 137, 0.4); }

/* Pie de página: mismo en toda la app (vive en app_base.html, no en cada
   pantalla). Datos de contacto todavía placeholder -- ver comentario en
   el template. */
.app-footer {
  margin-top: 8px; padding: 20px 16px 24px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
}
.app-footer-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.app-footer-link { font-size: 12px; color: var(--text-secondary); text-decoration: none; }
.app-footer-link:hover { color: var(--text); }
.app-footer-copy { font-size: 11px; color: var(--text-muted); margin: 4px 0 0; }

/* Renglón animado (máquina de escribir, ver script en home.html) debajo
   del header y arriba del buscador, en Home. Texto simple sobre el fondo
   normal de la página, sin caja ni color de fondo propio -- a escala de
   subtítulo, no de titular. */
.home-tagline {
  font-family: 'Avega Italic', var(--sans); font-weight: 400;
  font-size: 14px; color: var(--text-secondary); text-align: center; margin: 0 0 16px;
}
.hero-cursor { display: inline-block; animation: hero-cursor-blink 1s step-start infinite; }
@keyframes hero-cursor-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero-cursor { animation: none; }
}

/* Home search */
.search-bar { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--text-muted); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.search-bar input { border: none; background: none; outline: none; font-size: 13px; color: var(--text); flex: 1; font-family: inherit; }
.search-bar input::placeholder { color: var(--text-muted); }

/* Fila del buscador + Publicar entrada (Home): apilados en mobile,
   lado a lado a partir de 768px (mismo corte que el resto del sitio). */
.home-search-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.home-search-row .search-bar { margin-bottom: 0; }
/* En una barra tan ancha y baja, el degradé de marca a 135deg (pensado
   para formas más cuadradas) queda casi todo naranja: el corte de color
   cae muy a la izquierda. A 90deg (de punta a punta, izquierda-derecha)
   se ve el mismo degradé verde-naranja pero parejo en todo el ancho. */
.home-publish-btn { height: 44px; font-size: 14px; white-space: nowrap; }
.home-publish-btn.btn-primary { background: linear-gradient(90deg, var(--accent-start), var(--accent-end)); }
.home-publish-btn.btn-primary:hover { background: linear-gradient(90deg, var(--accent-start), var(--accent-end)); opacity: .92; }

@media (min-width: 768px) {
  .home-search-row { flex-direction: row; align-items: stretch; }
  .home-search-row .search-bar { flex: 2; }
  .home-publish-btn { flex: 1; }
}
.section-title { font-size: 13.5px; font-weight: 700; margin: 0 0 10px; color: var(--text); }

/* Destacados: carrusel deslizante continuo (scroll horizontal con snap),
   de a una tarjeta por vez, en vez de páginas fijas de a 4 — así nunca
   queda un grupo incompleto con espacio vacío al final. */
.featured-carousel {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.featured-carousel::-webkit-scrollbar { display: none; }
.featured-card {
  flex: 0 0 auto; width: 44%; scroll-snap-align: start;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border); text-decoration: none; display: block;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.featured-card:hover {
  transform: scale(1.035); box-shadow: 0 8px 20px rgba(0, 0, 0, .3); border-color: var(--border-strong);
}
.featured-img { height: 78px; display: flex; align-items: center; justify-content: center; font-size: 22px; background-size: cover; background-position: center 30%; }
.featured-info { padding: 8px 10px; background: var(--surface); }
.featured-info .name { font-size: 12.5px; font-weight: 700; margin: 0; color: var(--text); }
.featured-info .meta { font-size: 11px; color: var(--text-secondary); margin: 2px 0 0; }

.carousel-dots { display: flex; justify-content: center; align-items: center; gap: 7px; margin: 12px 0 22px; }
.carousel-dots .dot { width: 7px; height: 7px; border-radius: 4px; background: var(--border-strong); border: none; padding: 0; cursor: pointer; transition: width .18s ease, background .18s ease; }
.carousel-dots .dot.active { width: 20px; background: var(--accent-gradient); }

/* Proximos eventos */
.upcoming-row {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 10px 12px; margin-bottom: 8px; background: var(--surface); text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.upcoming-row:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .28); border-color: var(--border-strong); }
/* Card destacada "Ver todos los eventos": el título es el protagonista,
   centrado y grande, no una fila más de la lista. */
.all-events-card {
  container-type: size;
  height: 78px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 0 16px; margin-bottom: 20px;
  background: var(--accent-soft); border: 1px solid rgba(51, 150, 137, 0.4); border-radius: var(--radius-lg);
  text-decoration: none;
  animation: all-events-card-pulse 4.5s ease-in-out infinite;
}
/* Pulso sutil cada 4.5s: la card entera (logo, título y subtítulo juntos,
   como una sola unidad) se agranda levemente y vuelve. */
@keyframes all-events-card-pulse {
  0%, 85%, 100% { transform: scale(1); }
  92.5% { transform: scale(1.035); }
}
@media (prefers-reduced-motion: reduce) {
  .all-events-card { animation: none; }
  .featured-card, .upcoming-row, .card.clickable { transition: none; }
  .featured-card:hover, .upcoming-row:hover, .card.clickable:hover { transform: none; }
}
/* El logo se dimensiona y separa en base al alto de la card (cqh), que es
   la dimensión realmente fija acá — así siempre queda con aire alrededor
   y bien legible, sin pegarse al borde, en cualquier tamaño de pantalla. */
.all-events-logo-img {
  height: clamp(14px, 24cqh, 46px); width: auto; margin-bottom: clamp(6px, 12cqh, 22px);
}
.all-events-title {
  display: block; width: 100%; text-align: justify; text-align-last: justify;
  white-space: nowrap; text-transform: uppercase; font-weight: 400;
  font-family: 'Avega Italic', var(--sans);
  /* 6.6cqw deja el texto natural en ~93% del ancho de la card en cualquier
     tamaño (medido con la métrica real de Avega Italic); text-align-last:
     justify hace el último estirón para llegar a 100% de punta a punta. */
  font-size: clamp(15px, 6.6cqw, 90px);
  color: var(--text); margin: 0; line-height: 1.05;
}
/* Mismo tamaño que .featured-info .meta (subtítulo de fecha/lugar en las
   tarjetas de Destacados) — ya no escala con el breakpoint. */
.all-events-subtitle { font-size: 11px; color: var(--text-secondary); margin: 3px 0 0; }
.upcoming-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 16px; background-size: cover; background-position: center; }
.upcoming-row .name { font-size: 13.5px; font-weight: 600; margin: 0; color: var(--text); }
.upcoming-row .meta { font-size: 11.5px; color: var(--text-secondary); margin: 2px 0 0; }
.upcoming-price { font-size: 12px; color: var(--text-secondary); margin-left: auto; white-space: nowrap; }
.upcoming-price-unavailable { color: var(--text-muted); font-style: italic; }

.bg-accent { background-color: var(--accent-soft); }
.bg-success { background-color: var(--success-soft); }
.bg-warning { background-color: var(--warning-soft); }

.empty-note { font-size: 12.5px; color: var(--text-muted); }

/* Botones genéricos */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled:hover { background: var(--surface); }
.btn-sm { height: 32px; font-size: 12.5px; padding: 0 12px; }

/* Encabezado de pantalla con evento (catálogo) */
.page-title { font-size: 18px; font-weight: 700; margin: 12px 0 2px; color: var(--text); letter-spacing: -.01em; }
.page-sub { font-size: 12.5px; color: var(--text-secondary); margin: 0 0 16px; }

/* Nombres de evento en mayúscula en todo el sitio, sin tocar el dato
   guardado: aplica también a eventos ya cargados y a los que se carguen
   después, sin importar cómo se haya escrito el nombre originalmente. */
.event-name { text-transform: uppercase; }

/* Filtros */
.filters-row { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.filters-row select {
  background-color: var(--surface-solid); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 7px 9px; font-size: 12.5px; font-family: inherit;
}
.filters-row select option { background-color: var(--surface-solid); color: var(--text); }
.filters-row select:last-child { margin-left: auto; }

/* Banner + datos del evento (catálogo): apilados en mobile (banner
   arriba); a partir de tablet van lado a lado, banner angosto pegado a
   la izquierda (~1/4 del ancho) y los datos ocupando el resto a la
   derecha, en la misma fila. */
.event-hero-row { display: flex; flex-direction: column; gap: 14px; margin: 12px 0 16px; }

/* Imagen/portada del evento: si hay foto, se arma en capas para no
   recortarla ni dejar espacio vacío. Atrás, la misma imagen ampliada y
   desenfocada con un tinte del degradé de marca (no gris genérico);
   encima, la imagen real completa sin recortar. Sin foto, sigue el
   ícono centrado sobre el color del evento, como antes. */
.event-hero {
  height: 150px; border-radius: var(--radius-lg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.event-hero-icon { font-size: 40px; }
.event-hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(24px); transform: scale(1.15);
}
.event-hero-tint { position: absolute; inset: 0; background: var(--accent-gradient); opacity: 0.45; }
.event-hero-fg { position: absolute; inset: 0; background-size: contain; background-position: center; background-repeat: no-repeat; }

/* Datos del evento (nombre, ticketera, lugar y fecha), al costado del banner */
.event-info { margin: 0; min-width: 0; }

/* Recuadro destacado "¿Querés vender...?" (catálogo): mismo degradé de
   marca que btn-primary/fab-pill.sell, lleva directo a publicar con este
   evento ya precargado (sin pasar por el buscador de eventos del FAB).
   Vive en la misma fila que el banner, ocupando el espacio libre a la
   derecha de los datos del evento. */
.event-sell-cta {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 38px; padding: 9px 14px; border-radius: var(--radius);
  background: var(--accent-gradient); color: var(--on-accent);
  font-weight: 600; font-size: 12.5px; line-height: 1.3; text-decoration: none;
}
.event-sell-cta:hover { opacity: .92; }

@media (min-width: 768px) {
  .event-hero-row { flex-direction: row; align-items: center; }
  .event-hero-row .event-hero { flex: 0 0 25%; min-width: 0; }
  .event-hero-row .event-info {
    flex: 0 1 auto; display: flex; flex-direction: column; justify-content: center;
  }
  .event-hero-row .event-sell-cta { flex: 1 1 auto; margin-left: auto; max-width: 320px; }
}

/* Publicaciones */
.listing-grid { display: flex; flex-direction: column; gap: 10px; }
.card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; text-decoration: none; color: inherit; }
.card.clickable { cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card.clickable:hover {
  border-color: var(--border-strong); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
}
/* Miniatura del evento en cada publicación (catálogo del evento): misma
   imagen del banner, mismo patrón que .event-summary-img/.upcoming-icon. */
.listing-card-inner { display: flex; gap: 12px; }
.listing-thumb {
  width: 56px; height: 56px; border-radius: var(--radius); flex-shrink: 0; border: 1px solid var(--border);
  background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.listing-body { flex: 1; min-width: 0; }
.listing-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 10px; }
.listing-top .sector { font-size: 15px; font-weight: 700; color: var(--text); margin: 0; }
.listing-top .meta { font-size: 12.5px; color: var(--text-secondary); margin: 4px 0 0; }
.listing-price { font-size: 20px; font-weight: 700; color: var(--text); }
.listing-price small { font-size: 12px; color: var(--text-secondary); font-weight: 400; }
.seller-row { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; }
/* Reutilizable en cualquier lado que necesite representar a un usuario
   (no solo dentro de .seller-row): foto real si tiene, iniciales si no. */
.mini-avatar {
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent-gradient); color: var(--on-accent);
  font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mini-avatar-lg { width: 34px; height: 34px; font-size: 12px; }
.mini-avatar-xs { width: 16px; height: 16px; font-size: 8px; }
.avatar-img { object-fit: cover; }

/* Fila de contraparte (Estado de la compra, Mis entradas): avatar + texto */
.counterparty-line { display: flex; align-items: center; gap: 6px; margin-top: 6px; text-decoration: none; width: fit-content; }
.counterparty-line span { font-size: 12.5px; color: var(--text-secondary); }
.counterparty-line-sm { gap: 5px; margin-top: 2px; }
.counterparty-line-sm span { font-size: 11.5px; }
.seller-row .name { font-size: 12.5px; color: var(--text); flex: 1; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Avatar + nombre como link al perfil público, sin romper el layout del
   resto de la fila (reputación, verificado) que queda afuera del link. */
.seller-identity { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.seller-identity .name { flex: 1; min-width: 0; }
.seller-row .verified { color: var(--accent-start); font-size: 12px; }
.seller-row .reputation { font-size: 11.5px; color: var(--text-secondary); white-space: nowrap; }

.badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.badge-success { background: rgba(63, 203, 130, 0.16); color: var(--success); }

/* Detalle de publicación */
.btn-primary { background: var(--accent-gradient); border-color: transparent; color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-gradient); opacity: .92; }

/* Cartel de confirmación al publicar una entrada */
.publish-success-banner {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  background: var(--accent-gradient); color: var(--on-accent); border-radius: var(--radius-lg);
  padding: 20px 18px; margin: 12px 0 0;
}
.publish-success-text { font-size: 15px; font-weight: 700; margin: 0; }
.publish-success-banner .btn {
  background: rgba(11, 27, 48, .18); border: 1px solid rgba(11, 27, 48, .35); color: var(--on-accent); font-weight: 700;
}
.publish-success-banner .btn:hover { background: rgba(11, 27, 48, .28); }
.btn-block { width: 100%; height: 44px; font-size: 14px; }
.qty-row { display: flex; gap: 10px; align-items: center; margin: 14px 0; }
.qty-row label { font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; }
.qty-row select { width: 70px; background-color: var(--surface-solid); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 7px 9px; font-size: 13px; font-family: inherit; }
.qty-row select option { background-color: var(--surface-solid); color: var(--text); }
.total-row { margin-left: auto; text-align: right; font-size: 13px; color: var(--text-secondary); }
.total-row b { display: block; font-size: 17px; color: var(--text); font-weight: 700; }
.field-error { color: var(--danger); font-size: 12.5px; margin: 4px 0 10px; }

/* Formularios genéricos (editar datos personales, etc.) */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 12.5px; color: var(--text-secondary); margin-bottom: 6px; }
.form-group input, .form-group select {
  width: 100%; background-color: var(--surface-solid); border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 11px; font-size: 13px; color: var(--text); font-family: inherit;
}
.form-group select option { background-color: var(--surface-solid); color: var(--text); }

/* Precio: se carga solo escribiendo el número, sin la ruedita de subir/
   bajar del input numérico nativo (Chrome/Safari y Firefox usan mecanismos
   distintos para ocultarla). */
.no-spinner::-webkit-outer-spin-button,
.no-spinner::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.no-spinner {
  -moz-appearance: textfield;
}

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; }
.checkbox-row input[type=checkbox] { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--accent-start); }
.checkbox-row label { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }

.payment-row.emphasis { background: var(--accent-soft); border-color: rgba(51, 150, 137, 0.4); }
.payment-row.emphasis .label { color: var(--text-secondary); }
.payment-row.emphasis .value { font-size: 18px; color: var(--accent-start); }

/* Mi cuenta */
.account-header { display: flex; flex-direction: column; align-items: center; text-align: center; }
.account-photo {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.account-photo-fallback {
  display: flex; align-items: center; justify-content: center; background: var(--accent-gradient);
  color: var(--on-accent); font-size: 22px; font-weight: 700;
}
.badge-danger { background: var(--danger-soft); color: var(--danger); }

.account-section-title { font-size: 12.5px; font-weight: 700; color: var(--text); margin: 0 0 12px; }
.account-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.account-data-row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.account-data-row:first-of-type { border-top: none; padding-top: 0; }
.account-data-row .label { font-size: 12.5px; color: var(--text-secondary); }
.account-data-row .value { font-size: 13px; color: var(--text); font-weight: 600; text-align: right; }

.account-summary { display: flex; gap: 28px; }
.account-summary-number { font-size: 22px; font-weight: 700; color: var(--text); margin: 0; }

.account-actions { padding: 0; overflow: hidden; }
.account-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 14px 16px; border-bottom: 1px solid var(--border);
  background: none; border-left: none; border-right: none; border-top: none;
  color: var(--text); font-size: 13.5px; font-weight: 600; font-family: inherit;
  text-decoration: none; cursor: pointer; text-align: left;
}
.account-row:last-child { border-bottom: none; }
.account-row-arrow { color: var(--text-muted); font-size: 16px; }
.account-row-danger { color: var(--danger); }

/* Estado de la compra */
.event-summary { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.event-summary-img {
  width: 64px; height: 64px; border-radius: var(--radius); flex-shrink: 0; border: 1px solid var(--border);
  background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.event-summary .name { font-size: 16px; font-weight: 700; color: var(--text); margin: 0; }
.event-summary .meta { font-size: 12px; color: var(--text-secondary); margin: 2px 0 0; }

.progress-track { display: flex; align-items: flex-start; margin: 18px 0 22px; }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 74px; flex-shrink: 0; }
.progress-step .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--border-strong); box-sizing: border-box; }
.progress-step.done .dot { background: var(--accent-gradient); border-color: transparent; }
.progress-step.current .dot { border-color: var(--accent-start); box-shadow: 0 0 0 4px var(--accent-soft); }
.progress-step .label { font-size: 10.5px; color: var(--text-muted); text-align: center; line-height: 1.25; }
.progress-step.done .label, .progress-step.current .label { color: var(--text); font-weight: 600; }
.progress-connector { flex: 1; height: 2px; background: var(--border-strong); margin: 6px -1px 0; }
.progress-connector.filled { background: var(--accent-gradient); }

.highlight-box { background: var(--warning-soft); border: 1px solid rgba(255, 138, 61, 0.4); border-radius: var(--radius-lg); padding: 14px; margin-bottom: 14px; }
.highlight-box .field-label { font-size: 12.5px; font-weight: 600; color: var(--text); margin: 0 0 8px; }
.highlight-box .field-row { display: flex; gap: 8px; }
.highlight-box input[type=email] { flex: 1; background-color: var(--surface-solid); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; font-size: 13px; color: var(--text); font-family: inherit; }
.highlight-box .note { font-size: 11.5px; color: var(--text-secondary); margin: 8px 0 0; }

.payment-data { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.payment-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.payment-row .label { font-size: 11px; color: var(--text-muted); margin: 0; }
.payment-row .value { font-size: 14px; font-weight: 600; color: var(--text); margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.copy-btn { background: none; border: 1px solid var(--border-strong); color: var(--text); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 14px; flex-shrink: 0; }
.copy-btn:hover { background: var(--surface-2); }

.countdown-box { text-align: center; margin-bottom: 14px; }
.countdown-box .countdown { font-size: 28px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.countdown-box .caption { font-size: 11.5px; color: var(--text-secondary); }

.actions-row { display: flex; gap: 10px; }
.actions-row .btn { flex: 1; }

/* Recomendación opcional al vendedor */
.recommend-prompt { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; margin-top: 12px; }
.recommend-prompt .field-label { margin-bottom: 10px; }

.loop-icon {
  background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent-start); font-weight: 700;
}
.recommendation-line { font-size: 11.5px; color: var(--text-secondary); margin: 2px 0 0; display: flex; align-items: center; gap: 4px; }

/* Mis entradas */
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.tab { border: none; background: none; padding: 8px 4px; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-right: 18px; font-family: inherit; }
.tab.active { color: var(--text); border-color: var(--accent-start); }

.chip-row { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.chip { font-size: 12px; padding: 6px 13px; border-radius: 20px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-secondary); cursor: pointer; font-family: inherit; }
.chip.active { background: var(--accent-gradient); color: var(--on-accent); border-color: transparent; font-weight: 600; }

.ticket-status { margin-left: auto; }
.upcoming-row-dispute { border-color: var(--danger); }
.dispute-flag { margin-left: 6px; }
.badge-accent { background: var(--accent-soft); color: var(--accent-start); }
.badge-warning { background: rgba(255, 138, 61, 0.16); color: var(--warning); }
.badge-muted { background: var(--surface-2); color: var(--text-muted); }
.bg-danger { background-color: var(--danger-soft); }

/* Columnas lado a lado (Validar pago, Resolver reclamo): apiladas en
   mobile, en fila a partir de tablet. */
.dual-column { display: flex; flex-direction: column; gap: 16px; margin-top: 14px; }
.dual-column > div { flex: 1; min-width: 0; }
@media (min-width: 768px) {
  .dual-column { flex-direction: row; }
}

/* Panel de administración */
.panel-metrics { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 22px; }
.panel-metric-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px 16px; }
.panel-metric-card.alert { border-color: rgba(241, 97, 107, 0.4); }
.panel-metric-card .value { font-size: 26px; font-weight: 700; color: var(--text); margin: 0; font-variant-numeric: tabular-nums; }
.panel-metric-card.alert .value { color: var(--danger); }
.panel-metric-card .label { font-size: 12px; color: var(--text-secondary); margin: 4px 0 0; }
@media (min-width: 768px) {
  .panel-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

.panel-queue { display: flex; flex-direction: column; gap: 8px; }
.panel-queue-item { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; background: var(--surface); text-decoration: none; color: inherit; }
.panel-queue-item:hover { border-color: var(--border-strong); }
.panel-queue-item .kind-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.panel-queue-item .title { font-size: 13px; font-weight: 600; color: var(--text); margin: 0; }
.panel-queue-item .subtitle { font-size: 11.5px; color: var(--text-secondary); margin: 2px 0 0; }
.panel-queue-item .age { font-size: 11px; color: var(--text-muted); margin-left: auto; white-space: nowrap; }

/* Bottom nav / FAB */
.bottom-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: flex; flex-direction: column; align-items: center; padding-bottom: 14px; pointer-events: none; }
.fab-menu { display: none; gap: 10px; margin-bottom: 10px; pointer-events: auto; }
.fab-menu.open { display: flex; }
.fab-pill { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.35); border: none; text-decoration: none; }
.fab-pill.buy { background: var(--surface-solid); color: var(--text); border: 1px solid var(--border-strong); }
.fab-pill.sell { background: var(--accent-gradient); color: var(--on-accent); }
.fab-main {
  width: 60px; height: 60px; border-radius: 50%; background: none; padding: 0;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.45);
  cursor: pointer; pointer-events: auto; border: none; overflow: hidden;
}
.fab-icon { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Contenido angosto (detalle/estado/listas) para no estirar formularios
   de punta a punta en pantallas anchas */
.screen--narrow { max-width: 640px; margin: 0 auto; }

/* Lista de próximos eventos (home) */
.upcoming-list { display: flex; flex-direction: column; gap: 8px; }

/* "Todos los eventos" (catálogo): mismas filas que "Próximos eventos" del
   Home, pero con más presencia visual — tarjetas más grandes, no tan
   compactas. Se escala en cada breakpoint junto con el resto del sitio. */
.event-list-large .upcoming-row { padding: 16px 18px; gap: 16px; }
.event-list-large .upcoming-row > div:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.event-list-large .upcoming-icon { width: 60px; height: 60px; font-size: 24px; border-radius: 10px; }
/* Título: máximo 2 líneas, con puntos suspensivos si no entra, y un
   tamaño más proporcional al resto de la tarjeta (antes quedaba
   desproporcionado frente a lugar/fecha/precio). */
.event-list-large .name {
  font-size: 14px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.event-list-large .meta { font-size: 13px; margin-top: 3px; }
.event-list-large .upcoming-price { font-size: 14px; }

/* ============ Responsive: tablet / desktop ============
   Mobile-first: por debajo de 768px el diseño no cambia (look de celular).
   A partir de acá se aprovecha el ancho extra de tablet/PC. */
@media (min-width: 768px) {
  .app { max-width: 760px; }
  .screen { padding: 22px 32px; }

  /* Destacados sigue siendo el mismo carrusel deslizante; a partir de acá
     se ven más tarjetas por vez (el ancho relativo de cada una baja). */
  .featured-carousel { gap: 14px; }
  .featured-card { width: 22%; }
  .featured-img { height: 140px; font-size: 28px; }

  .card { padding: 20px; }
  .upcoming-row { padding: 13px 16px; }
  .upcoming-icon { width: 44px; height: 44px; font-size: 18px; }
  .all-events-card { height: 140px; padding: 0 28px; }

  .event-list-large .upcoming-row { padding: 20px 22px; gap: 18px; }
  .event-list-large .upcoming-icon { width: 76px; height: 76px; font-size: 30px; }
  .event-list-large .name { font-size: 15px; }
  .event-list-large .meta { font-size: 14px; }
  .event-list-large .upcoming-price { font-size: 15.5px; }

  .event-hero { height: 210px; }

  .listing-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px;
  }

  .upcoming-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .upcoming-list .upcoming-row { margin-bottom: 0; }
}

@media (min-width: 1024px) {
  .app { max-width: 1280px; }
  .screen { padding: 30px 48px; }

  .featured-carousel { gap: 16px; }
  .featured-img { height: 170px; font-size: 32px; }

  .event-hero { height: 260px; }

  .listing-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

  .upcoming-list { grid-template-columns: repeat(3, 1fr); }

  .screen--narrow { max-width: 680px; }

  .all-events-card { height: 170px; padding: 0 36px; }

  .event-list-large .upcoming-row { padding: 22px 24px; gap: 20px; }
  .event-list-large .upcoming-icon { width: 88px; height: 88px; font-size: 34px; }
  .event-list-large .name { font-size: 16px; }
  .event-list-large .meta { font-size: 14.5px; }
  .event-list-large .upcoming-price { font-size: 16.5px; }
}

@media (min-width: 1440px) {
  .app { max-width: 1440px; }
  .screen { padding: 34px 64px; }

  .featured-img { height: 200px; }
  .event-hero { height: 300px; }

  .all-events-card { height: 200px; }

  .event-list-large .upcoming-icon { width: 100px; height: 100px; font-size: 38px; }
  .event-list-large .name { font-size: 17px; }
}
