/* RESET SIMPLE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
header {
  position: relative;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Arial, sans-serif;
  background: #000; 
  color: #fff; 
}

/* HEADER */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo a la izq, banner a la der/centro */
  padding: 5px 50px 2px 5px;
  background-color: #111;
  border-bottom: 2px solid #d50a0a;
}

.logo img {
  height: 40px;
  position: relative;
  margin-bottom: 500px;
  left: 25px;
}

.navbar ul {
  list-style: none; /* Quita los puntos */
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.navbar li {
  margin: 0; /* Evita espacio vertical */
}

.navbar {
  position: fixed;
  justify-content: center;
  padding: 15px 0;
  position: absolute;
  margin-bottom: 450px;
  left: 0%;
  position: sticky;
  top: 0;
  transform: translateX(-50%);
  gap: 20px;
  z-index: 20;
}

/* Estilo de los botones */
.navbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 45px;
  padding: 0 20px;
  background-color: #c8102e;
  color: #ffffff;
  font-family: "College", sans-serif;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  transition: background 0.3s ease;
}

/* Efecto hover */
.navbar a:hover {
  background-color: #ff0028;
  transform: translateY(-2px);
}

.banner {
  position: absolute;
  margin-right: 50%;
  margin-top: 5%;
  max-width: 100%;
  max-height: auto;
  display: block;
}

section {
  padding: 80px 20px;
  color: #fff;
  margin-top: 250px;
}

#proximos-partidos {
  background-color: #111;
  min-height: 300px;
}

.ny {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.eagles {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

#proximos-partidos {
  padding: 40px 20px;
  background-color: #111;
  color: #fff;
  text-align: center;
}

#proximos-partidos h2 {
  font-family: "College", sans-serif;
  font-size: 2rem;
  margin-bottom: 30px;
  border-bottom: 2px solid #c8102e;
  display: inline-block;
  padding-bottom: 5px;
}

/* ==== Card del partido ==== */
.card-partido {
  background-color: #1c1c1c;
  border: 2px solid #c8102e;
  border-radius: 10px;
  padding: 20px;
  width: 250px;
  height: 300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease-in-out;
}

.card-partido:hover {
  transform: translateY(-5px);
}

/* ==== Equipos enfrentados ==== */
.equipos {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 15px;
}

.equipo p {
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: bold;
}

.vs {
  font-size: 1.2rem;
  font-weight: bold;
  color: #c8102e;
}

.info-partido .fecha {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 5px;
}

.info-partido .estadio {
  font-size: 15px;
  color: #ccc;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

html {
  scroll-behavior: smooth;
}

.site-footer {
  background: #090909;
  color: #bbb;
  padding: 60px 20px;
  position: relative;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative; 
}

/* Boton dentro del footer */
.footer-inner .btn-top {
  position: sticky;          
  bottom: 30px;              
  margin-left: auto;        
  background-color: #c8102e;
  color: #fff;
  text-decoration: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
  transition: transform .2s ease, background .2s ease;
  z-index: 5;                
}

/* Hover*/
.footer-inner .btn-top:hover {
  transform: translateY(-4px);
  background-color: #a30f25;
}


/* ==== Sección AFC ==== */
.afc-section {
  padding: 50px 20px;
  background-color: #111;
  color: #fff;
  text-align: center;
}

.afc-section h2 {
  color: white;
  border-bottom: 2px solid #c8102e;
  font-size: 2rem;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.afc-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.division {
  background-color: #1a1a1a;
  border: 1px solid #c8102e;
  border-radius: 10px;
  padding: 20px;
  width: 220px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  transition: transform 0.2s;
}

.division:hover {
  transform: scale(1.05);
}

.division h3 {
  color: #fff;
  font-size: 1.2rem;
  border-bottom: 1px solid #555;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.division ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.division li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin: 8px 0;
}

.division img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.medium{
  position: absolute;
  margin-left: 25%;
  max-width: auto;
  margin-top: 30px;
  max-height: 200px;
  display: block;
  
}

.banner2{
  position: absolute;
  margin-right: 50%;
  margin-top: 1%;
  margin-left: 25%;
  max-width: 50%;
  max-height: auto;
  display: block;
}

/* ==== Sección Top 10 ==== */
.top10-section {
  padding: 60px 20px;
  background-color: #0d0d0d;
  color: #fff;
  text-align: center;
}

.top10-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* ==== Card Jugador ==== */
.player-card {
  background: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  width: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #c8102e;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.player-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.player-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.player-info {
  padding: 15px;
  text-align: left;
}

.player-info h3 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 8px;
}

.player-info p {
  margin: 5px 0;
  font-size: 0.95rem;
  color: #ccc;
}

.player-info span {
  color: #c8102e;
  font-weight: bold;
}


/* ESTILOS RESPONSIVE */

/* TABLET */
@media (max-width: 1024px) {
  /* Navbar */
  .navbar ul {
    gap: 20px;
    font-size: 1rem;
  }

  /* Containers */
  .cards-container {
    gap: 20px;
    justify-content: center;
    padding: 20px;
  }

  /* Cards generales */
  .card-partido,
  .team-card,
  .player-card {
    width: 45%;
    height: auto;
    margin: 0 auto;
  }

  .card-partido img,
  .team-card img,
  .player-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* Textos */
  h1, h2, h3 {
    font-size: 1.6rem;
  }

  p {
    font-size: 1rem;
  }

  /* Footer */
  footer {
    padding: 40px 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}


/* MÓVILES  */
@media (max-width: 600px) {

  /* Navbar */
  .navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .navbar ul {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    background-color: #111;
  }

  .navbar li a {
    display: block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
    background-color: #c8102e;
    color: white;
    transition: background 0.2s ease-in-out;
  }

  .navbar li a:hover {
    background-color: #a30d25;
  }

  /* Cards */
  .card-partido,
  .team-card,
  .player-card {
    width: 90%;
    height: auto;
    margin: 0 auto 20px auto;
  }

  /* Contenido interno */
  .equipos {
    flex-direction: column;
    gap: 10px;
  }

  .vs {
    font-size: 1rem;
  }

  .player-card h3,
  .team-card h3,
  .card-partido p {
    font-size: 0.9rem;
    text-align: center;
  }

  /* Container general */
  .cards-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 10px;
  }

  /* Botón scroll-up */
  .btn-top {
    width: 45px;
    height: 45px;
    font-size: 20px;
    bottom: 20px;
    right: 20px;
  }

  /* Footer */
  footer {
    padding: 30px 15px;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 15px;
  }

  .footer-inner .btn-top {
    position: sticky;
    margin-top: 10px;
  }
}
