/* Siempre modo oscuro: en modo claro los textos claros se perdían sobre blanco */
:root {
  color-scheme: dark;
  --bg: #0a0d13;
  --bg-alt: #10141d;
  --card: #161c28;
  --border: #262e3f;
  --text: #f0f2f7;
  --text-dim: #98a2b8;
  --red: #e3350d;
  --red-dark: #b8280a;
  --blue: #3b6cff;
  --blue-dark: #2a4fd6;
  --yellow: #ffcb05;
  --green: #2fbf71;
  --purple: #8a5cf6;
  --font-display: "Baloo 2", "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}


* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
}

/* Top seam bar — pokeball red/white split */
.pokeball-seam {
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, var(--red) 50%, #fff 50%, #fff 100%);
  opacity: 0.9;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 13, 19, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  flex: none;
}

.brand-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--red) 0%, var(--red) 48%, #fff 48%, #fff 52%, #fff 52%, #fff 100%);
  border: 2px solid #1a1a1a;
  box-shadow: inset 0 0 0 3px #fff;
  flex: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav-links [hidden] { display: none !important; }

/* Enlaces sueltos y títulos de grupo */
.nav-links > a,
.menu-titulo {
  color: var(--text-dim);
  text-decoration: none;
  font: 600 0.92rem var(--font-body);
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-links > a:hover, .menu-titulo:hover, .menu-grupo:focus-within .menu-titulo { color: var(--text); }
.menu-titulo span { font-size: 0.7rem; margin-left: 2px; }

/* Grupos: en computador se abren al pasar el mouse o al tocar el título (focus) */
.menu-grupo { position: relative; }
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 250px;
  flex-direction: column;
  padding: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}
.menu-grupo:hover .submenu, .menu-grupo:focus-within .submenu { display: flex; }
.submenu a { padding: 9px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 0.9rem; white-space: nowrap; }
.submenu a:hover { background: var(--card); }

/* Botón ☰: bajo 1024px los 6 enlaces no caben, se abren como lista desplegable.
   El mismo menú existe en app/componentes/Cabecera.js (Pokédex): mantener iguales. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

@media (max-width: 1023px) {
  .brand { margin-right: auto; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 20px 12px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
  }
  .topbar.menu-abierto .nav-links { display: flex; }
  /* En el menú ☰ los grupos se ven abiertos: el título es solo un encabezado */
  .menu-titulo { display: block; width: 100%; text-align: left; padding: 14px 0 4px; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; cursor: default; }
  .menu-titulo span { display: none; }
  .submenu { display: flex; position: static; min-width: 0; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .submenu a { padding: 10px 0 10px 4px; font-size: 1rem; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-links > a { padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--border); border-radius: 0; color: var(--text); }
  .nav-links > a:last-child { border-bottom: 0; }
  /* Con la barra de abajo (sesión iniciada), que no tape los últimos enlaces */
  body.con-barra .nav-links { max-height: calc(100vh - 64px - 64px - env(safe-area-inset-bottom)); }
}

/* Al saltar a una sección, que el título no quede pegado bajo el header fijo */
section[id] { scroll-margin-top: 64px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(227, 53, 13, 0.6);
}

.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 18px;
  font-weight: 600;
}

.btn-ghost:hover { border-color: var(--red); }

.btn-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.btn-link {
  background: transparent;
  color: var(--text-dim);
  padding: 12px 8px;
  font-weight: 600;
}

.btn-block { width: 100%; }

/* Tags / badges */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag-mini { padding: 4px 10px; font-size: 0.68rem; margin-bottom: 10px; }

.tag-presencial { background: rgba(47, 191, 113, 0.14); color: var(--green); border: 1px solid rgba(47, 191, 113, 0.35); }
.tag-viajero { background: rgba(138, 92, 246, 0.14); color: var(--purple); border: 1px solid rgba(138, 92, 246, 0.35); }
.tag-evento { background: rgba(59, 108, 255, 0.14); color: var(--blue); border: 1px solid rgba(59, 108, 255, 0.35); }
.tag-alerta { background: rgba(255, 203, 5, 0.14); color: var(--yellow); border: 1px solid rgba(255, 203, 5, 0.35); }

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(227, 53, 13, 0.2), transparent 60%),
    radial-gradient(600px 300px at 85% 10%, rgba(59, 108, 255, 0.16), transparent 60%);
}

.hero-decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.35; }
.orb-red { width: 260px; height: 260px; background: var(--red); top: -80px; left: -60px; }
.orb-blue { width: 220px; height: 220px; background: var(--blue); bottom: -60px; right: -40px; }

.pokeball {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(227, 53, 13, 0.18) 0%, rgba(227, 53, 13, 0.18) 48%, transparent 48%, transparent 52%, rgba(255, 255, 255, 0.1) 52%, rgba(255, 255, 255, 0.1) 100%);
  opacity: 0.5;
}
.pb-1 { top: 30px; right: 8%; transform: rotate(-12deg); }
.pb-2 { bottom: 10px; left: 6%; width: 44px; height: 44px; transform: rotate(20deg); }

.hero-inner { position: relative; z-index: 1; text-align: center; }

.eyebrow {
  display: inline-block;
  color: var(--yellow);
  background: rgba(255, 203, 5, 0.1);
  border: 1px solid rgba(255, 203, 5, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 20px;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note {
  color: var(--text-dim);
  font-size: 0.8rem;
  opacity: 0.8;
}

.br-desktop { display: inline; }
@media (max-width: 640px) { .br-desktop { display: none; } }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 12px 0 10px; }
.section-sub { color: var(--text-dim); line-height: 1.6; margin: 0; }
.section-sub.small { font-size: 0.88rem; }

/* Feature / location grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover { transform: translateY(-2px); border-color: rgba(227, 53, 13, 0.4); }

.card-placeholder { border-style: dashed; opacity: 0.85; }

.card-icon { font-size: 1.6rem; margin-bottom: 10px; }

.card h3 { margin: 0 0 8px; font-size: 1.05rem; }

.card p { margin: 0; color: var(--text-dim); font-size: 0.92rem; line-height: 1.5; }

/* Link blocks (community links) */
.link-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.link-block h3 { margin: 0 0 6px; font-size: 1.1rem; }

.link-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0 8px;
}

/* Coordinates table */
.table-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.table-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.table-card-head h3 { margin: 0; font-size: 1.1rem; }

.table-scroll { overflow-x: auto; }

.coord-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.coord-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border);
}

.coord-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.coord-table code {
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* Weekly schedule (Modo Viajero) */
.week-schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
}

.day-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.day-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.day-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 10px;
  background: rgba(138, 92, 246, 0.14);
  border: 1px solid rgba(138, 92, 246, 0.35);
  color: var(--purple);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
}

.day-badge small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.day-card-head h4 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

.time-blocks {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.time-blocks li {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.time-blocks strong {
  color: var(--text);
  margin-right: 6px;
}

.day-location {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.loc-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.day-location strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.loc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.loc-actions code {
  font-size: 0.78rem;
  color: var(--text-dim);
  background: var(--card);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 6px;
}

.copy-btn {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  min-height: 34px; /* tamaño cómodo para el dedo en teléfono */
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.copy-btn:hover { border-color: var(--purple); color: var(--purple); }
.copy-btn.copied { border-color: var(--green); color: var(--green); }

.maps-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.maps-link:hover { text-decoration: underline; }

/* Callout */
.callout {
  display: flex;
  gap: 16px;
  background: rgba(255, 203, 5, 0.08);
  border: 1px solid rgba(255, 203, 5, 0.3);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 24px;
}

.callout-icon { font-size: 1.5rem; flex: none; }

.callout h3 { margin: 0 0 8px; font-size: 1.02rem; }

.callout p { margin: 0 0 8px; color: var(--text-dim); font-size: 0.92rem; line-height: 1.55; }

.callout p:last-child { margin-bottom: 0; }

/* Event list */
.event-list { display: flex; flex-direction: column; gap: 12px; }

.event-row {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  flex-wrap: wrap;
}

.event-when {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100px;
  flex: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 6px;
}

.event-day { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--yellow); }
.event-time { font-size: 0.72rem; color: var(--text-dim); margin-top: 2px; text-align: center; }

.event-info { flex: 1; min-width: 180px; }
.event-info h3 { margin: 0 0 4px; font-size: 1rem; }
.event-info p { margin: 0; color: var(--text-dim); font-size: 0.88rem; }

/* Waitlist */
.waitlist {
  padding: 72px 0 96px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.waitlist-inner { max-width: 480px; margin: 0 auto; text-align: center; }

.waitlist h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 8px; }

.waitlist-sub { color: var(--text-dim); margin-bottom: 32px; }

.form { text-align: left; }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dim);
}

.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-body);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--red);
}

.form-note {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
}

.form-success, .form-error {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  font-size: 0.92rem;
}

.form-success {
  background: rgba(47, 191, 113, 0.12);
  border: 1px solid rgba(47, 191, 113, 0.4);
  color: var(--green);
}

.form-error {
  background: rgba(227, 53, 13, 0.12);
  border: 1px solid rgba(227, 53, 13, 0.4);
  color: #ff7a5c;
}

/* Footer */
.footer { padding: 32px 0; text-align: center; }
.footer p { color: var(--text-dim); font-size: 0.78rem; margin: 0; }

/* Tarjetas de lugares presenciales + ventana con foto y ruta */
.card-place { cursor: pointer; }
.card-place:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.card-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
}
.card-place:hover .card-more { text-decoration: underline; }

.place-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  color: var(--text);
  overflow: auto;
}
.place-dialog::backdrop { background: rgba(0, 0, 0, 0.65); }
.place-dialog img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--bg-alt);
}
.place-body { padding: 18px 20px 20px; }
.place-body h3 { margin: 8px 0 6px; font-size: 1.3rem; }
.place-body p { margin: 0; color: var(--text-dim); font-size: 0.92rem; line-height: 1.5; }
.place-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 12px; }
.place-credit { font-size: 0.75rem !important; }
.place-credit a { color: inherit; }
.place-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

/* Hundos y Shiny */
.callout-info { border-color: rgba(255, 203, 5, 0.35); }
.hundo-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 28px 0 18px;
}
.hundo-tab {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font: 600 0.88rem var(--font-body);
  cursor: pointer;
}
.hundo-tab:hover { border-color: var(--red); }
.hundo-tab.active { background: var(--red); border-color: var(--red); color: #fff; }
.hundo-filter {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-dim);
  cursor: pointer;
}
.poke-group { margin-bottom: 24px; }
.poke-group h3 { margin: 0 0 10px; font-size: 1rem; }
.poke-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 10px;
}
.poke-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.poke-item img { flex: none; width: 48px; height: 48px; object-fit: contain; }
.poke-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.poke-body strong { font-size: 0.92rem; line-height: 1.3; }
.poke-cp { font-size: 0.8rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.shiny-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 203, 5, 0.18);
  color: var(--yellow);
  font-size: 0.7rem;
  font-weight: 700;
  vertical-align: middle;
}
@media (max-width: 640px) {
  .hundo-filter { margin-left: 0; width: 100%; }
}

/* Hundos reportados en vivo */
.live-block {
  margin-bottom: 28px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.live-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.live-head h3 { margin: 0; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.live-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.live-list > .form-note { grid-column: 1 / -1; margin: 0; }
.live-item {
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.live-item-head { display: flex; justify-content: space-between; gap: 8px; }
.live-item p { margin: 4px 0 2px; font-size: 0.88rem; color: var(--text-dim); overflow-wrap: anywhere; }
.live-time { display: block; font-size: 0.78rem; color: var(--yellow); margin-bottom: 6px; }
.flag-btn {
  padding: 0;
  border: none;
  background: none;
  color: var(--text-dim);
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
}
.flag-btn:disabled { text-decoration: none; cursor: default; opacity: 0.7; }
.live-form-wrap summary { list-style: none; display: inline-flex; cursor: pointer; }
.live-form-wrap summary::-webkit-details-marker { display: none; }
.live-form { margin-top: 16px; max-width: 520px; }
.coords-row { display: flex; gap: 8px; }
.coords-row input { flex: 1; min-width: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Especiales (data/especiales.json) */
.special-list { display: flex; flex-direction: column; gap: 24px; margin-bottom: 16px; }
.special-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-image: linear-gradient(135deg, rgba(227, 53, 13, 0.12), transparent 45%);
}
.special-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.special-emoji {
  width: 64px;
  height: 64px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 2rem;
  border-radius: 16px;
  background: rgba(227, 53, 13, 0.14);
  border: 1px solid rgba(227, 53, 13, 0.35);
}
.special-title { flex: 1; min-width: 180px; }
.special-num { font-size: 0.75rem; color: var(--text-dim); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.special-title h3 { margin: 0 0 6px; font-size: 1.8rem; line-height: 1.1; }
.special-types { display: flex; gap: 6px; }
.type-pill { font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: #fff; background: var(--text-dim); }
.type-fuego { background: #e8622b; }
.type-volador { background: #6f8fe8; }
.type-agua { background: #3b8be8; }
.type-eléctrico { background: #d9a800; }
.type-hielo { background: #4fb8c9; }
.type-planta { background: #3fa45a; }
.type-roca { background: #a38c55; }
.type-psíquico { background: #e0567c; }
.type-dragón { background: #5a5ce0; }
.special-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.special-badges .tag-mini { margin-bottom: 0; }

.special-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.special-fact, .special-when, .special-coords, .special-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}
.special-fact strong { font-size: 0.95rem; }

.special-hour { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--yellow); line-height: 1.2; }
.special-when p { margin: 6px 0 12px; font-size: 0.88rem; color: var(--text-dim); line-height: 1.5; }
.special-zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.special-zone {
  text-align: center;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
}
.special-zone span { display: block; font-size: 0.75rem; color: var(--text-dim); }
.special-zone strong { font-size: 1rem; }
.special-zone small { display: block; font-size: 0.68rem; color: var(--text-dim); }
.special-zone.is-chile { border-color: rgba(255, 203, 5, 0.5); background: rgba(255, 203, 5, 0.08); }

.special-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.special-stat { text-align: center; padding: 10px; border-radius: 12px; border: 1px solid var(--border); }
.special-stat span { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-dim); }
.special-stat strong { font-family: var(--font-display); font-size: 1.3rem; }
.special-stat small { display: block; font-size: 0.7rem; color: var(--text-dim); }

.special-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 12px; }
.special-box h4 { margin: 0 0 10px; font-size: 1rem; }
.counter-list, .tip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.counter-list li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 0.88rem; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.counter-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.counter-list span { color: var(--text-dim); font-size: 0.82rem; }
.tip-list li { font-size: 0.88rem; color: var(--text-dim); line-height: 1.5; padding-left: 18px; position: relative; }
.tip-list li::before { content: "•"; position: absolute; left: 4px; color: var(--yellow); }

@media (max-width: 640px) {
  .special-card { padding: 16px; }
  .special-title h3 { font-size: 1.5rem; }
}

/* Waitlist: selección múltiple de beneficios */
.field-checks { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.field-checks legend { font-size: 0.85rem; font-weight: 600; color: var(--text-dim); margin-bottom: 8px; padding: 0; }
.field-checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.field-checks label:hover { background: var(--bg); }
.field-checks input { width: 18px; height: 18px; padding: 0; flex: none; accent-color: var(--red); }

/* Modo Viajero: un bloque por ciudad, cada uno con sus coordenadas */
.week-schedule:has(.viaje-bloques) { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.viaje-sub { display: block; font-size: 0.78rem; color: var(--text-dim); margin-top: 2px; }
.viaje-bloques { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.viaje-bloque { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.viaje-hora strong { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--purple); }
.viaje-hora small { display: block; font-size: 0.72rem; color: var(--text-dim); }
.viaje-lugar strong { display: block; font-size: 0.92rem; }
.viaje-lugar > span { display: block; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 6px; }
.viaje-lugar .viaje-poke { color: var(--yellow); font-weight: 600; }
@media (max-width: 420px) {
  .week-schedule:has(.viaje-bloques) { grid-template-columns: 1fr; }
  .viaje-bloque { grid-template-columns: 1fr; gap: 4px; }
}
.viaje-pasado { font-size: 0.78rem; color: var(--text-dim); margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--border); }

/* Especiales: origen de la información y nivel automático */
.special-nivel { font-size: 1.15rem; margin: 8px 0 12px; }
.special-nivel-sub { margin: -6px 0 12px; }
.special-fuente { font-size: 0.82rem; margin: 0; padding: 10px 14px; border-radius: 10px; line-height: 1.5; }
.special-fuente.es-oficial { background: rgba(47, 191, 113, 0.1); border: 1px solid rgba(47, 191, 113, 0.35); color: var(--green); }
.special-fuente.es-oficial a { color: var(--green); }
.special-fuente.es-comunidad { background: rgba(255, 203, 5, 0.08); border: 1px solid rgba(255, 203, 5, 0.35); color: var(--yellow); }
.auto-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; margin-bottom: 16px; }
.auto-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.auto-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.auto-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.auto-body h4 { margin: 4px 0 0; font-size: 1rem; line-height: 1.3; }
.auto-lugar, .auto-fecha { margin: 0; font-size: 0.85rem; color: var(--text-dim); }
.auto-body .maps-link { margin-top: 4px; }
.auto-body .special-fuente { margin-top: auto; padding: 6px 10px; font-size: 0.75rem; }

/* Banner de lives (TikTok) */
.live-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 20px;
  background: linear-gradient(90deg, rgba(254, 44, 85, 0.18), rgba(37, 244, 238, 0.12));
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  text-align: center;
}
.live-banner:hover .live-banner-cta { background: #fe2c55; color: #fff; }
.live-banner-cta {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #fe2c55;
  color: #ff6b86;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

/* Creadores de la comunidad */
.creador-card {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 420px);
  gap: 28px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}
.creador-info h3 { font-size: 1.6rem; margin: 4px 0 8px; }
.creador-info p { color: var(--text-dim); line-height: 1.6; margin: 0 0 18px; }
.creador-botones { display: flex; gap: 8px; flex-wrap: wrap; }
.creador-embed { min-height: 120px; display: flex; justify-content: center; }
.creador-embed > a { align-self: center; color: var(--text-dim); font-size: 0.88rem; }
@media (max-width: 800px) {
  .creador-card { grid-template-columns: 1fr; padding: 18px; }
  .creador-embed { overflow: hidden; }
}
.creador-card:not(:has(.creador-embed)) { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; text-align: center; }
.creador-card:not(:has(.creador-embed)) .creador-botones { justify-content: center; }
.live-banner[hidden] { display: none; }
.live-banner .live-dot { display: inline-block; vertical-align: middle; margin-right: 4px; }
.btn.en-vivo { background: #fe2c55; box-shadow: 0 8px 24px -8px rgba(254, 44, 85, 0.7); }

/* Botón "Ver todos los eventos" (lleva a /eventos) */
.eventos-todos { margin: 14px 0 0; }

/* Barra de abajo (teléfono, solo con sesión). La usan la landing (script.js) y el resto del sitio (Cabecera.js) */
.barra-inferior { display: none; }
.barra-inferior[hidden] { display: none !important; }
@media (max-width: 1023px) {
  .barra-inferior {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(16, 20, 29, 0.97); border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .barra-inferior a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; font-size: 0.7rem; font-weight: 600; color: var(--text-dim); text-decoration: none; }
  .barra-inferior a span { font-size: 1.25rem; line-height: 1; }
  .barra-inferior a.activa { color: var(--text); }
  .barra-inferior a.activa span { transform: scale(1.1); }
  body.con-barra { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}


/* Franja de accesos bajo el hero */
.accesos { padding: 8px 0 28px; }
.accesos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.acceso { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); color: var(--text); text-decoration: none; }
.acceso:hover { border-color: var(--text-dim); }
.acceso span { font-size: 1.6rem; line-height: 1; }
.acceso b { font-family: var(--font-display); font-size: 1.05rem; }
.acceso small { color: var(--text-dim); font-size: 0.8rem; }
.acceso-cuenta { border-color: var(--red); }

/* Botones con texto largo bajo el título de una sección: que bajen de línea en el teléfono en vez de salirse */
.eventos-todos .btn { white-space: normal; max-width: 100%; text-align: center; }

/* Resumen de hundos en la portada (enlaza a /hundos) */
a.live-item { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
a.live-item img { width: 48px; height: 48px; object-fit: contain; image-rendering: pixelated; flex: none; }
.live-item-texto { font-size: 0.9rem; }
.live-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.footer-legal { margin-top: 6px; font-size: 0.82rem; }
.footer-legal a { color: var(--text-dim); }
/* Campana de avisos (cabecera, con sesión) */
.campana { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none; border-radius: 10px; text-decoration: none; font-size: 1.1rem; }
.campana:hover { background: var(--card); }
.campana[hidden], .campana-n[hidden] { display: none !important; }
.campana-n { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--red); color: #fff; font: 700 0.66rem/17px var(--font-body); text-align: center; }
/* Teléfonos chicos con sesión: logo + 🔔 + "Mi RadarGo" + ☰ no cabían en 360 px */
@media (max-width: 480px) {
  .topbar-inner { gap: 6px; }
  .brand { gap: 6px; font-size: 0.98rem; }
  .campana { width: 32px; }
  .topbar-inner > .btn-sm { padding-left: 12px; padding-right: 12px; }
  .nav-toggle { width: 38px; }
}
.btn-envolver { white-space: normal; max-width: 100%; text-align: center; }
