/* Fuentes personalizadas */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@700&display=swap');

/* Reset y variables */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

:root {
    --pasto-blue: #003DA5;
    --pasto-red: #D72027;
    --pasto-yellow: #FFED00;
    --dark-bg: #1a1142;
    --light-gray: #f7f7f7;
    --text-dark: #1a1a1a;
    --text-gray: #666;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 125px;
}

/* Top Bar */
.top-bar {
    background: var(--dark-bg);
    color: white;
    padding: 5px 0;
    font-size: 13px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    margin-left: 130px;
}

.top-bar-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.circle.red {
    background: var(--pasto-red);
}

.circle.blue {
    background: var(--pasto-blue);
}

.circle.yellow {
    background: var(--pasto-yellow);
}

.top-bar-text {
    color: white;
    font-weight: 500;
}

.top-bar-btn {
    background: var(--pasto-yellow);
    color: var(--text-dark);
    border: none;
    padding: 6px 16px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.3s;
}

.top-bar-btn:hover {
    opacity: 0.9;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.icon-btn {
    background: transparent;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s;
}

.icon-btn:hover {
    opacity: 0.8;
}

.red-btn {
    background: var(--pasto-red);
    color: white;
    border: none;
    padding: 6px 16px;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s;
}

.red-btn:hover {
    opacity: 0.9;
}

.lang-select {
    color: white;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

/* Main Header */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 37px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    width: 100%;
    box-sizing: border-box;
}

.header-left {
    flex-shrink: 0;
    position: relative;
    z-index: 1200;
    margin-left: -10px;
}

.logo-link {
    display: block;
    position: relative;
    z-index: 1200;
    margin-top: -30px;
    margin-bottom: -20px;
}

.logo-img {
    height: 125px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1200;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
}

/* Header Stripe - Franja decorativa */
.header-stripe {
    height: 8px;
    background: linear-gradient(to right,
        var(--pasto-blue) 0%,
        var(--pasto-blue) 33.33%,
        var(--pasto-red) 33.33%,
        var(--pasto-red) 66.66%,
        var(--pasto-yellow) 66.66%,
        var(--pasto-yellow) 100%
    );
    width: 100%;
    position: absolute;
    bottom: -8px;
    left: 0;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Header Navigation */
.header-nav {
    flex: 1;
    margin: 0 20px;
    overflow: visible;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
    font-family: 'Bebas Neue', Arial, Helvetica Neue, Helvetica, sans-serif;
}

.nav-link:hover {
    color: var(--pasto-blue);
}

.nav-link i {
    font-size: 10px;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.header-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
    font-family: 'Bebas Neue', Arial, Helvetica Neue, Helvetica, sans-serif;
    letter-spacing: 0.5px;
}

.header-link:hover {
    color: var(--pasto-blue);
}

.header-link i {
    font-size: 12px;
}

.search-btn-header {
    background: transparent;
    border: none;
    color: var(--text-dark);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s;
}

.search-btn-header:hover {
    color: var(--pasto-blue);
}

/* Hero Section */
.hero {
    height: 600px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: white;
    width: 100%;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/pasto/assent/img/banner.jpg');
    background-size: cover;
    background-position: center;
    animation: zoomIn 20s ease-out infinite alternate;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 61, 165, 0.75) 0%, rgba(215, 32, 39, 0.75) 100%);
    z-index: 2;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    padding: 0 40px 60px;
    box-sizing: border-box;
    position: relative;
    z-index: 3;
}

.hero-overlay {
    max-width: 700px;
}

.hero-category {
    background: var(--pasto-yellow);
    color: var(--text-dark);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85em;
    display: inline-block;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 3.5em;
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.hero-score {
    font-size: 5em;
    font-weight: 900;
    color: var(--pasto-yellow);
    margin-bottom: 30px;
    text-shadow: 3px 3px 15px rgba(0,0,0,0.5);
}

.hero-btn {
    background: white;
    color: var(--pasto-blue);
    border: none;
    padding: 15px 40px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    text-transform: uppercase;
}

.hero-btn:hover {
    background: var(--pasto-yellow);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

/* Main Content */
.main-content {
    padding: 60px 0;
    background: linear-gradient(to bottom,
        #4a0e0e 0%,
        #450d10 8%,
        #3f0d14 16%,
        #380e18 24%,
        #310f1e 32%,
        #2a1024 40%,
        #23122a 48%,
        #1d1330 56%,
        #181733 65%);
    width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

/* Section Titles */
.section-title {
    font-size: 1.8em;
    font-weight: 900;
    color: var(--pasto-blue);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--pasto-yellow);
    text-transform: uppercase;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.news-card {
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.news-card.featured {
    grid-column: span 2;
}

.news-image {
    height: 250px;
    background: linear-gradient(135deg, var(--pasto-blue) 0%, var(--pasto-red) 100%);
    position: relative;
}

.news-card.featured .news-image {
    height: 450px;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    color: var(--pasto-blue);
    transition: all 0.3s;
}

.news-card:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background: white;
}

.news-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--pasto-red);
    color: white;
    padding: 6px 18px;
    border-radius: 0;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-content {
    padding: 25px;
}

.news-category {
    color: var(--pasto-blue);
    font-weight: bold;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-content h3 {
    margin: 12px 0;
    font-size: 1.3em;
    color: var(--text-dark);
    font-weight: 700;
}

.news-content p {
    color: var(--text-gray);
    font-size: 0.95em;
    line-height: 1.6;
}

/* Players Carousel */
.players-section {
    margin-bottom: 50px;
}

.players-carousel {
    position: relative;
    background: white;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.players-track {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 15px 0;
}

.players-track::-webkit-scrollbar {
    height: 8px;
}

.players-track::-webkit-scrollbar-track {
    background: var(--light-gray);
}

.players-track::-webkit-scrollbar-thumb {
    background: var(--pasto-blue);
    border-radius: 4px;
}

.player-card {
    min-width: 200px;
    text-align: center;
    padding: 25px;
    transition: background 0.3s;
}

.player-card:hover {
    background: var(--light-gray);
}

.player-number {
    font-size: 3.5em;
    font-weight: 900;
    color: var(--pasto-blue);
    margin-bottom: 15px;
}

.player-image {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, var(--pasto-blue) 0%, var(--pasto-red) 100%);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.player-card h4 {
    font-size: 1.1em;
    margin-bottom: 5px;
    font-weight: 700;
}

.player-card p {
    color: var(--text-gray);
    font-size: 0.9em;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--pasto-blue);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: background 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--pasto-red);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* Sidebar */
.sidebar {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

/* Sidebar Widgets */
.widget {
    background: white;
    padding: 20px 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.widget h3 {
    font-size: 1em;
    font-weight: 900;
    color: var(--pasto-blue);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--pasto-yellow);
    text-transform: uppercase;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Next Match Widget */
.match-date {
    text-align: center;
    background: var(--light-gray);
    padding: 10px 8px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.8em;
    word-wrap: break-word;
    line-height: 1.4;
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 10px;
    gap: 5px;
}

.team {
    text-align: center;
    max-width: 40%;
    flex: 1;
}

.team span {
    display: block;
    font-size: 0.8em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.2;
}

.team-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 8px;
}

.team-logo.pasto {
    background: linear-gradient(135deg, var(--pasto-blue) 0%, var(--pasto-red) 50%, var(--pasto-yellow) 100%);
}

.team-logo.rival {
    background: linear-gradient(135deg, #333 0%, #666 100%);
}

.vs {
    font-weight: bold;
    color: var(--text-gray);
    font-size: 0.9em;
    flex-shrink: 0;
    padding: 0 5px;
}

.match-location {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 0.9em;
    word-wrap: break-word;
}

.match-location span {
    display: inline-block;
    word-wrap: break-word;
}

.match-btn {
    width: 100%;
    background: var(--pasto-blue);
    color: white;
    border: none;
    padding: 12px 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.9em;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
}

.match-btn:hover {
    background: var(--pasto-red);
}

/* Standings Widget */
.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th {
    background: var(--light-gray);
    padding: 12px;
    text-align: left;
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
}

.standings-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #eee;
}

.standings-table tr.highlight {
    background: rgba(0, 61, 165, 0.08);
    font-weight: bold;
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, var(--pasto-blue) 0%, var(--pasto-red) 100%);
    color: white;
    text-align: center;
}

.promo-banner h3 {
    color: white;
    border-bottom: 3px solid var(--pasto-yellow);
    font-size: 1em;
}

.promo-content p {
    margin-bottom: 20px;
    font-size: 0.95em;
    line-height: 1.4;
}

.promo-btn {
    background: var(--pasto-yellow);
    color: var(--text-dark);
    border: none;
    padding: 12px 25px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.9em;
    white-space: normal;
    word-wrap: break-word;
}

.promo-btn:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: #181733;
    color: white;
   
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column h4 {
    color: var(--pasto-yellow);
    margin-bottom: 25px;
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    display: block;
    padding: 10px 0;
    transition: color 0.3s;
    font-size: 0.95em;
}

.footer-column a:hover {
    color: var(--pasto-yellow);
}

.social-links {
    display: flex;
    gap: 15px;
    font-size: 1.5em;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--pasto-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #999;
    font-size: 0.9em;
}

/* ===== TARJETAS DE PARTIDOS HORIZONTALES ===== */
.match-card-horizontal {
    background: rgba(30, 30, 50, 0.95);
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.match-card-horizontal.next-game-card {
    border: 3px solid var(--pasto-red);
    background: rgba(40, 20, 30, 0.98);
}

.match-card-label {
    background: var(--pasto-red);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8em;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 15px;
}

.match-teams-horizontal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.team-horizontal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.team-shield-horizontal {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.team-name-horizontal {
    color: white;
    font-weight: 700;
    font-size: 1.1em;
    text-align: center;
    line-height: 1.2;
}

.match-vs-horizontal {
    font-size: 1.5em;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
}

.match-info-horizontal {
    color: rgba(255,255,255,0.9);
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 12px;
}

.match-info-horizontal p {
    margin: 4px 0;
    font-size: 0.95em;
}

.match-date-horizontal {
    font-weight: 700;
    color: var(--pasto-yellow);
    font-size: 1.05em !important;
}

.match-competition-horizontal {
    color: rgba(255,255,255,0.8);
}

.match-stadium-horizontal {
    color: rgba(255,255,255,0.7);
    font-size: 0.9em !important;
}

/* Botón de compra de boletas */
.match-ticket-button {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    position: relative;
}

.btn-comprar-boleta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a2e;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 900;
    font-size: 1.05em;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5),
                0 0 0 0 rgba(255, 215, 0, 0.4);
    position: relative;
    overflow: hidden;
    font-family: 'Oswald', Arial, Helvetica, sans-serif;
    border: 2px solid #FFD700;
    animation: pulse-glow 2s infinite;
}

.btn-comprar-boleta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-comprar-boleta:hover::before {
    left: 100%;
}

.btn-comprar-boleta:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.7),
                0 0 30px rgba(255, 215, 0, 0.5);
    animation: none;
}

.btn-comprar-boleta i {
    font-size: 1.3em;
    animation: ticket-shake 1s infinite;
}

.btn-comprar-boleta:hover i {
    animation: none;
    transform: rotate(12deg);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.5),
                    0 0 0 0 rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.7),
                    0 0 20px rgba(255, 215, 0, 0.6);
    }
}

@keyframes ticket-shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

/* Responsive Design */
/* Pantallas de 15 pulgadas (1366px - 1440px) */
@media (max-width: 1440px) {
    .header-nav {
        margin: 0 10px;
    }

    .header-nav .nav-list {
        gap: 15px;
    }

    .nav-link {
        font-size: 11.5px;
        white-space: nowrap;
    }

    .header-right {
        gap: 10px;
    }

    .header-link {
        font-size: 11px;
        white-space: nowrap;
    }

    .hero-content {
        padding: 0 30px 50px;
    }

    .hero h1 {
        font-size: 3em;
    }

    .logo-img {
        height: 80px;
    }

    .header-stripe {
        height: 7px;
    }

    .content-grid {
        grid-template-columns: 1fr 280px;
        gap: 20px;
    }

    .container {
        padding: 0 15px;
    }

    .sidebar {
        width: 100%;
        max-width: 280px;
    }

    .widget {
        padding: 15px 12px;
    }

    .widget h3 {
        font-size: 0.95em;
        margin-bottom: 12px;
    }

    .match-date {
        font-size: 0.7em;
        padding: 8px 5px;
    }

    .team-logo {
        width: 45px;
        height: 45px;
    }

    .team span {
        font-size: 0.75em;
    }

    .match-btn {
        font-size: 0.8em;
        padding: 10px 5px;
        letter-spacing: 0.2px;
    }

    .vs {
        font-size: 0.85em;
    }

    .match-location {
        font-size: 0.85em;
    }

    .news-grid {
        gap: 15px;
    }

    .main-column {
        min-width: 0;
        overflow: hidden;
    }
}

@media (max-width: 1400px) {
    .header-nav .nav-list {
        gap: 12px;
    }

    .nav-link {
        font-size: 11px;
        white-space: nowrap;
    }

    .header-right {
        gap: 12px;
    }

    .header-link {
        font-size: 11px;
        white-space: nowrap;
    }

    .header-link i {
        display: none;
    }
}

@media (max-width: 1200px) {
    .header-nav .nav-list {
        gap: 10px;
    }

    .nav-link {
        font-size: 10px;
        padding: 5px;
    }

    .header-right {
        gap: 8px;
    }

    .header-link {
        font-size: 10px;
    }

    .header-container {
        padding: 0 10px;
    }

    .top-bar-content {
        padding: 0 10px;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 1024px) {
    body {
        padding-top: 108px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card.featured {
        grid-column: span 1;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-container {
        justify-content: space-between;
        height: 70px;
        position: relative;
        padding: 5px 15px;
    }

    .header-left {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .logo-img {
        height: 90px;
    }

    .top-bar-left {
        font-size: 0.9em;
        margin-left: 0;
    }

    .top-bar-right {
        font-size: 0.9em;
    }

    .main-header {
        top: 35px;
    }

    /* Ocultar texto y botón de acreditación en tablet */
    .top-bar-text {
        display: none !important;
    }

    .top-bar-btn {
        display: none !important;
    }

    .circle {
        display: none !important;
    }

    .top-bar-right {
        display: none !important;
    }

    .icon-btn {
        display: none !important;
    }

    /* Hacer tabla de posiciones más grande */
    .red-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .top-bar-content {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 140px;
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .hero-score {
        font-size: 3.5em;
    }

    /* Mostrar top-bar en móvil estilo Barcelona */
    .top-bar {
        display: block !important;
        background: var(--dark-bg);
        padding: 8px 0;
        height: 30px;
    }

    .top-bar-content {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }

    .top-bar-text {
        display: none !important;
    }

    .top-bar-btn {
        display: none !important;
    }

    .red-btn {
        display: none !important;
    }

    .circle {
        display: none !important;
    }

    .top-bar-left {
        display: none !important;
    }

    .top-bar-right {
        display: none !important;
    }

    .icon-btn {
        display: none !important;
    }

    .main-header {
        top: 30px;
    }

    .footer-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .info-cards {
        grid-template-columns: 1fr !important;
    }

    /* Header Container - Estilo Barcelona */
    .header-container {
        height: 70px;
        padding: 10px 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        gap: 10px;
        background: white;
    }

    .header-left {
        flex: 0 0 auto;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        order: 1;
        position: relative;
        z-index: 1000;
    }

    .logo-link {
        margin: 0;
        display: block;
        position: relative;
        top: -15px;
    }

    .logo-img {
        height: 90px;
        filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
    }

    /* Remover botón de acreditación del centro */
    .header-container::after {
        display: none;
    }

    /* Botón Login en el centro-derecha */
    .header-right {
        
        gap: 10px;
        align-items: center;
        flex: 1;
        margin-right:50px;
        justify-content: flex-end;
        order: 2;
    }

    .header-right .header-link {
        display: none !important;
    }

    /* Crear botón de acreditación solo para móvil */
    .header-right::before {
        content: 'ACREDITACIÓN DE PRENSA';
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        font-weight: 700;
        background: var(--pasto-yellow);
        color: var(--text-dark);
        padding: 7px 10px;
        font-size: 11px;
        border-radius: 4px;
        cursor: pointer;
        white-space: nowrap;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    /* Menu hamburguesa */
    .mobile-menu-toggle {
        padding: 8px;
        background: #2c2c2c;
        border-radius: 4px;
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        flex: 0 0 auto;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        order: 3;
        z-index: 1100;
        cursor: pointer;
        pointer-events: auto;
        border: none;
        outline: none;
    }

    .mobile-menu-toggle i {
        font-size: 1.3em;
        color: white;
        pointer-events: none;
    }

    .header-stripe {
        display: block !important;
        height: 4px;
        background: linear-gradient(to right,
            var(--pasto-red) 0%,
            var(--pasto-red) 33.33%,
            var(--pasto-blue) 33.33%,
            var(--pasto-blue) 66.66%,
            var(--pasto-yellow) 66.66%,
            var(--pasto-yellow) 100%);
        position: absolute;
        bottom: 55px;
        left: 0;
        right: 0;
        z-index: 100;
    }

    /* Barra de iconos móvil - Estilo Barcelona */
    .mobile-icons-bar {
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        background: white;
        border-top: 1px solid #eee;
        padding: 10px 0;
        position: absolute;
        bottom: -55px;
        left: 0;
        right: 0;
        z-index: 10;
    }

    .mobile-icon-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        text-decoration: none;
        color: var(--text-dark);
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        flex: 1;
        transition: all 0.3s ease;
    }

    .mobile-icon-item i {
        font-size: 24px;
        color: var(--text-dark);
        transition: color 0.3s ease;
    }

    .mobile-icon-item:hover {
        color: var(--pasto-blue);
    }

    .mobile-icon-item:hover i {
        color: var(--pasto-blue);
    }

    .mobile-icon-item span {
        font-size: 9px;
    }

    /* Menu móvil ajuste - Slide desde derecha */
    .header-nav {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        background: white !important;
        width: 100vw !important;
        max-width: none !important;
        height: 100vh !important;
        height: 100dvh !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s ease-in-out !important;
        z-index: 9999 !important;
        display: block !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Botón de cerrar menú móvil */
    .mobile-menu-close {
        display: flex !important;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 10000;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background 0.3s ease;
    }

    .mobile-menu-close:hover {
        background: var(--light-gray);
    }

    .mobile-menu-close i {
        font-size: 24px;
        color: var(--text-dark);
    }

    /* Logo del menú móvil */
    .mobile-menu-logo {
        display: block !important;
        position: absolute;
        top: 20px;
        left: 20px;
        z-index: 10000;
    }

    .mobile-menu-logo img {
        height: 55px;
        width: auto;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }

    .header-nav.active {
        transform: translateX(0) !important;
    }

    /* Overlay oscuro detrás del menú */
    .header-nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        z-index: -1;
        pointer-events: none;
    }

    .header-nav.active::before {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .header-nav .nav-list {
        flex-direction: column !important;
        padding: 80px 0 20px 0 !important;
        margin: 0 !important;
        width: 100% !important;
        display: flex !important;
        background: white;
    }

    .header-nav .nav-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .header-nav .nav-item:first-child {
        border-top: 1px solid #eee;
    }

    .header-nav .nav-link {
        padding: 20px 25px !important;
        display: block !important;
        font-size: 16px !important;
        color: var(--text-dark) !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        width: 100%;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .header-nav .nav-link:hover {
        background: var(--light-gray);
        color: var(--pasto-blue) !important;
    }

    .header-nav .nav-link.active {
        background: var(--pasto-yellow);
        color: var(--text-dark) !important;
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 135px;
    }

    /* Top bar visible */
    .top-bar {
        display: block !important;
        padding: 6px 0;
        height: 28px;
    }

    .top-bar-text {
        display: none !important;
    }

    .top-bar-btn {
        display: none !important;
    }

    .red-btn {
        display: none !important;
    }

    .top-bar-left {
        display: none !important;
    }

    .top-bar-right {
        display: none !important;
    }

    .icon-btn {
        display: none !important;
    }

    .main-header {
        top: 28px;
    }

    .header-container {
        height: 65px;
        padding: 8px 12px;
        gap: 8px;
    }

    .header-left {
        position: relative;
        z-index: 1000;
    }

    .logo-link {
        position: relative;
        top: -12px;
    }

    .logo-img {
        height: 80px;
        filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
    }

    /* Botón Acreditación más pequeño */
    .header-right::before {
        content: 'ACREDITACIÓN DE PRENSA';
        font-size: 11px;
        padding: 6px 8px;
        letter-spacing: 0.2px;
    }

    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        z-index: 1100;
        cursor: pointer;
        pointer-events: auto;
    }

    .mobile-menu-toggle i {
        font-size: 1.2em;
        pointer-events: none;
    }

    .header-stripe {
        display: block !important;
        height: 4px;
        background: linear-gradient(to right,
            var(--pasto-red) 0%,
            var(--pasto-red) 33.33%,
            var(--pasto-blue) 33.33%,
            var(--pasto-blue) 66.66%,
            var(--pasto-yellow) 66.66%,
            var(--pasto-yellow) 100%);
        position: absolute;
        bottom: -53px;
        left: 0;
        right: 0;
        z-index: 100;
    }

    /* Barra de iconos más compacta */
    .mobile-icons-bar {
        padding: 8px 0;
        bottom: -50px;
    }

    .mobile-icon-item i {
        font-size: 20px;
    }

    .mobile-icon-item span {
        font-size: 8px;
    }

    /* Menu móvil ajuste - Slide desde derecha */
    .header-nav {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        background: white !important;
        width: 100vw !important;
        max-width: none !important;
        height: 100vh !important;
        height: 100dvh !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s ease-in-out !important;
        z-index: 9999 !important;
        display: block !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Botón de cerrar menú móvil */
    .mobile-menu-close {
        display: flex !important;
        position: absolute;
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 10000;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background 0.3s ease;
    }

    .mobile-menu-close:hover {
        background: var(--light-gray);
    }

    .mobile-menu-close i {
        font-size: 22px;
        color: var(--text-dark);
    }

    /* Logo del menú móvil */
    .mobile-menu-logo {
        display: block !important;
        position: absolute;
        top: 15px;
        left: 15px;
        z-index: 10000;
    }

    .mobile-menu-logo img {
        height: 50px;
        width: auto;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }

    .header-nav.active {
        transform: translateX(0) !important;
    }

    /* Overlay oscuro detrás del menú */
    .header-nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        z-index: -1;
        pointer-events: none;
    }

    .header-nav.active::before {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .header-nav .nav-list {
        flex-direction: column !important;
        padding: 70px 0 20px 0 !important;
        margin: 0 !important;
        width: 100% !important;
        display: flex !important;
        background: white;
    }

    .header-nav .nav-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .header-nav .nav-item:first-child {
        border-top: 1px solid #eee;
    }

    .header-nav .nav-link {
        padding: 18px 20px !important;
        display: block !important;
        font-size: 15px !important;
        color: var(--text-dark) !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        width: 100%;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .header-nav .nav-link:hover {
        background: var(--light-gray);
        color: var(--pasto-blue) !important;
    }

    .header-nav .nav-link.active {
        background: var(--pasto-yellow);
        color: var(--text-dark) !important;
        border-bottom: none;
    }

    /* ===== OPTIMIZACIONES INDEX - HERO SECTION ===== */
    .hero-news-background {
        height: 300px;
    }

    .hero-news-overlay {
        padding-top: 40px;
    }

    .hero-news-title h1 {
        font-size: 1.4em;
        letter-spacing: 0.5px;
    }

    .hero-news-category {
        font-size: 0.65em;
        margin-bottom: 12px;
    }

    /* Tarjetas de Noticias Optimizadas */
    .hero-news-cards {
        padding: 15px 0 20px;
        margin-top: -60px;
    }

    .container-news {
        padding: 0 12px;
    }

    .news-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .hero-news-card {
        border-radius: 8px;
        max-width: 100%;
    }

    .hero-news-card-image {
        height: 180px;
    }

    .hero-news-card-content {
        padding: 10px 12px;
    }

    .hero-news-card-content h3 {
        font-size: 0.95em;
        line-height: 1.25;
    }

    .card-meta {
        font-size: 0.7em;
    }

    /* Patrocinadores */
    .sponsors-main-section {
        padding: 12px 0 18px;
    }

    .sponsors-main-section h4 {
        font-size: 0.75em;
        margin-bottom: 12px;
    }

    .sponsor-logo-item {
        height: 45px;
    }

    .sponsor-logo-item img {
        max-width: 100px;
        max-height: 45px;
    }

    /* ===== OPTIMIZACIONES GENERALES DEL INDEX ===== */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    section {
        padding: 25px 0;
    }

    /* Calendario y Partidos */
    .calendar-section-hero {
        padding: 12px 3px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .calendar-wrapper {
        padding: 8px 3px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
        margin: 0 auto;
    }

    .calendar-main-title {
        font-size: 1.4em;
    }

    .calendar-subtitle {
        font-size: 0.75em;
    }

    .countdown-timer {
        display: flex;
        flex-wrap: nowrap !important;
        gap: 3px;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        padding: 0 3px;
        box-sizing: border-box;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .countdown-block {
        min-width: 48px !important;
        max-width: 60px;
        flex: 0 1 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: rgba(255,255,255,0.1);
        padding: 6px 3px;
        border-radius: 4px;
        box-sizing: border-box;
    }

    .countdown-number {
        font-size: 1.2em;
        line-height: 1;
    }

    .countdown-label {
        font-size: 0.6em;
        white-space: nowrap;
    }

    /* Partidos */
    .matches-horizontal-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        width: calc(100% - 16px);
        max-width: calc(100vw - 32px);
        padding: 0 8px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .match-card-horizontal {
        padding: 14px 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        margin: 0;
        background: rgba(30, 30, 50, 0.95);
        border-radius: 8px;
    }

    .match-card-horizontal.next-game-card {
        border: 3px solid var(--pasto-red);
        padding: 14px 10px;
        background: rgba(40, 20, 30, 0.98);
    }

    .match-teams-horizontal {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: center;
        justify-content: center;
        margin-bottom: 12px;
    }

    .team-horizontal {
        display: flex !important;
        flex-direction: column;
        gap: 6px;
        align-items: center;
        width: 100%;
        max-width: 180px;
    }

    .team-name-horizontal {
        display: block !important;
        font-size: 0.85em;
        font-weight: 700;
        text-align: center;
        color: white !important;
        line-height: 1.2;
        white-space: normal;
        overflow: visible;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .team-shield-horizontal {
        display: block !important;
        width: 50px !important;
        height: 50px !important;
        object-fit: contain;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
        opacity: 1 !important;
        visibility: visible !important;
    }

    .match-vs-horizontal {
        display: block !important;
        font-size: 1em;
        color: rgba(255,255,255,0.4);
        margin: 4px 0;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .match-info-horizontal {
        display: block !important;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        width: 100%;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .match-info-horizontal p {
        display: block !important;
        margin: 4px 0;
        font-size: 0.85em;
        line-height: 1.3;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .match-date-horizontal {
        display: block !important;
        font-weight: 700;
        color: var(--pasto-yellow) !important;
        font-size: 0.95em !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .match-competition-horizontal {
        display: block !important;
        color: rgba(255,255,255,0.85) !important;
        font-size: 0.85em;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .match-stadium-horizontal {
        display: block !important;
        color: rgba(255,255,255,0.7) !important;
        font-size: 0.8em !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Etiqueta "Próximo Partido" */
    .match-card-label {
        background: var(--pasto-red);
        color: white;
        font-weight: 700;
        text-transform: uppercase;
        padding: 4px 8px;
        border-radius: 3px;
        font-size: 0.65em;
        letter-spacing: 0.4px;
        display: block;
        text-align: center;
        margin: 0 auto 10px;
        max-width: 140px;
    }

    /* Prevención adicional de overflow */
    .match-card-horizontal * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Botón de compra de boletas */
    .btn-comprar-boleta {
        padding: 12px 24px;
        font-size: 0.95em;
        gap: 8px;
    }

    .btn-comprar-boleta i {
        font-size: 1.2em;
    }

    /* Forzar contenedor de partidos */
    .calendar-section-hero section,
    .calendar-section-hero .matches-horizontal-grid {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* YouTube Section */
    .youtube-section-integrated {
        padding: 15px 12px;
    }

    .youtube-main-title {
        font-size: 1.2em;
    }

    .youtube-subtitle {
        font-size: 0.8em;
    }

    .youtube-stats {
        font-size: 0.7em;
    }

    .btn-subscribe {
        font-size: 0.85em;
        padding: 8px 15px;
    }

    .youtube-carousel {
        gap: 10px;
    }

    .youtube-video-card {
        min-width: 260px;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85em;
    }

    /* Actualidad y Noticias */
    .actualidad-section,
    .news-section {
        padding: 20px 12px;
    }

    .section-title {
        font-size: 1.4em;
        margin-bottom: 15px;
    }

    .news-grid,
    .actualidad-grid {
        gap: 12px;
    }

    /* Productos */
    .products-section {
        padding: 20px 12px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        padding: 10px;
    }

    .product-image {
        height: 130px;
    }

    .product-title {
        font-size: 0.85em;
    }

    .product-price {
        font-size: 0.95em;
    }

    .product-btn {
        font-size: 0.8em;
        padding: 8px 12px;
    }
}

/* ===== OPTIMIZACIONES GLOBALES PARA MÓVIL ===== */
@media (max-width: 768px) {
    /* Imágenes Responsivas */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Prevenir desbordamiento horizontal */
    body,
    html {
        overflow-x: hidden;
        max-width: 100vw;
    }

    * {
        box-sizing: border-box;
    }

    /* Botones más táctiles */
    button,
    .btn,
    a.btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Tipografía legible */
    body {
        font-size: 16px;
        line-height: 1.5;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.2em;
    }

    /* Espaciado de secciones */
    section + section {
        margin-top: 0;
    }

    /* Cards y elementos interactivos */
    .card,
    .news-card,
    .product-card {
        transition: transform 0.2s ease;
    }

    .card:active,
    .news-card:active,
    .product-card:active {
        transform: scale(0.98);
    }
}

/* Active Nav Link */
.nav-link.active {
    color: var(--pasto-yellow);
    border-bottom: 3px solid var(--pasto-yellow);
    padding-bottom: 5px;
}

/* Hero Subtitle */
.hero-subtitle {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: var(--pasto-yellow);
    font-weight: 600;
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

.info-card {
    background: white;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}

.info-card.yellow::before {
    background: var(--pasto-yellow);
}

.info-card.blue::before {
    background: var(--pasto-blue);
}

.info-card.red::before {
    background: var(--pasto-red);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.info-card i {
    font-size: 3em;
    margin-bottom: 20px;
}

.info-card.yellow i {
    color: var(--pasto-yellow);
}

.info-card.blue i {
    color: var(--pasto-blue);
}

.info-card.red i {
    color: var(--pasto-red);
}

.info-card h3 {
    font-size: 1.3em;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.info-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.card-link {
    color: var(--pasto-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.info-card.yellow .card-link {
    color: #c7a000;
}

.card-link:hover {
    color: var(--pasto-red);
}

.card-link i {
    font-size: 0.9em;
    transition: transform 0.3s;
}

.card-link:hover i {
    transform: translateX(5px);
}

/* Quick Links Widget */
.quick-links-list {
    list-style: none;
}

.quick-links-list li {
    margin-bottom: 12px;
}

.quick-links-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--light-gray);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.quick-links-list a:hover {
    background: var(--pasto-yellow);
    border-left-color: var(--pasto-blue);
    transform: translateX(5px);
}

.quick-links-list a i {
    color: var(--pasto-blue);
    font-size: 1.1em;
}

/* Responsive Max Width Fix */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.header-container,
.top-bar-content,
.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Mobile Menu Button */
.mobile-menu-toggle {
    display: none;
    background: var(--pasto-yellow);
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.mobile-menu-toggle i {
    font-size: 1.5em;
    color: var(--text-dark);
    transition: transform 0.3s ease;
}

.mobile-menu-toggle:active i {
    transform: scale(0.95);
}

/* Ocultar elementos mobile-only en desktop */
.mobile-only {
    display: none !important;
}

/* Barra de iconos móvil - Oculta por defecto */
.mobile-icons-bar {
    display: none;
}

/* Botón de cerrar menú - Oculto por defecto */
.mobile-menu-close {
    display: none;
}

/* Logo del menú móvil - Oculto por defecto */
.mobile-menu-logo {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
    }

    /* Mostrar elementos mobile-only en móvil */
    .mobile-only {
        display: block !important;
    }

    .header-nav {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        background: white !important;
        width: 100vw !important;
        max-width: none !important;
        height: 100vh !important;
        height: 100dvh !important;
        transform: translateX(100%) !important;
        transition: transform 0.3s ease-in-out !important;
        z-index: 9999 !important;
        display: block !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .header-nav.active {
        transform: translateX(0) !important;
    }

    /* Botón de cerrar menú móvil */
    .mobile-menu-close {
        display: flex !important;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 10000;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background 0.3s ease;
    }

    .mobile-menu-close:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    .mobile-menu-close i {
        font-size: 24px;
        color: var(--text-dark);
    }

    /* Logo del menú móvil */
    .mobile-menu-logo {
        display: block !important;
        position: absolute;
        top: 15px;
        left: 20px;
        z-index: 10000;
    }

    .mobile-menu-logo img {
        height: 50px;
        width: auto;
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    }

    .header-nav .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
    }

    .header-nav .nav-item {
        border-bottom: 1px solid #eee;
        list-style: none;
    }

    .header-nav .nav-link {
        padding: 18px 20px;
        display: block;
        font-size: 15px;
        color: var(--text-dark) !important;
        text-decoration: none;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    .header-nav .nav-link:hover {
        background: var(--light-gray);
        color: var(--pasto-blue) !important;
    }

    .header-nav .nav-link.active {
        background: var(--pasto-yellow);
        color: var(--text-dark) !important;
        border-bottom: none;
    }

    .header-nav .nav-link i {
        margin-right: 10px;
        color: var(--pasto-blue);
    }

    .header-right {
        display: none;
    }
}

/* Yellow Accents */
.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--pasto-yellow);
}

.section-title {
    position: relative;
}

/* Highlight on hover yellow */
.news-card:hover .news-category {
    color: var(--pasto-yellow);
}

.player-card:hover .player-number {
    color: var(--pasto-yellow);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--pasto-blue) 0%, var(--pasto-red) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 3em;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.page-header p {
    font-size: 1.2em;
    color: var(--pasto-yellow);
}

/* Full Width News Grid */
.news-grid.full-width {
    grid-template-columns: repeat(3, 1fr);
}

.read-more {
    color: var(--pasto-blue);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    transition: color 0.3s;
}

.read-more:hover {
    color: var(--pasto-yellow);
}

.read-more i {
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    .news-grid.full-width {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-header h1 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .news-grid.full-width {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Animaciones */
@keyframes heroZoomIn {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.08);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollSponsors {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Hero News Section - Barcelona Style - BLOQUE COMPLETO CONTINUO */
.hero-news-section {
    width: 100%;
    margin-bottom: 0;
    position: relative;
    background-image: url('/pasto/assent/img/banner.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-news-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/pasto/assent/img/banner.jpg');
    background-size: cover;
    background-position: center;
    animation: heroZoomIn 15s ease-out infinite alternate;
    z-index: 0;
}

/* Gradiente continuo que cubre TODO el bloque (hero + cards + sponsors) */
.hero-news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.45) 10%,
        rgba(0, 0, 0, 0.55) 20%,
        rgba(0, 0, 0, 0.65) 30%,
        rgba(0, 0, 0, 0.75) 40%,
        rgba(5, 5, 15, 0.82) 48%,
        rgba(10, 8, 20, 0.85) 53%,
        rgba(15, 10, 30, 0.87) 58%,
        rgba(25, 15, 40, 0.89) 63%,
        rgba(35, 18, 45, 0.91) 68%,
        rgba(45, 20, 40, 0.92) 73%,
        rgba(55, 18, 35, 0.93) 78%,
        rgba(65, 16, 28, 0.94) 83%,
        rgba(70, 15, 22, 0.95) 88%,
        rgba(74, 14, 14, 0.96) 93%,
        #4a0e0e 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-news-background {
    height: 580px;
    position: relative;
    z-index: 2;
}

.hero-news-overlay {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
}

.hero-news-title {
    text-align: center;
    color: white;
    padding: 0 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-news-featured {
    cursor: pointer !important;
    transition: all 0.3s ease;
}

.hero-news-featured * {
    cursor: pointer !important;
}

.hero-news-featured:hover {
    transform: scale(1.03);
}

.hero-news-featured:hover h1 {
    color: var(--pasto-yellow);
    text-shadow: 0 0 20px rgba(255, 237, 0, 0.5);
    transition: all 0.3s ease;
}

.hero-news-featured:hover .hero-news-category {
    color: white;
    transition: all 0.3s ease;
}

.hero-news-category {
    color: var(--pasto-yellow);
    font-weight: 700;
    font-size: 0.75em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-family: 'Bebas Neue', Arial, Helvetica, sans-serif;
    letter-spacing: 1px;
}

.hero-news-category i {
    font-size: 6px;
}

.hero-news-title h1 {
    font-size: 3.5em;
    font-weight: 900;
    margin: 0;
    text-transform: uppercase;
    text-shadow: 3px 3px 20px rgba(0,0,0,0.9);
    letter-spacing: 3px;
    font-family: 'Bebas Neue', Arial, Helvetica Neue, Helvetica, sans-serif;
    line-height: 1.1;
}

/* News Cards Below Hero */
.hero-news-cards {
    width: 100%;
    padding: 0 0 35px;
    position: relative;
    z-index: 2;
    margin-top: -180px;
}

.container-news {
    max-width: 825px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
}

.hero-news-card {
    background: rgba(5, 5, 15, 0.92);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeInScale 0.8s ease-out forwards;
}

.hero-news-card:nth-child(1) {
    animation-delay: 0.6s;
}

.hero-news-card:nth-child(2) {
    animation-delay: 0.75s;
}

.hero-news-card:nth-child(3) {
    animation-delay: 0.9s;
}

.hero-news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.7);
}

.hero-news-card-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.hero-news-card-image img {
    width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.hero-news-card:hover .hero-news-card-image img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 3px 7px;
    border-radius: 2px;
    font-size: 0.7em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-news-card-content {
    padding: 8px 10px;
    min-height: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.hero-news-card-content h3 {
    color: white;
    font-size: 0.86em;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 6px 0;
    transition: color 0.3s ease;
    font-family: 'Oswald', Arial, Helvetica, sans-serif;
}

.hero-news-card:hover h3 {
    color: var(--pasto-yellow);
}

.card-description {
    color: #aaa;
    font-size: 0.77em;
    line-height: 1.3;
    margin-bottom: 6px;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74em;
    color: #888;
    margin-top: auto;
}

.card-meta span:first-child {
    color: var(--pasto-yellow);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-meta i {
    font-size: 8px;
}

/* Sponsors Main Section */
.sponsors-main-section {
    background: transparent;
    padding: 20px 0 30px;
    margin-top: 0;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.sponsors-main-section h4 {
    text-align: center;
    color: white;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeInSlide 0.8s ease-out 1.1s forwards;
}

/* Carrusel de patrocinadores */
.sponsors-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    opacity: 0;
    animation: fadeInSlide 0.8s ease-out 1.3s forwards;
}

.sponsors-carousel-track {
    display: flex;
    gap: 80px;
    animation: scrollSponsors 60s linear infinite;
    width: fit-content;
}

.sponsors-carousel-track:hover {
    animation-play-state: paused;
}

.sponsor-logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    transition: all 0.3s ease;
}

.sponsor-logo-item img {
    max-height: 100%;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    
    transition: all 0.3s ease;
}

.sponsor-logo-item:hover img {
    
    transform: scale(1.1);
}

/* Featured News Section - Barcelona Style */
.featured-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
}

.featured-news-card {
    background: #1a1142;
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.featured-news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--pasto-blue) 0%, var(--pasto-red) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.featured-news-card:hover::before {
    opacity: 0.2;
}

.featured-news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.featured-news-card:hover .featured-news-image img {
    transform: scale(1.1);
}

.featured-news-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: #000;
}

.featured-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.featured-news-category {
    color: var(--pasto-yellow);
    font-weight: 700;
    font-size: 0.75em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-news-category i {
    font-size: 8px;
}

.featured-news-time {
    color: #fff;
    font-size: 0.75em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-news-content {
    padding: 25px 20px;
    background: #1a1142;
    position: relative;
    z-index: 2;
}

.featured-news-content h3 {
    color: white;
    font-size: 1.1em;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
    transition: color 0.3s ease;
}

.featured-news-card:hover .featured-news-content h3 {
    color: var(--pasto-yellow);
}

/* Sponsors Section */
.sponsors-section {
    margin-top: 50px;
    padding: 40px 0;
    border-top: 1px solid #ddd;
}

.sponsors-section h4 {
    text-align: center;
    color: #fff;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: #1a1142;
    padding: 15px;
}

.sponsors-logos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: center;
}

.sponsor-logo {
    background: white;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    transition: all 0.3s ease;
    border: 2px solid #eee;
    font-weight: 700;
    color: #999;
}

.sponsor-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border-color: var(--pasto-yellow);
}

/* News Modal - Fullscreen */
.news-modal {
    display: none;
    position: fixed;
    top: 100px;
    left: 0;
    width: 100%;
    height: calc(100% - 100px);
    background: rgba(0, 0, 0, 0.95);
    z-index: 999;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-modal.active {
    display: block;
    opacity: 1;
}

/* Modal Loading */
.modal-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1002;
}

.modal-loading.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-radius: 50%;
    animation: spinRing 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: var(--pasto-blue);
    animation-delay: -0.45s;
}

.spinner-ring:nth-child(2) {
    border-top-color: var(--pasto-red);
    animation-delay: -0.3s;
}

.spinner-ring:nth-child(3) {
    border-top-color: var(--pasto-yellow);
    animation-delay: -0.15s;
}

@keyframes spinRing {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: white;
    font-size: 1.2em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Bebas Neue', Arial, Helvetica, sans-serif;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Modal Content with Slide Up Animation */
.modal-content-wrapper {
    max-width: 1000px;
    margin: 80px auto 40px;
    background: white;
    position: relative;
    opacity: 0;
    visibility: hidden;
    transform: translateY(60px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-content-wrapper.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.modal-close {
    position: fixed;
    top: 160px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pasto-yellow);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    background: var(--pasto-red);
    transform: translateX(-50%) scale(1.1);
}

.modal-close i {
    font-size: 24px;
    color: #1a1142;
}

/* Sección del header con publicidad e imagen */
.modal-header-section {
    display: flex;
    gap: 0;
    width: 100%;
    background: #000;
    min-height: 500px;
}

/* Columna izquierda - Publicidad (angosta) */
.modal-ad-banner {
    width: 180px;
    min-width: 180px;
    flex-shrink: 0;
    height: auto;
    min-height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 3px solid var(--pasto-yellow);
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-content-wrapper.show .modal-ad-banner {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.05s;
}

.modal-ad-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Columna derecha - Imagen de noticia (ancha) */
.modal-header-image {
    flex: 1;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: #000;
    position: relative;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-content-wrapper.show .modal-header-image {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s;
}

.modal-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: top;
}

.modal-body {
    padding: 50px 80px;
}

.modal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--pasto-yellow);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-meta-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.modal-content-wrapper.show .modal-meta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.modal-category {
    color: var(--pasto-blue);
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-category i {
    font-size: 8px;
    color: var(--pasto-yellow);
}

.modal-time {
    color: #666;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-body h2 {
    font-size: 2.5em;
    font-weight: 900;
    color: #1a1142;
    margin-bottom: 30px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-content-wrapper.show .modal-body h2 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.modal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-content-wrapper.show .modal-text {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.modal-text p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

/* Botones de Compartir en Modal */
.modal-share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.share-btn:active {
    transform: translateY(-1px) scale(1.05);
}

.facebook-btn {
    background: linear-gradient(135deg, #1877F2, #0d5dbf);
}

.facebook-btn:hover {
    background: linear-gradient(135deg, #0d5dbf, #084a96);
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #1da851);
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #1da851, #128C40);
}

.copy-btn {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.copy-btn:hover {
    background: linear-gradient(135deg, #495057, #343a40);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.copy-btn.copied i::before {
    content: "\f00c";
}

/* Responsive Hero News Section */
@media (max-width: 1440px) {
    .hero-news-background {
        height: 450px;
    }

    .hero-news-title h1 {
        font-size: 3em;
        letter-spacing: 2px;
    }

    .hero-news-cards {
        padding: 0 0 30px;
        margin-top: -15px;
    }

    .hero-news-card-image {
        height: 165px;
    }

    .news-cards-grid {
        gap: 12px;
    }

    .container-news {
        max-width: 1000px;
    }

    .hero-news-card-content {
        padding: 10px 12px;
    }

    .hero-news-card-content h3 {
        font-size: 0.8em;
    }

    .card-description {
        font-size: 0.68em;
    }

    .card-meta {
        font-size: 0.65em;
    }

    .play-overlay {
        font-size: 0.68em;
        padding: 4px 9px;
    }
}

@media (max-width: 1200px) {
    .hero-news-title h1 {
        font-size: 2.5em;
    }

    .hero-news-background {
        height: 420px;
    }

    .hero-news-card-image {
        height: 150px;
    }

    .hero-news-cards {
        padding: 0 0 30px;
        margin-top: -15px;
    }

    .news-cards-grid {
        gap: 12px;
    }

    .container-news {
        max-width: 900px;
    }

    .hero-news-card-content {
        padding: 10px 11px;
    }
}

@media (max-width: 1024px) {
    .news-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-news-cards {
        padding: 30px 0;
    }

    .hero-news-title h1 {
        font-size: 2em;
    }

    .hero-news-background {
        height: 450px;
    }

    .hero-news-card-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    /* Hero Section Optimizado */
    .hero-news-background {
        height: 350px;
    }

    .hero-news-overlay {
        padding-top: 60px;
    }

    .hero-news-title {
        padding: 0 15px;
    }

    .hero-news-title h1 {
        font-size: 1.6em;
        letter-spacing: 1px;
        line-height: 1.2;
    }

    .hero-news-category {
        font-size: 0.7em;
        margin-bottom: 15px;
        gap: 8px;
    }

    /* Tarjetas de Noticias Optimizadas */
    .hero-news-cards {
        padding: 20px 0 25px;
        margin-top: -80px;
    }

    .container-news {
        padding: 0 15px;
    }

    .news-cards-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero-news-card {
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    }

    .hero-news-card-image {
        height: 200px;
    }

   

    .hero-news-card-content {
        padding: 12px 15px;
    }

    .hero-news-card-content h3 {
        font-size: 1em;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    .card-meta {
        font-size: 0.75em;
        margin-top: 8px;
    }

    .play-overlay {
        font-size: 0.75em;
        padding: 5px 10px;
    }

    /* Patrocinadores */
    .sponsors-main-section {
        padding: 15px 0 20px;
    }

    .sponsors-main-section h4 {
        font-size: 0.8em;
        margin-bottom: 15px;
    }

    .sponsor-logo-item {
        height: 50px;
    }

    .sponsor-logo-item img {
        max-width: 120px;
        max-height: 50px;
    }

    /* Optimizaciones Generales del Index */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    section {
        padding: 30px 0;
    }

    /* Sección de Calendario y Partidos - OPTIMIZADO */
    .calendar-section-hero {
        padding: 15px 5px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
        margin: 0 auto;
    }

    .calendar-wrapper {
        padding: 10px 5px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
        margin: 0 auto;
    }

    .calendar-top {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
    }

    .calendar-title-section {
        text-align: center;
        width: 100%;
    }

    .calendar-main-title {
        font-size: 1.5em;
        margin-bottom: 5px;
    }

    .calendar-subtitle {
        font-size: 0.8em;
    }

    /* Countdown Optimizado */
    .countdown-timer {
        display: flex;
        flex-wrap: nowrap !important;
        gap: 4px;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
    }

    .countdown-block {
        min-width: 55px !important;
        max-width: 70px;
        flex: 0 1 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: rgba(255,255,255,0.1);
        padding: 8px 5px;
        border-radius: 4px;
    }

    .countdown-separator {
        font-size: 1.2em;
        align-self: center;
    }

    .countdown-number {
        font-size: 1.3em !important;
        font-weight: bold;
        line-height: 1;
    }

    .countdown-label {
        font-size: 0.65em !important;
        margin-top: 3px;
        text-transform: uppercase;
    }

    /* Partidos Optimizado */
    .matches-horizontal-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        width: calc(100% - 20px);
        max-width: calc(100vw - 40px);
        padding: 0 10px;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .match-card-horizontal {
        padding: 16px 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        margin: 0;
        background: rgba(30, 30, 50, 0.95);
        border-radius: 8px;
    }

    .match-card-horizontal.next-game-card {
        border: 3px solid var(--pasto-red);
        padding: 16px 12px;
        background: rgba(40, 20, 30, 0.98);
    }

    .match-teams-horizontal {
        display: flex !important;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        align-items: center;
        justify-content: center;
        margin-bottom: 15px;
    }

    .team-horizontal {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
        align-items: center;
        width: 100%;
        max-width: 200px;
    }

    .team-name-horizontal {
        display: block !important;
        font-size: 0.95em;
        font-weight: 700;
        text-align: center;
        color: white !important;
        line-height: 1.2;
        white-space: normal;
        overflow: visible;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .team-shield-horizontal {
        display: block !important;
        width: 60px !important;
        height: 60px !important;
        object-fit: contain;
        filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
        opacity: 1 !important;
        visibility: visible !important;
    }

    .match-vs-horizontal {
        display: block !important;
        font-size: 1.2em;
        color: rgba(255,255,255,0.4);
        margin: 5px 0;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .match-info-horizontal {
        display: block !important;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        width: 100%;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .match-info-horizontal p {
        display: block !important;
        margin: 5px 0;
        font-size: 0.9em;
        line-height: 1.4;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .match-date-horizontal {
        display: block !important;
        font-weight: 700;
        color: var(--pasto-yellow) !important;
        font-size: 1em !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .match-competition-horizontal {
        display: block !important;
        color: rgba(255,255,255,0.85) !important;
        font-size: 0.9em;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .match-stadium-horizontal {
        display: block !important;
        color: rgba(255,255,255,0.7) !important;
        font-size: 0.85em !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Etiqueta "Próximo Partido" */
    .match-card-label {
        background: var(--pasto-red);
        color: white;
        font-weight: 700;
        text-transform: uppercase;
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 0.7em;
        letter-spacing: 0.5px;
        display: block;
        text-align: center;
        margin: 0 auto 12px;
        max-width: 150px;
    }

    /* Prevención adicional de overflow */
    .match-card-horizontal * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Botón de compra de boletas */
    .btn-comprar-boleta {
        padding: 12px 24px;
        font-size: 0.95em;
        gap: 8px;
    }

    .btn-comprar-boleta i {
        font-size: 1.2em;
    }

    /* Forzar contenedor de partidos */
    .calendar-section-hero section,
    .calendar-section-hero .matches-horizontal-grid {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .calendar-image-card,
    .calendar-sponsor-ad {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* YouTube Section */
    .youtube-section-integrated {
        padding: 20px 15px;
    }

    .youtube-main-title {
        font-size: 1.4em;
    }

    .youtube-subtitle {
        font-size: 0.85em;
    }

    .youtube-stats {
        font-size: 0.75em;
        flex-wrap: wrap;
    }

    .youtube-carousel {
        gap: 12px;
    }

    .youtube-video-card {
        min-width: 280px;
    }

    /* Botones de Carrusel */
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9em;
    }

    /* Sección de Actualidad */
    .actualidad-section,
    .news-section {
        padding: 25px 15px;
    }

    .section-title {
        font-size: 1.6em;
        margin-bottom: 20px;
    }

    /* Grid de Noticias/Actualidad */
    .news-grid,
    .actualidad-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Productos */
    .products-section {
        padding: 25px 15px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card {
        padding: 12px;
    }

    .product-image {
        height: 150px;
    }

    .product-title {
        font-size: 0.9em;
    }

    .product-price {
        font-size: 1em;
    }
}

/* Responsive Featured News */
@media (max-width: 1024px) {
    .featured-news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sponsors-logos {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-ad-banner {
        width: 150px;
        min-width: 150px;
    }

    .modal-header-image {
        height: 450px;
    }

    .modal-body {
        padding: 40px 40px;
    }

    .modal-body h2 {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .featured-news-image {
        height: 250px;
    }

    .sponsors-logos {
        grid-template-columns: 1fr;
    }

    .modal-header-section {
        min-height: 300px;
    }

    .modal-ad-banner {
        width: 100px;
        min-width: 100px;
        min-height: 300px;
    }

    .modal-header-image {
        height: 300px;
    }

    .modal-body {
        padding: 30px 20px;
    }

    .modal-body h2 {
        font-size: 1.5em;
    }

    .modal-text p {
        font-size: 1em;
    }

    .modal-meta {
        flex-wrap: wrap;
        gap: 15px;
    }

    .modal-meta-left {
        flex-wrap: wrap;
        gap: 12px;
    }

    .modal-category,
    .modal-time {
        font-size: 0.85em;
    }

    .modal-share-buttons {
        gap: 6px;
    }

    .share-btn {
        width: 28px;
        height: 28px;
        font-size: 0.85em;
    }

    .modal-close {
        top: 150px;
        width: 40px;
        height: 40px;
    }

    .modal-close i {
        font-size: 18px;
    }

    .news-modal {
        top: 90px;
        height: calc(100% - 90px);
    }
}

/* Pantallas muy pequeñas - Ajuste adicional para modal */
@media (max-width: 480px) {
    .modal-ad-banner {
        width: 80px;
        min-width: 80px;
        min-height: 250px;
    }

    .modal-header-section {
        min-height: 250px;
    }

    .modal-header-image {
        height: 250px;
    }
}
