/**
 * Precio del Día — stadium chrome + game + dinero teaser.
 */
:root {
    --fz-ink: #202124;
    --fz-muted: #5f6368;
    --fz-line: #e5e7eb;
    --fz-room: #ffffff;
    --hub-accent: #0f766e;
    --ps-teal: #0f766e;
    --ps-teal-deep: #134e4a;
}

body.precio-hub {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f4f6f8;
    color: var(--fz-ink);
    font-family: 'Google Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.precio-hub.dark-mode {
    --fz-ink: #e8eaed;
    --fz-muted: #9aa0a6;
    --fz-line: #3c4043;
    --fz-room: #1a1c20;
    background: #12141a;
    color: #e8eaed;
}
body.precio-hub > .apt27h-header {
    position: relative;
    z-index: 3;
    flex-shrink: 0;
}

.fz-stadium {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: min(1120px, calc(100% - 2.3rem));
    max-width: 1120px;
    margin: 0.75rem auto 0;
    --fz-stadium-h: min(22vh, 180px);
    min-height: var(--fz-stadium-h);
    height: var(--fz-stadium-h);
    overflow: hidden;
    background: #134e4a;
    border-radius: 14px;
}
.fz-stadium__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.fz-room {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    background: var(--fz-room);
    color: var(--fz-ink);
    padding: 1.35rem 1.15rem 1.75rem;
    margin: 0 0 1.5rem;
    width: 100%;
}
.fz-room__inner { max-width: 1120px; margin: 0 auto; }
.fz-room__head {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 1rem 2rem;
    align-items: start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--fz-line);
}
.fz-room__kicker {
    margin: 0 0 0.25rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hub-accent);
}
.fz-room__title {
    margin: 0;
    font-size: clamp(1.25rem, 2.8vw, 1.65rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--fz-ink);
    line-height: 1.2;
    font-family: Montserrat, 'Segoe UI', system-ui, sans-serif;
}
.fz-room__sub {
    margin: 0.3rem 0 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--hub-accent);
}
.fz-room__blurb {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--fz-ink);
    font-weight: 500;
}

.hub-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
    align-items: start;
}
@media (min-width: 960px) {
    .hub-shell {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 1.35rem;
    }
}
.hub-main { min-width: 0; }
.hub-rail {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}
@media (min-width: 960px) {
    .hub-rail { position: sticky; top: 72px; }
}
.hub-rail__card {
    background: #fff;
    border: 1px solid #111827;
    border-radius: 12px;
    padding: 0.9rem 1rem;
}
body.precio-hub.dark-mode .hub-rail__card {
    background: #202124;
    border-color: #3c4043;
}
.hub-rail__label {
    margin: 0 0 0.55rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hub-accent);
}
.hub-rail__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.hub-rail__link {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-decoration: none !important;
    color: inherit;
    border: 1px solid var(--fz-line);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    background: #fff;
}
body.precio-hub.dark-mode .hub-rail__link {
    background: #292a2d;
    border-color: #3c4043;
}
.hub-rail__link:hover {
    border-color: var(--hub-accent);
    background: #f0fdfa;
}
body.precio-hub.dark-mode .hub-rail__link:hover { background: #3c4043; }
.hub-rail__link-title { font-size: 0.88rem; font-weight: 800; }
.hub-rail__link-desc {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--fz-muted);
    line-height: 1.35;
}
.hub-rail__badge {
    display: inline-block;
    margin-top: 0.2rem;
    align-self: flex-start;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--hub-accent) 14%, #fff);
    color: var(--hub-accent);
}

.ps-how {
    margin: 0 0 1.25rem;
    max-width: 520px;
    width: 100%;
    text-align: left;
}
.ps-how__title {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--fz-ink);
    letter-spacing: -0.01em;
}
.ps-how__box {
    background: #f8f9fa;
    border: 1px solid var(--fz-line);
    border-radius: 14px;
    padding: 1rem 1.1rem 1.05rem;
}
body.precio-hub.dark-mode .ps-how__box {
    background: #292a2d;
    border-color: #3c4043;
}
.ps-how__lead {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--fz-muted);
    font-weight: 500;
}
.ps-how__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.ps-how__list li {
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr);
    gap: 0.55rem 0.65rem;
    align-items: start;
}
.ps-how__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--ps-teal) 14%, #fff);
    color: var(--ps-teal);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}
body.precio-hub.dark-mode .ps-how__num {
    background: color-mix(in srgb, var(--ps-teal) 28%, #202124);
}
.ps-how__step-title {
    margin: 0 0 0.15rem;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--fz-ink);
}
.ps-how__step-desc {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--fz-muted);
    font-weight: 500;
}
.ps-how__foot {
    margin: 0.85rem 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #166534;
    line-height: 1.4;
}
body.precio-hub.dark-mode .ps-how__foot { color: #86efac; }

.precio-panel {
    background: #fff;
    border: 1px solid var(--fz-line);
    border-radius: 14px;
    padding: 1.1rem 1rem 1.15rem;
    max-width: 520px;
    margin: 0 auto;
}
body.precio-hub.dark-mode .precio-panel {
    background: #1e1e1e;
    border-color: #333;
}
.precio-panel__num {
    margin: 0 0 0.85rem;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 800;
    font-family: Montserrat, 'Segoe UI', system-ui, sans-serif;
}
.precio-card__img-wrap {
    display: flex;
    justify-content: center;
    margin: 0 0 0.75rem;
}
.precio-card__img {
    max-height: 320px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}
.precio-card__name {
    margin: 0;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
}
.precio-card__place {
    margin: 0.25rem 0 0;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--fz-muted);
}
.precio-card__cat {
    display: inline-block;
    margin: 0.55rem auto 0;
    padding: 2px 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 6px;
    background: color-mix(in srgb, var(--hub-accent) 14%, #fff);
    color: var(--hub-accent);
}
.precio-card { text-align: center; }

.precio-guess {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0 0.5rem;
    align-items: stretch;
}
.precio-guess__affix {
    display: inline-flex;
    align-items: center;
    padding: 0 0.65rem;
    font-weight: 800;
    font-size: 0.88rem;
    background: #f8f9fa;
    border: 1px solid var(--fz-line);
    border-radius: 8px 0 0 8px;
    margin-right: -0.5rem;
    border-right: 0;
}
body.precio-hub.dark-mode .precio-guess__affix {
    background: #292a2d;
    border-color: #3c4043;
}
.precio-guess__input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--fz-line);
    border-radius: 0 8px 8px 0;
    padding: 0.65rem 0.75rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
}
body.precio-hub.dark-mode .precio-guess__input {
    background: #292a2d;
    border-color: #3c4043;
    color: #e8eaed;
}
.precio-guess__btn {
    border: 0;
    border-radius: 8px;
    padding: 0 1rem;
    background: var(--ps-teal);
    color: #fff;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}
.precio-guess__btn:hover { background: var(--ps-teal-deep); }
.precio-guess__btn:disabled { opacity: 0.55; cursor: not-allowed; }

.precio-counter {
    margin: 0 0 0.65rem;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--fz-muted);
}
.precio-msg {
    min-height: 1.2rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #b91c1c;
    margin: 0 0 0.5rem;
}
body.precio-hub.dark-mode .precio-msg { color: #fca5a5; }

.precio-history {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.precio-history__row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 0.45rem;
    align-items: center;
    padding: 0.5rem 0.65rem;
    border: 1px solid var(--fz-line);
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
}
body.precio-hub.dark-mode .precio-history__row { border-color: #3c4043; }
.precio-history__arrow { font-size: 1rem; }
.precio-history__heat { font-size: 1.1rem; }
.precio-history__hint { color: var(--fz-muted); font-weight: 600; font-size: 0.8rem; }

.precio-reveal {
    display: none;
    margin-top: 0.85rem;
    padding: 0.9rem;
    border-radius: 12px;
    border: 1px solid var(--fz-line);
    text-align: center;
}
.precio-reveal.is-on { display: block; }
.precio-reveal h2 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
}
.precio-reveal__price {
    margin: 0.35rem 0 0.55rem;
    font-size: 1.35rem;
    font-weight: 800;
}
.precio-reveal__src {
    margin: 0 0 0.55rem;
    font-size: 0.82rem;
}
.precio-reveal__blurb {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    line-height: 1.5;
    text-align: left;
}
.precio-share {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0.5rem 0;
}
.precio-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 8px;
    padding: 7px 12px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    background: var(--ps-teal);
}
.precio-btn:hover { background: var(--ps-teal-deep); }
.precio-btn--ghost {
    background: #fff;
    border: 1px solid var(--fz-line);
    color: var(--fz-ink);
}
body.precio-hub.dark-mode .precio-btn--ghost {
    background: #292a2d;
    border-color: #3c4043;
    color: #e8eaed;
}
.precio-streak {
    margin: 0.55rem 0 0;
    font-size: 0.88rem;
    font-weight: 700;
}
.precio-countdown {
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--fz-muted);
}

.precio-empty {
    display: none;
    text-align: center;
    padding: 1rem 0.5rem;
}
.precio-empty.is-on { display: block; }
.precio-empty h2 { margin: 0 0 0.4rem; font-size: 1.1rem; }

.precio-toast {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: #111827;
    color: #fff;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    z-index: 40;
    transition: transform 0.2s ease;
}
.precio-toast.is-on { transform: translateX(-50%) translateY(0); }

@media (max-width: 560px) {
    .fz-stadium {
        --fz-stadium-h: min(16vh, 120px);
        min-height: var(--fz-stadium-h);
        height: var(--fz-stadium-h);
    }
    .fz-room {
        margin-bottom: 1.25rem;
        padding: 1.1rem 0.9rem 1.5rem;
    }
    .fz-room__head { grid-template-columns: 1fr; }
}

body.precio-hub .mio-footer,
body.precio-hub .apt27-footer {
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    background: #fff !important;
    border-top: 1px solid var(--fz-line) !important;
    margin-top: 0;
}
body.precio-hub.dark-mode .mio-footer,
body.precio-hub.dark-mode .apt27-footer {
    background: #1a1c20 !important;
}

/* dinero.php teaser */
.precio-dinero {
    margin: 1.5rem 0 0;
}
.precio-dinero__card {
    display: flex;
    gap: 1rem;
    align-items: center;
    text-decoration: none !important;
    color: inherit;
    background: #fff;
    border: 1px solid #d1e7dd;
    border-radius: 12px;
    padding: 0.85rem 1rem;
}
body.dinero-hub.dark-mode .precio-dinero__card {
    background: #1a1c20;
    border-color: #3c4043;
}
.precio-dinero__thumb {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border-radius: 10px;
    background: #e8eaed;
}
.precio-dinero__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.precio-dinero__thumb.is-blurred img {
    filter: blur(10px);
    transform: scale(1.12);
}
.precio-dinero__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}
.precio-dinero__cta {
    font-size: 0.85rem;
    font-weight: 800;
    color: #0f766e;
}
