:root {
    --primary: #0f4c75;
    --primary-dark: #0a3655;
    --primary-light: #1a6a9c;
    --accent: #3282b8;
    --accent-gold: #f4d03f;
    --bg-dark: #0d1117;
    --bg-card: #161b22;
    --bg-card-hover: #21262d;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --border-color: #30363d;
    --success: #3fb950;
    --warning: #d29922;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.header {
    background: rgba(15, 76, 117, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 60px;
}

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

img.logo-icon {
    height: 36px;
    width: auto;
    max-width: 66px;
    filter: brightness(0) invert(1);
}

.logo h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo h1 span {
    color: var(--accent-gold);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    padding: 0.5rem 1rem;
    color: rgba(255,255,255,0.8);
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(255,255,255,0.1);
}

.nav-link.active {
    background: rgba(255,255,255,0.15);
    border-bottom: 2px solid var(--accent-gold);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    min-width: 170px;
    z-index: 1001;
    box-shadow: var(--shadow);
    padding: 0.25rem 0;
}

@media (min-width: 769px) {
    .nav-dropdown:hover .dropdown-menu {
        display: block;
    }
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle::after {
    content: ' ▾';
    font-size: 0.7rem;
    opacity: 0.8;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    color: rgba(255,255,255,0.8);
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.chilean-teams-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    overflow-x: auto;
}

.chilean-teams-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.team-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    padding: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-logo-link:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.3);
}

.team-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-news {
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background: var(--accent-gold);
    color: var(--bg-dark);
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero-excerpt {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
}

.hero-meta {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

.hero-image {
    position: relative;
    z-index: 2;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    background: linear-gradient(135deg, #c8102e 0%, #1a1a2e 60%, #0f4c75 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.hero-image-placeholder::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 30px,
        rgba(255,255,255,0.03) 30px,
        rgba(255,255,255,0.03) 60px
    );
}

.placeholder-icon {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    letter-spacing: 6px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.placeholder-sub {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.section {
    margin-bottom: 3rem;
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--accent);
    border-radius: 2px;
}

.section-badge {
    background: var(--primary-dark);
    color: var(--accent);
    padding: 0.35rem 1rem;
    font-size: 0.75rem;
    border-radius: 50px;
    border: 1px solid var(--accent);
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.news-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

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

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

.news-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent);
    color: var(--bg-dark);
    padding: 0.35rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.news-card-content {
    padding: 1rem;
}

.news-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* News image placeholders */
.news-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        hsl(var(--ph-hue, 210) 60% 20%) 0%,
        hsl(var(--ph-hue, 210) 40% 12%) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.news-placeholder::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border: 3px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.news-placeholder::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255,255,255,0.05);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.news-placeholder-text {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    letter-spacing: 3px;
    text-transform: uppercase;
    z-index: 1;
}

/* News list section */
.news-list {
    display: flex;
    flex-direction: column;
}

.news-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.news-list-item:last-child {
    border-bottom: none;
}

.news-list-item:hover {
    padding-left: 0.5rem;
}

.news-list-item:hover h4 {
    color: var(--accent);
}

.news-list-badge {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: linear-gradient(135deg,
        hsl(var(--ph-hue, 210) 50% 25%) 0%,
        hsl(var(--ph-hue, 210) 40% 15%) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    letter-spacing: 1px;
}

.news-list-content {
    flex: 1;
    min-width: 0;
}

.news-list-content h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
}

.news-list-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.news-list-arrow {
    flex-shrink: 0;
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.news-list-item:hover .news-list-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

.matches-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.match-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.match-competition {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 1.5px;
}

.match-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.match-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.team {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.team-home { flex-direction: row; }
.team-away { flex-direction: row-reverse; text-align: right; }

.team-name {
    font-weight: 600;
    font-size: 1rem;
}

.team-flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.team-crest {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.team-crest-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-dark);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 0.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.score-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.score {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.score-live {
    color: var(--success);
    animation: pulse 1.5s infinite;
}

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

.score-time {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.match-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    margin-top: 0.75rem;
}

.match-status.live { background: var(--success); animation: pulse 1.5s infinite; }
.match-status.finished { background: var(--text-secondary); }

.live-match {
    border-color: var(--success) !important;
    box-shadow: 0 0 0 1px rgba(63,185,80,0.3);
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.tab-container {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(15, 76, 117, 0.4);
}

.tab-content {
    display: none;
}

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

.table-container {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th {
    background: var(--primary-dark);
    padding: 1.25rem 1rem;
    text-align: left;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.standings-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.standings-table tr:hover td {
    background: var(--bg-card-hover);
}

.standings-table .pos {
    font-weight: 700;
    color: var(--primary);
}

.standings-table .team-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.standings-table .team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.top-scorers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.scorer-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.scorer-card:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.scorer-rank {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

.scorer-rank.gold { background: #FFD700; color: #000; }
.scorer-rank.silver { background: #C0C0C0; color: #000; }
.scorer-rank.bronze { background: #CD7F32; color: #fff; }

.scorer-info {
    flex: 1;
}

.scorer-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.scorer-team {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.scorer-goals {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.trivia-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.trivia-start {
    text-align: center;
}

.trivia-start h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.trivia-start p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.trivia-btn {
    background: var(--primary-light);
    color: var(--text-primary);
    border: 2px solid var(--accent);
    padding: 1rem 2rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trivia-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: scale(1.05);
}

.trivia-progress {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.trivia-progress-bar {
    height: 100%;
    background: var(--primary-light);
    transition: width 0.3s ease;
}

.trivia-question-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.trivia-score {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.trivia-question {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.trivia-category {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.trivia-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.trivia-option {
    padding: 1rem;
    background: var(--bg-card-hover);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.trivia-option:hover:not(:disabled) {
    border-color: var(--accent);
    background: rgba(255, 215, 0, 0.1);
}

.trivia-option:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.trivia-option.correct {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

.trivia-option.incorrect {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.trivia-final {
    text-align: center;
    padding: 2rem;
}

.trivia-final h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.trivia-final-score {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.trivia-final-message {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.trivia-share {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card-hover);
    border-radius: 12px;
}

.trivia-share-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.trivia-share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.trivia-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.trivia-share-btn.twitter {
    background: #000000;
    color: white;
}

.trivia-share-btn.twitter:hover {
    background: #333333;
}

.trivia-share-btn.whatsapp {
    background: #25D366;
    color: white;
}

.trivia-share-btn.whatsapp:hover {
    background: #20BD5A;
}

.trivia-share-btn.copy {
    background: var(--primary-light);
    color: white;
}

.trivia-share-btn.copy:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 3rem 1rem;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--accent-gold);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

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

.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    color: #EF4444;
}

/* Mobile hamburger menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    z-index: 101;
}

/* Clasificatorias table */
.table-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    margin-right: 0.5rem;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.clasificatorias-table .zona-directa td:first-child {
    border-left: 3px solid var(--success);
}

.clasificatorias-table .zona-repechaje {
    background: rgba(50, 130, 184, 0.15);
}

.clasificatorias-table .zona-repechaje td:first-child {
    border-left: 3px solid var(--accent);
}

.standings-legend {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding: 0.75rem 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.zona-directa-color { background: var(--success); }
.zona-repechaje-color { background: var(--accent); }
.zona-eliminado-color { background: var(--text-secondary); }

/* Hide on mobile utility */
.hide-mobile { }

/* ===================== */
/* RESPONSIVE BREAKPOINTS */
/* ===================== */

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

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

@media (max-width: 768px) {
    /* Header hamburger */
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        transform: none;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 0.5rem 0;
        gap: 0;
        z-index: 100;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .main-nav.open {
        display: flex;
    }

    .main-nav .nav-link {
        padding: 0.85rem 1.25rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        text-align: left;
        border-radius: 0;
    }

    /* Dropdown en móvil: inline, no absoluto */
    .nav-dropdown {
        width: 100%;
        flex-direction: column;
        display: flex;
    }

    .nav-dropdown .dropdown-menu {
        position: static !important;
        display: none;
        background: rgba(255,255,255,0.04);
        border: none;
        border-left: 3px solid var(--accent-gold);
        margin-left: 1.25rem;
        padding: 0;
        box-shadow: none;
        min-width: auto;
        border-radius: 0;
    }

    .nav-dropdown.mobile-open .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .header {
        position: relative;
    }

    /* Hero */
    .hero {
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    /* Grids */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    /* Sections */
    .section {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    /* Match cards */
    .match-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .match-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding-bottom: 0.5rem;
    }

    .match-teams {
        gap: 0.5rem;
    }

    .team-name {
        font-size: 0.85rem;
    }

    .score {
        font-size: 1.5rem;
    }

    .score-container {
        min-width: 60px;
    }

    .team {
        gap: 0.5rem;
    }

    .team-flag {
        width: 24px;
        height: 17px;
    }

    /* Standings table */
    .standings-table {
        font-size: 0.8rem;
    }

    .standings-table th, .standings-table td {
        padding: 0.5rem 0.35rem;
    }

    .hide-mobile {
        display: none;
    }

    .table-flag {
        width: 16px;
        height: 11px;
        margin-right: 0.3rem;
    }

    .standings-legend {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    /* Tabs */
    .trivia-options {
        grid-template-columns: 1fr;
    }

    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    /* Teams bar */
    .chilean-teams-bar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .chilean-teams-container {
        justify-content: flex-start;
        padding: 0.5rem 1rem;
        min-width: max-content;
    }

    /* Container */
    .container {
        padding: 1rem 0.75rem;
    }

    /* News cards */
    .news-card-image {
        height: 150px;
    }

    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    /* Agenda selectable */
    .match-card.selectable {
        padding-left: 3rem;
    }

    /* Trivia */
    .trivia-container {
        padding: 1.25rem;
    }

    .trivia-question {
        font-size: 1.1rem;
    }

    /* Scorers */
    .top-scorers-grid {
        grid-template-columns: 1fr;
    }

    /* Modal */
    .tm-panel {
        width: 95%;
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    .logo-icon {
        font-size: 1.5rem;
        width: 32px;
        height: 32px;
    }

    .team-logo-link {
        width: 40px;
        height: 40px;
    }

    .section-title {
        font-size: 1.1rem;
    }

    .section-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.75rem;
    }

    .team-name {
        font-size: 0.78rem;
    }

    .score {
        font-size: 1.3rem;
    }

    .score-container {
        min-width: 50px;
    }

    .match-competition {
        font-size: 0.7rem;
    }

    .match-date {
        font-size: 0.7rem;
    }

    .news-card-title {
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-excerpt {
        font-size: 0.95rem;
    }

    .standings-table {
        font-size: 0.72rem;
    }

    .standings-table th, .standings-table td {
        padding: 0.4rem 0.25rem;
    }

    .standings-table .team-cell {
        gap: 0.35rem;
    }

    .tab-buttons {
        gap: 0.35rem;
    }

    .tab-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.72rem;
    }

    .trivia-final-score {
        font-size: 3rem;
    }
}

/* Team Modal */
#team-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-panel {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0;
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.25s ease-out;
}

.tm-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-dark);
    border-radius: 16px 16px 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.tm-header h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    text-transform: uppercase;
    flex: 1;
}

.tm-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 4px;
}

.tm-close {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tm-close:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.tm-section {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.tm-section:last-child {
    border-bottom: none;
}

.tm-section h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.tm-match {
    padding: 0.75rem 0;
}

.tm-match + .tm-match {
    border-top: 1px solid var(--border-color);
}

.tm-round {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tm-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.tm-team {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
}

.tm-team:last-child {
    text-align: right;
}

.tm-score {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 60px;
    text-align: center;
}

.tm-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
    min-width: 60px;
    text-align: center;
}

.tm-status {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    padding: 0.2rem 0.6rem;
    background: var(--bg-dark);
    border-radius: 4px;
}

.tm-status.finished {
    color: var(--accent);
}

.tm-empty {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem 0;
}

.team-logo-link.active {
    box-shadow: 0 0 0 3px var(--accent);
    transform: scale(1.1);
}

/* Social Feeds */
.social-feeds {
    gap: 1.5rem;
}

.social-feed-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.social-feed-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.social-icon {
    flex-shrink: 0;
}

.social-feed-card iframe,
.social-feed-card .twitter-timeline {
    display: block;
    width: 100%;
    min-height: 500px;
}

.agenda-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.agenda-filter-btn {
    padding: 0.5rem 1.1rem;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.agenda-filter-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.agenda-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-primary);
}

.agenda-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.agenda-instructions {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.agenda-share-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.agenda-share-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

.match-card.selectable {
    position: relative;
    padding-left: 3.5rem;
    cursor: pointer;
}

.match-card.selected {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.15) 0%, rgba(0, 200, 83, 0.05) 100%);
    box-shadow: 0 0 20px rgba(0, 200, 83, 0.2);
}

.match-checkbox {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
}

.agenda-checkbox {
    display: none;
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: var(--bg-card);
}

.agenda-checkbox:checked + .checkbox-custom {
    background: var(--accent);
    border-color: var(--accent);
}

.agenda-checkbox:checked + .checkbox-custom::after {
    content: '✓';
    color: var(--bg-dark);
    font-weight: bold;
    font-size: 14px;
}

/* Share Modal */
#share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.share-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.share-panel {
    position: relative;
    background: var(--bg-card);
    border-radius: 16px 16px 0 0;
    padding: 1.5rem;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.share-panel h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-option:hover {
    border-color: var(--accent);
    background: rgba(0, 200, 83, 0.1);
}

.share-icon {
    font-size: 1.3rem;
}

.share-cancel {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    padding: 0.75rem;
    cursor: pointer;
    margin-top: 0.25rem;
}

.share-cancel:hover {
    color: var(--text-primary);
}

/* === INICIO UI IMPROVEMENTS === */

/* News ticker bar */
.ticker-bar {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 36px;
}

.ticker-label {
    flex-shrink: 0;
    background: #c8102e;
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 0;
    bottom: 0;
    width: 16px;
    background: #c8102e;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.ticker-track {
    flex: 1;
    overflow: hidden;
    padding-left: 1rem;
}

.ticker-content {
    display: flex;
    gap: 0;
    white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
}

.ticker-item {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.ticker-sep {
    color: var(--accent);
    margin: 0 1.5rem;
}

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

/* Hero CTA button */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--accent-gold);
    color: var(--bg-dark);
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-cta:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 208, 63, 0.3);
}

.cta-arrow {
    transition: transform 0.3s ease;
}

.hero-cta:hover .cta-arrow {
    transform: translateX(4px);
}

/* Home layout with sidebar */
.home-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Sidebar */
.home-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-dark);
}

.widget-header h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.widget-link {
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.widget-link:hover {
    color: var(--accent-gold);
}

.widget-badge {
    font-size: 0.65rem;
    background: rgba(200, 16, 46, 0.2);
    color: #c8102e;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mini standings */
.mini-standings {
    padding: 0.5rem 0;
}

.mini-row {
    display: flex;
    align-items: center;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.mini-row:hover:not(.mini-header-row) {
    background: var(--bg-card-hover);
}

.mini-header-row {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    padding: 0.4rem 1.25rem;
}

.mini-row.highlight {
    background: rgba(15, 76, 117, 0.15);
    border-left: 3px solid var(--accent);
}

.mini-pos {
    width: 24px;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Oswald', sans-serif;
}

.mini-team {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-pts {
    width: 32px;
    text-align: right;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
    color: var(--text-primary);
}

/* Next match widget */
.next-match-widget {
    padding: 1.25rem;
    text-align: center;
}

.nmw-competition {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

.nmw-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.nmw-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.nmw-flag {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg,
        hsl(var(--ph-hue, 210) 50% 30%) 0%,
        hsl(var(--ph-hue, 210) 40% 18%) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    letter-spacing: 1px;
}

.nmw-vs {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.nmw-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.nmw-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--primary);
    color: var(--text-primary);
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nmw-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

/* Trivia widget */
.trivia-widget {
    padding: 1.25rem;
    text-align: center;
}

.trivia-widget-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.trivia-widget-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #e6c235 100%);
    color: var(--bg-dark);
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.trivia-widget-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 208, 63, 0.3);
}

/* Category-colored badges */
.badge-roja { background: #c8102e; }
.badge-seleccion { background: #c8102e; }
.badge-intl { background: var(--primary-light); }
.badge-liga { background: #2d6a4f; }

/* Improved footer */
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    text-align: left;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.footer-social-link:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.footer-nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-nav-title {
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-nav-links a,
.footer-nav-links span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-nav-links a:hover {
    color: var(--accent);
}

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

/* Responsive for home layout */
@media (max-width: 1024px) {
    .home-layout {
        grid-template-columns: 1fr;
    }

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

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .home-layout {
        gap: 1rem;
    }

    .home-sidebar {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-nav-group {
        align-items: center;
    }

    .ticker-bar {
        display: none;
    }

    .footer {
        padding: 2rem 1rem;
    }
}

/* Social posts (static feed) */
.social-posts {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.social-post {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.social-post:last-of-type {
    border-bottom: none;
}

.sp-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.sp-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.sp-user {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.sp-user strong {
    font-size: 0.85rem;
}

.sp-user span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sp-platform {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.sp-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.sp-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.sp-image-placeholder {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    background: linear-gradient(135deg,
        hsl(var(--ph-hue, 210) 50% 22%) 0%,
        hsl(var(--ph-hue, 210) 40% 12%) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    letter-spacing: 2px;
}

.sp-follow-btn {
    display: block;
    text-align: center;
    padding: 0.75rem;
    margin: 0.5rem 0.5rem 0;
    background: var(--bg-card-hover);
    color: var(--text-primary);
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.sp-follow-btn:hover {
    background: #000;
    border-color: #333;
}

.sp-follow-btn.ig:hover {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    border-color: transparent;
    color: white;
}

/* ============================================================
   BANNERS PUBLICITARIOS
   ============================================================ */
.banner-area {
    margin: 1.5rem auto;
    text-align: center;
    width: 100%;
}

.banner-area[data-posicion="leaderboard"] {
    max-width: 728px;
}

.banner-area[data-posicion="sidebar"],
.banner-area[data-posicion="rectangle"] {
    max-width: 320px;
}

.banner-inner {
    display: inline-block;
    width: 100%;
}

.banner-img-link {
    display: block;
    line-height: 0;
}

.banner-img-link img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: opacity 0.2s;
}

.banner-img-link:hover img {
    opacity: 0.9;
}

.banner-placeholder {
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}

.banner-placeholder span {
    color: var(--text-secondary);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.banner-label {
    display: block;
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 0.2rem;
    opacity: 0.35;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Banner leaderboard entre hero y main */
.banner-strip {
    background: var(--bg-dark);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.banner-strip .banner-area {
    margin: 0 auto;
}
