/* 03/12/2026 - Resultados de Bonoloto, /bonoloto-resultados/ (comprobar.php) y .../dia-dd-mm-aaaa/ (detalle.php), y de Euromillones, /euromillones-resultados/ (comprobar.php) y .../dia-dd-mm-aaaa/ (detalle.php).
   04/12/2026: tambien La Primitiva, /primitiva-resultados/ y .../dia-dd-mm-aaaa/.
   Se carga despues de resultados-nuevo.css, de donde salen colores, botones, barra lateral y tipografia. */
body .res .res-parrafos { max-width: 900px; font-size: 17px; line-height: 1.8; }
body .res .res-parrafos p + p { margin-top: 12px; }
body .res .res-seccion > .res-cab h2 { margin: 0; }

/* ---- Resultado y bote ---- */
body .res .res-juego { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
body .res .res-panel { overflow: hidden; border: 1px solid var(--linea); border-radius: 16px; background: #fff; box-shadow: 0 6px 24px #0b3c8c08; }
body .res .res-panel h2 { font-size: 22px; line-height: 1.35; }
body .res .res-panel h2::before { content: none; }
body .res .res-panel-cab { padding: 20px 24px; background: var(--palido); }
body .res .res-panel-cab p { margin-top: 4px; font-size: 15px; color: var(--gris); }
body .res .res-panel-azul { background: var(--azul); }
body .res .res-panel-azul h2 { font-size: 18px; text-align: center; color: #fff; }
body .res .res-panel-bolas { padding: 26px 12px; text-align: center; }
body .res .res-panel-bolas > p:first-child { margin-bottom: 14px; color: var(--azul); }
body .res .res-panel-premios { padding: 20px 22px 24px; border-top: 1px solid var(--linea); scroll-margin-top: 70px; }

body .res .res-bolillas { display: flex; justify-content: center; gap: 8px; }
body .res .res-bolillas span, body .res .res-extras b { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
body .res .res-bolillas span { width: 34px; height: 34px; background: var(--azul); font-size: 16px; color: #fff; }
body .res .res-panel-bolas .res-bolillas span { width: 48px; height: 48px; font-size: 20px; }
body .res .res-extras { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 14px; font-size: 14px; color: var(--azul); }
body .res .res-extras b { width: 30px; height: 30px; margin-left: 4px; border: 1px solid #c9d5ea; background: #e6edf8; color: var(--azul); }

/* Euromillones: 5 numeros y 2 estrellas */
body .res .res-bolillas .res-estrella { background: var(--amarillo); color: var(--marino); }
body .res .res-bolillas span:not(.res-estrella) + .res-estrella { margin-left: 6px; }
body .res .res-leyenda { display: flex; justify-content: center; gap: 16px; margin-top: 12px; font-size: 13px; color: var(--azul); }
body .res .res-leyenda span { display: flex; align-items: center; gap: 5px; }
body .res .res-leyenda span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--azul); }
body .res .res-leyenda span + span::before { background: var(--amarillo); }
body .res .res-millon { margin-top: 12px; font-size: 15px; text-align: center; color: var(--gris); }
body .res .res-millon b { margin-left: 6px; font-weight: 700; letter-spacing: .03em; color: var(--azul); }
body .res .res-tabla-euro thead th { padding-top: 6px; padding-bottom: 6px; vertical-align: middle; }
body .res .res-tabla-euro thead th[colspan] { padding-bottom: 0; text-align: center; }
body .res .res-tabla-euro thead tr + tr th:nth-child(n) { text-align: right; font-weight: 500; }
body .res .res-tabla-euro tbody th { white-space: nowrap; }
body .res .res-tabla-euro tbody th, body .res .res-tabla-euro tbody td { padding-top: 8px; padding-bottom: 8px; }
body .res .res-panel-enlace { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
body .res .res-panel-enlace:hover { text-decoration: underline; }
body .res .res-panel-enlace span { font-size: 22px; }

body .res .res-tabla { width: 100%; margin: 14px 0 0; overflow: hidden; border: 1px solid var(--linea); border-radius: 10px; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.5; }
body .res .res-tabla th, body .res .res-tabla td { width: auto; height: auto; padding: 11px 12px; border: 0; background: none; font-family: inherit; font-size: inherit; font-weight: 400; text-align: right; color: #26354b; }
body .res .res-tabla th:first-child { text-align: left; }
body .res .res-tabla thead th { background: var(--azul); font-weight: 700; color: #fff; }
body .res .res-tabla td { font-variant-numeric: tabular-nums; white-space: nowrap; }
body .res .res-tabla tbody tr:nth-child(even) { background: var(--palido); }

body .res .res-bote { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 290px; padding: 30px 20px; border-radius: 16px; background: linear-gradient(135deg, #0b3c8c, #08265b); text-align: center; color: #fff; }
body .res .res-bote-marca { display: flex; align-items: center; gap: 10px; font-size: 25px; font-weight: 700; line-height: 1.2; }
body .res .res-bote-marca img { flex: none; width: 42px; height: 42px; filter: brightness(0) invert(1); }   /* el icono azul de "Botes destacados", en blanco como en el menu */
body .res .res-bote-fecha { font-size: 15px; color: #dce6f7; }
body .res .res-bote-importe { width: 100%; padding-top: 16px; border-top: 1px solid #ffffff35; }
body .res .res-bote-importe strong { display: block; font-size: clamp(34px, 4vw, 50px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; white-space: nowrap; }
body .res .res-bote .res-btn { width: 100%; max-width: 290px; }

/* Primitiva: Joker */
body .res .res-joker { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; margin: 16px auto 0; font-size: 14px; font-weight: 600; color: var(--azul); }
body .res .res-joker > span { display: flex; gap: 4px; }
body .res .res-joker b { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 36px; border: 1px solid #c9d5ea; border-radius: 6px; background: #fff; font-size: 19px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
body .res .res-panel-bolas .res-joker { max-width: 420px; padding: 14px 10px; border: 1px solid var(--linea); border-radius: 10px; background: var(--palido); }
body .res .res-entrada .res-combinacion p.res-joker { margin: 14px 0 0; font-size: 14px; }
body .res .res-entrada .res-combinacion > p:first-child { margin-top: 0; }
body .res .res-sorteo-juego .res-joker b { width: 25px; height: 30px; font-size: 16px; }
body .res .res-panel-premios .res-nota { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--gris); }

/* ---- Resultados anteriores ---- */
body .res .res-fecha { display: grid; grid-template-columns: auto auto; gap: 4px 10px; }
body .res .res-fecha label { grid-column: 1 / -1; margin: 0; font-family: inherit; font-size: 14px; font-weight: 600; color: #304967; }
body .res .res-fecha input, body .res .res-fecha button { width: auto; height: 48px; margin: 0; padding: 0 14px; border: 1px solid #9aaacb; border-radius: 10px; background: #fff; font-family: inherit; font-size: 16px; color: var(--marino); }
body .res .res-fecha button { border-color: var(--azul); font-weight: 600; color: var(--azul); cursor: pointer; }
body .res .res-fecha button:hover { background: var(--palido); }
body .res .res-sorteo-juego { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--linea); border-radius: 12px; background: #fff; }
body .res .res-sorteo-juego:hover { border-color: #94b3d3; }
body .res .res-sorteo-juego h3 { padding: 14px 16px; border-bottom: 1px solid var(--linea); background: var(--palido); font-size: 16px; line-height: 1.4; }
body .res .res-sorteo-juego > div { padding: 20px 10px 16px; }
body .res .res-sorteo-juego > a { display: flex; align-items: center; justify-content: space-between; min-height: 50px; margin: auto 16px 0; border-top: 1px solid var(--linea); font-size: 14px; font-weight: 600; text-decoration: none; }
body .res .res-sorteo-juego > a:hover { text-decoration: underline; }
body .res .res-sorteo-juego > a span { font-size: 22px; }

/* ---- Directo: linea de tiempo ---- */
body .res .res-tiempo .res-entrada { position: relative; display: block; margin-left: 8px; padding: 0 0 28px 28px; border: 0; border-left: 2px solid var(--linea); scroll-margin-top: 84px; }
body .res .res-tiempo .res-entrada:last-child { padding-bottom: 0; border-left-color: transparent; }
body .res .res-tiempo .res-entrada::before { content: ""; position: absolute; top: 9px; left: -8px; width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; background: var(--azul); box-shadow: 0 0 0 1px #b9cee4; }
body .res .res-tiempo .res-hora { display: inline-block; margin-bottom: 10px; padding: 4px 11px; background: #e6edf8; color: var(--azul); }
body .res .res-tiempo .res-entrada-txt { padding-bottom: 24px; border-bottom: 1px solid var(--linea); }
body .res .res-tiempo .res-entrada:first-child .res-entrada-txt { padding: 16px 18px; border: 1px solid var(--linea); border-radius: 10px; background: var(--palido); }
body .res .res-tiempo .res-entrada p strong { font-weight: 700; color: var(--azul); }
body .res .res-combinacion { padding: 16px 12px; border-radius: 10px; background: #f3f6fb; }
body .res .res-combinacion .res-bolillas span { width: 40px; height: 40px; font-size: 18px; }
body .res .res-entrada .res-combinacion p.res-extras { font-size: 14px; }

body .res .res-combinacion p.res-millon { margin: 12px 0 0; font-size: 15px; }
body .res .res-tiempo .res-entrada p.res-gran-premio strong { font-weight: 800; color: #fff; }
body .res .res-hoy { margin-bottom: 24px; }
body .res .res-parrafos h3 { margin-top: 22px; font-size: 18px; }
body .res .res-parrafos h3 + p { margin-top: 6px; }

/* ---- Localidades ---- */
body .res .res-tres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
body .res .res-tres .res-donde > * { margin-right: 16px; margin-left: 16px; }
body .res .res-tres .res-donde > p.res-donde-cab { margin: 0; padding: 16px; }
body .res .res-dos { align-items: start; }
body .res .res-donde { padding: 0; overflow: hidden; }
body .res .res-donde > * { margin-right: 20px; margin-left: 20px; }
body .res .res-donde > p.res-donde-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 18px 20px; border-bottom: 1px solid var(--linea); background: var(--palido); font-size: 14px; line-height: 1.5; color: var(--gris); }
body .res .res-donde-cab b { display: block; font-size: 19px; font-weight: 700; color: var(--azul); }
body .res .res-donde-num { font-weight: 600; white-space: nowrap; color: var(--azul); }
body .res .res-donde > h3 { margin-top: 20px; margin-bottom: 16px; font-size: 17px; line-height: 1.45; }
body .res .res-donde > p.res-donde-nada { margin-bottom: 20px; padding: 14px; border-radius: 8px; background: #f6f8fb; font-size: 15px; color: var(--gris); }
body .res .res-donde > p.res-donde-premio { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; margin-bottom: 14px; font-size: 14px; }
body .res .res-donde-premio strong { font-size: 25px; font-weight: 700; line-height: 1.3; color: var(--azul); }
body .res .res-donde > ul.res-sitios { margin-bottom: 14px; }

@media (max-width: 991px) {
    body .res .res-juego, body .res .res-tres { grid-template-columns: minmax(0, 1fr); }
    body .res .res-bote { min-height: 0; }
}
@media (max-width: 767px) {
    body .res .res-parrafos { font-size: 16px; line-height: 1.75; }
    body .res .res-panel-cab { padding: 16px; }
    body .res .res-panel-bolas { padding: 22px 8px; }
    body .res .res-panel-bolas .res-bolillas span { width: clamp(34px, 11.5vw, 46px); height: clamp(34px, 11.5vw, 46px); font-size: 18px; }
    body .res .res-panel-premios { padding: 16px 12px; scroll-margin-top: 120px; }
    body .res .res-tabla { font-size: 14px; line-height: 1.4; }
    body .res .res-tabla th, body .res .res-tabla td { padding: 10px 7px; }
    body .res .res-bote .res-btn { max-width: none; }
    body .res .res-fecha { width: 100%; grid-template-columns: minmax(0, 1fr) auto; }
    body .res .res-sorteo-juego .res-bolillas span { width: 38px; height: 38px; }
    body .res .res-bolillas-7 { gap: 5px; }
    body .res .res-panel-bolas .res-bolillas-7 span { width: clamp(30px, 10.4vw, 44px); height: clamp(30px, 10.4vw, 44px); font-size: 17px; }
    body .res .res-sorteo-juego .res-bolillas-7 span { width: clamp(28px, 9.6vw, 38px); height: clamp(28px, 9.6vw, 38px); }
    body .res .res-tabla-euro { font-size: clamp(11px, 3.5vw, 14px); }
    body .res .res-tabla-euro th, body .res .res-tabla-euro td { padding-right: 5px; padding-left: 5px; }
    body .res .res-tiempo .res-entrada { margin-left: 6px; padding: 0 0 22px 18px; scroll-margin-top: 124px; }
    body .res .res-tiempo .res-entrada-txt { padding-bottom: 18px; }
    body .res .res-combinacion { padding: 14px 6px; }
    body .res .res-combinacion .res-bolillas { gap: 5px; }
    body .res .res-combinacion .res-bolillas span { width: clamp(30px, 10vw, 38px); height: clamp(30px, 10vw, 38px); font-size: 16px; }
    body .res .res-combinacion .res-joker b { width: clamp(22px, 7vw, 28px); height: 34px; font-size: 17px; }
    body .res .res-combinacion .res-bolillas-7 span { width: clamp(25px, 8.4vw, 38px); height: clamp(25px, 8.4vw, 38px); font-size: 15px; }
    body .res .res-entrada p.res-gran-premio { padding: 10px 14px; gap: 10px; }
    body .res .res-gran-premio strong { font-size: 26px; letter-spacing: .05em; }
}
