/* ============================================================
   TITULAZO.COM - CSS COMPLETO
   ============================================================ */

/* ---------- VARIABLES ---------- */
:root {
  --header-bg: rgba(10, 10, 15, 0.95);
  --header-border: rgba(255, 255, 255, 0.08);
  --nav-link-color: #e0e0e0;
  --nav-link-hover: #ffffff;
  --nav-link-active: #f5c518;
  --nav-height: 70px;
  --transition-fast: 0.2s ease;
  
  --bg-base: #0A0A0F;
  --bg-surface: #12121A;
  --bg-card: #1A1A26;
  --bg-card-hover: #20202E;
  --bg-input: #1E1E2C;
  
  --text-primary: #F0F0FF;
  --text-secondary: #A8A8C0;
  --text-muted: #6B6B85;
  --text-accent: #A78BFA;
  
  --border-color: rgba(255,255,255,0.07);
  --brand-primary: #7C3AED;
  --brand-secondary: #EC4899;
  --brand-accent: #F59E0B;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  padding-top: var(--nav-height);
}

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

/* ============================================================
   HEADER Y NAVEGACIÓN (ESTILO UEFA)
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-border);
  height: var(--nav-height);
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  background: rgba(10, 10, 15, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
 align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  flex-shrink: 0;
}

.logo a {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  color: #f5c518;
  transition: opacity var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo a:hover {
  opacity: 0.85;
}

.logo-icon {
  font-size: 1.6rem;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--nav-link-color);
  text-decoration: none;
  border-radius: 8px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--nav-link-hover);
  background: rgba(255, 255, 255, 0.05);
}

.main-nav a.active {
  color: var(--nav-link-active);
  background: rgba(245, 197, 24, 0.1);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: #f5c518;
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #e0e0e0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ============================================================
   CONTENIDO PRINCIPAL (TARJETAS, ARTÍCULOS, etc.)
   ============================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #111 0%, #0a0a0a 100%);
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #f5c518;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* Grid de deportes */
.grid-deportes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.deporte-card {
  background: var(--bg-card);
  padding: 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.2s;
  border: 1px solid var(--border-color);
}

.deporte-card span {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.deporte-card:hover {
  background: #f5c518;
  color: #0a0a0a;
  transform: translateY(-3px);
}

/* Grid de titulazos */
.titulazos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.titulazo-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s;
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.titulazo-card:hover {
  transform: translateY(-3px);
  border-color: #f5c518;
  box-shadow: var(--shadow-md);
}

.titulazo-img {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
}

.titulazo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.titulazo-content {
  padding: 1rem;
}

.titulazo-content h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #f5c518;
}

.titulazo-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.titulazo-meta {
  display: flex;
  gap: 0.8rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.btn-ver {
  display: inline-block;
  margin-top: 0.5rem;
  color: #f5c518;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Artículo individual (página de titulazo) */
.titulazo {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.titulazo h1 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #f5c518;
}

.datos-clave {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--bg-card);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  border-left: 3px solid #f5c518;
}

.datos-clave span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.video-container {
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

section {
  margin: 2rem 0;
}

section h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #f5c518;
}

section p {
  color: var(--text-secondary);
  line-height: 1.7;
}

blockquote {
  background: var(--bg-card);
  border-left: 4px solid #f5c518;
  padding: 1rem 1.5rem;
  font-style: italic;
  margin: 1rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
}

.etiquetas {
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.etiquetas a {
  background: var(--bg-input);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  text-decoration: none;
  color: #f5c518;
  font-size: 0.75rem;
}

.etiquetas a:hover {
  background: #f5c518;
  color: var(--bg-base);
}

.compartir {
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.compartir a {
  background: var(--bg-input);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  color: var(--text-primary);
  font-size: 0.8rem;
}

.compartir a:hover {
  background: #f5c518;
  color: var(--bg-base);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-color);
  margin-top: 3rem;
  background: var(--bg-surface);
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 0.5rem;
  font-size: 0.8rem;
}

.footer-links a:hover {
  color: #f5c518;
}

/* Responsive */
@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }
  
  .main-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--header-border);
    padding: 1rem 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }
  
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .main-nav a {
    width: 100%;
    padding: 0.75rem 0;
  }
  
  .main-nav a.active::after {
    display: none;
  }
  
  .titulazos-grid {
    grid-template-columns: 1fr;
  }
  
  .video-container iframe {
    height: 250px;
  }
  
  .titulazo {
    padding: 1rem;
  }
}

@media (max-width: 700px) {
  .header-container {
    padding: 0 1rem;
  }
  
  .logo a {
    font-size: 1.2rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .grid-deportes {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .datos-clave {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .grid-deportes {
    grid-template-columns: 1fr;
  }
}