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

:root {
  --bg-primary: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --text-primary: #f5f5f5;
  --text-secondary: #aaa;
  --accent: #ffffff;
  --transition: 0.3s ease;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
}

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

section {
  padding: 80px 10%;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 10%;
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(8px);
}

/* LOGO */
.logo {
  position: relative;
  width: 160px;
  height: 60px;
}

.logo img {
  position: absolute;
  left: 0;
  transition: all 0.4s ease;
}

.logo-full {
  height: 60px;
  top: 0;
  opacity: 1;
}

.logo-icon {
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
}

.navbar.scrolled .logo-full {
  opacity: 0;
  transform: translateY(-5px) scale(0.95);
}

.navbar.scrolled .logo-icon {
  opacity: 1;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 30px;
}

nav a {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: var(--transition);
}

nav a:hover {
  opacity: 1;
}

/* BOTON MÓVIL */
.nav-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  background-image: url("../assets/images/hero.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 0 10%;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  max-width: 800px;
}

.hero p {
  max-width: 500px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* ===== BUTTONS ===== */
.btn,
.btn-outline {
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 0.9rem;
  margin-right: 15px;
  transition: var(--transition);
  display: inline-block;
}

.btn {
  background: var(--accent);
  color: #000;
}

.btn:hover {
  background: #ddd;
}

.btn-outline {
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #000;
}

/* ===== CARDS ===== */
.project-card,
.article-card {
  background: var(--bg-secondary);
  padding: 30px;
  border-radius: 8px;
  transition: var(--transition);
}

.project-card:hover,
.article-card:hover {
  background: #222;
  transform: translateY(-5px);
}

.article-card a {
  display: inline-block;
  margin-top: 15px;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: var(--transition);
}

.article-card a:hover {
  opacity: 1;
}

/* ===== ARTICLES GRID ===== */
.articles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .articles {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== ANALISIS ===== */
.analisis {
  padding: 80px 10%;
  background: #0f0f0f;
  color: white;
}

.analisis h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2rem;
}

.analisis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.analisis-card {
  background: #1a1a1a;
  padding: 25px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.analisis-card:hover {
  transform: translateY(-5px);
}

.analisis-card h3 {
  margin-bottom: 10px;
}

.analisis-card p {
  color: #aaa;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 40px;
  font-size: 0.8rem;
  color: #777;
}

/* ===== JERSEYS ===== */
.jerseys h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.jersey-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 10px;
}

.jersey-container::-webkit-scrollbar {
  height: 8px;
}

.jersey-container::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.jersey-card {
  flex: 0 0 auto;
  width: 250px;
  background: var(--bg-secondary);
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  scroll-snap-align: start;
}

.jersey-card:hover {
  background: #222;
  transform: translateY(-5px);
}

.jersey-card img {
  width: 100%;
  border-radius: 5px;
  margin-bottom: 15px;
  object-fit: cover;
  height: 150px;
}

.jersey-card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.jersey-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===== OTROS DEPORTES ===== */
.other-sports h2 {
  font-size: 1.8rem;
  margin-bottom: 40px;
  text-align: center;
}

.sports-columns {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
}

.sport-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 250px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.sport-column:hover {
  transform: translateY(-5px);
}

.icon-circle {
  width: 80px;
  height: 80px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  margin-bottom: 15px;
  transition: background 0.3s ease;
}

.sport-column:hover .icon-circle {
  background: #222;
}

.sport-column h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.sport-articles {
  list-style: none;
  padding: 0;
}

.sport-articles li {
  margin-bottom: 8px;
}

.sport-articles li a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.sport-articles li a:hover {
  color: #ddd;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

  section {
    padding: 60px 6%;
  }

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

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 15px;
    background: var(--bg-primary);
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    padding: 20px;
    border-radius: 0 0 8px 8px;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .sports-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    justify-items: center;
    max-width: 1000px;
    margin: auto;
  }

  .logo {
    width: 130px;
    height: 50px;
  }

  .logo-full {
    height: 50px;
  }

  .logo-icon {
    height: 35px;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}