/* Portada nueva (inc/portada.php). */
html body.vdp { background: #F2F3F5 !important; color: #14171F; font-family: 'Inter', sans-serif; --font-cond: 'Inter', sans-serif; --vd-border: #E2E5EC; --vd-light: #F2F3F5; --vd-gray: #5B6270; }
.vdp a { color: inherit; text-decoration: none; }
.vdp h1, .vdp h2, .vdp h3 { font-family: 'Roboto Slab', serif; text-transform: none; letter-spacing: 0; }
.vdp-wrap { max-width: 1248px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.vdp [hidden] { display: none !important; }

/* Barra de marcadores */
.vdp-strip { display: flex; background: #fff; border-bottom: 1px solid #E2E5EC; padding-left: 24px; }
.vdp-strip-scroll { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.vdp-strip-in { display: flex; min-width: max-content; min-height: 100%; }
.vdp-strip-label { flex: none; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 8px 14px 8px 0; font-size: 12px; font-weight: 700; text-transform: uppercase; color: #1B2A5E; line-height: 1.3; }
.vdp-filters { display: grid; grid-template-columns: auto auto; gap: 4px; }
.vdp-filters button { font: inherit; font-size: 11px; font-weight: 600; text-transform: none; padding: 4px 9px; border: 1px solid #D5D9E3; border-radius: 999px; background: #fff; color: #1B2A5E; cursor: pointer; white-space: nowrap; }
.vdp-filters button.active { background: #1B2A5E; border-color: #1B2A5E; color: #fff; }
.vdp-strip-card[hidden] { display: none; }
.vdp-strip-empty { align-self: center; padding: 0 16px; font-size: 13px; color: #5B6270; white-space: nowrap; }
.vdp-live-badge { font-style: normal; background: #C4141D; color: #fff; border-radius: 4px; padding: 1px 5px; font-size: 10px; letter-spacing: .02em; }
.vdp-strip-label small { font-size: 11px; font-weight: 400; text-transform: none; color: #5B6270; }
.vdp-strip-card { display: flex; flex-direction: column; gap: 3px; width: 210px; padding: 10px 16px; border-left: 1px solid #E2E5EC; }
.vdp-strip-card:hover, .vdp-result:hover { background: #F6F7FA; }
.vdp-card-top { font-size: 11px; font-weight: 600; color: #5B6270; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vdp-card-top.live { color: #C4141D; }
.vdp-row { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.vdp-row.lost { color: #5B6270; font-weight: 400; }
.vdp-team { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vdp-row b { font-size: 17px; font-variant-numeric: tabular-nums; }
.vdp img.vdp-mini { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }

/* Partido destacado */
.vdp-hero { background: linear-gradient(120deg, #101A3D 0%, #1B2A5E 65%, #2C3E7A 100%); color: #fff; }
.vdp-hero-in { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.vdp-hero-text { flex: 1 1 400px; min-width: 0; }
.vdp-badge { display: inline-block; background: #C4141D; font-size: 12px; font-weight: 600; text-transform: uppercase; padding: 6px 12px; border-radius: 4px; }
.vdp .vdp-hero h1 { color: #fff; font-size: 42px; font-weight: 800; line-height: 1.12; margin: 16px 0 10px; }
.vdp-hero p { font-size: 15px; color: #D5DAEA; }
.vdp-hero-card { flex: 0 1 440px; min-width: 0; background: #fff; color: #101A3D; border-radius: 12px; padding: 22px 20px; margin: 0 auto; width: 100%; }
.vdp-hero-score { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vdp-side { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.25; }
.vdp img.vdp-hero-logo { width: 76px; height: 76px; object-fit: contain; }
/* Placa blanca: un logo oscuro (azul/negro) nunca queda directo sobre el azul marino. Los blancos los resuelve logos-claros.php. */
.vdp .vdp-hero img.vdp-hero-logo { background: #fff; border-radius: 14px; padding: 5px; }
.vdp-big { font-family: 'Roboto Slab', serif; font-size: 54px; font-weight: 800; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vdp-big i { font-style: normal; color: #9AA1AE; padding: 0 8px; }
.vdp-vs { font-size: 28px; color: #5B6270; }
.vdp a.vdp-btn { display: block; text-align: center; background: #101A3D; color: #fff; font-weight: 600; font-size: 14px; padding: 14px; border-radius: 6px; margin-top: 16px; }
.vdp a.vdp-btn:hover { background: #C4141D; }
.vdp a.vdp-btn.vdp-btn-tv { background: #C4141D; margin-top: 8px; }
.vdp a.vdp-btn.vdp-btn-tv:hover { background: #A91118; }

/* Secciones */
.vdp-main { padding-top: 32px; display: flex; flex-direction: column; gap: 36px; }
.vdp-section { min-width: 0; }
.vdp-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.vdp .vdp-head h2 { font-size: 22px; font-weight: 800; color: #101A3D; }
.vdp .vdp-head > a, .vdp a.vdp-more { font-size: 14px; font-weight: 600; color: #C4141D; padding: 8px 0; }
.vdp a.vdp-more { display: inline-block; margin-top: 6px; }

/* Lideres */
.vdp-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.vdp-tab { font: 600 13px 'Inter', sans-serif; border: 1px solid #C9CEDA; background: #fff; color: #1B2A5E; border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.vdp-tab.active { background: #101A3D; border-color: #101A3D; color: #fff; }
.vdp-leaders { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.vdp-leader { background: #fff; border-radius: 12px; padding: 20px; min-width: 0; }
.vdp .vdp-leader h3 { font: 700 12px 'Inter', sans-serif; text-transform: uppercase; color: #C4141D; margin-bottom: 12px; }
.vdp-leader-top { display: flex; align-items: center; gap: 16px; }
.vdp img.vdp-leader-logo { width: 68px; height: 68px; object-fit: contain; flex-shrink: 0; background: #fff; border-radius: 8px; padding: 4px; }
.vdp-leader-val { font-family: 'Roboto Slab', serif; font-size: 42px; font-weight: 800; line-height: 1.05; color: #101A3D; }
.vdp-leader-name { font-size: 15px; font-weight: 600; }
.vdp-leader-team { font-size: 13px; color: #5B6270; }
.vdp-leader ol { list-style: none; margin-top: 14px; border-top: 1px solid #E2E5EC; }
.vdp-leader li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; border-bottom: 1px solid #F0F1F5; }
.vdp-leader li:last-child { border-bottom: 0; padding-bottom: 0; }
.vdp-pos { width: 14px; color: #5B6270; }
.vdp-who { flex: 1; min-width: 0; }
.vdp-who small { color: #5B6270; font-size: 12px; }
/* La primera tarjeta va destacada en azul */
.vdp-leader:first-child { background: #101A3D; color: #fff; }
.vdp .vdp-leader:first-child h3 { color: #FF9A9F; }
.vdp-leader:first-child .vdp-leader-val { color: #fff; }
.vdp-leader:first-child .vdp-leader-team, .vdp-leader:first-child .vdp-pos, .vdp-leader:first-child .vdp-who small { color: #B9C0D6; }
.vdp-leader:first-child ol, .vdp-leader:first-child li { border-color: #2A3564; }

/* Dos columnas */
.vdp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.vdp-col { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.vdp-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.vdp-result { display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: 10px; padding: 14px 16px; min-width: 0; }
.vdp-news { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.vdp-story { display: flex; flex-direction: column; background: #fff; border-radius: 10px; overflow: hidden; }
.vdp-story img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.vdp-story-body { display: block; padding: 14px 16px 16px; }
.vdp .vdp-story h3 { font-size: 16px; font-weight: 700; line-height: 1.35; color: #101A3D; margin-bottom: 8px; }
.vdp-story small { font-size: 12px; color: #5B6270; }
.vdp-leagues { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.vdp-leagues a { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 10px; padding: 14px; }
.vdp img.vdp-logo { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.vdp-leagues b { display: block; font-size: 15px; }
.vdp-leagues small { font-size: 12px; color: #5B6270; }

/* Modulo Top 5 (estilos base en home.css) */
.vdp-aside { min-width: 0; }
.vdp .vd-widget { background: #fff; border: 0; border-radius: 12px; overflow: hidden; }
.vdp .vd-widget-header { display: flex; align-items: center; justify-content: space-between; background: #101A3D; padding: 12px 14px; }
.vdp .vd-widget-title { font: 800 18px 'Roboto Slab', serif; color: #fff; }
.vdp .vd-widget-link { font-size: 13px; font-weight: 600; color: #D5DAEA; }

.vdp .vd-top5-select, .vdp .vd-top5-tab, .vdp .vd-top5, .vdp .vd-top5 th, .vdp .vd-top5 td, .vdp .vd-top5-cta { font-family: 'Inter', sans-serif; }
.vdp .vd-top5-select { font-size: 14px; }
.vdp .vd-top5 { font-size: 14px; }

.vdp-video { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; background: #000; }
.vdp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vdp-hero-photo { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.vdp-float { position: fixed; right: 16px; bottom: 16px; z-index: 800; width: 360px; max-width: calc(100vw - 24px); background: #0b1f3a; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.35); overflow: hidden; }
.vdp-float[hidden] { display: none; }
.vdp-float .vdp-video { border-radius: 0; }
.vdp-float-head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 12px; color: #fff; font-size: 13px; font-weight: 700; }
.vdp-float-head span { display: flex; align-items: center; gap: 6px; margin-right: auto; text-transform: uppercase; }
.vdp-float-head i { width: 8px; height: 8px; border-radius: 50%; background: #ff2d3f; }
.vdp-float-head a { color: #cfe0ff; font-weight: 600; text-decoration: none; }
.vdp-float-head button { background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; width: 36px; height: 36px; cursor: pointer; }
@media (max-width: 600px) { .vdp-float { right: 8px; bottom: 8px; width: 260px; } .vdp-float-head a { display: none; } }

@media (max-width: 960px) {
    .vdp-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    /* En celular: resultados, Top 5, historias y ligas */
    .vdp-col { display: contents; }
    .vdp-o-results { order: 1; }
    .vdp-aside { order: 2; }
    .vdp-o-news { order: 3; }
    .vdp-o-leagues { order: 4; }
}
@media (max-width: 600px) {
    .vdp-wrap { padding-left: 14px; padding-right: 14px; }
    .vdp-strip { padding-left: 10px; }
    .vdp-strip-card { width: 170px; padding: 10px 12px; }
    .vdp-strip-label { padding-right: 8px; font-size: 11px; }
    .vdp-filters { grid-template-columns: 1fr; gap: 3px; }
    .vdp-filters button { font-size: 10px; padding: 3px 7px; }
    .vdp-hero-in { padding-top: 22px; padding-bottom: 22px; gap: 18px; }
    .vdp .vdp-hero h1 { font-size: 26px; margin-top: 12px; }
    .vdp-hero-text { flex-basis: 100%; }
    .vdp-hero-card { flex-basis: 100%; padding: 18px 12px; }
    .vdp-side { width: 84px; }
    .vdp img.vdp-hero-logo { width: 60px; height: 60px; }
    .vdp-big { font-size: 42px; }
    .vdp-main { padding-top: 22px; gap: 30px; }
    .vdp-leaders, .vdp-results, .vdp-news { grid-template-columns: minmax(0, 1fr); }
    .vdp-leagues { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vdp-leagues a { padding: 12px 10px; gap: 8px; }
}
.vd-top5-empty { padding: 18px 12px; text-align: center; font-size: 13px; color: #5B6270; }
.vd-top5-tabs { flex-wrap: wrap; }
.vdp .vdp-leader-select { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: #1B2A5E; background: #fff; border: 1px solid #D5D9E3; border-radius: 8px; padding: 8px 12px; max-width: 100%; }
.vdp-leader-note { margin: 10px 0 0; font-size: 12px; color: #5B6270; }
