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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f7fafc;
  color: #1e293b;
  line-height: 1.6;
}

header {
  background-color: #4f46e5;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
}

header h1 {
  font-size: 2.5rem;
}

header p {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
}

h2 {
  color: #1d4ed8;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  margin-top: 2rem;
}

h3 {
  color: #1e40af;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  font-size: 20px;
}

ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.importante {
  background-color: #fef9c3;
  padding: 1rem;
  border-left: 6px solid #facc15;
  font-size: 18px;
  font-weight: bold;
  color: #92400e;
  margin-bottom: 1rem;
}

a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.recursos-externos {
  background-color: #f1f5f9;
  padding: 2rem;
  border-top: 1px solid #cbd5e1;
  margin-top: 2rem;
}

.recursos-externos ul {
  list-style: none;
  padding-left: 0;
}

.recursos-externos li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

footer {
  background-color: #e2e8f0;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.galeria-videos h3 {
  margin: 2rem 0 1rem;
  color: #1e40af;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.video-item {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }

  main {
    padding: 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom right, #f0f4ff, #ffffff);
  color: #1e293b;
  line-height: 1.6;
}

header {
  background-color: #148be0;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
  font-size: 2.8rem;
  margin-bottom: 0.5rem;
}

header h2{
    color: rgb(135, 6, 82);
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  }
  
header p {
  font-size: 1.2rem;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

h2 {
  color: #1d4ed8;
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  color: #1e40af;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h4 {
  color: #0f172a;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.importante {
  background-color: #fef9c3;
  padding: 1rem;
  border-left: 6px solid #facc15;
  font-weight: bold;
  color: #92400e;
  margin-bottom: 1.5rem;
  border-radius: 6px;
}

.galeria-videos h3 {
  margin: 2rem 0 1rem;
  color: #1e40af;
  font-size: 1.6rem;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.video-item {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s ease;
}

.video-item:hover {
  transform: scale(1.02);
}

.video-item video {
  border-radius: 8px;
}

.recursos-externos {
  background-color: #f1f5f9;
  padding: 2rem;
  border-top: 2px solid #cbd5e1;
  margin-top: 3rem;
  border-radius: 12px;
}

.recursos-externos ul {
  list-style: none;
  padding-left: 0;
}

.recursos-externos li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

footer {
  background-color: #e2e8f0;
  text-align: center;
  padding: 1rem;
  margin-top: 3rem;
  font-size: 0.95rem;
  color: #475569;
  border-top: 1px solid #cbd5e1;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }

  
  main {
    padding: 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

.menu-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin: 15px 0;
  background-color: #2c3e50;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


.menu-nav a {
  display: block;
  padding: 12px 18px;
  color: #ecf0f1;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.menu-nav a:hover,
.menu-nav a:focus {
  background-color: #3498db;
  color: white;
  outline: none;
}

.menu-nav a:active {
  background-color: #2980b9;
  color: #ecf0f1;
}
.niveles-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas iguales */
  gap: 20px; /* espacio entre columnas */
  align-items: start;
}

.nivel {
  text-align: center;
  background: #f8f8f8;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.nivel img {
  width: 100%;
  height: 100%; /* asegura mismo alto */
  object-fit: cover; /* recorta proporcionalmente */
  border-radius: 8px;
}
@media (max-width: 768px) {
  .niveles-container {
    grid-template-columns: 1fr; /* una sola columna en móvil */
  }
}
.evento {
  text-align: center;
  margin: 30px auto;
  max-width: 900px; /* más ancho */
}

.evento img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 600px; /* más alto */
  object-fit: contain; /* muestra la imagen completa */
  border-radius: 12px;
}

.evento figcaption {
  margin-top: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #222;
}
.resultados {
  text-align: center;
  margin: 40px auto;
  padding: 20px;
  background: #f0f8ff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.resultados h1 {
  font-size: 2rem;
  color: #003366;
  margin-bottom: 15px;
}

.resultados h2 {
  font-size: 1.2rem;
  color: #444;
  font-weight: 500;
}
