/* Estilos generales */
body {
    background-image: url('../imagenes/albertfinal.jpg'); /* Imagen alusiva al homenajeado */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #f5f5f5;
    background-color: #1a1a1a;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Encabezado, navegación y pie con colores más sobrios */
header, nav, footer {
    background-color: rgba(0, 0, 0, 0.8); /* Fondo más oscuro para solemnidad */
    color: #f5f5f5;
    padding: 25px 20px;
}

/* Centralización del menú de navegación */
nav {
    display: flex;
    justify-content: center; /* Centra los elementos de la lista horizontalmente */
    margin-bottom: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Disposición en fila (horizontal) */
}

nav li {
    margin: 0 15px; /* Espacio entre los elementos */
}

nav a {
    color: #f5f5f5;
    text-decoration: none;
    font-weight: 600; /* Estilo más serio */
    font-size: 1.1em;
    text-transform: uppercase; /* Hace que el texto se vea más formal */
    letter-spacing: 1px;
}

nav a:hover {
    color: #b2b2b2; /* Color más suave para el hover */
    border-bottom: 2px solid #b2b2b2; /* Subrayado al pasar el mouse */
}

/* Cuerpo principal con fondo oscuro y elegante */
main, section {
    margin: 30px auto;
    padding: 30px;
    max-width: 900px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

/* Títulos y textos */
h1, h2 {
    color: #f5f5f5;
    margin-bottom: 20px;
    font-size: 2.5em;
    text-align: center;
    font-weight: 700; /* Más énfasis */
}

h2 {
    font-size: 1.75em;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Mensajes dentro de las secciones */
p {
    line-height: 1.6;
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #e0e0e0;
    font-weight: 400;
}

/* Estilo de los mensajes según la evaluación (positivo, neutral, negativo) */
.positive {
    color: #28a745; /* Verde para mensajes positivos */
    font-weight: 700;
}

.neutral {
    color: #f39c12; /* Amarillo para mensajes neutrales */
    font-weight: 700;
}

.negative {
    color: #e74c3c; /* Rojo para mensajes negativos */
    font-weight: 700;
}

/* Listas de items (con motivación) */
ul {
    padding-left: 20px;
    text-align: left;
    font-size: 1.1em;
}

li {
    margin-bottom: 10px;
    line-height: 1.7;
}

/* Imágenes con bordes suaves */
img {
    max-width: 100%;
    border-radius: 15px; /* Bordes más suaves */
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

/* Tablas más sobrias */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    overflow: hidden;
}

td, th {
    padding: 12px;
    border: 1px solid #666;
    text-align: center;
}

th {
    background-color: #333;
    color: #fff;
    font-weight: 600;
}

/* Formularios con estilo sobrio y elegante */
form input, form select, form textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #444;
    color: white;
    font-size: 1.1em;
    font-weight: 500;
}

form textarea {
    resize: vertical;
    min-height: 120px;
}

form button {
    background-color: #666;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #888;
}

/* Footer */
footer {
    font-size: 1em;
    background-color: #333;
    color: #f5f5f5;
    padding: 15px;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
    border-top: 1px solid #444;
}

/* Mejora en la visualización del formulario */
form {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

/* Espaciado y alineación para las secciones */
.section-if, .section-for, .section-while {
    margin-top: 20px;
    padding: 25px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.6);
}

/* Animación de desvanecimiento */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

body {
    animation: fadeIn 2s ease-in-out;
}

/* Estilo para la imagen en la sección de Noticias */
.noticia-img {
    width: 40%;               /* La imagen ocupará el 100% del ancho de su contenedor */
    max-width: 600px;          /* La imagen no excederá los 800px de ancho */
    height: auto;              /* La altura se ajusta automáticamente para mantener la proporción */
    border-radius: 8px;        /* Bordes redondeados */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);  /* Sombra suave */
    display: block;            /* Asegura que la imagen se vea correctamente (no inline) */
    margin: 20px auto;         /* Centra la imagen y agrega espacio alrededor */
}
