/* ============================================================
   Paranapp — "Estilo Plaza"
   CSS centralizado. Importar en todas las páginas.
   Fuentes: Merriweather (títulos) + Outfit (cuerpo)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Merriweather:wght@700;900&display=swap');

/* ── Variables modo CLARO (default) ─────────────────────── */
:root {
  --bg:           #f8f9fc;
  --bg-mid:       #f0f3f9;
  --surface:      #ffffff;
  --surface-2:    #eef1f8;
  --surface-3:    #e4e9f4;
  --text:         #111827;
  --text-2:       #374151;
  --muted:        #6b7280;
  --subtle:       #d1d5db;
  --subtle-2:     #e5e7eb;
  --river:        #4f46e5;
  --river-soft:   rgba(79,70,229,0.08);
  --river-border: rgba(79,70,229,0.18);
  --river-glow:   0 3px 16px rgba(79,70,229,0.18);
  --sunset:       #f59e0b;
  --sunset-soft:  rgba(245,158,11,0.10);
  --gold:         #d97706;
  --gold-soft:    rgba(217,119,6,0.10);
  --success:      #10b981;
  --success-soft: rgba(16,185,129,0.10);
  --danger:       #ef4444;
  --danger-soft:  rgba(239,68,68,0.10);
  --warning:      #f59e0b;
  --whatsapp:     #25D366;
  --wa-dark:      #128C7E;

  --radius-xl:    20px;
  --radius-lg:    14px;
  --radius-md:    10px;
  --radius-sm:    6px;

  --shadow-sm:    0 1px 8px rgba(79,70,229,0.06), 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md:    0 4px 24px rgba(79,70,229,0.08), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg:    0 8px 40px rgba(79,70,229,0.12), 0 4px 12px rgba(0,0,0,0.08);

  --topbar-bg:    rgba(248,249,252,0.94);
  --nav-bg:       rgba(248,249,252,0.97);
  --font-title:   'Merriweather', serif;
  --font-body:    'Outfit', sans-serif;
}

/* ── Variables modo OSCURO ───────────────────────────────── */
[data-theme="dark"] {
  --bg:           #0a0f1e;
  --bg-mid:       #0d1428;
  --surface:      #131c34;
  --surface-2:    #1a2540;
  --surface-3:    #1e2d4a;
  --text:         #eef2ff;
  --text-2:       #c7d2fe;
  --muted:        #7a8bb5;
  --subtle:       #2a3a5e;
  --subtle-2:     #1e2d4a;
  --river:        #4db8e8;
  --river-soft:   rgba(77,184,232,0.10);
  --river-border: rgba(77,184,232,0.22);
  --river-glow:   0 3px 16px rgba(77,184,232,0.18);
  --sunset:       #f4845f;
  --sunset-soft:  rgba(244,132,95,0.12);
  --gold:         #fbbf24;
  --gold-soft:    rgba(251,191,36,0.12);
  --success:      #34d399;
  --success-soft: rgba(52,211,153,0.12);
  --danger:       #f87171;
  --danger-soft:  rgba(248,113,113,0.12);
  --shadow-sm:    0 1px 8px rgba(0,0,0,0.3);
  --shadow-md:    0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.5);
  --topbar-bg:    rgba(10,15,30,0.92);
  --nav-bg:       rgba(10,15,30,0.97);
}

/* ── Reset base ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100%;
  transition: background 0.3s ease, color 0.3s ease;
  scroll-behavior: smooth;
}

body {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 90px;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: var(--font-body); outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--river);
  outline-offset: 2px;
}

/* ── TOPBAR ──────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--subtle);
  padding: 16px 18px 12px;
  transition: padding 0.3s, background 0.3s, border-color 0.3s;
}

.topbar.compact { padding: 10px 18px 8px; }
.topbar.compact .brand h1 { font-size: 17px; }
.topbar.compact .brand p  { display: none; }
.topbar.compact .weather-box { padding: 7px 12px; margin-top: 8px; }
.topbar.compact .weather-temp { font-size: 16px; }

.brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.brand h1 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: var(--river);
  line-height: 1.1;
  transition: font-size 0.3s, color 0.3s;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-top: 2px;
}

.location-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--river-soft);
  color: var(--river);
  border: 1px solid var(--river-border);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.location-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--river);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.65); }
}

/* Toggle modo oscuro */
.theme-toggle {
  width: 40px; height: 22px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
  background: var(--subtle);
  flex-shrink: 0;
  padding: 0;
}

[data-theme="dark"] .theme-toggle { background: var(--river); }

.theme-toggle-knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: white;
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1;
}

[data-theme="dark"] .theme-toggle-knob { transform: translateX(18px); }

/* ── SEARCH ──────────────────────────────────────────────── */
.search-wrap { margin-top: 12px; }

.search-form { display: flex; gap: 8px; align-items: center; }

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--subtle);
  border-radius: var(--radius-lg);
  padding: 0 13px;
  height: 46px;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.search:focus-within {
  border-color: var(--river);
  box-shadow: var(--river-glow);
}

.search-icon { color: var(--muted); flex-shrink: 0; font-size: 15px; }

.search input {
  background: transparent;
  border: 0;
  color: var(--text);
  width: 100%;
  font-size: 14px;
}

.search input::placeholder { color: var(--muted); }

.icon-btn {
  border: 1.5px solid var(--subtle);
  background: var(--surface);
  color: var(--text);
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  font-size: 18px;
}

.icon-btn:hover {
  border-color: var(--river);
  box-shadow: var(--river-glow);
}

/* ── CHIPS ───────────────────────────────────────────────── */
.quick-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-top: 10px;
  padding-bottom: 3px;
  scrollbar-width: none;
}
.quick-chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  border: 1.5px solid var(--subtle);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.18s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  cursor: pointer;
}

.chip:hover, .chip.active {
  background: var(--river);
  color: white;
  border-color: var(--river);
  box-shadow: 0 2px 8px rgba(79,70,229,0.25);
}

[data-theme="dark"] .chip:hover,
[data-theme="dark"] .chip.active {
  box-shadow: 0 2px 8px rgba(77,184,232,0.25);
}

/* ── WEATHER ─────────────────────────────────────────────── */
.weather-box {
  margin-top: 10px;
  background: var(--surface);
  border: 1.5px solid var(--subtle);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s, border-color 0.3s;
}

.weather-emoji { font-size: 24px; flex-shrink: 0; line-height: 1; }
.weather-info { flex: 1; }
.weather-label { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; margin: 0 0 1px; }
.weather-temp { font-family: var(--font-title); font-size: 20px; font-weight: 700; color: var(--text); margin: 0; line-height: 1; }
.weather-desc { font-size: 11px; color: var(--muted); margin: 2px 0 0; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  margin-top: 8px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1.5px solid var(--subtle);
  box-shadow: var(--shadow-md);
}

.hero-slider { width: 100%; height: 190px; position: relative; }

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
}

.hero-slide.active { opacity: 1; }

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0,0,0,0.5) 100%);
}

.slider-dots { position: absolute; bottom: 10px; right: 12px; display: flex; gap: 5px; z-index: 2; }
.slider-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.4); transition: all 0.3s; }
.slider-dot.active { background: white; width: 16px; border-radius: 3px; }

.hero-body {
  background: var(--surface);
  padding: 15px 16px 18px;
  border-top: 1.5px solid var(--subtle);
  transition: background 0.3s, border-color 0.3s;
}

.hero-tag { display: inline-block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: var(--river); margin-bottom: 6px; }
.hero h2 { margin: 0 0 7px; font-family: var(--font-title); font-size: 18px; font-weight: 700; line-height: 1.3; }
.hero p  { margin: 0 0 13px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  border: 0;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--river);
  color: white;
  box-shadow: 0 2px 10px rgba(79,70,229,0.3);
}
.btn-primary:hover { box-shadow: 0 4px 18px rgba(79,70,229,0.4); }
[data-theme="dark"] .btn-primary { box-shadow: 0 2px 10px rgba(77,184,232,0.3); }

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1.5px solid var(--subtle);
}
.btn-secondary:hover { border-color: var(--river); }

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp), var(--wa-dark));
  color: white;
}

.btn-sunset {
  background: var(--sunset);
  color: white;
}

.btn-sm { padding: 7px 12px; font-size: 12px; min-height: 34px; }
.btn-block { width: 100%; }

/* ── SECTIONS ────────────────────────────────────────────── */
.section { margin-top: 24px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.section-head h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.section-head a {
  color: var(--river);
  font-size: 12px;
  font-weight: 600;
}

/* ── CATEGORY GRID ───────────────────────────────────────── */
.grid-categories { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.category-card {
  background: var(--surface);
  border: 1.5px solid var(--subtle);
  border-radius: var(--radius-xl);
  padding: 14px;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s, background 0.3s;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.category-card:hover { transform: translateY(-2px); border-color: var(--river-border); box-shadow: var(--shadow-md); }
.category-card:active { transform: scale(0.98); }

.category-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 21px;
  background: var(--surface-2);
  margin-bottom: 10px;
}

.category-card h4 { margin: 0 0 3px; font-size: 14px; font-weight: 700; line-height: 1.2; }
.category-card p  { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.4; }

/* ── CARDS ROW (horizontal scroll) ──────────────────────── */
.cards-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.cards-row::-webkit-scrollbar { display: none; }

.place-card {
  flex: 0 0 82%;
  background: var(--surface);
  border: 1.5px solid var(--subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s, border-color 0.3s;
}

.place-image {
  height: 148px;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.place-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.72) 100%);
}

.badge {
  position: relative;
  z-index: 1;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

.badge-river { background: var(--river); border-color: var(--river); }

.place-content { padding: 13px; }
.place-content h4 { margin: 0 0 5px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; color: var(--muted); font-size: 11.5px; }
.place-rating { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.place-rating .stars { color: var(--gold); font-size: 12px; }
.place-rating .rating-num { font-size: 13px; font-weight: 700; }
.place-rating .rating-count { font-size: 11px; color: var(--muted); }
.place-hours { font-size: 11px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }
.place-content p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* ── MINI SLIDER ─────────────────────────────────────────── */
.mini-slider-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.mini-slider-track::-webkit-scrollbar { display: none; }

.mini-card {
  flex: 0 0 78%;
  min-height: 152px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--subtle);
  color: white;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s;
  display: block;
}

.mini-card:active { transform: scale(0.98); }

.mini-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.mini-card:hover .mini-card-bg { transform: scale(1.04); }

.mini-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
}

.mini-card-content {
  position: relative;
  z-index: 2;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.mini-badge {
  align-self: flex-start;
  margin-bottom: 7px;
  background: var(--river-soft);
  color: var(--river);
  border: 1px solid var(--river-border);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
  color: white;
  background: rgba(79,70,229,0.5);
}

.mini-card-content h4 { margin: 0 0 3px; font-family: var(--font-title); font-size: 15px; font-weight: 700; line-height: 1.2; }
.mini-card-content p  { margin: 0; font-size: 11.5px; color: rgba(255,255,255,0.7); line-height: 1.4; }

.mini-slider-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.mini-slider-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--subtle); transition: all 0.2s; }
.mini-slider-dot.active { background: var(--river); width: 14px; border-radius: 3px; }

/* ── TODAY / EVENT CARDS ─────────────────────────────────── */
.today-card {
  background: var(--surface);
  border: 1.5px solid var(--subtle);
  border-radius: var(--radius-xl);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s, border-color 0.3s;
}

.today-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  border: 1.5px solid rgba(217,119,6,0.2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 600;
}

.today-card h4 { margin: 0 0 5px; font-family: var(--font-title); font-size: 17px; font-weight: 700; line-height: 1.25; }
.today-card p  { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.today-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ── FORM ELEMENTS ───────────────────────────────────────── */
.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--subtle);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 14px;
  padding: 11px 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.3s;
  box-shadow: var(--shadow-sm);
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--river);
  box-shadow: var(--river-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }

.form-group textarea { min-height: 90px; resize: vertical; line-height: 1.5; }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

.form-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.form-error { font-size: 11px; color: var(--danger); margin-top: 4px; }
.form-success { font-size: 11px; color: var(--success); margin-top: 4px; }

/* ── ALERT / TOAST ───────────────────────────────────────── */
.alert {
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
}

.alert-success { background: var(--success-soft); color: var(--success); border: 1px solid rgba(16,185,129,0.2); }
.alert-danger   { background: var(--danger-soft);  color: var(--danger);  border: 1px solid rgba(239,68,68,0.2); }
.alert-warning  { background: var(--sunset-soft);  color: var(--sunset);  border: 1px solid rgba(245,158,11,0.2); }
.alert-info     { background: var(--river-soft);   color: var(--river);   border: 1px solid var(--river-border); }

/* ── FILTERS ─────────────────────────────────────────────── */
.filters-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
  margin-bottom: 12px;
}
.filters-row::-webkit-scrollbar { display: none; }

.filter-btn {
  flex-shrink: 0;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--subtle);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover  { border-color: var(--river); color: var(--river); }
.filter-btn.active { background: var(--river); color: white; border-color: var(--river); box-shadow: 0 2px 10px rgba(79,70,229,0.25); }

/* ── PROMO BANNER ────────────────────────────────────────── */
.promo-banner {
  background: var(--river-soft);
  border: 1.5px solid var(--river-border);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s, border-color 0.3s;
}

.promo-banner small  { display: block; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--river); margin-bottom: 7px; }
.promo-banner h3     { margin: 0 0 7px; font-family: var(--font-title); font-size: 19px; font-weight: 700; line-height: 1.2; }
.promo-banner p      { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.55; }

/* ── INSTALL WIDGET ──────────────────────────────────────── */
.install-widget {
  position: fixed;
  right: 14px;
  bottom: 84px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border: 1.5px solid var(--river-border);
  border-radius: 18px;
  padding: 7px 9px;
  box-shadow: var(--shadow-lg);
  touch-action: none;
  user-select: none;
  cursor: grab;
  max-width: calc(100vw - 24px);
  transition: background 0.3s, border-color 0.3s;
}

.install-widget.hidden   { display: none; }
.install-widget.dragging { cursor: grabbing; transform: scale(1.02); }

.install-btn {
  border: none;
  background: var(--river);
  color: white;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--font-body);
  border-radius: 13px;
  padding: 8px 13px;
  cursor: pointer;
  white-space: nowrap;
}

.install-close {
  width: 28px; height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.install-close:hover { background: var(--subtle); color: var(--text); }

/* ── BOTTOM NAV ──────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: min(430px, 100%);
  background: var(--nav-bg);
  border-top: 1px solid var(--subtle);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  backdrop-filter: blur(20px);
  z-index: 60;
  transition: background 0.3s, border-color 0.3s;
}

.nav-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 600;
  padding: 5px 4px;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  transition: color 0.2s;
  cursor: pointer;
}

.nav-btn.active { color: var(--river); background: var(--river-soft); }
.nav-icon { font-size: 18px; line-height: 1; }

/* ── TOPBAR simple (páginas internas) ────────────────────── */
.topbar-simple {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--subtle);
  height: 54px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  transition: background 0.3s, border-color 0.3s;
}

.topbar-back {
  color: var(--river);
  font-size: 22px;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}

.topbar-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── MISC UTILITIES ──────────────────────────────────────── */
main { padding: 14px 16px; }

.divider { margin: 20px 0; border: 0; height: 1.5px; background: var(--subtle); border-radius: 1px; }

.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
}
.empty-state-icon { font-size: 40px; margin-bottom: 12px; line-height: 1; }
.empty-state h4 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--text); }
.empty-state p  { margin: 0; font-size: 13px; line-height: 1.5; }

.loading-spin {
  width: 20px; height: 20px;
  border: 2px solid var(--subtle);
  border-top-color: var(--river);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Entrada animada */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-1 { animation: fade-up 0.4s ease both 0.05s; }
.anim-2 { animation: fade-up 0.4s ease both 0.12s; }
.anim-3 { animation: fade-up 0.4s ease both 0.18s; }
.anim-4 { animation: fade-up 0.4s ease both 0.24s; }
.anim-5 { animation: fade-up 0.4s ease both 0.30s; }

/* ── IMÁGENES DE LUGARES ─────────────────────────────────── */
.place-urquiza        { background: center/cover no-repeat url('/imagenes/parque_urquiza.jpg'); }
.place-rosedal        { background: center/cover no-repeat url('/imagenes/rosedal.jpg'); }
.place-botanico       { background: center/cover no-repeat url('/imagenes/botanico.jpg'); }
.place-costanera      { background: center/cover no-repeat url('/imagenes/costanera.jpg'); }
.place-1mayo          { background: center/cover no-repeat url('/imagenes/plaza_1mayo.jpg'); }
.place-alvear         { background: center/cover no-repeat url('/imagenes/plaza_alvear.jpg'); }
.place-saenzpena      { background: center/cover no-repeat url('/imagenes/plaza_saenzpena.jpg'); }
.place-mujeres        { background: center/cover no-repeat url('/imagenes/plaza_mujeres.jpg'); }
.place-colectividades { background: center/cover no-repeat url('/imagenes/plaza_colectividades.jpg'); }
.place-ramirez        { background: center/cover no-repeat url('/imagenes/plaza_ramirez.jpg'); }
.place-museohist      { background: center/cover no-repeat url('/imagenes/museo_historico.jpg'); }
.place-bellasartes    { background: center/cover no-repeat url('/imagenes/bellas_artes.jpg'); }
.place-ciencias       { background: center/cover no-repeat url('/imagenes/museo_ciencias.jpg'); }
.place-casacultura    { background: center/cover no-repeat url('/imagenes/casa_cultura.jpg'); }
.place-puertociencia  { background: center/cover no-repeat url('/imagenes/puerto_ciencia.jpg'); }
.place-tunel          { background: center/cover no-repeat url('/imagenes/tunel.jpg'); }
.place-islote         { background: center/cover no-repeat url('/imagenes/islote_curupi.jpg'); }
.place-cinepasoparana { background: center/cover no-repeat url('/imagenes/las_tipas_cinemas.jpg'); }
.place-cinesunstar    { background: center/cover no-repeat url('/imagenes/cine_sunstar.jpg'); }
.place-pasoparana     { background: center/cover no-repeat url('/imagenes/shopping_paso.jpg'); }
.place-shoppinglapaz  { background: center/cover no-repeat url('/imagenes/shopping_lapaz.jpg'); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 380px) {
  .brand h1 { font-size: 22px; }
  .grid-categories { gap: 8px; }
  main { padding: 12px 14px; }
}
