/* Estilos Generales */
body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: #f0f2f5; /* Un gris un poco más oscuro para que la sombra resalte */
    color: #333;
    margin: 0;
}

/* CONTENEDOR PRINCIPAL CON SOMBRA ELEGANTE */
main {
    max-width: 1000px;
    margin: 0 auto 40px auto; /* Centrado y con margen inferior */
    padding: 2.5em 2em;
    background: white;
    /* Sombras en capas para un efecto más realista y suave */
    box-shadow: 
        0 5px 15px rgba(0,0,0,0.05), 
        0 15px 35px rgba(0,0,0,0.1);
    border-radius: 4px; /* Opcional: un redondeado muy ligero para suavizar bordes */
}

h1 {
    text-align: center;
    color: #1e6fa1;
    margin-bottom: 1.5em;
    letter-spacing: 1px;
}

.contenedor {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2.5em;
}

/* --- ESTILOS DEL HEADER --- */
.main-menu {
    position: relative;
    background-image: url("http://miscelanea.aestrada.gal/images/nicepage-images/2b698dc1dfc767262fa18ac1fab65268ffa5ae7bf7d4ff6330eaea99d2b6bf602c2c3429ee11f7000b93cb1058b192cded40a3a996d7d334976a2b_1280.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 1.2em 0; /* Header fino */
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Sombra ligera también para el header */
}

.menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45); 
    z-index: 1;
}

.menu-content {
    position: relative;
    max-width: 1000px;
    margin: auto;
    display: flex;
    justify-content: center;
    gap: 40px;
    z-index: 2;
}

/* --- BOTONES (Texto normal, grosor medio, sin fondo) --- */
.menu-btn {
    color: white;
    text-decoration: none;
    font-weight: 600; 
    font-size: 1.05em;
    text-transform: none; 
    letter-spacing: 0.3px;
    background: none;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    opacity: 0.7;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Sutil relieve al pasar el ratón */
}

/* --- ÍNDICE --- */
ul.indice {
    list-style: none;
    padding: 0;
}

ul.indice li {
    display: flex;
    align-items: flex-start;
    gap: 0.8em;
    margin-bottom: 1.1em;
}

.icono {
    color: #2196f3;
    font-size: 1.1em;
    margin-top: 0.15em;
}

ul.indice a {
    text-decoration: none;
    color: #444;
    line-height: 1.5;
    transition: color 0.2s;
}

ul.indice a:hover {
    color: #1e6fa1;
    text-decoration: underline;
}

/* --- PORTADA LATERAL --- */
.portada img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    main {
        margin: 0 10px; /* En móviles deja un pequeño margen para que se vea la sombra */
    }
    .contenedor {
        grid-template-columns: 1fr;
    }
    .menu-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}