:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f8f8;
    --bg-accent: #f0f0f0;
    --text-primary: #000000;
    --text-secondary: #444444;
    --text-muted: #888888;
    --color-accent: #000000;
    --color-vibrant: #111;
    --font-heading: 'Bungee', cursive;
    --font-secondary: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-img {
    height: 40px;
    /* Tamaño controlado para la cabecera */
    width: auto;
    display: block;
    max-width: 250px;
    /* Evita que logos muy anchos rompan el menú */
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-social {
    display: flex;
    gap: 15px;
    margin-right: 10px;
}

.header-social a {
    text-decoration: none;
    font-size: 18px;
    filter: grayscale(1) opacity(0.6);
    transition: var(--transition);
}

.header-social a:hover {
    filter: grayscale(0) opacity(1);
    transform: translateY(-2px);
}

.search-btn {
    background: none;
    border: none;
    color: black;
    font-size: 18px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    margin-top: 80px;
    display: flex;
    align-items: stretch; /* Permite que el contenedor interno tome toda la altura */
    background-size: cover;
    background-position: center;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}
.hero:hover {
    filter: brightness(0.9);
}

.agenda-divider {
    height: 2px;
    background: #ffffff;
    width: 100%;
    margin: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Oscurecimiento uniforme para legibilidad */
}

.hero-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: 100%;
}

.hero-container.layout-left { justify-content: flex-start; text-align: left; }
.hero-container.layout-right { justify-content: flex-end; text-align: right; }
.hero-container.layout-bottom { justify-content: center; align-items: flex-end; text-align: center; padding-bottom: 25px; }

.hero-container.layout-bottom .hero-content {
    max-width: 100%;
}

.hero-content {
    max-width: 600px;
}

.hero-tag {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-vibrant);
    font-size: 14px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Bungee', cursive;
    font-size: 90px;
    line-height: 0.8;
    font-weight: 400;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: white;
    text-shadow: 4px 4px 15px rgba(0, 0, 0, 0.8);
}

.hero-title .highlight {
    display: block;
    color: #ffd700; /* Yellow/Gold solid instead of transparent border */
}

.hero-desc {
    color: white;
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 500px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 35px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-primary {
    background: black;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-outline {
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: black;
}

.btn-outline:hover {
    background: black;
    color: white;
}

/* Magnifier Effect */
.hero-magnifier {
    position: relative;
    width: 400px;
    height: 400px;
}

.magnifier-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.1);
    background-image: url('assets/hero_zoom.jpg');
    background-size: 800px;
    background-position: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    animation: pulse 4s infinite ease-in-out;
}

.magnifier-label {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background: black;
    color: white;
    padding: 5px 15px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
        border-color: white;
    }
}

/* Sections */
.section {
    padding: 15px 0;
}

.section-header {
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Tops Grid */
.tops-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
}

.top-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.top-card .card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.top-card:hover .card-img {
    transform: scale(1.05);
}

.top-card .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.main-top {
    grid-row: span 2;
}

.badge {
    background: white;
    color: black;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 10px;
}

.top-card h3 {
    font-family: var(--font-heading);
    color: white;
    font-size: 24px;
    font-weight: 400;
}

/* Reels Slider */
.reels-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.reel-card {
    min-width: 280px;
    cursor: pointer;
}

.reel-video-placeholder {
    height: 500px;
    background: var(--bg-accent);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.reel-card:hover .reel-video-placeholder {
    border-color: white;
}

.play-btn {
    width: 60px;
    height: 60px;
    background: white;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    font-size: 20px;
}

/* News List */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.news-item {
    display: flex;
    gap: 40px;
    align-items: center;
    transition: var(--transition);
}

.news-item:hover {
    transform: translateX(10px);
}

.news-img {
    width: 400px;
    height: 250px;
    border-radius: 0 !important;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.news-content h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    margin-bottom: 15px;
}

.news-date {
    color: var(--text-muted);
    font-size: 14px;
}

/* Footer */
.footer {
    padding: 80px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-logo-img {
    height: 35px;
    width: auto;
    filter: grayscale(1) opacity(0.8);
    transition: var(--transition);
}

.footer-logo-img:hover {
    filter: grayscale(0) opacity(1);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-social a:hover {
    color: black;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 12px;
}

/* Mobile */
@media (max-width: 991px) {
    .hero-title {
        font-size: 50px;
    }

    .hero-magnifier {
        display: none;
    }

    .tops-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-img {
        width: 100%;
    }
}

/* --- Nuevos Estilos Solicitados --- */

/* Eliminar bordes redondeados de fotos y tarjetas */
.top-card, .card-img, .reel-video-placeholder, .news-img, .gallery-item {
    border-radius: 0 !important;
}

/* --- Agenda Horizontal Slideshow --- */
.section-agenda {
    background: #000;
    padding: 10px 0 8px 0;
    color: white;
    border-top: 2px solid #fff;
}

.agenda-carousel {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.agenda-carousel::-webkit-scrollbar {
    display: none;
}

.agenda-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    font-size: 32px;
    line-height: 1;
    width: 36px;
    height: 60px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.agenda-btn:hover { background: rgba(255,255,255,0.35); }
.agenda-btn-prev { left: 0; }
.agenda-btn-next { right: 0; }

.agenda-item {
    flex: 0 0 320px; 
    scroll-snap-align: start;
    background: #111;
    border: 1px solid #222;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.match-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
}

.match-header .match-date {
    font-size: 18px;
    color: #fff;
}

.match-header .match-stadium {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
}

.match-teams {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
}

.team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-family: var(--font-heading);
    color: white;
}

.team img {
    width: 85px;
    height: 85px;
    object-fit: contain;
}

.match-footer {
    width: 100%;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #222;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.broadcasters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}

.broadcasters img {
    height: 45px;
    max-width: 75px;
    object-fit: contain;
}

.referees-info {
    font-size: 11px;
    color: #888;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ref-ac {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}

.ref-sub {
    font-size: 9px;
    color: #555;
}

/* --- Gallery Carousel --- */
.gallery-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
}

.gallery-carousel::-webkit-scrollbar {
    height: 6px;
}

.gallery-carousel::-webkit-scrollbar-thumb {
    background: #444;
}

.gallery-item {
    min-width: 80%;
    height: 600px;
    background-size: cover;
    background-position: center;
    scroll-snap-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.gallery-hover {
    font-family: var(--font-heading);
    font-size: 40px;
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

@media (max-width: 991px) {
    .gallery-item {
        min-width: 100%;
        height: 400px;
        padding: 20px;
    }
    .gallery-hover {
        font-size: 24px;
    }
}