/* ======================================
   RESET & BASE
====================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-dark: #8B6914;
  --purple: #3B1F6E;
  --purple-dark: #1A0A3A;
  --purple-mid: #2D1654;
  --cream: #F5EDD6;
  --white: #FFFFFF;
  --text-muted: rgba(245, 237, 214, 0.65);
  --card-bg: rgba(27, 10, 58, 0.82);
  --blur: blur(14px);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', sans-serif;
  background: var(--purple-dark);
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animated starfield background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(59, 31, 110, 0.9) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(139, 105, 20, 0.15) 0%, transparent 50%),
    linear-gradient(160deg, #0e0520 0%, #1a0a3a 40%, #0a0318 100%);
  z-index: -2;
}

/* Floating particles */
.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: float-up linear infinite;
}

@keyframes float-up {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-10vh) translateX(var(--drift));
    opacity: 0;
  }
}

/* ======================================
   VIEWS SYSTEM
====================================== */
.view {
  display: none;
  min-height: 100vh;
}

.view.active {
  display: block;
  animation: fadeIn 0.45s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================
   HERO HEADER
====================================== */
.hero {
  position: relative;
  text-align: center;
  padding: 0 1.5rem 1.5rem;
  padding-top: max(2rem, calc(env(safe-area-inset-top) + 2rem));
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.18) 0%, transparent 70%);
}

.hero-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ornament-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ornament-cross {
  color: var(--gold);
  font-size: 1.4rem;
}

.hero-city {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.5em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: var(--white);
  text-shadow: 0 0 60px rgba(201, 168, 76, 0.35), 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.3rem;
}

.hero-year {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 5vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(201, 168, 76, 0.5);
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* Countdown */
.countdown {
  display: inline-flex;
  gap: 1rem;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  backdrop-filter: var(--blur);
}

.countdown-unit {
  text-align: center;
  min-width: 44px;
}

.countdown-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: block;
}

.countdown-label {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.countdown-sep {
  font-size: 1.8rem;
  color: var(--gold-dark);
  align-self: flex-start;
  padding-top: 2px;
  opacity: 0.6;
}

/* ======================================
   SECTION TITLE
====================================== */
.section-header {
  text-align: center;
  padding: 0.5rem 1.5rem 1.5rem;
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}

/* ======================================
   DAY BLOCKS
====================================== */
.days-container {
  padding: 0 1rem 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.day-block {
  margin-bottom: 2.5rem;
}

.day-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}

.day-date-badge {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0e0520;
  border-radius: 12px;
  padding: 0.35rem 0.75rem;
  text-align: center;
  min-width: 52px;
  flex-shrink: 0;
}

.day-date-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}

.day-date-month {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.day-name-wrap {
  flex: 1;
}

.day-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
}

.day-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: 0.15rem;
}

.day-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-dark), transparent);
  margin-bottom: 1rem;
  opacity: 0.4;
}

/* ======================================
   HERMANDAD CARD
====================================== */
.hermandad-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1rem;
  cursor: pointer;
  background: var(--card-bg);
  border: 1px solid rgba(201, 168, 76, 0.18);
  backdrop-filter: var(--blur);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.hermandad-card:active {
  transform: scale(0.97);
}

@media (hover: hover) {
  .hermandad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(201, 168, 76, 0.15);
    border-color: rgba(201, 168, 76, 0.45);
  }
}

.card-inner {
  display: flex;
  align-items: stretch;
  min-height: 110px;
}

.card-photo {
  width: 100px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}

.hermandad-card:hover .card-photo img {
  transform: scale(1.06);
}

.card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--card-bg));
}

.card-content {
  flex: 1;
  padding: 0.9rem 1rem 0.9rem 0.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
}

.card-turnno {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
}

.card-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.card-church {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.card-times {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.card-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
}

.time-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.time-dot.salida { background: var(--gold); }
.time-dot.oficial { background: #a855f7; }
.time-dot.entrada { background: #3b82f6; }

.card-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(201, 168, 76, 0.4);
  font-size: 1.1rem;
  transition: color 0.2s, transform 0.2s;
}

.hermandad-card:hover .card-arrow {
  color: var(--gold);
  transform: translateY(-50%) translateX(3px);
}

/* Madrugá accent */
.card-madruga {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  background: rgba(139, 0, 0, 0.7);
  color: #ffaaaa;
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid rgba(255, 100, 100, 0.3);
  font-weight: 600;
  flex-shrink: 0;
}

/* Container para las píldoras en la tarjeta */
.card-badges-top {
  position: absolute;
  top: 8px;
  right: 12px;
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: flex-start;
  z-index: 10;
}

/* Base común para píldoras de tarjeta */
.card-live-pill, .card-encalle-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.5rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.card-live-pill {
  background: rgba(185, 28, 28, 0.88);
  color: #fff;
  border: 1px solid rgba(255, 100, 100, 0.35);
}

.card-encalle-pill {
  background: rgba(201, 168, 76, 0.95);
  color: #0e0520;
  border: 1px solid rgba(245, 237, 214, 0.8);
}

/* Punto parpadeante para directos y en calle */
.live-dot, .encalle-dot-small {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink-live 1.2s ease-in-out infinite;
}
.live-dot { background: #fff; }
.encalle-dot-small { background: #0e0520; }

@keyframes blink-live {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* Botón EN DIRECTO en detalle */
.detail-live-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(220,38,38,0.9), rgba(153,27,27,0.9));
  border: 1px solid rgba(255,100,100,0.4);
  border-radius: 14px;
  padding: 0.85rem 1.25rem;
  margin: 0 1rem 1.25rem;
  text-decoration: none;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.2s;
}
.detail-live-btn:active { opacity: 0.75; }
.detail-live-btn .live-dot { background: #fff; width: 8px; height: 8px; }
.live-btn-text {
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  flex: 1;
}
.live-btn-icon {
  font-size: 1.1rem;
  opacity: 0.85;
}

/* ======================================
   DETAIL VIEW
====================================== */
#detail-view {
  background: transparent;
  position: fixed;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 999;
}

.detail-back {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  padding-top: max(0.9rem, calc(env(safe-area-inset-top) + 0.5rem));
  background: linear-gradient(to bottom, rgba(14, 5, 32, 0.95) 0%, transparent 100%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  transition: background 0.2s;
  flex-shrink: 0;
}

.back-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.detail-hero {
  position: relative;
  height: 70vw;
  max-height: 420px;
  min-height: 240px;
  overflow: hidden;
}

.detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(14, 5, 32, 0.3) 0%,
      rgba(14, 5, 32, 0.1) 40%,
      rgba(14, 5, 32, 0.85) 85%,
      rgba(14, 5, 32, 1) 100%);
}

.detail-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
}

.detail-day-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0e0520;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}

.detail-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.detail-church {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.photo-credit {
  position: absolute;
  right: 0.85rem;
  top: max(3rem, calc(env(safe-area-inset-top) + 2rem));
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 3px 9px 3px 7px;
  transition: background 0.2s, opacity 0.2s;
  opacity: 0.82;
  z-index: 10;
}

.photo-credit:hover {
  background: rgba(0, 0, 0, 0.58);
  opacity: 1;
}

.photo-credit-icon { font-size: 0.62rem; }

.photo-credit-text {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.06em;
  font-weight: 500;
}

.detail-escudo {
  position: absolute;
  right: 1.25rem;
  bottom: 1.1rem;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid var(--gold);
  padding: 5px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(201, 168, 76, 0.35);
  object-fit: contain;
}

.detail-body {
  padding: 1.25rem 1.5rem 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Info pills */
.info-pills {
  display: flex;
  gap: 0.4rem;
  flex-wrap: nowrap;
  margin-bottom: -0.75rem;
  overflow-x: auto;
}

.info-pill {
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.22);
  border-radius: 12px;
  padding: 0.5rem 0.4rem;
  flex: 1;
  min-width: 0;
  text-align: center;
  white-space: normal;
}

.pill-label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.12rem;
}

.pill-value {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

/* Section blocks in detail */
.detail-section {
  margin-bottom: 1.35rem;
}

.detail-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.detail-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.35), transparent);
}

/* Pasos badges */
.pasos-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: #d8b4fe;
}

/* Music info */
.music-box {
  background: rgba(201, 168, 76, 0.07);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 0.85rem 1rem;
  font-size: 0.82rem;
  color: var(--cream);
  line-height: 1.5;
}

/* Itinerary timeline */
.itinerary-timeline {
  position: relative;
  padding-left: 2rem;
}

.itinerary-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), rgba(201, 168, 76, 0.1));
  border-radius: 2px;
}

.itinerary-stop {
  position: relative;
  padding: 0 0 0.65rem 1.4rem;
  font-size: 0.82rem;
  color: var(--cream);
  line-height: 1.4;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.itinerary-stop::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 5px;
  width: 8px;
  height: 8px;
  background: var(--gold-dark);
  border: 2px solid var(--gold);
  border-radius: 50%;
}

.itinerary-stop.highlight {
  color: var(--gold-light);
  font-weight: 600;
}

.itinerary-stop.highlight::before {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.6);
}

.itinerary-stop-name {
  flex: 1;
  min-width: 0;
}

.itin-time-pill {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: 20px;
  line-height: 1.5;
  white-space: nowrap;
}

.itin-time-pill.salida {
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
}

.itin-time-pill.oficial {
  background: rgba(168,85,247,0.15);
  border: 1px solid rgba(168,85,247,0.4);
  color: #d8b4fe;
}

.itin-time-pill.esc {
  background: rgba(20,184,166,0.15);
  border: 1px solid rgba(20,184,166,0.4);
  color: #5eead4;
}

.itin-time-pill.entrada {
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.4);
  color: #93c5fd;
}

/* ── Banner "en calle" ───────────────────────────────────────── */
.detail-encalle-banner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 1.25rem 1.1rem;
  padding: 0.55rem 1rem;
  background: rgba(201,168,76,0.08);
  border: 1.5px solid rgba(201,168,76,0.75);
  border-radius: 8px;
  animation: recuadro-pulse 1.4s ease-in-out infinite;
}
.encalle-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.encalle-text {
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Progreso itinerario en tiempo real ─────────────────────── */

/* Pasadas — texto tenue; bola igual que el resto para alineación perfecta */
.itinerary-stop.itin-passed { opacity: 0.35; }
.itinerary-stop.itin-passed::before {
  background: var(--gold);
  border-color: var(--gold);
}
.itin-check { display: none; }

/* Futuras — dot hueco y apagado */
.itinerary-stop:not(.itin-passed):not(.itin-current):not(.highlight)::before {
  background: rgba(201,168,76,0.06);
  border-color: rgba(201,168,76,0.2);
}

/* Actual — texto en blanco; la bola NO se mueve (left:-9px, top:5px, 8×8px iguales a todas) */
.itinerary-stop.itin-current {
  color: #fff;
  font-weight: 700;
}
/* Bola: misma posición exacta que todas; solo cambia glow y z-index */
.itinerary-stop.itin-current::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(201,168,76,0.95);
  z-index: 2;
}
/* Recuadro parpadeante via ::after; left:-16px cubre la bola (8px a -9px) con margen */
.itinerary-stop.itin-current::after {
  content: '';
  position: absolute;
  top: -5px;
  bottom: 0.2rem;
  left: -20px;
  right: -0.6rem;
  border: 1.5px solid rgba(201,168,76,0.75);
  border-radius: 8px;
  background: rgba(201,168,76,0.08);
  animation: recuadro-pulse 1.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.itin-here-dot { display: none; }
.itin-walking-bar { display: none; }

@keyframes recuadro-pulse {
  0%, 100% {
    border-color: rgba(201,168,76,0.4);
    background: rgba(201,168,76,0.06);
    box-shadow: none;
  }
  50% {
    border-color: rgba(201,168,76,1);
    background: rgba(201,168,76,0.15);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.1), 0 0 16px rgba(201,168,76,0.5);
  }
}

/* ======================================
   BOTTOM NAV
====================================== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(14, 5, 32, 0.92);
  backdrop-filter: var(--blur);
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  display: flex;
  padding: 0.6rem 0 calc(0.6rem + env(safe-area-inset-bottom));
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  cursor: pointer;
  padding: 0.35rem 0;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s;
}

.nav-item:active { opacity: 0.7; }

.nav-icon {
  font-size: 1.3rem;
  transition: transform 0.2s;
}

.nav-item.active .nav-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px rgba(201, 168, 76, 0.7));
}

.nav-label {
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-item.active .nav-label { color: var(--gold); }

/* ======================================
   TYPOGRAPHY & UTILS
====================================== */
.gold { color: var(--gold); }
.text-center { text-align: center; }

/* Loading shimmer */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ======================================
   RESPONSIVE TWEAKS
====================================== */
@media (min-width: 480px) {
  .card-photo { width: 120px; }
  .detail-hero { max-height: 380px; }
}

@media (min-width: 600px) {
  .days-container { padding: 0 1.5rem 2rem; }
  .card-photo { width: 130px; }
}

/* Safe area for iOS notch */
.hero {
  padding-top: max(4rem, calc(env(safe-area-inset-top) + 2rem));
}

/* ======================================
   TIEMPO VIEW
====================================== */
.tiempo-header {
  text-align: center;
  padding: 0.5rem 1.5rem 0.5rem;
  padding-top: max(3.5rem, calc(env(safe-area-inset-top) + 1.25rem));
}

.tiempo-location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.tiempo-source {
  text-align: center;
  font-size: 0.62rem;
  color: rgba(201, 168, 76, 0.45);
  letter-spacing: 0.1em;
  margin: 0.35rem 0 1.25rem;
}

.tiempo-grid {
  padding: 0 1rem 6rem;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.weather-card {
  background: rgba(28, 12, 65, 0.8);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.weather-card.rain-alert {
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.08);
}

.weather-card.storm-alert {
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.1);
}

.weather-card-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
}

.weather-day-badge {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0e0520;
  border-radius: 12px;
  padding: 0.3rem 0.6rem;
  text-align: center;
  min-width: 46px;
  flex-shrink: 0;
}

.weather-day-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
}

.weather-day-abbr {
  display: block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.weather-main { flex: 1; }

.weather-dia-nombre {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.weather-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.weather-icon-big {
  font-size: 2.6rem;
  line-height: 1;
  flex-shrink: 0;
}

/* Rain bar */
.rain-section { padding: 0 1.1rem 1rem; }

.rain-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.rain-label {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.rain-pct {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.rain-pct.low { color: #4ade80; }
.rain-pct.mid { color: #fbbf24; }
.rain-pct.high { color: #60a5fa; }
.rain-pct.very-high { color: #f87171; }

.rain-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.rain-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 1s ease;
}

.rain-bar-fill.low { background: linear-gradient(90deg, #166534, #4ade80); }
.rain-bar-fill.mid { background: linear-gradient(90deg, #92400e, #fbbf24); }
.rain-bar-fill.high { background: linear-gradient(90deg, #1e40af, #60a5fa); }
.rain-bar-fill.very-high { background: linear-gradient(90deg, #991b1b, #f87171); }

/* Stats row */
.weather-stats {
  display: flex;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  padding: 0.65rem 0.5rem;
  gap: 0;
}

.weather-stat {
  flex: 1;
  text-align: center;
  padding: 0.1rem 0;
}

.weather-stat + .weather-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.wstat-label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.wstat-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
}

/* Hermandades del día en el card de tiempo */
.weather-hermandades {
  padding: 0.5rem 1.1rem 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.weather-herm-chip {
  font-size: 0.65rem;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  color: var(--gold-light);
  padding: 3px 9px;
  border-radius: 20px;
}

/* Rain alert banner */
.rain-alert-banner {
  margin: 0 1.1rem 0.75rem;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-size: 0.73rem;
  color: #bfdbfe;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Loading / error state */
.weather-loading {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
}

.weather-loading .spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(201, 168, 76, 0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 1rem;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

.weather-error {
  text-align: center;
  padding: 2rem 1.5rem;
}

/* Paso detail card */
.paso-card {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}

.paso-card:last-child { margin-bottom: 0; }

.paso-card-name {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #d8b4fe;
  margin-bottom: 0.55rem;
  line-height: 1.3;
}

.paso-card-name .paso-cross {
  color: rgba(168, 85, 247, 0.7);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.paso-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.paso-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--cream);
  line-height: 1.45;
}

.paso-info-icon {
  font-size: 0.82rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.paso-musica-row {
  color: rgba(201, 168, 76, 0.85) !important;
  font-style: italic;
}

.paso-musica-sep {
  height: 1px;
  background: rgba(168, 85, 247, 0.2);
  margin: 0.3rem 0;
}

.paso-costaleros-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 0.72rem;
  color: var(--gold-light);
  font-weight: 600;
}

/* ======================================
   COLABORADORES VIEW
====================================== */
.patrocinadores-header {
  text-align: center;
  padding: 1.25rem 1.25rem 1.25rem;
  padding-top: max(3.5rem, calc(env(safe-area-inset-top) + 1.25rem));
}

.patrocinadores-search-wrap {
  margin-top: 1rem;
  position: relative;
}

.patrocinadores-search {
  width: 100%;
  max-width: 380px;
  background: rgba(27, 10, 58, 0.75);
  border: 1px solid rgba(201, 168, 76, 0.28);
  border-radius: 12px;
  padding: 0.6rem 1rem 0.6rem 2.2rem;
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  color: var(--cream);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.patrocinadores-search::placeholder { color: var(--text-muted); }
.patrocinadores-search:focus { border-color: rgba(201, 168, 76, 0.55); }

.patrocinadores-search-wrap::before {
  content: '🔍';
  position: absolute;
  left: calc(50% - 180px);
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  pointer-events: none;
}

@media (max-width: 420px) {
  .patrocinadores-search-wrap::before { left: 0.75rem; }
  .patrocinadores-search {
    max-width: 100%;
    padding-left: 2.2rem;
  }
}

.patrocinadores-grid {
  padding: 0.75rem 1.25rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.patrocinador-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  -webkit-tap-highlight-color: transparent;
  display: block;
  text-decoration: none;
  position: relative;
}

.patrocinador-card:active { transform: scale(0.97); }

@media (hover: hover) {
  .patrocinador-card:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 168, 76, 0.45);
    box-shadow: 0 10px 35px rgba(0,0,0,0.45), 0 0 20px rgba(201,168,76,0.12);
  }
}

.patrocinador-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.65) saturate(1.2);
  transform: scale(1.12);
  z-index: 0;
}

.patrocinador-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  display: block;
  position: relative;
  z-index: 1;
}

.patrocinador-direccion {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  font-family: 'Raleway', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.92);
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  padding: 18px 12px 9px;
  pointer-events: none;
}

/* ======================================
   PHOTO STRIP & LIGHTBOX
====================================== */
.photo-strip {
  display: grid;
  grid-template-rows: 100px;
  grid-auto-flow: column;
  grid-auto-columns: 100px;
  gap: 0.55rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.25rem;
}

.photo-strip::-webkit-scrollbar { display: none; }

.photo-strip-item {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(201, 168, 76, 0.2);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.photo-strip-item:active { transform: scale(0.94); }

@media (hover: hover) {
  .photo-strip-item:hover {
    border-color: rgba(201, 168, 76, 0.55);
    transform: scale(1.04);
  }
}

.photo-strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.93);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.lightbox-img {
  max-width: 96vw;
  max-height: 88vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 8px 60px rgba(0, 0, 0, 0.8);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: max(1rem, calc(env(safe-area-inset-top) + 0.5rem));
  right: 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }

.patrocinadores-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 2rem 1rem;
}

/* ======================================
   MAP TRIGGER
====================================== */
.map-trigger {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.map-trigger:active { transform: scale(0.98); }

@media (hover: hover) {
  .map-trigger:hover {
    border-color: rgba(201, 168, 76, 0.45);
  }
}

.map-trigger-bg {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(201,168,76,0.04) 0px, rgba(201,168,76,0.04) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(90deg, rgba(201,168,76,0.04) 0px, rgba(201,168,76,0.04) 1px, transparent 1px, transparent 28px),
    linear-gradient(135deg, rgba(28,12,65,0.95), rgba(14,5,32,0.98));
}

.map-trigger-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
}

.map-trigger-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.map-trigger-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.map-trigger-sub {
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-top: 0.15rem;
}

.map-trigger-arrow {
  margin-left: auto;
  color: rgba(201,168,76,0.5);
  font-size: 1.3rem;
}

/* ======================================
   MAP CTA BUTTON (bottom of itinerary)
====================================== */
.map-cta-btn {
  width: 100%;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.28);
  border-radius: 50px;
  padding: 0.9rem 1.25rem;
  color: var(--gold);
  font-family: 'Raleway', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.map-cta-btn:active {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.5);
  transform: scale(0.98);
}

@media (hover: hover) {
  .map-cta-btn:hover {
    background: rgba(201,168,76,0.12);
    border-color: rgba(201,168,76,0.45);
  }
}

.map-cta-icon { display:flex; align-items:center; flex-shrink:0; color: var(--gold); }
.map-cta-arrow { margin-left: auto; font-size: 1rem; opacity: 0.7; }

/* ── Estimated position marker & badge ── */
@keyframes mapPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,87,34,0.7); }
  70%  { box-shadow: 0 0 0 14px rgba(255,87,34,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,87,34,0); }
}
.map-pulse-dot {
  width: 20px; height: 20px;
  background: #FF5722;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  animation: mapPulse 1.5s infinite;
}
.map-pos-badge {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  z-index: 450;
  pointer-events: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.map-pos-badge--active {
  background: rgba(14,5,32,0.88);
  color: #FF8A65;
  border: 1px solid rgba(255,112,67,0.45);
}
.map-pos-badge--idle {
  background: rgba(14,5,32,0.82);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
}
.map-pos-dot {
  width: 8px; height: 8px;
  background: #FF5722;
  border-radius: 50%;
  flex-shrink: 0;
  animation: mapPulse 1.5s infinite;
}

/* ======================================
   AJUSTES VIEW
====================================== */
#ajustes-view {
  min-height: auto;
}

.ajustes-header {
  text-align: center;
  padding: 1rem 1.5rem 1rem;
  padding-top: max(1.25rem, calc(env(safe-area-inset-top) + 1.25rem));
}

.ajustes-body {
  padding: 0 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ajustes-section {
  background: rgba(27, 10, 58, 0.7);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 18px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ajustes-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.notif-info-block {
  background: rgba(14, 5, 32, 0.5);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.75rem;
}
.notif-info-block p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.notif-info-block--warn {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.06);
}
.notif-info-block--ok {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.06);
}
.notif-info-block--ok p { color: #86efac; }

.notif-permission-btn {
  margin-top: 0.75rem;
  width: 100%;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.45);
  color: var(--gold);
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.notif-permission-btn:active { background: rgba(201, 168, 76, 0.2); }

.notif-test-btn {
  width: 100%;
  background: rgba(168, 85, 247, 0.1);
  border: 1px dashed rgba(168, 85, 247, 0.45);
  color: #d8b4fe;
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.notif-test-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.notif-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.08);
}
.notif-toggle-row:last-child { border-bottom: none; }

.notif-toggle-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 0;
}
.notif-toggle-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cream);
}
.notif-toggle-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 27px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 27px;
  transition: background 0.25s;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 21px;
  height: 21px;
  left: 2px;
  top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--gold);
  border-color: var(--gold);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(21px);
}

.ajustes-install-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.install-steps-inline {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.install-step-inline {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.83rem;
  color: var(--cream);
  line-height: 1.4;
}

.ajustes-credits {
  text-align: center;
  border-color: transparent !important;
  background: transparent !important;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.ajustes-credits-text {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  color: rgba(201, 168, 76, 0.5);
}
.ajustes-credits-sub {
  font-size: 0.7rem;
  color: rgba(245, 237, 214, 0.25);
  margin-top: 0.25rem;
  letter-spacing: 0.06em;
}

/* ======================================
   INSTALL BANNER (bottom sheet)
====================================== */
.install-banner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 4, 24, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 7000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.install-banner-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 7001;
  background: linear-gradient(160deg, #1a0a3a 0%, #0e0520 100%);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  padding: 0.5rem 1.5rem 2.5rem;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}
.install-banner.visible {
  transform: translateY(0);
}

.install-banner-handle {
  width: 40px;
  height: 4px;
  background: rgba(201, 168, 76, 0.3);
  border-radius: 2px;
  margin: 0.5rem auto 1rem;
}

.install-banner-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(245,237,214,0.6);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.install-ornament {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.install-ornament .ornament-line {
  height: 1px;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4));
}
.install-ornament .ornament-line:last-child {
  background: linear-gradient(90deg, rgba(201,168,76,0.4), transparent);
}
.install-ornament .ornament-cross {
  color: var(--gold);
  font-size: 0.75rem;
  opacity: 0.7;
}

.install-icon-wrap {
  margin: 0 auto 1rem;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 3px rgba(201,168,76,0.08);
}
.install-icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.install-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.install-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
  background: rgba(14,5,32,0.5);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
}
.install-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: var(--cream);
  line-height: 1.4;
}
.install-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.35);
  color: var(--gold);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
}

.ios-share-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  border-radius: 6px;
  padding: 0 5px;
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: middle;
  margin: 0 2px;
}

.install-cta-btn {
  width: 100%;
  background: linear-gradient(135deg, rgba(201,168,76,0.18), rgba(201,168,76,0.08));
  border: 1px solid rgba(201,168,76,0.5);
  color: var(--gold);
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.9rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.install-cta-btn:active { background: rgba(201,168,76,0.25); }

.install-later-btn {
  background: none;
  border: none;
  color: rgba(245,237,214,0.4);
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.5rem;
  -webkit-tap-highlight-color: transparent;
}

/* ─── Weather Strip ──────────────────────────────────────────── */
.weather-strip-wrap {
  max-width: 600px;
  width: calc(100% - 2rem);
  margin: 0 auto 1.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 12px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s;
}
.weather-strip-wrap:active {
  background: rgba(201,168,76,0.06);
}
.weather-strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}
.weather-strip-title {
  font-family: 'Raleway', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
}
.weather-strip-more {
  font-family: 'Raleway', sans-serif;
  font-size: 0.62rem;
  color: rgba(201,168,76,0.45);
}
.weather-strip {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.weather-strip::-webkit-scrollbar { display: none; }

.wstrip-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0 0.7rem;
  border-right: 1px solid rgba(255,255,255,0.07);
}
.wstrip-card:last-child { border-right: none; }
.wstrip-card:first-child { padding-left: 0; }
.wstrip-card.wstrip-rain .wstrip-icon { filter: hue-rotate(200deg) brightness(1.2); }
.wstrip-card.wstrip-storm .wstrip-temp { color: #fbbf24; }

.wstrip-icon {
  font-size: 1.25rem;
  line-height: 1;
}
.wstrip-day {
  font-family: 'Raleway', sans-serif;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  line-height: 1;
  white-space: nowrap;
}
.wstrip-temp {
  font-family: 'Raleway', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.wstrip-rain-dot {
  font-size: 0.5rem;
  color: #93c5fd;
  line-height: 1;
}
.wstrip-info { display: none; }
.wstrip-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  opacity: 0.4;
}

