:root {
  --bg: #07060d;
  --bg2: #0f0c1c;
  --card: #141026;
  --card2: #1c1733;
  --line: #2a2347;
  --txt: #f6f3ff;
  --muted: #a39cc2;
  --pink: #ff2e93;
  --purple: #8b5cf6;
  --cyan: #22d3ee;
  --lime: #c6ff3d;
  --orange: #ff8a3d;
  --grad: linear-gradient(100deg, var(--pink), var(--purple) 55%, var(--cyan));
  --radius: 20px;
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--txt);
  font-family: var(--font); font-size: 16px; line-height: 1.45; overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- Fondo animado ---------- */
.fondo { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fondo i {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(90px); opacity: .28; animation: flotar 22s ease-in-out infinite alternate;
}
.fondo i:nth-child(1) { background: var(--pink); top: -25vmax; left: -15vmax; }
.fondo i:nth-child(2) { background: var(--purple); bottom: -30vmax; right: -20vmax; animation-delay: -8s; }
.fondo i:nth-child(3) { background: var(--cyan); top: 30%; left: 40%; width: 35vmax; height: 35vmax; opacity: .12; animation-delay: -14s; }
.fondo::after {
  content: ''; position: absolute; inset: 0; opacity: .07;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 3px 3px;
}
@keyframes flotar { to { transform: translate(8vmax, 6vmax) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .fondo i, .logo .o { animation: none !important; } }

/* ---------- Encabezado ---------- */
.top { max-width: 1180px; margin: 0 auto; padding: 22px 16px 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 5vw, 34px); letter-spacing: -.02em; line-height: 1; text-decoration: none; }
.logo .n { color: #fff; text-shadow: 0 0 18px rgba(255, 46, 147, .55); }
.logo .o { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: parpadeo 6s infinite; }
@keyframes parpadeo { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .35; } 95% { opacity: 1; } 96.5% { opacity: .5; } }
.lema { color: var(--muted); margin: 4px 0 0; font-size: 15px; }
.lema b { color: var(--lime); font-weight: 600; }
.link-panel { font-size: 13px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.link-panel:hover { color: var(--txt); border-color: var(--purple); }

/* ---------- Pestañas ---------- */
.tabs { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.tabs button {
  border: 0; background: none; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 7px;
}
.tabs button svg { width: 18px; height: 18px; }
.tabs button.on { background: var(--grad); color: #fff; box-shadow: 0 4px 20px rgba(255, 46, 147, .35); }

/* ---------- Filtros ---------- */
.barra { position: sticky; top: 0; z-index: 500; background: linear-gradient(var(--bg) 70%, transparent); padding: 10px 0 14px; }
.barra-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 10px; }
.fila { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; flex: 1; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--card); padding: 8px 15px; border-radius: 999px;
  cursor: pointer; font-weight: 500; font-size: 15px; transition: .15s;
}
.chip:hover { border-color: var(--purple); }
.chip.on { background: #fff; color: #120d22; border-color: #fff; font-weight: 700; }
.sel, .buscar {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; min-width: 0;
}
.sel { flex: 1 1 150px; cursor: pointer; }
.buscar { flex: 2 1 200px; display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.buscar svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.buscar input { border: 0; background: none; outline: none; padding: 10px 0; width: 100%; }
.sel:focus, .buscar:focus-within { outline: 2px solid var(--purple); outline-offset: 1px; }
.resumen { color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.limpiar { background: none; border: 0; color: var(--pink); cursor: pointer; padding: 0; font-weight: 600; }

main { max-width: 1180px; margin: 0 auto; padding: 0 16px 60px; }

/* ---------- Grupos por día ---------- */
.dia { margin: 18px 0 28px; }
.dia h2 {
  font-family: var(--font-display); font-size: 18px; margin: 0 0 14px; display: flex; align-items: baseline; gap: 10px;

}
.dia h2 small { font-family: var(--font); font-size: 14px; color: var(--muted); font-weight: 400; text-transform: none; }
.dia h2 .hoy { background: var(--lime); color: #111; font-family: var(--font); font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; letter-spacing: .05em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }

/* ---------- Tarjeta de evento ---------- */
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 46, 147, .6); box-shadow: 0 14px 40px -10px rgba(255, 46, 147, .45); }
.card:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.flyer { position: relative; aspect-ratio: 4 / 5; background: var(--card2); overflow: hidden; }
.flyer img { width: 100%; height: 100%; object-fit: cover; }
.flyer::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(7, 6, 13, .92)); }
.arte {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 22px; text-align: center;
  background:
    radial-gradient(circle at 20% 15%, hsla(var(--h), 95%, 60%, .9), transparent 45%),
    radial-gradient(circle at 85% 80%, hsla(calc(var(--h) + 70), 95%, 55%, .85), transparent 50%),
    linear-gradient(160deg, #1a1033, #0b0817);
}
.arte span { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.05; text-transform: uppercase; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); word-break: break-word; }
.arte::before {
  content: ''; position: absolute; inset: 14px; border: 2px solid rgba(255, 255, 255, .25); border-radius: 14px;
}
.fecha-chip {
  position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(7, 6, 13, .78); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .15); border-radius: 14px; padding: 6px 10px; text-align: center; line-height: 1;
}
.fecha-chip b { display: block; font-size: 11px; color: var(--pink); letter-spacing: .08em; }
.fecha-chip span { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 800; margin: 2px 0; }
.fecha-chip i { display: block; font-style: normal; font-size: 11px; color: var(--muted); text-transform: uppercase; }
.edad {
  position: absolute; top: 12px; right: 12px; z-index: 2; font-weight: 800; font-size: 14px; padding: 6px 11px;
  border-radius: 999px; color: #fff; letter-spacing: .02em;
}
.e0 { background: #12b981; box-shadow: 0 0 16px rgba(18, 185, 129, .6); }
.e18 { background: var(--pink); box-shadow: 0 0 16px rgba(255, 46, 147, .6); }
.e19, .e20, .e21, .e22 { background: var(--purple); box-shadow: 0 0 16px rgba(139, 92, 246, .7); }
.e23, .e24, .e25, .e26, .e27, .e28, .e29, .e30 { background: #0891b2; box-shadow: 0 0 16px rgba(34, 211, 238, .6); }
.enull { background: #4b4466; }
.cuerpo { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cuerpo h3 { margin: 0; font-size: 19px; line-height: 1.2; font-weight: 700; }
.lugar { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.lugar svg { width: 15px; height: 15px; flex: none; color: var(--cyan); }
.lugar b { color: var(--txt); font-weight: 600; }
.datos { display: flex; gap: 6px; flex-wrap: wrap; }
.dato { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; border: 1px solid var(--line); padding: 4px 9px; border-radius: 999px; color: #dcd6f5; }
.dato svg { width: 13px; height: 13px; }
.btn-ig {
  margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  font-weight: 700; padding: 11px 14px; border-radius: 14px; color: #fff; border: 0; cursor: pointer;
  background: linear-gradient(45deg, #f9ce34, #ee2a7b 45%, #6228d7);
  transition: filter .15s, transform .15s;
}
.btn-ig:hover { filter: brightness(1.12); transform: scale(1.02); }
.btn-ig svg { width: 19px; height: 19px; }
.btn-ig.off { background: var(--card2); color: var(--muted); cursor: default; transform: none; filter: none; }

/* ---------- Estado vacío ---------- */
.vacio { text-align: center; padding: 60px 20px; color: var(--muted); }
.vacio .gran { font-size: 54px; margin-bottom: 10px; }
.vacio h3 { color: var(--txt); font-family: var(--font-display); margin: 0 0 6px; }
.cargando { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 18px; }
.cargando div { aspect-ratio: 4 / 6.3; border-radius: var(--radius); background: linear-gradient(100deg, var(--card) 30%, var(--card2) 50%, var(--card) 70%); background-size: 300% 100%; animation: brillo 1.4s infinite; }
@keyframes brillo { to { background-position: -150% 0; } }

/* ---------- Mapa ---------- */
.mapa-wrap { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: calc(100vh - 230px); min-height: 420px; margin-top: 8px; }
#mapa { width: 100%; height: 100%; background: #0b0a12; }
.mapa-btn {
  position: absolute; z-index: 400; right: 12px; bottom: 22px; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 14px; display: flex; align-items: center; gap: 7px; cursor: pointer; font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5);
}
.mapa-btn svg { width: 18px; height: 18px; color: var(--cyan); }
.mapa-aviso { margin: 10px 2px 0; font-size: 14px; color: var(--muted); }
.pin { position: relative; width: 44px; height: 44px; }
.pin .p {
  position: absolute; inset: 0; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--grad); box-shadow: 0 0 18px rgba(255, 46, 147, .8), inset 0 0 0 3px rgba(255, 255, 255, .85);
}
.pin span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; }
.pin::after {
  content: ''; position: absolute; left: 50%; bottom: -10px; width: 26px; height: 8px; margin-left: -13px; border-radius: 50%;
  background: rgba(255, 46, 147, .5); animation: pulso 1.8s infinite;
}
@keyframes pulso { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }
.yo-pin { width: 18px; height: 18px; border-radius: 50%; background: var(--cyan); border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(34, 211, 238, .25); }
.leaflet-popup-content-wrapper { background: var(--card) !important; color: var(--txt) !important; border: 1px solid var(--line); border-radius: 18px !important; }
.leaflet-popup-tip { background: var(--card) !important; }
.leaflet-popup-content { margin: 14px 16px !important; font-family: var(--font); min-width: 230px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.leaflet-control-attribution { background: rgba(7, 6, 13, .7) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.leaflet-bar a { background: var(--card) !important; color: var(--txt) !important; border-color: var(--line) !important; }
.pop h4 { margin: 0; font-family: var(--font-display); font-size: 16px; }
.pop .sub { color: var(--muted); font-size: 13px; margin: 2px 0 10px; }
.pop ul { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; }
.pop li button {
  width: 100%; text-align: left; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px;
  cursor: pointer; display: flex; gap: 10px; align-items: center;
}
.pop li button:hover { border-color: var(--pink); }
.pop li .f { font-size: 12px; color: var(--pink); font-weight: 700; text-transform: uppercase; min-width: 58px; line-height: 1.15; }
.pop li .t { font-weight: 600; font-size: 14px; line-height: 1.2; }
.pop li .t small { display: block; color: var(--muted); font-weight: 400; }
.pop .btn-ig { padding: 9px 12px; font-size: 14px; }
.pop .ruta { margin-bottom: 8px; }
.pop .ruta summary {
  list-style: none; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 12px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card2); cursor: pointer; font-weight: 600; font-size: 14px;
}
.pop .ruta summary::-webkit-details-marker { display: none; }
.pop .ruta summary:hover, .pop .ruta[open] summary { border-color: var(--purple); }
.pop .ruta summary svg { width: 16px; height: 16px; }
.pop .ruta-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.pop .ruta-apps a {
  text-align: center; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--card2);
  color: var(--txt) !important; text-decoration: none; font-weight: 600; font-size: 13px;
}
.pop .ruta-apps a:hover { border-color: var(--pink); }

/* ---------- Detalle (hoja) ---------- */
.hoja { position: fixed; inset: 0; z-index: 2000; display: none; }
.hoja.abierta { display: block; }
.hoja .velo { position: absolute; inset: 0; background: rgba(4, 3, 9, .75); backdrop-filter: blur(6px); animation: aparecer .2s; }
.hoja .panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(880px, 94vw); max-height: 92vh; overflow: auto;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 26px; display: grid; grid-template-columns: 1fr 1fr;
  animation: subir .25s ease-out; box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
@keyframes aparecer { from { opacity: 0; } }
@keyframes subir { from { opacity: 0; transform: translate(-50%, -46%); } }
.hoja .flyer { aspect-ratio: auto; min-height: 100%; }
.hoja .flyer::after { display: none; }
.hoja .info { padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.hoja h2 { margin: 0; font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.hoja .cuando { color: var(--pink); font-weight: 700; font-size: 17px; }
.hoja .cuando::first-letter, .dia h2 .t::first-letter { text-transform: uppercase; }
.hoja .desc { color: #d8d2ee; margin: 0; white-space: pre-line; }
.hoja .lista-datos { display: grid; gap: 10px; margin: 0; }
.hoja .lista-datos div { display: flex; gap: 10px; align-items: flex-start; }
.hoja .lista-datos svg { width: 20px; height: 20px; color: var(--cyan); flex: none; margin-top: 1px; }
.hoja .lista-datos dt { color: var(--muted); font-size: 13px; }
.hoja .lista-datos dd { margin: 0; font-weight: 600; }
.acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.acciones .btn-ig { grid-column: 1 / -1; padding: 14px; font-size: 16px; }
.btn-entradas {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 14px;
  background: #fff; color: #120d22; font-weight: 800; font-size: 16px; text-decoration: none; transition: transform .15s;
}
.btn-entradas:hover { transform: scale(1.02); }
.btn-entradas svg { width: 19px; height: 19px; }
.btn2 {
  display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--card); cursor: pointer; text-decoration: none; font-weight: 600; font-size: 14px;
}
.btn2:hover { border-color: var(--purple); }
.btn2 svg { width: 17px; height: 17px; }
.cerrar {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(7, 6, 13, .8); cursor: pointer; display: grid; place-items: center;
}
.cerrar svg { width: 20px; height: 20px; }
.disco-mini { display: flex; align-items: center; gap: 10px; }
.disco-mini .av { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: none; }
.disco-mini .av img { width: 100%; height: 100%; object-fit: cover; }
.disco-mini b { display: block; }
.disco-mini small { color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: #fff; color: #120d22;
  font-weight: 700; padding: 12px 20px; border-radius: 999px; z-index: 3000; transition: transform .3s; pointer-events: none;
}
.toast.ver { transform: translateX(-50%) translateY(0); }

footer { text-align: center; color: var(--muted); font-size: 13px; padding: 10px 16px 40px; }
footer a { color: var(--txt); }

@media (max-width: 720px) {
  .top { padding-top: 16px; }
  .lema { font-size: 14px; }
  .hoja .panel {
    top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-height: 92vh; border-radius: 26px 26px 0 0;
    grid-template-columns: 1fr; animation: subirM .28s ease-out;
  }
  @keyframes subirM { from { transform: translateY(40%); opacity: 0; } }
  .hoja .flyer { aspect-ratio: auto; min-height: 0; width: 100%; height: 48vh; }
  .hoja h2 { font-size: 22px; }
  .grid, .cargando { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .cuerpo { padding: 11px 12px 12px; }
  .cuerpo h3 { font-size: 16px; }
  .arte span { font-size: 19px; }
  .btn-ig { font-size: 13px; padding: 10px; }
  .btn-ig .largo { display: none; }
  .fecha-chip span { font-size: 18px; }
  .mapa-wrap { height: calc(100vh - 250px); }
  .tabs button { padding: 8px 14px; }
  .barra { position: static; }
  .chips { flex-basis: 100%; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; justify-content: center; }
}

/* Mapa de OpenStreetMap oscurecido para que combine con la app */
.leaflet-tile-pane { filter: invert(1) hue-rotate(200deg) brightness(.85) contrast(.95) saturate(.55); }

/* Precios largos: una sola línea en la tarjeta (el detalle muestra el texto completo) */
.datos .dato { max-width: 100%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: middle; }
.datos .dato svg { display: inline-block; vertical-align: -2px; margin-right: 5px; }

/* Botón de ayuda por WhatsApp */
.ayuda-wa {
  position: fixed; right: 16px; bottom: 18px; z-index: 1500; display: flex; align-items: center; gap: 8px;
  background: #25d366; color: #062b14; font-weight: 800; text-decoration: none; padding: 12px 16px; border-radius: 999px;
  box-shadow: 0 8px 26px rgba(37, 211, 102, .45); transition: transform .15s;
}
.ayuda-wa:hover { transform: scale(1.06); }
.ayuda-wa svg { width: 24px; height: 24px; }
body:has(.hoja.abierta) .ayuda-wa, body:has(dialog[open]) .ayuda-wa { display: none; }
.mapa-btn { bottom: 74px; }
@media (max-width: 720px) { .ayuda-wa span { display: none; } .ayuda-wa { padding: 13px; } }

/* Acciones de arriba: instalar app y cuenta */
.acciones-top { display: flex; gap: 8px; align-items: center; flex: none; }

/* ---------- Bienvenida: crear cuenta o entrar como invitado ---------- */
.bienvenida {
  position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: radial-gradient(circle at 20% 10%, rgba(255, 46, 147, .35), transparent 50%),
              radial-gradient(circle at 85% 90%, rgba(139, 92, 246, .4), transparent 55%), rgba(7, 6, 13, .92);
  backdrop-filter: blur(10px); animation: aparecer .25s;
}
.bienvenida[hidden] { display: none; }
.bv-caja {
  width: min(420px, 100%); background: rgba(20, 16, 38, .92); border: 1px solid var(--line); border-radius: 28px;
  padding: 28px 24px 20px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.bv-logo { font-size: 42px; display: block; }
.bv-caja h2 { font-family: var(--font-display); font-size: 19px; margin: 14px 0 4px; line-height: 1.25; }
.bv-lema { color: var(--muted); margin: 0 0 18px; }
.bv-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.bv-tabs button { border: 0; background: none; padding: 9px; border-radius: 999px; font-weight: 700; color: var(--muted); cursor: pointer; }
.bv-tabs button.on { background: #fff; color: #120d22; }
.bv-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.bv-form label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--muted); font-weight: 500; }
.bv-form label[hidden] { display: none; }
.bv-form input { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--txt); }
.bv-form input:focus { outline: 2px solid var(--purple); border-color: transparent; }
.bv-error { color: #ff6b8a; font-weight: 600; margin: 0; min-height: 1.2em; font-size: 14px; }
.bv-enviar {
  border: 0; border-radius: 14px; padding: 14px; font-weight: 800; font-size: 16px; color: #fff; cursor: pointer;
  background: var(--grad); box-shadow: 0 8px 26px rgba(255, 46, 147, .4);
}
.bv-enviar:disabled { opacity: .6; cursor: wait; }
.bv-olvide { text-align: center; font-size: 13px; color: var(--cyan); }
.bv-invitado {
  margin-top: 16px; width: 100%; background: none; border: 1px solid var(--line); color: var(--txt); padding: 12px;
  border-radius: 14px; font-weight: 600; cursor: pointer;
}
.bv-invitado:hover { border-color: var(--purple); }

/* Menú de mi cuenta */
.perfil { position: relative; }
button.link-panel { background: none; cursor: pointer; font: inherit; font-size: 13px; }
.perfil-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 600; width: 230px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 10px; box-shadow: 0 16px 40px rgba(0, 0, 0, .55); display: flex; flex-direction: column; gap: 4px;
}
.perfil-menu[hidden] { display: none; }
.perfil-email { margin: 2px 6px 8px; font-size: 13px; color: var(--muted); word-break: break-all; }
.perfil-menu button { background: none; border: 0; text-align: left; padding: 9px 8px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.perfil-menu button:hover { background: var(--card2); }
.peligro { color: #ff6b8a; }
@media (max-width: 720px) {
  #btnPerfil span { display: none; }
  .bv-logo { font-size: 36px; }
}
/* Bienvenida más compacta para que "invitado" se vea sin bajar */
.bienvenida { display: flex; }
.bv-caja { margin: auto; padding: 20px 20px 16px; }
.bv-logo { font-size: 34px; }
.bv-caja h2 { font-size: 17px; margin: 8px 0 2px; }
.bv-lema { margin-bottom: 12px; font-size: 14px; }
.bv-tabs { margin-bottom: 12px; }
.bv-form { gap: 9px; }
.bv-form input { padding: 10px 12px; }
.bv-error { min-height: 0; }
.bv-error:empty { display: none; }
.bv-enviar { padding: 12px; }
.bv-invitado { margin-top: 10px; padding: 11px; }

/* ---------- Favoritos ---------- */
.fav {
  position: absolute; right: 12px; bottom: 12px; z-index: 3; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(7, 6, 13, .72); backdrop-filter: blur(8px);
  font-size: 19px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: transform .15s;
}
.fav:hover { transform: scale(1.1); }
.fav.on { animation: latido .35s ease-out; border-color: rgba(255, 46, 147, .7); box-shadow: 0 0 18px rgba(255, 46, 147, .5); }
@keyframes latido { 50% { transform: scale(1.3); } }
.fav-grande { position: static; margin-left: auto; flex: none; }
/* En computador la cruz de cerrar cae sobre la columna de datos: el corazón se corre para no quedar debajo */
@media (min-width: 721px) { .hoja .disco-mini { padding-right: 46px; } }
.chip[hidden] { display: none; }

/* Ver solo una disco */
.ver-disco {
  align-self: flex-start; background: none; border: 0; padding: 0; color: var(--cyan); font-weight: 700; cursor: pointer; font-size: 14px;
}
.ver-disco:hover { text-decoration: underline; }
.pill-disco {
  margin-left: 6px; background: var(--card2); border: 1px solid var(--purple); color: var(--txt); border-radius: 999px;
  padding: 3px 10px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.acciones .btn2 { min-width: 0; }
@media (max-width: 720px) { #btnInstalar span { display: none; } }

/* Ayuda después de tocar "Agendar" (Android y computador) */
.ayuda-agenda {
  display: flex; flex-direction: column; gap: 6px; background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .35);
  border-radius: 14px; padding: 12px 14px; font-size: 14px; animation: aparecer .25s;
}
.ayuda-agenda a { color: var(--cyan); font-weight: 700; }
.ayuda-agenda small { color: var(--muted); }

/* ---------- Ajustes para celular ---------- */
/* El link de Instagram del mapa: Leaflet pinta los links de azul y no se leía sobre el degradado. */
.leaflet-container .pop .btn-ig, .leaflet-container .pop .btn-ig:visited { color: #fff; }
/* El botón de ayuda se esconde mientras bajas por la lista, para no tapar los botones de las tarjetas. */
.ayuda-wa { transition: transform .25s, opacity .25s; }
.ayuda-wa.escondido { transform: translateY(120px); opacity: 0; pointer-events: none; }
@media (max-width: 720px) {
  /* Mapa más alto y recuadro más compacto, para que el recuadro de la disco quepa completo. */
  .mapa-wrap { height: calc(100svh - 150px); min-height: 480px; }
  .pop ul { max-height: 150px; }
  .leaflet-popup-content { min-width: 0; width: 240px !important; margin: 12px 14px !important; }
}

/* Filtro de edad: se escribe el número (vacío = cualquiera) */
.edad-campo { display: flex; align-items: center; gap: 6px; cursor: text; white-space: nowrap; }
.edad-campo input { border: 0; background: none; outline: none; width: 100%; min-width: 0; font: inherit; color: inherit; padding: 0; }
.edad-campo input::placeholder { color: var(--muted); }
.edad-campo:focus-within { outline: 2px solid var(--purple); outline-offset: 1px; }
@media (max-width: 480px) {
  /* En celular, comuna y edad van uno debajo del otro para que se lea "cualquiera" completo. */
  .sel { flex-basis: 100%; }
}
