body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    color: #333;
}

/* === ENCABEZADO === */
.header {
    background-color: #ffffff; 
    padding: 30px;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header h1 {
    margin: 0;
    font-size: 2em;
}

/* === NAVEGACIÓN DENTRO DEL HEADER === */
.nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

.botones-temas {
    margin: 5px;
}

.boton {
    background-color: #007bff; /* azul original */
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.boton:hover {
    background-color: #0056b3; /* azul oscuro en hover */
}

/* === CONTENEDOR PRINCIPAL === */
.contenedor-principal {
    margin-top: 160px; /* espacio para header fijo */
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
/* === COLORES DE ENCABEZADOS === */
h1, h2, h3, h4, h5, h6 {
    color: #FF0000;
}


/* === CONTENIDO === */
.contenido {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    text-align: justify;
}

.contenido-principal {
    flex: 2;
    min-width: 300px;
}

.section {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* === CUADROS === */
.cuadro-grande,
.cuadro-mediano {
    margin-bottom: 30px;
}

.cuadro-grande h2,
.cuadro-mediano h2 {
    border-bottom: 2px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* === ASIDE === */
.aside {
    flex: 1;
    min-width: 250px;
    text-align: justify;
}

.imagen-aside,
.video-aside {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
   }

.imagen-aside img {
    max-width: 100%;
    border-radius: 5px;
}

.video-aside video {
    width: 100%;
    border-radius: 5px;
}

/* === PIE DE PÁGINA === */
.footer {
    background-color: #eaecf0;
    padding: 10px;
    text-align: center;
    border-top: 1px solid #a2a9b1;
}

.footer .cuadro {
    background-color: white;
    width: 100%;
    height: auto;
    display: inline-block;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #c8ccd1;
    box-sizing: border-box;
}}

.footer h3 {
    margin-top: 0;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer li {
    margin-bottom: 8px;
}
/* === FORMULARIOS ESTILO CUADRO-GRANDE === */
form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

form label {
    font-weight: bold;
    color: #333;
}

form input[type="text"],
form input[type="password"],
form input[type="email"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box;
}

form input[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

form input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Enlace debajo del formulario */
.cuadro-grande a {
    display: block;
    margin-top: 15px;
    text-align: center;
    color: #007bff;
    text-decoration: none;
}

.cuadro-grande a:hover {
    text-decoration: underline;
}
/* === MENSAJES DE ESTADO === */
.mensaje {
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 1em;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Éxito (verde) */
.mensaje.exito {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Error (rojo claro) */
.mensaje.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Advertencia (amarillo claro) */
.mensaje.advertencia {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}
