@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Barlow:wght@400;500;600;700;800&display=swap');

:root {
    --bg: #0A0F1E;
    --bg-2: #0F1530;
    --panel: #141B33;
    --panel-2: #1A2240;
    --text: #E8ECF8;
    --muted: #8B95B5;
    --line: #232C4D;
    --line-strong: #2E3A5F;
    --accent: #27F5EE;
    --accent-2: #E3001B;
    --accent-3: #FF6B7A;
    --green: #4ADE80;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
    --radius: 18px;
    --radius-sm: 12px;
    --max: 1050px;
}

body.tema-claro {
    --bg: #FCFBFA;
    --bg-2: #f4f7f6;
    --panel: #ffffff;
    --panel-2: #f4f7f6;
    --text: #06367A;
    --muted: #666;
    --line: #e0e0e0;
    --line-strong: #cfd6df;
    --accent: #06367A;
    --accent-2: #E3001B;
    --accent-3: #C6284B;
    --green: #087f4b;
    --shadow: 0 18px 45px rgba(6, 54, 122, 0.12);
}

/* tema-noche.css aplica el fondo oscuro a body:has(.tn) con !important. En
   esta página respetamos el tema claro también en el marco (header/footer),
   no solo en las tarjetas, para que el texto oscuro siga siendo legible. */
body.tema-claro:has(.tn) {
    background: var(--bg) !important;
}
body.tema-claro .tn {
    background: var(--bg);
    color: var(--text);
}
body.tema-claro:has(.tn) header,
body.tema-claro:has(.tn) .navegacion,
body.tema-claro:has(.tn) .barra-movil {
    background: var(--bg-2) !important;
}
body.tema-claro:has(.tn) header {
    box-shadow: 0 1px 0 var(--line) !important;
}
body.tema-claro:has(.tn) .menu > li > a,
body.tema-claro:has(.tn) #menu-cerrar {
    color: var(--text) !important;
}
body.tema-claro:has(.tn) .menu li a:hover {
    color: var(--accent-2) !important;
}
body.tema-claro:has(.tn) .lang-btn,
body.tema-claro:has(.tn) #menu-toggle {
    color: var(--accent) !important;
    border-color: var(--line-strong);
}
body.tema-claro:has(.tn) footer {
    background: var(--bg-2) !important;
    border-top: 1px solid var(--line) !important;
}
body.tema-claro:has(.tn) footer a,
body.tema-claro:has(.tn) footer div {
    color: var(--muted) !important;
}

/* El selector de liga va posicionado en la esquina superior derecha. En esta
   página el menú tiene una entrada más y, a anchos de escritorio, se solapaba
   con ese selector; le damos aire superior solo aquí. */
@media (min-width: 901px) {
    body:has(.pr-wrap) .navegacion {
        padding-top: 58px;
    }
}

.pr-wrap,
.pr-wrap *,
body.pr-page,
body.pr-page * {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.pr-page {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--bg);
    font-family: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.pr-wrap a {
    color: inherit;
    text-decoration: none;
}

.pr-wrap button,
.pr-wrap select {
    font: inherit;
}

.pr-top {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}

body.tema-claro .pr-top {
    background: var(--bg-2);
}

.pr-top-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 12px 22px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.pr-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.pr-brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #06101f;
    background: linear-gradient(135deg, var(--accent), #8df9f5);
    box-shadow: 0 8px 20px rgba(39, 245, 238, 0.22);
}

body.tema-claro .pr-brand-mark {
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), #35c7c1);
}

.pr-brand-mark svg {
    width: 22px;
    height: 22px;
}

.pr-brand-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--accent);
    font-family: "Barlow", sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pr-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.pr-nav a {
    padding: 8px 10px;
    border-radius: 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.18s ease, background 0.18s ease;
}

.pr-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

body.tema-claro .pr-nav a:hover {
    background: rgba(6, 54, 122, 0.06);
}

.pr-nav a.on {
    color: var(--accent);
    background: rgba(39, 245, 238, 0.09);
}

.pr-tools {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pr-lang {
    min-width: 34px;
    padding: 7px 8px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.06em;
}

.pr-lang:hover,
.pr-lang.on {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

body.tema-claro .pr-lang:hover,
body.tema-claro .pr-lang.on {
    background: rgba(6, 54, 122, 0.07);
}

.pr-icon-btn {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    background: transparent;
    cursor: pointer;
}

.pr-icon-btn:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.06);
}

body.tema-claro .pr-icon-btn:hover {
    background: rgba(6, 54, 122, 0.06);
}

.pr-theme-light {
    display: none;
}

body.tema-claro .pr-theme-dark {
    display: none;
}

body.tema-claro .pr-theme-light {
    display: block;
}

.pr-wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 34px 22px 70px;
    color: var(--text);
}

.pr-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        radial-gradient(600px 260px at 15% 0%, rgba(39, 245, 238, 0.14), transparent 65%),
        radial-gradient(500px 240px at 100% 0%, rgba(248, 205, 81, 0.1), transparent 60%),
        linear-gradient(135deg, var(--panel), var(--panel-2));
    box-shadow: var(--shadow);
}

.pr-hero::after {
    content: "";
    position: absolute;
    right: -100px;
    bottom: -140px;
    width: 360px;
    height: 360px;
    border: 1px solid var(--line);
    border-radius: 50%;
    opacity: 0.5;
    pointer-events: none;
}

.pr-hero-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pr-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(39, 245, 238, 0.13);
}

body.tema-claro .pr-dot {
    box-shadow: 0 0 0 4px rgba(6, 54, 122, 0.12);
}

.pr-demo-badge {
    margin-left: 4px;
    padding: 3px 9px;
    border: 1px solid rgba(227, 0, 27, 0.35);
    border-radius: 999px;
    color: var(--accent-2);
    background: rgba(227, 0, 27, 0.09);
    font-size: 10px;
    letter-spacing: 0.12em;
}

.pr-hero h1 {
    max-width: 760px;
    margin: 16px 0 8px;
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 0.95;
    letter-spacing: -0.015em;
    text-transform: uppercase;
}

.pr-hero h1 span {
    color: var(--accent);
}

.pr-sub {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.pr-controls {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.pr-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pr-field > span,
.pr-matchday-label > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pr-field select {
    min-width: 210px;
    padding: 10px 34px 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    color: var(--text);
    background: var(--panel);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.pr-matchday {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.14);
}

body.tema-claro .pr-matchday {
    background: rgba(6, 54, 122, 0.04);
}

.pr-step {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--muted);
}

.pr-step:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
}

body.tema-claro .pr-step:hover {
    background: rgba(6, 54, 122, 0.07);
}

.pr-step svg {
    transform: rotate(180deg);
}

.pr-step-next svg {
    transform: none;
}

.pr-matchday-label {
    min-width: 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.pr-matchday-label strong {
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: 26px;
    font-weight: 800;
}

.pr-mode {
    margin-left: auto;
}

.pr-mode-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.pr-mode-link:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pr-profile {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.14);
}

body.tema-claro .pr-profile {
    background: rgba(6, 54, 122, 0.04);
}

.pr-profile-label {
    padding: 0 7px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pr-profile-link {
    padding: 7px 9px;
    border: 0;
    border-radius: 8px;
    color: var(--muted);
    background: transparent;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.pr-profile-link:hover {
    color: var(--text);
}

.pr-profile-link.on {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

body.tema-claro .pr-profile-link.on {
    background: rgba(6, 54, 122, 0.08);
}

.pr-criteria {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.pr-criteria > span:first-child {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pr-chip {
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    font-size: 11px;
    font-weight: 600;
}

body.tema-claro .pr-chip {
    background: rgba(6, 54, 122, 0.04);
}

.pr-note {
    margin-top: 18px;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    font-size: 13px;
}

.pr-note-demo {
    border-color: rgba(227, 0, 27, 0.28);
    background: rgba(227, 0, 27, 0.06);
}

.pr-note-demo strong {
    color: var(--accent-2);
}

.pr-section,
.pr-method,
.pr-debug {
    margin-top: 38px;
}

.pr-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.pr-section-head h2 {
    margin: 0;
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1;
    text-transform: uppercase;
}

.pr-section-head p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.pr-debug-link {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.pr-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.pr-grid[hidden] {
    display: none;
}

.pr-card {
    --p: 90;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.pr-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
}

.pr-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(39, 245, 238, 0.06), transparent 35%);
    pointer-events: none;
}

.pr-card-top {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pr-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 26px;
    padding: 0 8px;
    border-radius: 8px;
    color: #06101f;
    background: var(--accent);
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: 16px;
    font-weight: 800;
}

.pr-market {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pr-combo-count {
    padding: 3px 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pr-conf {
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.pr-conf-muy_alta {
    color: var(--green);
    background: rgba(60, 224, 138, 0.1);
}

.pr-conf-alta {
    color: var(--accent);
    background: rgba(39, 245, 238, 0.1);
}

.pr-conf-media_alta {
    color: var(--accent-2);
    background: rgba(248, 205, 81, 0.1);
}

.pr-conf-media {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.06);
}

body.tema-claro .pr-conf-media {
    background: rgba(6, 54, 122, 0.06);
}

.pr-match {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 18px;
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
}

.pr-vs {
    color: var(--muted);
    font-family: "Barlow", sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pr-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
}

.pr-meta span + span::before {
    content: "·";
    margin-right: 8px;
    opacity: 0.55;
}

.pr-pick {
    position: relative;
    margin-top: 16px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.13);
}

body.tema-claro .pr-pick {
    background: rgba(6, 54, 122, 0.04);
}

.pr-label {
    display: block;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.pr-pick strong {
    display: block;
    margin-top: 2px;
    color: var(--text);
    font-size: 18px;
    line-height: 1.2;
}

.pr-pick-combo {
    padding-bottom: 8px;
}

.pr-legs {
    list-style: none;
    margin: 7px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pr-legs li {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 5px 0;
    border-top: 1px solid var(--line);
}

.pr-legs li:first-child {
    border-top: 0;
    padding-top: 0;
}

.pr-leg-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--accent);
}

.pr-leg-text {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

.pr-leg-prob {
    flex: 0 0 auto;
    color: var(--accent);
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: 16px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.pr-combo-note {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
}

.pr-prob {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 16px;
}

.pr-ring {
    position: relative;
    width: 76px;
    height: 76px;
    flex: 0 0 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0);
}

body.tema-claro .pr-ring {
    background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(6, 54, 122, 0.08) 0);
}

.pr-ring::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: var(--panel);
}

.pr-ring span {
    position: relative;
    z-index: 1;
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pr-prob-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pr-sample {
    color: var(--muted);
    font-size: 11px;
}

.pr-detail {
    position: relative;
    margin: auto 0 0;
    padding-top: 16px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.pr-empty {
    margin-top: 24px;
    padding: 34px 26px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.025);
    text-align: center;
}

body.tema-claro .pr-empty {
    background: rgba(255, 255, 255, 0.6);
}

.pr-empty h2 {
    margin: 0 0 8px;
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: 30px;
    text-transform: uppercase;
}

.pr-empty p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 14px;
}

.pr-empty-diag {
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
}

.pr-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    padding: 10px 16px;
    border-radius: 10px;
    color: #06101f;
    background: var(--accent);
    font-size: 13px;
    font-weight: 800;
}

body.tema-claro .pr-btn {
    color: #fff;
}

.pr-debug {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.025);
}

body.tema-claro .pr-debug {
    background: rgba(255, 255, 255, 0.6);
}

.pr-debug-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.pr-debug-grid > div {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
}

.pr-debug-grid strong {
    display: block;
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: 28px;
    line-height: 1;
}

.pr-debug-grid span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.3;
}

.pr-method-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pr-method-grid article {
    position: relative;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}

.pr-method-num {
    color: var(--accent);
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    opacity: 0.8;
}

.pr-method-grid h3 {
    margin: 10px 0 6px;
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: 22px;
    text-transform: uppercase;
}

.pr-method-grid p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.pr-disclaimer {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-top: 38px;
    padding: 20px;
    border: 1px solid rgba(255, 107, 138, 0.28);
    border-radius: var(--radius);
    background: rgba(255, 107, 138, 0.06);
}

.pr-disclaimer-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 107, 138, 0.4);
    border-radius: 50%;
    color: var(--accent-3);
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: 17px;
    font-weight: 800;
}

.pr-disclaimer h2 {
    margin: 0 0 4px;
    font-family: "Barlow Condensed", "Barlow", sans-serif;
    font-size: 22px;
    text-transform: uppercase;
}

.pr-disclaimer p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.pr-footer {
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.18);
}

body.tema-claro .pr-footer {
    background: rgba(6, 54, 122, 0.03);
}

.pr-footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
}

.pr-footer-inner div {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.pr-footer-inner a:hover {
    color: var(--text);
}

@media (max-width: 1080px) {
    .pr-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pr-debug-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .pr-top-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .pr-nav {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        min-width: 0;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .pr-nav::-webkit-scrollbar {
        display: none;
    }

    .pr-tools {
        margin-left: auto;
    }

    .pr-mode {
        margin-left: 0;
    }
}

/* ==========================================================================
   Integración visual con V.2
   La página usa la cabecera y el pie reales de V.2. Estas reglas adaptan las
   tarjetas actuales al lenguaje visual del resto de la web: fondos planos,
   bordes finos, radio contenido y acento superior en las tarjetas.
   ========================================================================== */

.pr-v2 {
    padding-top: 24px;
}

.pr-v2 .pr-hero {
    border-radius: 12px;
    border-top: 3px solid var(--accent-2);
    background: var(--panel);
    box-shadow: none;
}

.pr-v2 .pr-hero::after {
    display: none;
}

.pr-v2 .pr-hero h1 {
    font-size: clamp(30px, 4.4vw, 48px);
}

.pr-v2 .pr-card {
    border-radius: 12px;
    background: var(--panel);
    box-shadow: none;
    border-top: 3px solid var(--accent);
}

.pr-v2 .pr-card::before {
    display: none;
}

.pr-v2 .pr-card:hover {
    transform: none;
    border-color: var(--accent);
}

.pr-v2 .pr-method-grid article,
.pr-v2 .pr-empty {
    border-radius: 12px;
}

.pr-v2 .pr-disclaimer {
    border-radius: 12px;
    border-color: rgba(227, 0, 27, 0.28);
    background: rgba(227, 0, 27, 0.06);
}

.pr-v2 .pr-disclaimer-icon {
    border-color: rgba(227, 0, 27, 0.4);
    color: var(--accent-2);
}

.pr-v2 .pr-profile {
    gap: 4px;
}

.pr-v2 .pr-profile-link {
    padding: 7px 10px;
    font-size: 10.5px;
}

body.tema-claro .pr-rank {
    color: #fff;
}

body.tema-claro .pr-conf-alta {
    background: rgba(6, 54, 122, 0.08);
}

body.tema-claro .pr-conf-muy_alta {
    background: rgba(8, 127, 75, 0.08);
}

body.tema-claro .pr-conf-media_alta {
    color: var(--accent-2);
    background: rgba(227, 0, 27, 0.08);
}

@media (max-width: 520px) {
    .pr-v2 .pr-profile {
        flex-wrap: wrap;
    }

    .pr-v2 .pr-profile-label {
        width: 100%;
    }

    .pr-v2 .pr-profile-link {
        flex: 1 1 30%;
        padding: 7px 6px;
        font-size: 10px;
        line-height: 1.2;
        white-space: normal;
    }
}

@media (max-width: 760px) {
    .pr-wrap {
        padding: 22px 14px 50px;
    }

    .pr-top-inner {
        padding: 10px 14px;
    }

    .pr-brand {
        font-size: 18px;
    }

    .pr-brand-badge {
        display: none;
    }

    .pr-hero {
        border-radius: 20px;
    }

    .pr-hero h1 {
        font-size: clamp(34px, 12vw, 52px);
    }

    .pr-controls {
        align-items: stretch;
    }

    .pr-field,
    .pr-field select {
        width: 100%;
    }

    .pr-matchday {
        width: 100%;
        justify-content: space-between;
    }

    .pr-profile {
        width: 100%;
    }

    .pr-profile-link {
        flex: 1;
        text-align: center;
    }

    .pr-mode {
        width: 100%;
    }

    .pr-mode-link {
        width: 100%;
        justify-content: center;
    }

    .pr-grid,
    .pr-method-grid,
    .pr-debug-grid {
        grid-template-columns: 1fr;
    }

    .pr-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .pr-disclaimer {
        flex-direction: column;
    }

    .pr-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
