/* Normaliza la apariencia de los elementos HTML */
html {
    line-height: 1.1; /* 1 */
    /*-webkit-text-size-adjust: 100%; 2 */
	text-align: center;
}
@media (max-width: 765px) {
    h1 {
        margin-top: 40px; /* Ajusta el valor según sea necesario */
    }
}

 h1,h2,h4, h5, h6, p, ul,ol,td,li
{font-family: Arial, sans-serif; 
 /*font-size:90%;*/   
}


/* Estilos para el menú */
.menu {
    position:fixed;
    top: 0;
    width: 100%;
    padding: 5px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffcc00;
}
 
 
.menu-item {
    display: inline-block;
}
.menu ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.menu ul li {
  display: inline;
}

.menu ul li a {
  display: inline-block;
  padding:8px 8px;
  color: "slategray"; /* Color del texto del enlace */
   background-color: #ffcc00;
    font-weight: bold; /*texto negrita*/
    font-family: Arial, sans-serif; /* Cambia el tipo de fuente */
  text-decoration: none;
}

.menu ul li a:hover {
  background-color: #5234; /* Color de fondo del enlace al pasar el mouse */
}
/* Estilos para móviles */
@media only screen and (max-width: 768px) {
    .menu {
        display: block;
        text-align: center;
    }

    .menu.active {
        display: block;
    }

    .menu ul {
        padding: 0;
    }

    .menu li {
        display: block;
        margin-bottom: 10px;
    }
}




.lista {
  list-style: none; /* Elimina los marcadores de lista */
  padding: 0;
  margin: 0;
}
.lista li {
  display: inline-block; /* Muestra los elementos en línea */
  margin-right: 10px; /* Espacio entre elementos */
}


body {
   /*margin-top: 10px;   este valor para evitar que el contenido se superponga con el menú */
   
    font-family: Arial, sans-serif;   
}
/* Reset de margen y padding y color de fondo (el color inunda parte del menu) */
 {
   /* background-color: #edd6b7; */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Añadir margen superior al contenedor para que no se superponga con el menú */
.container
 {
    margin-top: 40px; /* Ajustar según la altura del menú */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #edd6b7;
}
.container h1 {
  width: 100%;
  text-align: center;
  margin: 20px 0; /* Ajustable */
}


video {
    display: block;
   /* width: 100%;*/
    height: auto;
}
.box {
    margin-top: 1; /* Eliminar margen superior */
    flex: 1 1 calc(50% - 20px); /* Dos cajas por fila en escritorio */
    margin: 1px;
    background-color:#edd6b7;
    /*padding: 10px;*/
    text-align: center;
}

.box img {
    max-width: 100%;
    height: auto;
}

.box p {
    margin-top: 10px;
    font-size: 1rem;
}

/* Adaptado para tablets y móviles */
@media (max-width: 768px) {
    .box {
        flex: 1 1 calc(100% - 20px); /* Una caja por fila en tablets */
    }
}

@media (max-width: 480px) {
    .box {
        flex: 1 1 calc(100% - 20px); /* Una caja por fila en móviles */
    }
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



 h1 {
    color:purple; /* Color del título */
    font-size: 200%; /* Tamaño de fuente mayor */
    text-align: center;
}
.imagen-limitada {
    max-width: 50%; /* La imagen no será más ancha que el 50% de su contenedor */
    max-height: 200px; /* La imagen no será más alta que 200 píxeles */
    width: auto; /* Ajustar el ancho automáticamente para mantener la proporción */
    height: auto; /* Ajustar la altura automáticamente para mantener la proporción */
}
.menu-desplegable {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Alinear el menú desplegable a la izquierda */
}
.menu-desplegable label {
    margin-right: auto; /* Mueve el botón de menú a la izquierda */
}



.contenedor-imagen {
    position: relative;
    display: inline-block;
}

.texto-superpuesto {
    position: absolute;
    top: 50%; /* Ubica el texto en la mitad superior de la imagen */
    left: 50%; /* Ubica el texto en el centro horizontal de la imagen */
    transform: translate(-50%, -50%); /* Centra el texto correctamente */
    background-color: rgba(0, 1, 2, 0.3); /* Fondo semi-transparente */
    color: white; /* Color del texto */
    padding: 20px; /* Espacio alrededor del texto */
}

input[type="checkbox"] {
    display: none;
}
input[type="checkbox"]:checked ~ nav {
    display: block;
}
/* Estilos para centrar las imágenes con enlaces y el pie */
section {
    text-align: center;
}

footer {
    text-align: center;
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #ffa;
