/* ================================================================
   ANTIBULLAS — CSS Mobile-First Responsive
   Breakpoints: base = móvil (320px+), sm = 480px+, md = 700px+
================================================================ */

:root {
    --gold: #D4AF37;
    --gold-dim: rgba(212,175,55,0.15);
    --dark: #0a0a0b;
    --card-bg: rgba(22,22,24,0.97);
    --danger: #ff3b30;
    --orange: #e67e22;
    --maximo: #8b0000;
    --moderado: #2980b9;
    --text: #fff;
    --muted: #a0a0a5;
    --radius: 14px;
    --transition: all 0.3s cubic-bezier(.165,.84,.44,1);
    /* Safe areas para iPhone notch/Dynamic Island */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    /* Altura de la nav bar */
    --nav-h: calc(60px + var(--safe-bottom));
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: var(--dark);
    color: var(--text);
    /* Espacio para la nav fija + safe area */
    padding-bottom: calc(var(--nav-h) + 8px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image:
        radial-gradient(ellipse at top right, rgba(26,10,42,0.8), transparent 60%),
        radial-gradient(ellipse at bottom left, rgba(10,5,20,0.6), transparent 50%);
    /* Evitar rebote horizontal en iOS */
    overflow-x: hidden;
}

/* ─── TIPOGRAFÍA BASE RESPONSIVE ─── */
html { font-size: 15px; }
@media (min-width: 380px) { html { font-size: 16px; } }

/* ================================================================
   HEADER
================================================================ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5,5,7,0.96);
    padding: 14px 14px 0;
    padding-top: calc(14px + var(--safe-top));
    border-bottom: 1px solid rgba(212,175,55,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.logo-area h1 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    margin: 0;
    text-align: center;
    letter-spacing: 5px;
    font-size: clamp(1.4rem, 6vw, 2rem);
    font-weight: 900;
    text-shadow: 0 0 30px rgba(212,175,55,0.3);
    line-height: 1.1;
}
.logo-area p {
    margin: 4px 0 10px;
    text-align: center;
    color: rgba(160,160,165,0.5);
    font-size: clamp(.48rem, 2vw, .6rem);
    letter-spacing: 4px;
    text-transform: uppercase;
}

/* Buscador */
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.04);
    padding: 10px 12px;
    border-radius: 11px;
    border: 1px solid rgba(255,255,255,0.07);
    transition: var(--transition);
    margin-bottom: 10px;
}
.search-box:focus-within {
    box-shadow: 0 0 0 1px rgba(212,175,55,0.3);
    border-color: rgba(212,175,55,0.4);
}
.search-box i { color: var(--muted); font-size: .85rem; flex-shrink: 0; }
.search-box input {
    background: none;
    border: none;
    color: var(--text);
    outline: none;
    font-size: 1rem; /* ≥16px en iOS evita el zoom automático */
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    min-width: 0;
}
.search-box input::placeholder { color: rgba(160,160,165,0.45); }
.search-clear {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    font-size: .85rem;
    /* Tap target mínimo 44px */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -4px -4px -4px 0;
    -webkit-tap-highlight-color: transparent;
}

/* Filtro de días */
.day-filter {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 10px;
    /* Scroll suave en iOS */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}
.day-filter::-webkit-scrollbar { display: none; }
.day-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    color: var(--muted);
    /* Tap targets mínimos */
    min-height: 34px;
    padding: 0 12px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.day-btn.active {
    background: var(--gold-dim);
    border-color: rgba(212,175,55,0.5);
    color: var(--gold);
}

/* ================================================================
   SHARED UTILITIES
================================================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 14px 8px;
    max-width: 680px;
    margin: 0 auto;
}
.section-title {
    font-family: 'Cinzel', serif;
    font-size: .68rem;
    color: var(--muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}
.section-count {
    font-size: .65rem;
    color: rgba(160,160,165,0.5);
    background: rgba(255,255,255,0.04);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    white-space: nowrap;
}

.empty { color: var(--muted); padding: 48px 24px; text-align: center; }
.empty i { font-size: 2rem; opacity: .2; display: block; margin-bottom: 14px; }

/* Badges EN CURSO / EN CALLE */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,59,48,0.15);
    border: 1px solid rgba(255,59,48,0.35);
    color: #ff3b30;
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
}
.live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #ff3b30;
    animation: pulse-dot 1.2s infinite;
    flex-shrink: 0;
}
@keyframes pulse-dot {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.4; transform:scale(.7); }
}
@keyframes slideUp {
    from { opacity:0; transform:translateY(16px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ================================================================
   BULLAS — CARDS
================================================================ */
.cards-list { list-style: none; margin: 0; padding: 0; }

.bulla-card {
    background: var(--card-bg);
    margin: 12px 14px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 6px 22px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(16px);
    animation: slideUp 0.38s cubic-bezier(.165,.84,.44,1) forwards;
    transition: box-shadow .3s, transform .3s;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    /* Mejor touch feedback */
    -webkit-tap-highlight-color: transparent;
}
.bulla-card:nth-child(1){animation-delay:.04s}
.bulla-card:nth-child(2){animation-delay:.08s}
.bulla-card:nth-child(3){animation-delay:.12s}
.bulla-card:nth-child(4){animation-delay:.16s}
.bulla-card:nth-child(n+5){animation-delay:.20s}

/* Solo hover en dispositivos con puntero fino (no táctil) */
@media (hover: hover) and (pointer: fine) {
    .bulla-card:hover {
        box-shadow: 0 14px 42px rgba(0,0,0,.7), 0 0 0 1px rgba(212,175,55,.12);
        transform: translateY(-2px);
    }
}

.bulla-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid rgba(212,175,55,.08);
}
@media (min-width: 480px) { .bulla-img { height: 180px; } }

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px;
    background: rgba(0,0,0,.3);
    border-bottom: 1px solid rgba(255,255,255,.04);
    gap: 8px;
}
.card-top-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}
.day-tag {
    font-size: .6rem;
    color: rgba(212,175,55,.8);
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* Niveles de peligro */
.lvl {
    padding: 4px 9px;
    border-radius: 7px;
    font-weight: 900;
    font-size: .62rem;
    letter-spacing: .5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.lvl.CRÍTICO  { background: var(--danger);   color: #fff; box-shadow: 0 0 10px rgba(255,59,48,.3); }
.lvl.ALTO     { background: var(--orange);   color: #fff; }
.lvl.MÁXIMO   { background: var(--maximo);   color: #fff; border: 1px solid rgba(255,80,80,.3); }
.lvl.MODERADO { background: var(--moderado); color: #fff; }

.card-body { padding: 12px 14px 14px; }
.card-body h3 {
    font-family: 'Cinzel', serif;
    margin: 0 0 6px;
    font-size: clamp(.95rem, 4vw, 1.15rem);
    color: #fff;
    line-height: 1.3;
}
.hour {
    color: var(--gold);
    font-weight: 700;
    font-size: .75rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}
.desc {
    color: rgba(208,208,208,.85);
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: .85rem;
}
.escape-box {
    background: linear-gradient(135deg, rgba(212,175,55,.07), rgba(212,175,55,.02));
    border-left: 3px solid var(--gold);
    padding: 10px 12px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 4px;
}
.escape-box strong {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gold);
    margin-bottom: 4px;
    font-size: .68rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.escape-box p {
    margin: 0;
    color: #f0f0f0;
    font-style: italic;
    font-size: .83rem;
    line-height: 1.5;
}
.card-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.btn-mapa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    border: 1px solid rgba(212,175,55,.4);
    /* Tap target mínimo */
    min-height: 40px;
    padding: 0 13px;
    border-radius: 8px;
    text-decoration: none;
    font-size: .74rem;
    font-weight: 600;
    background: rgba(212,175,55,.05);
    transition: var(--transition);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) {
    .btn-mapa:hover { background: rgba(212,175,55,.12); border-color: var(--gold); transform: translateY(-1px); }
}
.btn-mapa.secondary { color: var(--muted); border-color: rgba(255,255,255,.1); background: transparent; }

/* ================================================================
   PROGRAMA
================================================================ */
.prog-item {
    background: var(--card-bg);
    margin: 8px 14px;
    padding: 0;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.06);
    overflow: hidden;
    transition: border-color .3s;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    animation: slideUp .35s cubic-bezier(.165,.84,.44,1) forwards;
    box-shadow: 0 4px 16px rgba(0,0,0,.4);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    -webkit-tap-highlight-color: transparent;
}
.prog-item:nth-child(1){animation-delay:.03s}
.prog-item:nth-child(2){animation-delay:.07s}
.prog-item:nth-child(3){animation-delay:.11s}
.prog-item:nth-child(n+4){animation-delay:.15s}
@media (hover: hover) and (pointer: fine) {
    .prog-item:hover { border-color: rgba(212,175,55,.2); }
}

.prog-main-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    gap: 8px;
}
.prog-info { flex: 1; min-width: 0; }
.prog-info h4 {
    margin: 0 0 3px;
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: clamp(.82rem, 3.5vw, .95rem);
    /* Permitir wrap en pantallas pequeñas */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.prog-day-tag {
    font-size: .58rem;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2px;
    display: block;
}
.prog-hint {
    font-size: .68rem;
    color: rgba(160,160,165,.55);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}
.prog-hint i { font-size: .6rem; transition: transform .3s; }
.prog-item.open .prog-hint i { transform: rotate(180deg); }

.time-box {
    min-width: 66px;
    text-align: center;
    background: rgba(255,255,255,.03);
    padding: 6px 8px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}
.time-label {
    font-size: .5rem;
    color: var(--muted);
    letter-spacing: 1px;
    display: block;
    text-transform: uppercase;
    margin-bottom: 1px;
}
.time-val { display: block; font-weight: 700; font-size: .8rem; color: var(--text); line-height: 1.3; }
.time-val.llegada { color: var(--gold); }

.prog-details {
    padding: 0 14px;
    border-top: 1px solid rgba(255,255,255,.05);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s cubic-bezier(.165,.84,.44,1), padding .3s, opacity .3s;
    opacity: 0;
}
.prog-item.open .prog-details { max-height: 600px; padding: 12px 14px 14px; opacity: 1; }
.prog-details strong { display: block; font-size: .65rem; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; }
.itinerario-full { color: rgba(220,220,220,.85); font-size: .82rem; line-height: 1.7; margin-bottom: 9px; }
.prog-thumb { width: 100%; height: 110px; object-fit: cover; border-radius: 8px; margin-bottom: 9px; border: 1px solid rgba(255,255,255,.06); }
.prog-meta { font-size: .72rem; color: var(--muted); margin-bottom: 9px; }

/* Botón favorito */
.fav-btn {
    background: none;
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(160,160,165,.5);
    /* Tap target */
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.fav-btn.fav-active { color: #e74c3c; border-color: rgba(231,76,60,.5); background: rgba(231,76,60,.08); }
@media (hover: hover) and (pointer: fine) {
    .fav-btn:hover { color: #e74c3c; border-color: rgba(231,76,60,.3); }
}

/* ================================================================
   HOY
================================================================ */
.hoy-weather-card {
    margin: 14px 14px 0;
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
.weather-loading { padding: 18px; text-align: center; color: var(--muted); font-size: .82rem; }
.weather-inner {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius);
    padding: 16px 18px;
    box-shadow: 0 6px 22px rgba(0,0,0,.4);
}
.weather-inner.rain-alert { border-color: rgba(77,136,200,.3); background: rgba(30,50,90,.5); }
.weather-main { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.weather-temp {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 10vw, 2.8rem);
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    flex-shrink: 0;
}
.weather-info { flex: 1; min-width: 0; }
.weather-desc { display: block; font-size: .9rem; color: #fff; font-weight: 600; margin-bottom: 3px; }
.weather-detail { font-size: .72rem; color: var(--muted); }
.rain-warning {
    background: rgba(77,136,200,.15);
    border: 1px solid rgba(77,136,200,.3);
    color: #7db5e8;
    padding: 9px 11px;
    border-radius: 9px;
    font-size: .77rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
}
.rain-ok { color: rgba(39,174,96,.9); font-size: .77rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }

.hoy-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 14px;
    padding: 14px;
    border-radius: var(--radius);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
.hoy-banner i { font-size: 1.6rem; flex-shrink: 0; }
.hoy-banner strong { display: block; font-family: 'Cinzel', serif; font-size: clamp(.9rem, 4vw, 1.1rem); letter-spacing: 1px; }
.hoy-banner span { display: block; font-size: .72rem; color: rgba(255,255,255,.6); margin-top: 2px; }
.hoy-soon   { background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.2); color: var(--gold); }
.hoy-active { background: rgba(255,59,48,.08);  border: 1px solid rgba(255,59,48,.2);  color: #ff6b60; }
.hoy-ended  { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: var(--muted); }

.hoy-chip {
    background: var(--card-bg);
    margin: 7px 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    animation: slideUp .32s forwards;
    opacity: 0;
}
.hoy-chip-left { flex: 1; min-width: 0; }
.hoy-chip strong { display: block; font-size: .88rem; color: #fff; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hoy-chip span { font-size: .7rem; color: var(--muted); }
.hoy-chip.en-calle { border-color: rgba(255,59,48,.3); background: rgba(255,59,48,.05); }
.hoy-naz { font-size: .68rem; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 3px; flex-shrink: 0; }

.bulla-chip {
    background: var(--card-bg);
    margin: 7px 14px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    animation: slideUp .32s forwards;
    opacity: 0;
}
.bulla-chip-left { flex: 1; min-width: 0; }
.bulla-chip strong { display: block; font-size: .86rem; color: #fff; margin: .25rem 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bulla-chip span { font-size: .68rem; color: var(--muted); }
.bulla-chip.bulla-live { border-color: rgba(255,59,48,.3); }

/* ================================================================
   MI CALLE
================================================================ */
.micalle-intro {
    padding: 18px 14px 8px;
    max-width: 680px;
    margin: 0 auto;
}
.micalle-intro h2 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: clamp(1.1rem, 5vw, 1.3rem);
    margin: 0 0 7px;
}
.micalle-intro p { color: rgba(200,200,200,.8); font-size: .85rem; line-height: 1.6; margin: 0 0 14px; }
.micalle-search { display: flex; gap: 8px; margin-bottom: 14px; }
.micalle-search input {
    flex: 1;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
    padding: 12px 13px;
    border-radius: 10px;
    font-size: 1rem; /* ≥16px evita zoom en iOS */
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: var(--transition);
    min-width: 0;
}
.micalle-search input:focus { border-color: rgba(212,175,55,.4); box-shadow: 0 0 0 1px rgba(212,175,55,.2); }
.micalle-search button {
    background: var(--gold);
    border: none;
    color: #111;
    padding: 0 16px;
    min-height: 46px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .78rem;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) {
    .micalle-search button:hover { background: #e6c544; transform: translateY(-1px); }
}

.calle-found-title { font-size: .8rem; color: var(--muted); margin: 4px 0 9px; }
.calle-empty { color: var(--muted); font-size: .83rem; padding: 12px 0; line-height: 1.6; }

.calle-result-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    padding: 12px 13px;
    margin-bottom: 9px;
    animation: slideUp .28s forwards;
    opacity: 0;
}
.calle-result-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}
.calle-result-top strong { display: block; font-size: .9rem; font-family: 'Cinzel', serif; color: var(--gold); }
.calle-recorrido {
    font-size: .7rem;
    color: var(--muted);
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,.05);
}

.sitio-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--card-bg);
    margin: 7px 14px;
    padding: 13px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.06);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
.sitio-icon { color: var(--gold); font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.sitio-card strong { display: block; font-size: .88rem; color: #fff; margin-bottom: 3px; }
.sitio-card p { margin: 0; font-size: .78rem; color: var(--muted); line-height: 1.5; }

/* ================================================================
   GUÍA
================================================================ */
.guia-card {
    margin: 7px 14px;
    padding: 13px 15px;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,.06);
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
.guia-card p { margin: 5px 0 0; font-size: .8rem; color: rgba(200,200,200,.8); line-height: 1.6; }
.trans-card { border-left: 3px solid rgba(212,175,55,.4); }
.trans-linea { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: .8rem; color: var(--gold); letter-spacing: .5px; margin-bottom: 3px; }
.trans-linea i { font-size: .95rem; }
.consejo-card { border-left: 3px solid var(--gold); }
.consejo-card strong { font-size: .83rem; }

/* Vocabulario: 1 columna en móvil, 2 en tablet, 3 en desktop */
.voc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin: 0 14px 8px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 420px) { .voc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 700px) { .voc-grid { grid-template-columns: 1fr 1fr 1fr; } }

.voc-card {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 10px;
    padding: 11px 12px;
}
.voc-term { display: block; font-family: 'Cinzel', serif; color: var(--gold); font-size: .82rem; margin-bottom: 4px; }
.voc-card p { margin: 0; font-size: .73rem; color: var(--muted); line-height: 1.5; }

/* ================================================================
   BOTTOM NAV
================================================================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(5,5,7,.97);
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    /* Safe area para iPhone home indicator */
    padding: 6px 0 max(8px, var(--safe-bottom));
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
    border-top: 1px solid rgba(255,255,255,.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 999;
}
.nav-item {
    background: none;
    border: none;
    color: rgba(120,120,125,.8);
    text-align: center;
    flex: 1;
    /* Tap target mínimo 44px de altura */
    min-height: 44px;
    padding: 4px 2px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.nav-item.active { color: var(--gold); }
.nav-item i { font-size: 1.15rem; }
.nav-item span {
    font-size: clamp(.46rem, 2.2vw, .55rem);
    letter-spacing: 1px;
    line-height: 1;
}
@media (hover: hover) and (pointer: fine) {
    .nav-item:hover:not(.active) { color: rgba(212,175,55,.5); }
    .nav-item.active { transform: translateY(-2px); }
}

/* ================================================================
   MAPA MODAL
================================================================ */
.map-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.78);
    z-index: 2000;
    backdrop-filter: blur(4px);
    padding: 16px;
    padding-bottom: calc(16px + var(--safe-bottom));
}
.map-modal[aria-hidden="false"] { display: flex; }
.map-shell {
    width: 100%;
    max-width: 900px;
    /* Altura adaptable: menos en móvil */
    height: min(70vh, 500px);
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 70px rgba(0,0,0,.8);
    border: 1px solid rgba(255,255,255,.08);
}
@media (min-width: 480px) {
    .map-shell { height: 70vh; }
}
.map-close {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 10;
    background: rgba(0,0,0,.65);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    font-size: 1.2rem;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 9px;
    transition: background .2s;
    -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) {
    .map-close:hover { background: rgba(255,59,48,.4); }
}


/* ================================================================
   FICHA DE HERMANDAD — elementos del detalle expandido
================================================================ */

/* Stats row: 4 métricas en fila */
.herm-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255,255,255,.06);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,.06);
}
.herm-stat {
    background: rgba(15,15,17,.9);
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.hstat-val {
    font-family: 'Cinzel', serif;
    font-size: clamp(.72rem, 3vw, .95rem);
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    text-align: center;
}
.hstat-lbl {
    font-size: .48rem;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
}

/* Titular */
.herm-titular {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(212,175,55,.06);
    border: 1px solid rgba(212,175,55,.15);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    font-size: .8rem;
    color: rgba(240,230,200,.9);
    line-height: 1.5;
}
.herm-titular i {
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
    font-size: .75rem;
}

/* Templo + Túnica pills */
.herm-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}
.herm-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .68rem;
    color: var(--muted);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: .3px;
}
.herm-meta-pill i { font-size: .65rem; }
.tunica-pill {
    color: rgba(212,175,55,.8);
    background: rgba(212,175,55,.06);
    border-color: rgba(212,175,55,.15);
}

/* Curiosidad */
.herm-curiosidad {
    background: rgba(255,255,255,.03);
    border-left: 3px solid rgba(212,175,55,.5);
    border-radius: 0 10px 10px 0;
    padding: 11px 13px;
    margin-bottom: 14px;
}
.curio-header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gold);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}
.curio-header i { font-size: .7rem; }
.herm-curiosidad p {
    margin: 0;
    font-size: .82rem;
    color: rgba(210,210,210,.85);
    line-height: 1.65;
    font-style: italic;
}

/* Itinerario visual */
.herm-itinerario {
    margin-bottom: 14px;
}
.itin-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .6rem;
    color: var(--muted);
    letter-spacing: 2px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.itin-header i { color: var(--gold); }

.itin-bloque {
    margin-bottom: 10px;
}
.itin-bloque:last-child { margin-bottom: 0; }

.itin-fase-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}
.itin-fase-label i { font-size: .6rem; }
.itin-co .itin-fase-label { color: var(--gold); }
.itin-co .itin-fase-label i { color: var(--gold); }

.itin-paradas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.itin-stop {
    font-size: .72rem;
    color: rgba(220,220,220,.9);
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    font-weight: 500;
}
.itin-stop-co {
    background: rgba(212,175,55,.1);
    border-color: rgba(212,175,55,.25);
    color: rgba(240,220,140,.95);
    font-weight: 700;
}
.itin-arrow {
    color: rgba(160,160,165,.4);
    font-size: .7rem;
    font-weight: 700;
    flex-shrink: 0;
    user-select: none;
}

/* Botón mapa dentro de la ficha */
.herm-actions {
    padding-top: 4px;
}


@media (min-width: 700px) {
    .bulla-card { margin: 14px auto; }
    .prog-item  { margin: 10px auto; }
    .hoy-chip   { margin: 8px auto; }
    .bulla-chip { margin: 8px auto; }
    .guia-card  { margin: 8px auto; }
    .sitio-card { margin: 8px auto; }
    .main-header { padding: 18px 24px 0; }
    .section-header { padding: 20px 24px 10px; }
}
/* ================================================================
   FOOTER
================================================================ */
.site-footer{
    text-align:center;
    padding:25px 15px calc(30px + var(--nav-h));
    color:var(--muted);
    font-size:.7rem;
    border-top:1px solid rgba(255,255,255,0.05);
    margin-top:30px;
}

.site-footer strong{
    color:var(--gold);
    font-weight:700;
}

.site-footer p{
    margin:4px 0;
}
body{
    animation: fadeApp .6s ease;
}

@keyframes fadeApp{
    from{
        opacity:0;
        transform:translateY(8px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}
/* ================================================================
   MI PLAN
================================================================ */
.miplan-head {
    padding: 20px 14px 6px;
    max-width: 680px;
    margin: 0 auto;
}
.miplan-head-inner { display:flex; align-items:flex-start; gap:14px; }
.miplan-head h2 {
    font-family:'Cinzel',serif; font-size:1rem; color:var(--gold);
    margin:0 0 5px; letter-spacing:2px;
}
.miplan-head p { font-size:.73rem; color:var(--muted); margin:0; line-height:1.55; }

/* ── Cabecera de día dentro del timeline ── */
.plan-day-hdr {
    display:flex; align-items:center; justify-content:space-between;
    padding: 14px 0 8px;
    border-bottom: 1px solid rgba(212,175,55,0.2);
    margin-bottom: 14px;
}
.plan-day-name {
    font-family:'Cinzel',serif; font-size:.72rem; color:var(--gold);
    letter-spacing:2px; text-transform:uppercase;
}
.plan-day-count { font-size:.6rem; color:var(--muted); letter-spacing:1px; }

/* ── Timeline contenedor ── */
.plan-timeline {
    padding: 0 14px 8px;
    max-width:680px; margin:0 auto;
}

/* ── Tarjeta de hermandad ── */
.plan-card {
    display:flex; gap:12px; align-items:flex-start;
    margin-bottom: 0;
    animation: fadeIn .3s ease;
}
.plan-card.plan-pasada { opacity:.4; }

.plan-card-dot {
    width:13px; height:13px; border-radius:50%;
    background:rgba(212,175,55,0.25);
    border:2px solid var(--gold);
    flex-shrink:0; margin-top:18px;
    position:relative; z-index:1;
}
.plan-card-dot.dot-live {
    background:var(--gold);
    box-shadow:0 0 10px rgba(212,175,55,0.7);
    animation: glow-dot 1.8s ease-in-out infinite;
}
@keyframes glow-dot {
    0%,100%{box-shadow:0 0 6px rgba(212,175,55,0.6);}
    50%{box-shadow:0 0 16px rgba(212,175,55,1);}
}

.plan-card-body {
    flex:1; min-width:0;
    background:var(--card-bg);
    border:1px solid rgba(255,255,255,0.07);
    border-radius:var(--radius);
    padding:13px 14px 10px;
    margin-bottom:0;
}
.plan-card.plan-live .plan-card-body {
    border-color:rgba(212,175,55,0.35);
    background:linear-gradient(135deg,rgba(212,175,55,0.04),transparent);
}

.plan-card-hdr {
    display:flex; justify-content:space-between; align-items:flex-start;
    gap:8px; margin-bottom:10px;
}
.plan-card-title { display:flex; flex-direction:column; gap:3px; min-width:0; }
.plan-card-title strong { font-size:.88rem; line-height:1.3; }
.plan-naz { font-size:.63rem; color:var(--muted); }

.plan-rm-btn {
    background:rgba(255,59,48,0.07); border:1px solid rgba(255,59,48,0.15);
    color:var(--danger); width:30px; height:30px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    cursor:pointer; flex-shrink:0; font-size:.75rem;
    transition:var(--transition); -webkit-tap-highlight-color:transparent;
}
.plan-rm-btn:active { transform:scale(.9); }

/* ── Puntos del recorrido ── */
.plan-puntos {
    display:flex; flex-direction:column; gap:1px;
    border-top:1px solid rgba(255,255,255,0.05);
    padding-top:10px;
}
.plan-punto {
    display:flex; align-items:flex-start; gap:10px;
    padding:6px 0;
    border-bottom:1px solid rgba(255,255,255,0.04);
}
.plan-punto:last-child { border-bottom:none; padding-bottom:2px; }

.plan-punto-icon {
    width:22px; height:22px; border-radius:6px;
    display:flex; align-items:center; justify-content:center;
    font-size:.7rem; flex-shrink:0; margin-top:1px;
}
.salida-pt .plan-punto-icon  { background:rgba(212,175,55,0.12); color:var(--gold); }
.ruta-pt   .plan-punto-icon  { background:rgba(160,160,165,0.1); color:var(--muted); }
.especial-pt .plan-punto-icon{ background:rgba(74,144,217,0.12); color:#4a90d9; }
.co-pt     .plan-punto-icon  { background:rgba(212,175,55,0.2);  color:var(--gold); }

.plan-punto-info { flex:1; min-width:0; display:flex; flex-direction:column; gap:1px; }
.pt-label  { font-size:.55rem; letter-spacing:1.5px; color:var(--muted); text-transform:uppercase; }
.pt-lugar  { font-size:.78rem; color:var(--text); line-height:1.4; }
.co-pt .pt-lugar { color:var(--gold); font-weight:600; }
.especial-pt .pt-lugar { color:#4a90d9; }

.pt-hora {
    font-size:.82rem; font-weight:700; color:var(--gold);
    flex-shrink:0; align-self:center;
}
.pt-hora.llegada { color:rgba(160,160,165,0.6); font-size:.72rem; font-weight:400; }

/* ── Gap entre hermandades (mismo día) ── */
.plan-gap {
    display:flex; align-items:flex-start; gap:10px;
    padding:2px 0;
}
.gap-vline {
    width:2px; min-height:36px; flex-shrink:0;
    margin-left:5px;
    background:linear-gradient(to bottom,rgba(212,175,55,0.2),rgba(212,175,55,0.05));
}
.overlap-vline { background:linear-gradient(to bottom,rgba(255,59,48,0.4),rgba(255,59,48,0.1)); }

.gap-msg {
    font-size:.68rem; color:var(--muted);
    padding:6px 0; line-height:1.5;
    display:flex; align-items:flex-start; gap:7px;
}
.gap-msg i { flex-shrink:0; margin-top:2px; }
.gap-critical { color:#e74c3c; }
.gap-tight    { color:var(--orange); }
.gap-ok       { color:var(--muted); }
.gap-free     { color:#27ae60; }
.gap-overlap  { color:#e74c3c; }

/* ── Compartir plan ── */
.plan-share-wrap { padding:14px 0 4px; }
.btn-wa {
    display:inline-flex; align-items:center; gap:8px;
    background:rgba(37,211,102,0.1); border:1px solid rgba(37,211,102,0.25);
    color:#25d366; padding:10px 18px; border-radius:10px;
    font-size:.72rem; font-weight:700; letter-spacing:.5px;
    text-decoration:none; font-family:'Montserrat',sans-serif;
    -webkit-tap-highlight-color:transparent;
}
.btn-wa:active { opacity:.8; }

/* Vaciar plan */
.plan-clear-btn {
    background:rgba(255,59,48,0.07); border:1px solid rgba(255,59,48,0.15);
    color:var(--danger); font-size:.6rem; font-weight:700; letter-spacing:1px;
    padding:5px 12px; border-radius:20px; cursor:pointer;
    font-family:'Montserrat',sans-serif; -webkit-tap-highlight-color:transparent;
}

/* ── Picker de días del plan (aislado del filtro global) ── */
.plan-day-picker {
    display:flex; gap:6px; overflow-x:auto;
    padding:0 14px 10px;
    -webkit-overflow-scrolling:touch; scrollbar-width:none;
    max-width:680px; margin:0 auto;
}
.plan-day-picker::-webkit-scrollbar { display:none; }

/* ── Lista selector de hermandades ── */
.plan-lista {
    padding:0 14px 24px;
    max-width:680px; margin:0 auto;
    display:flex; flex-direction:column; gap:6px;
}
.plan-row {
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    background:var(--card-bg); border:1px solid rgba(255,255,255,0.06);
    border-radius:var(--radius); padding:12px 14px;
    transition:var(--transition);
}
.plan-row-sel {
    border-color:rgba(212,175,55,0.3);
    background:rgba(212,175,55,0.04);
}
.plan-row-info { display:flex; flex-direction:column; gap:3px; flex:1; min-width:0; }
.plan-row-info strong { font-size:.85rem; }
.plan-row-info span { font-size:.68rem; color:var(--muted); line-height:1.4; }

.plan-toggle {
    flex-shrink:0; width:34px; height:34px; border-radius:50%;
    background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.1);
    color:var(--muted); font-size:.85rem;
    display:flex; align-items:center; justify-content:center;
    cursor:pointer; transition:var(--transition);
    -webkit-tap-highlight-color:transparent;
}
.plan-toggle-on {
    background:rgba(212,175,55,0.15);
    border-color:rgba(212,175,55,0.4);
    color:var(--gold);
}
.plan-toggle:active { transform:scale(.9); }

/* ================================================================
   HOY — Live widget, quick actions, timeline
================================================================ */

/* ── Widget EN CALLE AHORA / PRÓXIMA ── */
.hoy-live-widget {
    margin: 0 14px 12px;
    max-width: 680px;
    margin-left: auto; margin-right: auto;
    background: linear-gradient(135deg, rgba(139,0,0,0.2), rgba(212,175,55,0.06));
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: var(--radius);
    padding: 13px 15px;
    animation: fadeIn .4s ease;
}
.hlw-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 9px;
}
.hlw-count { font-size: .62rem; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.hlw-names { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.hlw-chip {
    background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.22);
    color: var(--gold); font-size: .67rem; font-weight: 700;
    letter-spacing: .4px; padding: 4px 10px; border-radius: 20px;
}
.hlw-next {
    display: flex; align-items: center; gap: 12px;
}
.hlw-next-sep {
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.hlw-next-label {
    font-size: .52rem; letter-spacing: 2px; color: var(--muted);
    text-transform: uppercase; white-space: nowrap; flex-shrink: 0;
}
.hlw-next-info { display: flex; flex-direction: column; gap: 2px; }
.hlw-next-info strong { font-size: .85rem; }
.hlw-next-info span { font-size: .7rem; color: var(--muted); }
.hlw-countdown { color: var(--gold) !important; }

/* ── Accesos rápidos ── */
.hoy-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 14px 4px;
    max-width: 680px; margin: 0 auto;
}
.hoy-qa-btn {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    padding: 11px 8px;
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    cursor: pointer; transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
    text-align: center;
}
.hoy-qa-btn:active { transform: scale(.96); border-color: rgba(212,175,55,0.3); }
.hoy-qa-btn i { font-size: 1rem; color: var(--gold); }
.hoy-qa-btn span { font-size: .6rem; color: var(--muted); letter-spacing: .5px; text-transform: uppercase; }
.hoy-qa-btn strong { font-size: .72rem; color: var(--text); }

/* ── Timeline del día ── */
.hoy-timeline {
    padding: 0 14px 8px;
    max-width: 680px; margin: 0 auto;
    display: flex; flex-direction: column; gap: 4px;
}
.hoy-tl-row {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 12px;
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    transition: var(--transition);
    animation: fadeIn .3s ease both;
}
.hoy-tl-row.hoy-tl-live {
    border-color: rgba(212,175,55,0.3);
    background: rgba(212,175,55,0.04);
}
.hoy-tl-row.hoy-tl-pasada { opacity: .42; }

.hoy-tl-left {
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    min-width: 38px; padding-top: 2px; flex-shrink: 0;
}
.hoy-tl-hora {
    font-size: .78rem; font-weight: 700;
    color: var(--gold);
}
.hoy-tl-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(212,175,55,0.25);
    border: 1.5px solid rgba(212,175,55,0.5);
}
.hoy-tl-dot.dot-live {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(212,175,55,0.8);
    animation: glow-dot 1.8s ease-in-out infinite;
}

.hoy-tl-body {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 5px;
}
.hoy-tl-top {
    display: flex; flex-direction: column; gap: 2px;
}
.hoy-tl-top strong { font-size: .84rem; line-height: 1.3; }
.hoy-tl-meta { font-size: .63rem; color: var(--muted); }

/* Barra de progreso */
.hoy-tl-progress {
    height: 3px; background: rgba(255,255,255,0.06);
    border-radius: 3px; overflow: hidden; margin-top: 2px;
}
.hoy-tl-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), rgba(212,175,55,0.4));
    border-radius: 3px;
    transition: width 1s ease;
}

/* Bookmark */
.hoy-tl-plan-btn {
    background: none; border: none;
    color: rgba(160,160,165,0.3);
    font-size: .9rem; padding: 4px;
    cursor: pointer; flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    align-self: center;
    transition: var(--transition);
}
.hoy-tl-plan-btn.in-plan { color: var(--gold); }
.hoy-tl-plan-btn:active { transform: scale(.85); }

/* ================================================================
   HOY — Stats bar, dato del día, jornadas previas
================================================================ */
.hoy-stats {
    display: flex; align-items: center; justify-content: space-around;
    margin: 0 14px 12px;
    max-width: 680px; margin-left: auto; margin-right: auto;
    background: var(--card-bg);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: var(--radius);
    padding: 12px 8px;
}
.hoy-stat { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; }
.hs-val { font-family: 'Cinzel', serif; font-size: 1.1rem; color: var(--gold); font-weight: 700; line-height: 1; }
.hs-lbl { font-size: .52rem; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; text-align: center; }
.hoy-stat-sep { width: 1px; height: 30px; background: rgba(255,255,255,0.07); flex-shrink: 0; }

.hoy-dato {
    margin: 0 14px 12px;
    max-width: 680px; margin-left: auto; margin-right: auto;
    display: flex; gap: 12px; align-items: flex-start;
    background: rgba(212,175,55,0.05);
    border: 1px solid rgba(212,175,55,0.18);
    border-radius: var(--radius);
    padding: 13px 15px;
    animation: fadeIn .4s ease;
}
.dato-ico { font-size: 1.4rem; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.dato-body { display: flex; flex-direction: column; gap: 4px; }
.dato-tit { font-size: .65rem; font-weight: 700; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; }
.dato-body p { font-size: .75rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* Grid de jornadas (estado ANTES) */
.hoy-jornadas-prev { max-width: 680px; margin: 0 auto; }
.hoy-jornadagrid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px; padding: 0 14px 16px;
}
.hoy-jornadaitem {
    background: var(--card-bg); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px; padding: 10px 8px;
    display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.hj-day { font-size: .6rem; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.hj-diff { font-size: .78rem; font-weight: 700; color: var(--gold); }

/* ================================================================
   GUÍA — nuevas secciones
================================================================ */

/* Checklist */
.guia-check-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 6px; padding: 0 14px 4px;
    max-width: 680px; margin: 0 auto;
}
@media (min-width: 480px) { .guia-check-grid { grid-template-columns: repeat(3,1fr); } }
.guia-check-item {
    display: flex; flex-direction: column; gap: 4px;
    background: var(--card-bg); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px; padding: 10px 11px;
    font-size: .72rem; color: var(--muted); line-height: 1.4;
}
.guia-check-item i { font-size: .9rem; color: var(--muted); opacity: .5; }
.guia-check-item.essential {
    border-color: rgba(212,175,55,0.25);
    background: rgba(212,175,55,0.04);
}
.guia-check-item.essential i { color: var(--gold); opacity: 1; }
.guia-check-item.essential span { color: var(--text); }
.essential-tag {
    font-size: .5rem; letter-spacing: 1px; color: var(--gold);
    text-transform: uppercase; margin-top: 2px;
}

/* Teléfonos */
.guia-tel-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 6px; padding: 0 14px 4px;
    max-width: 680px; margin: 0 auto;
}
@media (min-width: 480px) { .guia-tel-grid { grid-template-columns: repeat(3,1fr); } }
.guia-tel-card {
    background: var(--card-bg); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px; padding: 11px 12px;
    text-decoration: none; display: flex; flex-direction: column; gap: 5px;
    transition: var(--transition); -webkit-tap-highlight-color: transparent;
}
.guia-tel-card:active { transform: scale(.97); border-color: rgba(212,175,55,0.3); }
.tel-num-row { display: flex; align-items: center; gap: 7px; }
.tel-num-row i { font-size: .85rem; flex-shrink: 0; }
.tel-num { font-size: .9rem; font-weight: 700; color: var(--text); }
.guia-tel-card p { font-size: .65rem; color: var(--muted); margin: 0; line-height: 1.4; }

/* Médica */
.medica-card { border-left: 3px solid #e74c3c !important; }
.medica-hdr { display: flex; align-items: center; gap: 9px; margin-bottom: 3px; }
.medica-hdr i { font-size: .9rem; flex-shrink: 0; }
.medica-hdr strong { font-size: .85rem; }
.medica-dir { font-size: .67rem; color: var(--muted); display: flex; align-items: center; gap: 5px; margin-bottom: 5px; }

/* Comer */
.comer-card { border-left: 3px solid rgba(212,175,55,0.5) !important; }
.comer-hdr { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.comer-hdr i { font-size: .85rem; flex-shrink: 0; }
.comer-hdr strong { font-size: .85rem; }

/* Radio/directo */
.radio-card { border-left: 3px solid rgba(74,144,217,0.5) !important; }
.radio-hdr { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; flex-wrap: wrap; }
.radio-hdr i { font-size: .85rem; flex-shrink: 0; }
.radio-hdr strong { font-size: .85rem; flex: 1; }
.radio-freq {
    font-size: .6rem; font-weight: 700; letter-spacing: 1px;
    color: #4a90d9; background: rgba(74,144,217,0.1);
    border: 1px solid rgba(74,144,217,0.2);
    padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}

/* ================================================================
   POPUP AÑADIR A PANTALLA DE INICIO (A2HS) CON DESENFOQUE
================================================================ */
.a2hs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1999; /* Justo debajo del popup */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.a2hs-overlay[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.a2hs-popup {
    position: fixed;
    bottom: calc(var(--nav-h) + 16px);
    left: 14px;
    right: 14px;
    z-index: 2000;
    display: flex;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.a2hs-popup[aria-hidden="false"] {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}
.a2hs-content {
    background: var(--card-bg);
    border: 1px solid rgba(212,175,55,0.4);
    box-shadow: 0 15px 40px rgba(0,0,0,0.9);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 500px;
    width: 100%;
    position: relative;
}
.a2hs-close {
    position: absolute;
    top: 4px;
    right: 6px;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
}
.a2hs-icon img {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.a2hs-text {
    flex: 1;
    padding-right: 10px;
}
.a2hs-text h3 {
    margin: 0 0 3px 0;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--gold);
}
.a2hs-text p {
    margin: 0;
    font-size: 0.72rem;
    color: rgba(200,200,200,0.9);
    line-height: 1.4;
}
.a2hs-btn {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    white-space: nowrap;
    transition: transform 0.2s;
}
.a2hs-btn:active {
    transform: scale(0.95);
}
.ios-instruction {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.1);
    padding: 2px 5px;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
}

/* Ocultar A2HS en pantallas grandes (PC) */
@media (min-width: 768px) {
    .a2hs-overlay, .a2hs-popup {
        display: none !important;
    }
}