:root {
    --qvip-green: #16a34a;
    --qvip-green-dark: #0f7a37;
    --qvip-blue: #1d4ed8;
    --qvip-ink: #172033;
    --qvip-muted: #667085;
    --qvip-border: #d8dee9;
    --qvip-surface: #ffffff;
    --qvip-soft: #f4f7fb;
    --qvip-danger: #c62828;
    --qvip-warning: #b45309;
    --qvip-shadow: 0 18px 45px rgba(7, 20, 38, .28);
}

html {
    min-height: 100%;
}

body.public-page {
    min-height: 100vh;
    padding-top: 68px;
    display: flex;
    flex-direction: column;
    color: var(--qvip-ink);
    background:
        linear-gradient(rgba(5, 17, 31, .66), rgba(5, 17, 31, .79)),
        url('/pages/images/backgrounds/66788-estadio.jpg') center / cover fixed no-repeat;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    text-underline-offset: .16em;
}

.skip-link {
    position: fixed;
    z-index: 1100;
    top: 8px;
    left: 8px;
    padding: 8px 12px;
    transform: translateY(-150%);
    border-radius: 6px;
    color: #fff;
    background: #111827;
}

.skip-link:focus {
    transform: translateY(0);
}

.public-navbar {
    min-height: 68px;
    background: linear-gradient(to bottom, #343a40, #050505);
    box-shadow: 0 2px 14px rgba(0, 0, 0, .28);
}

.public-navbar .navbar-brand {
    color: #59e463;
    font-size: 1.05rem;
    font-weight: 700;
}

.public-navbar .navbar-brand:hover,
.public-navbar .navbar-brand:focus {
    color: #8df397;
}

.public-navbar .nav-link {
    color: #b8c2d4;
    font-weight: 600;
}

.public-navbar .nav-link:hover,
.public-navbar .nav-link:focus,
.public-navbar .nav-link.active {
    color: #fff;
}

.public-navbar .nav-link.active {
    text-decoration: underline;
    text-decoration-color: var(--qvip-green);
    text-decoration-thickness: 3px;
}

.public-icon {
    margin-right: .3rem;
    color: var(--qvip-green);
}

.public-main {
    width: calc(100% - 28px);
    max-width: 1140px;
    margin: 28px auto 40px;
    flex: 1 0 auto;
}

.public-shell {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 14px;
    background: var(--qvip-surface);
    box-shadow: var(--qvip-shadow);
}

.public-page-heading {
    padding: 30px clamp(20px, 4vw, 42px) 24px;
    border-bottom: 1px solid var(--qvip-border);
    background: linear-gradient(135deg, #fff, #f1f5f9);
    text-align: center;
}

.public-page-heading h1 {
    margin: 0 0 6px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.025em;
}

.public-page-heading p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--qvip-muted);
}

.public-breadcrumb {
    margin: 0;
    padding: 14px clamp(20px, 4vw, 42px);
    border-bottom: 1px solid var(--qvip-border);
    background: var(--qvip-soft);
}

.public-content {
    padding: clamp(20px, 4vw, 42px);
}

.public-grid {
    display: grid;
    grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
    gap: 28px;
}

.public-section-title {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 20px;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 750;
}

.public-empty {
    padding: 30px 22px;
    border: 1px dashed #b8c2d1;
    border-radius: 10px;
    color: var(--qvip-muted);
    background: var(--qvip-soft);
    text-align: center;
}

.public-alert {
    margin-bottom: 20px;
    padding: 14px 18px;
    border: 1px solid #f0b8b8;
    border-radius: 9px;
    color: #861c1c;
    background: #fff0f0;
}

.jornada-list {
    display: grid;
    gap: 7px;
}

.jornada-list a {
    padding: 10px 13px;
    border: 1px solid var(--qvip-border);
    border-radius: 7px;
    color: #1e3a8a;
    background: #fff;
    font-weight: 650;
    text-decoration: none;
}

.jornada-list a:hover,
.jornada-list a:focus {
    color: #fff;
    background: #4265a6;
}

.jornada-list a.active {
    color: #fff;
    border-color: #1e3a8a;
    background: linear-gradient(#31559b, #18356f);
}

.public-table-scroll {
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.public-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.public-table th,
.public-table td {
    padding: 10px 8px;
    border: 1px solid #cbd5e1;
    text-align: center;
    vertical-align: middle;
}

.public-table thead th {
    color: #fff;
    background: linear-gradient(#71808b, #3f4a52);
}

.team-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.outcome-correct {
    border-bottom: 4px solid #13a33b !important;
}

.outcome-incorrect {
    border-bottom: 4px solid #df2d2d !important;
}

.outcome-pending {
    border-bottom: 4px solid #e5a72c !important;
}

.match-list {
    display: grid;
    gap: 14px;
}

.match-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--qvip-border);
    border-radius: 10px;
    background: #fff;
}

.match-team {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
    font-weight: 700;
}

.match-team--visitor {
    justify-content: flex-end;
    text-align: right;
}

.match-team span {
    overflow-wrap: anywhere;
}

.match-score {
    min-width: 76px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #fff;
    background: #263444;
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
}

.match-time {
    grid-column: 1 / -1;
    margin: -4px 0 0;
    color: var(--qvip-muted);
    font-size: .9rem;
    text-align: center;
}

.print-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
}

.print-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
}

.print-card {
    display: flex;
    min-height: 280px;
    padding: 20px;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--qvip-border);
    border-radius: 12px;
    color: var(--qvip-ink);
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .09);
    text-align: center;
    text-decoration: none;
}

.print-card:hover,
.print-card:focus {
    color: var(--qvip-ink);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .16);
}

.print-card img {
    width: 120px;
    height: 160px;
    object-fit: contain;
}

.pdf-frame {
    width: 100%;
    min-height: 70vh;
    border: 1px solid var(--qvip-border);
    border-radius: 8px;
    background: #eef2f6;
}

.pdf-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.legal-layout {
    max-width: 920px;
    margin: auto;
}

.legal-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.legal-copy h2,
.legal-copy h3,
.legal-copy h4 {
    margin-top: 1.5em;
}

.legal-copy p,
.legal-copy li {
    line-height: 1.68;
    overflow-wrap: anywhere;
}

.legal-copy p {
    text-align: justify;
}

[hidden] {
    display: none !important;
}

body.calculadora-page {
    background:
        linear-gradient(rgba(5, 17, 31, .62), rgba(5, 17, 31, .76)),
        url('/pages/images/backgrounds/calculadora-bg.jpg') center / cover fixed no-repeat;
}

.calculator-shell,
.contact-shell {
    width: calc(100% - 28px);
    max-width: 690px;
}

.calculator-results {
    margin-top: 24px;
    padding: 20px;
    border-radius: 10px;
    background: var(--qvip-soft);
}

.contact-form {
    display: grid;
    gap: 20px;
}

.contact-form label {
    margin-bottom: 6px;
    color: #344054;
    font-weight: 700;
}

.contact-help {
    display: block;
    margin-top: 6px;
    color: var(--qvip-muted);
    font-size: .88rem;
}

.contact-consent {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}

.contact-consent input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--qvip-green);
}

.contact-consent .fv-error {
    order: 3;
    flex-basis: calc(100% - 28px);
    margin-top: 0;
    margin-left: 28px;
}

.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contact-noscript {
    color: var(--qvip-danger);
    font-weight: 700;
}

.public-footer {
    flex: 0 0 auto;
    padding: 26px 0;
    color: #dbe5f1;
    background: linear-gradient(to top, #102936, #1d3d4c, #111c24);
}

.public-footer p {
    margin: 12px 0 0;
    text-align: center;
}

.public-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    justify-content: center;
}

.public-footer a {
    color: #dbe5f1;
}

@media (max-width: 991.98px) {
    .public-grid {
        grid-template-columns: 1fr;
    }

    .jornada-list {
        grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    }
}

@media (max-width: 575.98px) {
    body.public-page {
        padding-top: 62px;
        background-attachment: scroll;
    }

    .public-main {
        width: calc(100% - 16px);
        margin-top: 16px;
    }

    .public-shell {
        border-radius: 10px;
    }

    .public-content {
        padding: 18px;
    }

    .pdf-viewer-page .pdf-toolbar {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .pdf-viewer-page .pdf-toolbar .btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 8px 4px;
        font-size: clamp(.75rem, 3.6vw, 1rem);
        line-height: 1.25;
        white-space: nowrap;
    }

    .public-section-title {
        align-items: stretch;
        flex-direction: column;
    }

    .match-card {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 8px;
        padding: 12px 8px;
    }

    .match-team {
        flex-direction: column;
        text-align: center;
    }

    .match-team--visitor {
        flex-direction: column-reverse;
    }

    .team-logo {
        width: 36px;
        height: 36px;
    }

    .legal-copy p {
        text-align: left;
    }
}
