/* Globales */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Georgia', serif;
  font-size: 16px;
  line-height: 1.6;
  background: url('fondo.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #f0f0f0;
}

/* Capa oscura encima del fondo */
.overlay {
  background-color: rgba(0, 0, 0, 0.7);
  min-height: 100vh;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contenedor de contenido */
.content {
  width: 100%;
  max-width: 800px;
  background-color: rgba(30, 30, 30, 0.85);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 0 10px #000;
}

/* Tipografía */
h1 {
  font-size: 2rem;
  color: #ffddaa;
  text-align: center;
}

h2 {
  font-size: 1.5rem;
  color: #ffddaa;
  margin-top: 2rem;
}

h3 {
  font-size: 1.2rem;
  color: #ffddaa;
  margin-top: 1.5rem;
}

p, li {
  font-size: 1rem;
}

/* Listas y separación */
ol li,
ul li {
  margin-bottom: 0.75rem;
}

hr {
  border: none;
  border-top: 1px solid #888;
  margin: 2rem 0;
}

/* Media queries para pantallas pequeñas */
@media (max-width: 600px) {
  .overlay {
    padding: 1rem;
  }

  .content {
    padding: 1rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  p, li {
    font-size: 0.95rem;
  }
}
.cabecera {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Aumentar altura en móviles */
@media (max-width: 768px) {
  .cabecera {
    max-height: 300px; /* Puedes probar con 250 o 350 también */
  }
}

/* Limitar en pantallas grandes */
@media (min-width: 769px) {
  .cabecera {
    max-height: 200px;
  }
}
