/*
Theme Name: Golazo 2026 Premium
Theme URI: https://tusitio.com
Author: Equipo de Diseño
Description: Plantilla deportiva premium optimizada para el Mundial 2026.
Version: 1.0
Text Domain: golazo26
*/

/* STREAMING_CHUNK: Variables y Reset */
:root {
--bg-dark: #0f172a;
--bg-card: #1e293b;
--bg-card-hover: #334155;
--accent: #ccff00;
--accent-hover: #a3cc00;
--text-main: #f8fafc;
--text-muted: #94a3b8;
--danger: #ef4444;
--border-color: #334155;
--font-heading: 'Oswald', sans-serif;
--font-body: 'Inter', sans-serif;
--container-width: 1280px;
}

{ margin: 0; padding: 0; box-sizing: border-box; }
body { background-color: var(--bg-dark); color: var(--text-main); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent); }
ul { list-style: none; }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

/* STREAMING_CHUNK: Ticker Resultados */
.live-ticker { background-color: #000; border-bottom: 1px solid var(--border-color); height: 40px; display: flex; align-items: center; overflow: hidden; font-size: 13px; font-weight: 600; }
.ticker-label { background-color: var(--accent); color: #000; font-weight: 700; height: 100%; display: flex; align-items: center; padding: 0 15px; text-transform: uppercase; letter-spacing: 1px; z-index: 2; position: relative; }
.ticker-content { display: flex; animation: ticker 30s linear infinite; white-space: nowrap; }
.match-score { display: inline-flex; align-items: center; gap: 10px; padding: 0 30px; border-right: 1px solid var(--border-color); }
.match-score .time { color: var(--danger); font-weight: bold; }
.match-score .team { color: var(--text-main); }
.match-score .score { color: var(--accent); font-size: 16px; font-weight: bold; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* STREAMING_CHUNK: Cabecera */
.main-header { background-color: var(--bg-dark); border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.main-header.scrolled { background-color: rgba(15, 23, 42, 0.90); backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-bottom: 1px solid transparent; }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 120px; transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.main-header.scrolled .header-inner { height: 70px; }
.logo { font-family: var(--font-heading); font-size: 48px; font-weight: 700; text-transform: uppercase; letter-spacing: -1px; width: 250px; display: block; transition: font-size 0.4s ease, transform 0.4s ease; transform-origin: left center; }
.main-header.scrolled .logo { font-size: 28px; }
.logo span { color: var(--accent); }
.main-nav { display: flex; gap: 30px; }
.main-nav a { font-family: var(--font-heading); font-size: 18px; text-transform: uppercase; font-weight: 500; letter-spacing: 0.5px; padding: 10px 0; position: relative; }
.main-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px; background-color: var(--accent); transition: width 0.3s ease; }
.main-nav a:hover::after { width: 100%; }
.user-actions { display: flex; gap: 20px; align-items: center; font-size: 20px; }
.mobile-menu-btn { display: none; font-size: 24px; cursor: pointer; color: var(--text-main); background: none; border: none; }

/* STREAMING_CHUNK: Búsqueda Overlay */
.search-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(15, 23, 42, 0.98); backdrop-filter: blur(10px); z-index: 9999; display: flex; justify-content: center; align-items: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.search-overlay.active { opacity: 1; pointer-events: auto; }
.search-close { position: absolute; top: 40px; right: 40px; font-size: 40px; color: #fff; cursor: pointer; background: none; border: none; transition: color 0.3s ease; }
.search-close:hover { color: var(--accent); }
.search-form { width: 80%; max-width: 800px; position: relative; }
.search-input { width: 100%; background: transparent; border: none; border-bottom: 2px solid var(--text-muted); font-size: 48px; color: #fff; padding: 20px 0; font-family: var(--font-heading); outline: none; transition: border-color 0.3s ease; }
.search-input:focus { border-color: var(--accent); }
.search-submit { position: absolute; right: 0; bottom: 30px; background: none; border: none; color: var(--accent); font-size: 32px; cursor: pointer; }

/* STREAMING_CHUNK: AdSense y Layout */
.ad-container { display: flex; justify-content: center; align-items: center; margin: 30px auto; background-color: #1e293b; border: 1px dashed #475569; color: #64748b; font-family: monospace; text-transform: uppercase; position: relative; }
.ad-container::before { content: 'Espacio Patrocinado'; position: absolute; top: 5px; left: 5px; font-size: 10px; color: #94a3b8; }
.ad-leaderboard { width: 728px; height: 90px; max-width: 100%; }
.ad-sidebar { width: 300px; height: 600px; margin: 0 auto; }
.ad-infeed { width: 100%; height: 150px; margin: 20px 0; }

.hero-section { margin-bottom: 40px; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; height: 500px; }
.hero-article { position: relative; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; }
.hero-article::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%); z-index: 1; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.5s ease; }
.hero-article:hover .hero-bg { transform: scale(1.05); }
.hero-content { position: relative; z-index: 2; }
.category-tag { display: inline-block; background-color: var(--accent); color: #000; font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; margin-bottom: 15px; }
.hero-article.main h2 { font-family: var(--font-heading); font-size: 42px; line-height: 1.1; margin-bottom: 10px; text-transform: uppercase; }
.hero-article.secondary { height: calc(250px - 10px); padding: 20px; }
.hero-article.secondary h2 { font-family: var(--font-heading); font-size: 24px; line-height: 1.2; text-transform: uppercase; }
.hero-side { display: flex; flex-direction: column; gap: 20px; }

.main-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-bottom: 60px; }
.section-header-link { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; }
.section-header-link h2 { font-family: var(--font-heading); font-size: 28px; text-transform: uppercase; display: flex; align-items: center; gap: 12px; margin: 0; }
.section-header-link h2::before { content: ''; display: block; width: 6px; height: 28px; background-color: var(--accent); }
.section-header-link a { color: var(--accent); font-size: 14px; text-transform: uppercase; font-weight: 600; }
.category-section { margin-bottom: 50px; }

.cat-hero-card { position: relative; border-radius: 12px; overflow: hidden; height: 350px; display: flex; align-items: flex-end; border: 1px solid var(--border-color); }
.cat-hero-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.4) 60%, transparent 100%); z-index: 1; }
.cat-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.5s ease; }
.cat-hero-card:hover .cat-hero-bg { transform: scale(1.05); }
.cat-hero-content { position: relative; z-index: 2; padding: 30px; width: 100%; }
.cat-hero-content h3 { font-family: var(--font-heading); font-size: 32px; line-height: 1.2; color: #fff; margin: 10px 0; }

.cat-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.news-card-vertical { background-color: var(--bg-card); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s ease, background-color 0.2s ease; border: 1px solid transparent; }
.news-card-vertical:hover { background-color: var(--bg-card-hover); border-color: var(--accent); transform: translateY(-5px); }
.news-card-vertical-img { width: 100%; aspect-ratio: 16/10; position: relative; }
.news-card-vertical-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.news-card-vertical-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between;}
.news-card-vertical h3 { font-family: var(--font-heading); font-size: 20px; line-height: 1.3; margin: 10px 0; color: var(--text-main); }

.news-feed { display: flex; flex-direction: column; gap: 25px; }
.news-card { display: flex; background-color: var(--bg-card); border-radius: 8px; overflow: hidden; transition: background-color 0.2s ease; }
.news-card:hover { background-color: var(--bg-card-hover); }
.news-card-img { width: 280px; flex-shrink: 0; position: relative; }
.news-card-img::after { content: ''; display: block; padding-bottom: 66.66%; }
.news-card-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.news-card-content { padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.news-card-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; display: flex; gap: 15px; }
.news-card h3 { font-family: var(--font-heading); font-size: 22px; line-height: 1.3; margin-bottom: 10px; color: var(--text-main); }
.news-card p { color: var(--text-muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* STREAMING_CHUNK: Sidebar y Footer */
.sidebar { display: flex; flex-direction: column; gap: 40px; }
.sticky-wrapper { position: sticky; top: 100px; }
.widget { background-color: var(--bg-card); border-radius: 8px; padding: 25px; border-top: 4px solid var(--accent); }
.widget-title { font-family: var(--font-heading); font-size: 22px; text-transform: uppercase; margin-bottom: 20px; color: var(--text-main); }
.standings-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.standings-table th { text-align: left; padding: 10px 5px; color: var(--text-muted); border-bottom: 1px solid var(--border-color); font-weight: 600; }
.standings-table td { padding: 12px 5px; border-bottom: 1px solid var(--border-color); }
.standings-table tr:last-child td { border-bottom: none; }
.team-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.qualify-zone { border-left: 2px solid var(--accent); }

.main-footer { background-color: #000; padding: 60px 0 30px; margin-top: 60px; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-family: var(--font-heading); font-size: 20px; text-transform: uppercase; margin-bottom: 20px; color: var(--text-main); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: 15px; }
.footer-col a:hover { color: var(--accent); }
.copyright { text-align: center; color: var(--text-muted); font-size: 14px; padding-top: 30px; border-top: 1px solid var(--border-color); }

/* STREAMING_CHUNK: Animaciones Globales WP y Media Queries */
.reveal-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); will-change: opacity, transform; }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
.hero-grid { grid-template-columns: 1fr; height: auto; }
.hero-article.main { height: 400px; }
.hero-side { display: grid; grid-template-columns: 1fr 1fr; }
.main-layout { grid-template-columns: 1fr; }
.sidebar { max-width: 400px; margin: 0 auto; width: 100%; }
}
@media (max-width: 768px) {
.main-nav { display: none; }
.mobile-menu-btn { display: block; }
.hero-side { grid-template-columns: 1fr; }
.news-card { flex-direction: column; }
.news-card-img { width: 100%; }
.cat-grid-2 { grid-template-columns: 1fr; }
.cat-hero-card { height: 300px; }
.footer-grid { grid-template-columns: 1fr 1fr; }
.ad-leaderboard { height: auto; min-height: 50px; }
}