* {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: #00040b;
  color: #333;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden; /* Evita scroll horizontal no deseado */
}

.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh; 
}

header {
  background-color: #00040b;
  color: white;
  padding: 1rem 1rem;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #00040b;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-bar h1 {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  margin: 0;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  color: rgb(255, 255, 255);
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 18px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-links a:hover {
  background-color: #1a3a8f;
}

main {
  flex: 1 0 auto;
  animation: fadeIn 0.8s ease-in-out;
}

.hero {
  position: relative;
  height: 275px;
}

.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(40%);
}

.hero-overlay {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-text {
  text-align: center;
  padding: 0;
}

.hero-text h2 {
  color: rgb(255, 255, 255);
  font-size: 50px;
  max-width: 800px;
  text-align: center;
  padding: 1rem;
}

.Tablas_Datos {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;  /* antes 80px */
  justify-content: center;
  margin: 45px auto 0 auto; /* menos margen inferior */
}


.tabla {
  max-width: 300px;
  width: 100%;
  background: #03112f;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease; 
  margin-bottom: 10px;
}

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

.zona-campeonato  {
  border-top: 4px solid gold;
}

.zona-ascenso  {
  border-top: 4px solid green;
}

.zona-c  {
  border-top: 4px solid blue;
}

.zona-d  {
  border-top: 4px solid red;
}

.zona-titulo {
  font-weight: bold;
  margin: 0; 
  font-size: 1.2em;
  padding: 12px;
  background: linear-gradient(to right, #03112f, #011e75);
  color: white;
  text-align: center;
  border-radius: 0;
}

.Zonas {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background-color: #03112f;
  font-size: 0.95em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  vertical-align: middle;
}

.Zonas tr{
  transition: background-color 0.3s ease;
}

.Zonas th {
  background-color: #03112f;
  color: white;
  padding: 10px;
  text-align: center;
  vertical-align: middle;
}

.Zonas td {
  padding: 8px;
  border-top: 1px solid #ddd;
}

.Zonas td:first-child,
.Zonas th:first-child {
  text-align: left;
  width: 40%; /* más ancho para nombre del equipo */
  padding-left: 8px;
}

.Zonas th:nth-child(2),
.Zonas td:nth-child(2),
.Zonas th:nth-child(3),
.Zonas td:nth-child(3),
.Zonas th:nth-child(4),
.Zonas td:nth-child(4),
.Zonas th:nth-child(5),
.Zonas td:nth-child(5) {
  width: 15%;
}

.equipo1 td {
  background-color: #ffffff;
}

.equipo2 td {
  background-color: #fff;
}

.escudo {
  vertical-align: middle;
  margin-right: 4px;
  width: 20px;
  height: 20px;
}

footer {
  background: linear-gradient(to right, #34495e, #2c3e50);    
  color: white;
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
  margin-top: auto; 
}

.proximos-partidos {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin: 20px auto;
  text-align: center;
}

.proximos-partidos section {
  max-width: 280px;
  width: 100%;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  border-radius: 15px;
  padding: 20px 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.proximos-partidos section:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.proximos-partidos h2 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.proximos-partidos ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.proximos-partidos li {
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  margin: 8px 0;
  padding: 8px 12px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: #fff;
  transition: background 0.3s ease;
}

.proximos-partidos li:hover {
  background: rgba(255,255,255,0.2);
}






footer a {
  color: #d0d0ff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none; 
  }

  .nav-bar h1 {
    font-size: 1.5rem;
  }

  .hero-text h2 {
    font-size: 28px;
    line-height: 1.2;
    padding: 0.5rem;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50px;
    right: 10px;
    background: #03112f;
    padding: 1rem;
    border-radius: 5px;
  }

  .tabla {
    max-width: 90%;
    font-size: 14px;
  }

  .Zonas th,
  .Zonas td {
    padding: 6px;
    font-size: 12px;
  }

  .escudo {
    width: 20px;
    height: 20px;
  }

  .hamburger {
    display: block;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
  }

  .Tablas_Datos {
    gap: 20px;
    margin: 10px auto;
  }
}

@media (min-width: 1200px) {
  .nav-bar h1 {
    font-size: 2rem;
  }
}
