/* ============================================================
   TITULAZO.COM — Estilo deportivo renovado
   ============================================================ */

/* ---------- VARIABLES ---------- */
:root {
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --gold: #f5c518;
  --gold-dark: #d4a800;
  --white: #ffffff;
  --gray-light: #e0e0e0;
  --gray-mid: #888888;
  --gray-dark: #2a2a2a;
  --red: #e53935;
  --red-dark: #c62828;
  --blue: #1e88e5;
  --green: #43a047;
  
  --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);
  --shadow-gold: 0 0 20px rgba(245,197,24,0.2);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- TIPOGRAFÍA ---------- */
h1, h2, h3, .logo a {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  font-weight: 800;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(135deg, var(--white) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--gold);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
}

/* ---------- HEADER / NAVBAR ---------- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--gold);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo a:hover {
  transform: scale(1.02);
  text-shadow: var(--shadow-gold);
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  padding: 0.5rem 0;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover {
  color: var(--gold);
}

/* ---------- HERO (con imagen de fondo) ---------- */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 100%),
              url('https://images.unsplash.com/photo-1461896836934-ffe607ba8211?q=80&w=2070&auto=format');
  background-size: cover;
  background-position: center;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '🏆';
  position: absolute;
  font-size: 15rem;
  opacity: 0.03;
  bottom: -50px;
  right: -50px;
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  color: var(--gray-light);
}

/* ---------- SECCIÓN DE DEPORTES (grid mejorado) ---------- */
.deportes-destacados {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.grid-deportes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.deporte-card {
  background: linear-gradient(135deg, var(--bg-card) 0%, #0f0f0f 100%);
  padding: 2rem 1rem;
  text-align: center;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  transition: all var(--transition);
  border: 1px solid var(--gray-dark);
  position: relative;
  overflow: hidden;
}

.deporte-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245,197,24,0.1), transparent);
  transition: left 0.5s ease;
}

.deporte-card:hover::before {
  left: 100%;
}

.deporte-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
}

.deporte-card span {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* ---------- ÚLTIMOS TITULAZOS (tarjetas) ---------- */
.ultimos-titulazos,
.titulazos-grid {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.titulazos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.titulazo-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  border: 1px solid var(--gray-dark);
  cursor: pointer;
}

.titulazo-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}

.titulazo-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #1e1e1e, #0a0a0a);
}

.titulazo-content {
  padding: 1.2rem;
}

.titulazo-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--gold);
}

.titulazo-content p {
  font-size: 0.85rem;
  color: var(--gray-mid);
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.titulazo-meta {
  display: flex;
  gap: 0.8rem;
  font-size: 0.75rem;
  color: var(--gray-mid);
  flex-wrap: wrap;
}

.titulazo-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-ver {
  display: inline-block;
  margin-top: 1rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.btn-ver:hover {
  transform: translateX(5px);
}

/* ---------- PÁGINA DE TITULAZO INDIVIDUAL ---------- */
.titulazo {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.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 var(--gold);
}

.datos-clave span {
  font-size: 0.9rem;
  color: var(--gray-light);
}

.video-container {
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.video-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

section {
  margin: 2rem 0;
}

h2 {
  margin-bottom: 1rem;
}

blockquote {
  background: linear-gradient(135deg, #1a1a1a, #111);
  border-left: 4px solid var(--gold);
  padding: 1.2rem 1.5rem;
  font-style: italic;
  font-size: 1.1rem;
  margin: 1rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--gray-light);
}

.etiquetas {
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.etiquetas a {
  background: var(--gray-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  text-decoration: none;
  color: var(--gold);
  font-size: 0.75rem;
  transition: var(--transition);
}

.etiquetas a:hover {
  background: var(--gold);
  color: var(--bg-dark);
}

.compartir {
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.compartir a {
  text-decoration: none;
  background: var(--gray-dark);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  color: var(--white);
  font-size: 0.85rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.compartir a:hover {
  background: var(--gold);
  color: var(--bg-dark);
}

/* ---------- LISTA DE TITULAZOS (para página de deporte) ---------- */
.lista-titulazos {
  list-style: none;
  margin-top: 1.5rem;
}

.lista-titulazos li {
  background: var(--bg-card);
  margin: 0.8rem 0;
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  border: 1px solid var(--gray-dark);
}

.lista-titulazos li:hover {
  border-color: var(--gold);
  transform: translateX(5px);
}

.lista-titulazos a {
  color: var(--white);
  text-decoration: none;
  display: block;
  font-weight: 500;
}

.lista-titulazos a:hover {
  color: var(--gold);
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--gray-dark);
  margin-top: 3rem;
  background: #050505;
}

.footer-links {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--gray-mid);
  text-decoration: none;
  margin: 0 0.5rem;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

footer p {
  color: var(--gray-mid);
  font-size: 0.8rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  
  nav ul {
    justify-content: center;
    gap: 1rem;
  }
  
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .grid-deportes {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .deporte-card {
    padding: 1rem;
    font-size: 1rem;
  }
  
  .titulazos-grid {
    grid-template-columns: 1fr;
  }
  
  .video-container iframe {
    height: 250px;
  }
  
  .datos-clave {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .grid-deportes {
    grid-template-columns: 1fr;
  }
  
  .compartir {
    flex-direction: column;
    align-items: flex-start;
  }
  
  blockquote {
    font-size: 0.9rem;
    padding: 1rem;
  }
}

/* ---------- ANIMACIONES ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.titulazo-card, .deporte-card {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.titulazo-card:nth-child(1) { animation-delay: 0.1s; }
.titulazo-card:nth-child(2) { animation-delay: 0.2s; }
.titulazo-card:nth-child(3) { animation-delay: 0.3s; }
.titulazo-card:nth-child(4) { animation-delay: 0.4s; }