/* ===== Reset básico ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== Estructura general ===== */
html, body {
  height: 100%;
  font-family: Arial, sans-serif;
  background: #f4f4f9;
  color: #333;
  display: flex;
  flex-direction: column;
}

/* ===== Encabezado ===== */
header {
  background: #004aad;
  color: white;
  text-align: center;
  padding: 20px 10px;
}

header img {
  max-width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

header h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* ===== Menú de navegación ===== */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: #0066cc;
  padding: 10px 0;
  margin: 0;
}

nav ul li {
  margin: 5px 10px;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

nav ul li a:hover {
  background: #004aad;
}

/* ===== Contenido principal ===== */
main {
  flex: 1;
  padding: 20px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}

h2 {
  color: #004aad;
  font-size: 2rem;
  margin-bottom: 10px;
}

h3 {
  margin-top: 40px;
  color: #004aad;
  font-size: 1.5rem;
}

p {
  font-size: 1.1rem;
  color: #333;
  margin-top: 10px;
}

main a {
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}

main a:hover {
  color: #0056b3;
}

/* ===== Galería ===== */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.galeria figure {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.galeria figure:hover {
  transform: scale(1.03);
}

.galeria img {
  width: 100%;
  height: auto;
  display: block;
}

.galeria figcaption {
  padding: 10px;
  font-size: 0.95em;
  background-color: #f9f9f9;
  color: #222;
}

/* ===== Sección de La Selecta ===== */
.seccion-selecta {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 50px;
}

.seccion-selecta h2 {
  color: #004aad;
  font-size: 1.8em;
  margin-bottom: 10px;
}

.seccion-selecta p {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 20px;
}

.imagen-posiciones {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.imagen-posiciones img {
  width: 100%;
  max-width: 700px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  margin-bottom: 10px;
}

.resultado-partido {
  font-weight: bold;
  color: #222;
  margin-bottom: 15px;
}

/* ===== Footer ===== */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 0.9em;
  margin-top: auto;
}

/* ======== RESPONSIVE DESIGN ======== */

/* Celulares pequeños (≤600px) */
@media (max-width: 600px) {
  header {
    padding: 15px 5px;
  }

  header img {
    max-width: 90px;
  }

  header h1 {
    font-size: 1.4rem;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 5px 0;
  }

  main {
    padding: 10px;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .galeria {
    grid-template-columns: 1fr;
  }

  .imagen-posiciones img {
    max-width: 100%;
  }

  footer {
    font-size: 0.8rem;
    padding: 10px;
  }
}

/* Tablets (601px a 900px) */
@media (min-width: 601px) and (max-width: 900px) {
  header h1 {
    font-size: 1.6rem;
  }

  .galeria {
    grid-template-columns: repeat(2, 1fr);
  }

  main {
    padding: 15px;
  }
}


