.noticia-autor {
  display: flex;
  align-items: center;
  margin: 0.75rem 0 1rem;
}
.noticia-related {
  margin-top: 1.25rem;
}
.noticia-related h2 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  color: #f8fafc;
}
.noticia-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}
.noticia-related-card {
  display: block;
  background: #111827;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
}
.noticia-related-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}
.noticia-related-card h3 {
  margin: 0;
  padding: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #e5e7eb;
}

/* Vista de detalle tipo articulo completo */
.noticia-main {
  max-width: 1180px !important;
  margin: 1.4rem auto 2.4rem !important;
  padding: 0 1rem !important;
}

.noticia-article {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.noticia-article #noticiaImagen {
  width: 100% !important;
  max-height: 560px !important;
  object-fit: cover !important;
  border-radius: 14px 14px 0 0 !important;
  display: block !important;
}

.noticia-body {
  background: #1f2937 !important;
  border-radius: 0 0 14px 14px !important;
  padding: 2rem 2.2rem !important;
}

.noticia-body h1,
#noticiaTitulo {
  font-size: 2.6rem !important;
  line-height: 1.18 !important;
  margin-bottom: 1.2rem !important;
}

.noticia-body p,
#noticiaTexto p {
  font-size: 1.08rem !important;
  line-height: 1.85 !important;
  margin-bottom: 1.05rem !important;
}

.noticia-body a,
#noticiaTexto a {
  color: #fdba74;
  text-decoration: underline;
  word-break: break-word;
}

.noticia-body strong,
#noticiaTexto strong {
  color: #fff;
  font-weight: 700;
}

#noticiaAutor {
  margin-bottom: 1rem !important;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #0f172a;
    color: #e5e7eb;
    line-height: 1.6;
}

.site-header {
    padding: 1rem;
    background: linear-gradient(to right, #0f172a, #1e293b, #312e81, #1e293b, #0f172a);
    border-bottom: 3px solid #dc2626;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.site-header::before {
    content: '';
    display: block;
    height: 3px;
    background: #f97316;
    margin-bottom: 0.5rem;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-link img {
    display: block;
}

.header-container img {
    height: 150px;
    width: auto;
}

.header-left-pl {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-en-vivo {
    height: 80px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-en-vivo:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.85);
}

.header-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    flex-wrap: wrap;
    max-width: 220px;
}

.header-social-link {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(249, 115, 22, 0.55);
    color: #fdba74;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.header-social-link svg {
    width: 20px;
    height: 20px;
    display: block;
}

.header-social-link:hover {
    transform: translateY(-3px);
    background: #f97316;
    border-color: #f97316;
    color: #0f172a;
}

@media (max-width: 720px) {
    .header-social {
        max-width: none;
        justify-content: center;
        width: 100%;
        margin-top: 0.35rem;
    }
}

.titulo-centrado {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .header-container img {
        height: 80px;
        margin-bottom: 0.5rem;
    }
    .titulo-centrado {
        font-size: 1.6rem;
    }
    .site-header {
        padding: 0.8rem;
    }
}

@media (max-width: 900px) {
    .second-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem;
    }
    .second-header h2.dropdown {
        display: none;
    }
    .second-header.mobile-open .mobile-leagues {
        display: block;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .second-header h2,
    .second-header h3,
    .second-header h4 {
        text-align: center;
    }
    .featured-hero-content,
    .secondary-hero-content {
        max-width: 100%;
    }
    .featured-grid,
    .secondary-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .featured-small,
    .secondary-small {
        width: 100%;
    }
}

.second-header {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1.5rem 0;
    background: linear-gradient(to right, #0f172a, #1e293b, #312e81, #1e293b, #0f172a);
    border-top: 3px solid #f97316;
    border-bottom: 3px solid #dc2626;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    border: 2px solid #f97316;
    color: #f97316;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.mobile-leagues {
    display: none;
    width: 100%;
    background: #0f172a;
    border: 2px solid #f97316;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    z-index: 120;
}

.mobile-leagues a {
    display: block;
    color: #e5e7eb;
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

.mobile-leagues a:last-child {
    border-bottom: none;
}

.dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, #1e293b, #312e81);
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
    border: 2px solid #f97316;
    border-top: none;
    border-radius: 0 0 12px 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 100;
    padding: 0.8rem 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px);
}

.dropdown-menu a {
    display: block;
    padding: 0.7rem 1.2rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background: #f97316;
    color: #000;
    padding-left: 1.8rem;
}

@media (max-width: 768px) {
    .second-header {
        flex-direction: column;
        gap: 1rem;
    }
    .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        border-radius: 0;
        border: none;
        border-top: 2px solid #f97316;
        display: none;
        box-shadow: none;
        background: rgba(49, 46, 129, 0.4);
    }
    .dropdown.active .dropdown-menu {
        display: block;
    }
}

.second-header h2,
.second-header h3,
.second-header h4 {
    margin: 0;
    font-weight: bold;
    font-size: 1.4rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    transition: all 0.3s ease;
}

.second-header > h2 > a {
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
}

.second-header > h2 > a:visited {
    color: #ffffff;
}

.second-header > h2 > a:hover {
    color: #ff8c00;
}

.second-header h2:hover,
.second-header h3:hover,
.second-header h4:hover {
    color: #ff8c00;
    transform: scale(1.05);
}

.live-player {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    min-width: 260px;
    max-width: 360px;
    background: linear-gradient(to right, #0f172a, #1e293b, #312e81);
    color: #ffffff;
    border-top: 2px solid #f97316;
    border-bottom: 2px solid #f97316;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.live-player.visible {
    display: flex;
}

.live-player-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.live-indicator {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: radial-gradient(circle, #dc2626 0, #f97316 60%, transparent 70%);
}

.live-text {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #f97316;
}

.live-track-name {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-btn {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #f97316;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0.7));
    color: #ffffff;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.live-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 8px rgba(249, 115, 22, 0.8);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), rgba(0, 0, 0, 0.8));
}

.live-btn-play {
    background: linear-gradient(135deg, #f97316, #dc2626);
}

.live-btn-pause {
    background: linear-gradient(135deg, #1f2937, #111827);
}

.live-btn-close {
    background: linear-gradient(135deg, #3b1520, #111827);
}

.page-transition {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0d1233;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.22) 1px, transparent 1px),
        radial-gradient(circle at 50% 40%, #1a1a5e 0%, #0d1233 45%, #060818 100%);
    background-size: 42px 42px, 42px 42px, 100% 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    overflow: hidden;
}

.page-transition.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Hold the loading curtain until CMS content replaces HTML placeholders */
body.cms-boot:not(.cms-ready) .page-transition {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Hide stale news surfaces so they never flash before CMS applies */
body.cms-boot:not(.cms-ready) .featured-news-section,
body.cms-boot:not(.cms-ready) .featured-grid,
body.cms-boot:not(.cms-ready) .pl-weekly-section,
body.cms-boot:not(.cms-ready) .secondary-news-section,
body.cms-boot:not(.cms-ready) .main-content > .cards > a.card,
body.cms-boot:not(.cms-ready) .noticia-article,
body.cms-boot:not(.cms-ready) #sportsHubGrid,
body.cms-boot:not(.cms-ready) #galleryGrid {
    opacity: 0;
}

body.cms-boot.cms-ready .featured-news-section,
body.cms-boot.cms-ready .featured-grid,
body.cms-boot.cms-ready .pl-weekly-section,
body.cms-boot.cms-ready .secondary-news-section,
body.cms-boot.cms-ready .main-content > .cards > a.card,
body.cms-boot.cms-ready .noticia-article,
body.cms-boot.cms-ready #sportsHubGrid,
body.cms-boot.cms-ready #galleryGrid {
    opacity: 1;
    transition: opacity 0.35s ease;
}

.page-transition__scene {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-transition__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #ffcc00;
    border-right-color: #ff6600;
    box-shadow: 0 0 18px rgba(255, 102, 0, 0.35);
    animation: pt-spin 1s linear infinite;
}

.page-transition__ring--reverse {
    inset: 18px;
    border-top-color: #a855f7;
    border-right-color: #ffcc00;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
    animation: pt-spin-reverse 0.85s linear infinite;
}

.page-transition__hero {
    position: relative;
    width: 168px;
    height: 168px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    isolation: isolate;
}

.page-transition__logo {
    width: 148px;
    height: 148px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    mix-blend-mode: lighten;
    -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 0%, #000 38%, transparent 50%);
    mask-image: radial-gradient(circle at 50% 48%, #000 0%, #000 38%, transparent 50%);
    animation: pt-logo-spin 1.2s linear infinite;
    filter: drop-shadow(0 0 18px rgba(255, 102, 0, 0.55));
}


.page-transition__flames {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.page-transition__flame {
    position: absolute;
    display: block;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: linear-gradient(180deg, #ffcc00 0%, #ff6600 52%, rgba(255, 102, 0, 0) 100%);
    filter: blur(0.5px);
    transform-origin: center bottom;
}

.page-transition__flame--1 {
    width: 36px;
    height: 54px;
    left: -10px;
    top: 26px;
    animation: pt-flame-a 0.38s ease-in-out infinite alternate;
}

.page-transition__flame--2 {
    width: 28px;
    height: 44px;
    left: 2px;
    top: 8px;
    animation: pt-flame-b 0.3s ease-in-out infinite alternate-reverse;
}

.page-transition__flame--3 {
    width: 32px;
    height: 50px;
    left: -6px;
    bottom: 16px;
    animation: pt-flame-c 0.34s ease-in-out infinite alternate;
}

.page-transition__flame--4 {
    width: 24px;
    height: 38px;
    left: 12px;
    top: 36px;
    opacity: 0.88;
    animation: pt-flame-d 0.26s ease-in-out infinite alternate-reverse;
}

.page-transition__label {
    position: absolute;
    bottom: -2.75rem;
    left: 50%;
    transform: translateX(-50%);
    color: #facc15;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    white-space: nowrap;
    margin: 0;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.65);
}

.page-transition--roll .page-transition__scene {
    display: none;
}

.page-transition--spin .page-transition__ball-roll {
    display: none;
}

.page-transition--roll.active::after {
    content: 'Cargando';
    position: absolute;
    left: 50%;
    bottom: 38%;
    transform: translateX(-50%);
    color: #facc15;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.65);
}

.page-transition__ball-roll {
    position: absolute;
    top: 50%;
    left: -120px;
    width: 120px;
    height: 120px;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
}

.page-transition__roll-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-transition__logo--roll {
    width: 110px;
    height: 110px;
    animation: none;
}

.page-transition--roll.active .page-transition__ball-roll {
    opacity: 1;
    animation: pt-ball-roll 0.9s cubic-bezier(0.35, 0.1, 0.25, 1) forwards;
}

.page-transition--roll.active .page-transition__roll-wrap .page-transition__logo--roll {
    animation: pt-ball-roll-spin 0.9s linear forwards;
}

.page-transition--roll.active .page-transition__roll-wrap .page-transition__flame {
    animation-duration: 0.22s;
}

@keyframes pt-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pt-spin-reverse {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes pt-logo-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

@keyframes pt-logo-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pt-ball-rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pt-flame-a {
    from {
        transform: scale(1) skewX(0deg) translateX(0);
        opacity: 0.85;
    }

    to {
        transform: scale(1.18) skewX(-8deg) translateX(-5px);
        opacity: 1;
    }
}

@keyframes pt-flame-b {
    from {
        transform: scale(0.92) skewX(4deg) translateY(0);
        opacity: 0.8;
    }

    to {
        transform: scale(1.12) skewX(-5deg) translateY(-3px);
        opacity: 1;
    }
}

@keyframes pt-flame-c {
    from {
        transform: scale(1) skewX(0deg) translateX(0);
        opacity: 0.82;
    }

    to {
        transform: scale(1.14) skewX(6deg) translateX(-4px);
        opacity: 1;
    }
}

@keyframes pt-flame-d {
    from {
        transform: scale(0.9) translateY(0);
        opacity: 0.75;
    }

    to {
        transform: scale(1.08) translateY(-4px);
        opacity: 0.95;
    }
}

@keyframes pt-ball-roll {
    0% {
        left: -120px;
    }

    100% {
        left: calc(100% + 20px);
    }
}

@keyframes pt-ball-roll-spin {
    to {
        transform: rotate(720deg);
    }
}

.main-content {
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: #111827;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(75, 85, 99, 0.7);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.85);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

a.card,
a.card:visited,
a.card:hover,
a.card:active,
a.featured-small,
a.featured-small:visited,
a.featured-small:hover,
a.featured-small:active,
a.secondary-small,
a.secondary-small:visited,
a.secondary-small:hover,
a.secondary-small:active,
a.featured-hero,
a.featured-hero:visited,
a.featured-hero:hover,
a.featured-hero:active,
a.secondary-hero,
a.secondary-hero:visited,
a.secondary-hero:hover,
a.secondary-hero:active,
a.noticia-related-card,
a.noticia-related-card:visited,
a.noticia-related-card:hover,
a.noticia-related-card:active,
a.gallery-album-card,
a.gallery-album-card:visited,
a.gallery-album-card:hover,
a.gallery-album-card:active {
    text-decoration: none !important;
    color: inherit;
}

a.card h2,
a.card p,
a.card h3,
a.featured-small h3,
a.secondary-small h3,
a.noticia-related-card h3 {
    text-decoration: none !important;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.95);
    border-color: rgba(129, 140, 248, 0.7);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body h2 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: #e5e7eb;
}

.card-body p {
    font-size: 1rem;
    color: #d1d5db;
    flex-grow: 1;
}

/* Estilos específicos para la carta con la tabla */
.table-card {
    padding: 1.5rem;
}

.table-card h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #f97316;
    font-size: 1.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th, td {
    padding: 0.7rem;
    text-align: center;
    border-bottom: 1px solid rgba(75, 85, 99, 0.5);
}

th {
    background: #1e293b;
    color: #f97316;
}

.team-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.8rem;
}

.team-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 6px;
    padding: 2px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Responsive */
@media (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr;
    }
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    .second-header {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* ====================================
   PRIMERA SECCIÓN DE NOTICIAS DESTACADAS (la anterior)
   ==================================== */
.featured-news-section {
    margin: 4rem auto;
    max-width: 1400px;
    padding: 0 2rem;
}

.featured-hero {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.85);
    margin-bottom: 3rem;
    text-decoration: none;
    color: inherit;
    display: block;
}

.featured-hero-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
}

.featured-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0f172a 0%, transparent 50%);
    z-index: 1;
}

.featured-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2.5rem;
    z-index: 2;
    max-width: 80%;
}

.featured-category {
    display: inline-block;
    background: #f97316;
    color: #000;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.featured-hero-content h2 {
    font-size: 2.8rem;
    color: white;
    margin: 0.5rem 0 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.featured-hero-content p {
    font-size: 1.2rem;
    color: #d1d5db;
    max-width: 700px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.featured-small {
    background: #111827;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.7);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.featured-small:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.95);
    border: 1px solid #f97316;
}

.featured-small img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-small h3 {
    padding: 1.5rem;
    font-size: 1.25rem;
    color: #e5e7eb;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ====================================
   NUEVA SECCIÓN (basada en la imagen ID: 23)
   ==================================== */
.secondary-news-section {
    margin: 4rem auto;
    max-width: 1400px;
    padding: 0 2rem;
}

.secondary-hero {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.85);
    margin-bottom: 3rem;
    text-decoration: none;
    color: inherit;
    display: block;
}

.secondary-hero-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.secondary-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0f172a 10%, transparent 60%);
    z-index: 1;
}

.secondary-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2.5rem;
    z-index: 2;
    max-width: 80%;
}

.secondary-hero-content h2 {
    font-size: 2.6rem;
    color: white;
    margin: 0.5rem 0 1rem;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.secondary-hero-content p {
    font-size: 1.2rem;
    color: #d1d5db;
    max-width: 800px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.secondary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.secondary-small {
    background: #111827;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.7);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.secondary-small:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.95);
    border: 1px solid #f97316;
}

.secondary-small img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.secondary-small h3 {
    padding: 1.5rem;
    font-size: 1.25rem;
    color: #e5e7eb;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Responsive para la nueva sección */
@media (max-width: 1024px) {
    .secondary-hero-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .secondary-hero-img {
        height: 400px;
    }
    .secondary-hero-content {
        padding: 2rem;
        max-width: 100%;
    }
    .secondary-hero-content h2 {
        font-size: 1.9rem;
    }
    .secondary-grid {
        grid-template-columns: 1fr;
    }
}


.site-footer {
    background: #0f172a;
    padding: 2rem 2rem 1.5rem;
    margin-top: 4rem;
    border-top: 3px solid #f97316;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo-img {
    height: 80px;
    width: auto;
}

.footer-logo-text {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.footer-social {
    text-align: center;
}

.footer-handle {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-handle:hover {
    color: #f97316;
}

.footer-credits {
    color: #94a3b8;
    font-size: 1rem;
}

.footer-privacy a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-privacy a:hover {
    color: #f97316;
}

.pl-weekly-section {
    margin: 4rem auto;
    max-width: 1400px;
    padding: 0 2rem;
}

.pl-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pl-section-header h1 {
    font-size: 2.4rem;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.pl-section-header p {
    font-size: 1.05rem;
    color: #cbd5f5;
    max-width: 720px;
    margin: 0 auto;
}
.pl-back-btn-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #f97316;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), rgba(0,0,0,0.85));
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.pl-back-btn-header:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.9);
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), rgba(0,0,0,0.95));
    color: #ffffff;
}

.pl-week-group {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(249, 115, 22, 0.3);
}

.pl-week-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.25rem;
}

.pl-week-label {
    display: inline-block;
    padding: 0.25rem 0.9rem;
    border-radius: 999px;
    background: #f97316;
    color: #000000;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.pl-week-range {
    font-size: 0.95rem;
    color: #9ca3af;
}

.pl-week-cards {
    overflow: hidden;
    flex: 1;
}

.pl-week-carousel {
    display: flex;
    align-items: stretch;
    gap: 1rem;
}

.pl-week-btn,
.pl-back-btn-header {
    display: none !important;
}

.pl-week-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s ease;
}

.pl-week-btn {
    align-self: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #f97316;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.12), rgba(0,0,0,0.85));
    color: #ffffff;
    cursor: pointer;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.pl-week-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.9);
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), rgba(0,0,0,0.9));
}

@media (max-width: 768px) {
    .pl-weekly-section {
        padding: 0 1.25rem;
    }
    .pl-section-header h1 {
        font-size: 2rem;
    }
    .pl-week-header {
        flex-direction: column;
        gap: 0.4rem;
        align-items: flex-start;
    }
    .pl-week-carousel {
        flex-direction: column;
        align-items: stretch;
    }
    .pl-week-btn {
        display: none;
    }
    .pl-week-cards {
        overflow: visible;
    }
    .pl-week-track {
        flex-direction: column;
        gap: 1.5rem;
        transform: none !important;
    }
    .pl-week-track .card {
        width: 100%;
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-logo-img {
        height: 60px;
    }
    
    .footer-logo-text {
        font-size: 1rem;
    }
    
    .footer-handle {
        font-size: 1.2rem;
    }
}




.stats-video{
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2rem;
  align-items: stretch;    /* clave: mismas alturas */
  margin-top: 2rem;
}

/* IMPORTANTE: que el card ocupe todo el alto que le da el grid */
.table-card,
.video-card{
  height: 100%;
}

/* Card del video con layout interno */
/* ===== Video card más bajito (se ve mejor con barras negras) ===== */
.video-card{
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: auto;                 /* clave: ya NO fuerza el alto del grid */
  min-height: 0;
}

/* Para que el grid no estire el card del video */
.stats-video{
  align-items: start;           /* en vez de stretch: evita que el video sea gigante */
}

/* título */
.video-title{
  text-align: left;
  color: #f97316;
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

/* Thumbnail grande */
.yt-thumb{
  position: relative;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.55);

  /* altura visual más bajita y pro */
  aspect-ratio: 16 / 9;
  max-height: 300px;
}

/* imagen del thumbnail */
.yt-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover; /* llena como portada */
  display: block;
  transform: scale(1.02);
  transition: transform 0.25s ease;
}

.yt-thumb:hover img{
  transform: scale(1.06);
}

/* Botón play custom */
.yt-play{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

/* círculo */
.yt-play::before{
  content: "";
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: rgba(249,115,22,0.92);
  box-shadow: 0 12px 35px rgba(0,0,0,0.5);
  transform: scale(1);
  transition: transform 0.2s ease, background 0.2s ease;
}

/* triángulo */
.yt-play::after{
  content: "";
  width: 0;
  height: 0;
  border-left: 22px solid #0b1220;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 6px;
  position: absolute;
}

.yt-thumb:hover .yt-play::before{
  transform: scale(1.06);
  background: rgba(220,38,38,0.95);
}

/* Player que reemplaza el thumbnail */
.video-embed{
  position: relative;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  background: #000;

  aspect-ratio: 16 / 9;
  max-height: 300px; /* mismo alto visual que el thumbnail */
}

.video-embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Responsive: en móvil, que crezca un poquito */
@media (max-width: 768px){
  .yt-thumb, .video-embed{
    max-height: 360px;
  }
  .stats-video{
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Marcadores */
.scoreboard-section {
  margin: 2.5rem auto 1rem;
  padding: 0 1.5rem;
  max-width: 1200px;
}

.scoreboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.scoreboard-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.6rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.scoreboard-header span {
  color: #f97316;
  font-weight: 600;
}

.scoreboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.score-card {
  background: linear-gradient(180deg, #0f172a, #1e293b);
  border-radius: 16px;
  padding: 1rem 1.2rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.score-league {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f97316;
  font-weight: 700;
}

.score-time {
  font-size: 0.85rem;
  color: #cbd5f5;
  margin-top: 0.3rem;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  gap: 0.6rem;
}

.score-row small {
  font-weight: 500;
  color: #cbd5f5;
}

.score-team {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}

.score-team-home {
  text-align: left;
  justify-content: flex-start;
}

.score-team-away {
  text-align: right;
  justify-content: flex-end;
}

.score-team-name {
  display: inline-block;
  min-width: 0;
}

.score-team-logo {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
  box-sizing: border-box;
  border: 1px solid rgba(226, 232, 240, 0.45);
}

.score-status {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #34d399;
}

@media (max-width: 900px) {
    .second-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .second-header h2.dropdown {
        display: none;
    }
    .second-header.mobile-open .mobile-leagues {
        display: block;
    }
    .mobile-menu-toggle {
        display: flex;
    }
    .second-header h2,
    .second-header h3,
    .second-header h4 {
        text-align: center;
        width: 100%;
    }
}

.second-header h3.nav-link a,
.second-header h3.nav-link a:visited,
.second-header h4.nav-link a,
.second-header h4.nav-link a:visited {
    color: #ffffff;
    text-decoration: none;
}

.second-header h3.nav-link a:hover,
.second-header h4.nav-link a:hover {
    color: #ff8c00;
}

.gallery-page {
    max-width: 1400px;
    margin: 2.5rem auto 4rem;
    padding: 0 2rem;
}

.gallery-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-intro h2 {
    color: #f8fafc;
    font-size: 2.4rem;
    margin: 0 0 0.75rem;
}

.gallery-intro p {
    color: #cbd5e1;
    margin: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.gallery-item {
    margin: 0;
    background: #111827;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #1f2937;
}

.gallery-albums-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.gallery-album-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #111827;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #1f2937;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.gallery-album-card:hover {
    transform: translateY(-4px);
    border-color: #f97316;
}

.gallery-album-cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

.gallery-album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-album-body {
    padding: 1rem 1.1rem 1.2rem;
}

.gallery-album-body h3 {
    margin: 0 0 0.45rem;
    color: #f8fafc;
    font-size: 1.2rem;
}

.gallery-album-body p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.95rem;
}

.gallery-back {
    margin: 0 0 0.75rem !important;
}

.gallery-back a {
    color: #fdba74;
    text-decoration: none;
    font-weight: 600;
}

.gallery-empty {
    color: #94a3b8;
    text-align: center;
    grid-column: 1 / -1;
    padding: 2rem 1rem;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.gallery-item figcaption {
    padding: 0.9rem 1rem;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.sports-hub {
    max-width: 1400px;
    margin: 2.5rem auto 4rem;
    padding: 0 2rem;
}

.sports-hub-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.sports-hub-intro h2 {
    font-size: 2.4rem;
    color: #f8fafc;
    margin: 0 0 0.75rem;
}

.sports-hub-intro p {
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 720px;
    margin: 0 auto;
}

.sports-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.sport-panel {
    background: linear-gradient(180deg, #111827 0%, #0b1220 100%);
    border: 1px solid #1f2937;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.75);
    transition: transform 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

a.sport-panel,
a.sport-panel:visited,
a.sport-panel:hover,
a.sport-panel:active {
    text-decoration: none;
    color: inherit;
}

.sport-panel:hover {
    transform: translateY(-6px);
    border-color: #f97316;
}

.sport-panel img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.sport-panel-body {
    padding: 1.5rem;
}

.sport-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.sport-badge.nba { background: #1d4ed8; color: #fff; }
.sport-badge.mlb { background: #b91c1c; color: #fff; }
.sport-badge.nfl { background: #065f46; color: #fff; }
.sport-badge.ciclismo { background: #ca8a04; color: #111827; }
.sport-badge.pesas { background: #7c3aed; color: #fff; }
.sport-badge.atletismo { background: #ea580c; color: #fff; }

.sport-panel-body h3 {
    color: #f8fafc;
    margin: 0 0 0.75rem;
    font-size: 1.35rem;
}

.sport-panel-body p {
    color: #cbd5e1;
    margin: 0 0 1rem;
    line-height: 1.5;
}

.sport-panel-cta {
    display: inline-block;
    color: #fdba74;
    font-weight: 600;
    font-size: 0.95rem;
}

.sports-more-news {
    margin-top: 3rem;
}

.sports-more-news h3 {
    color: #f8fafc;
    font-size: 1.6rem;
    margin: 0 0 1.25rem;
}

.sport-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.sport-highlights li {
    color: #e5e7eb;
    font-size: 0.95rem;
    padding-left: 1rem;
    position: relative;
}

.sport-highlights li::before {
    content: "•";
    color: #f97316;
    position: absolute;
    left: 0;
}

@media (max-width: 1024px) {
    .sports-hub-grid {
        grid-template-columns: 1fr;
    }
}