* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body { 
    background: url('back2.jpg') no-repeat center top; 
    background-size: cover; 
    color: #ffffff; 
    width: 98%; 
    max-width: 1000px; 
    margin: auto; 
    font-family: Arial, sans-serif; 
    line-height: 1.3;
}

#wrapper { 
    border: 2px solid #2eb4a9; 
    padding: 20px; 
    background: #21accb; 
}

h1 { 
    text-align: center; 
    color: #ff8800; 
    margin-bottom: 10px;
}

h2 { 
    text-align: center; 
    color: #00ff37; 
    margin-bottom: 15px;
}

nav { 
    text-align: center; 
    margin: 15px 0; 
}

nav a { 
    margin: 0 10px; 
    color: #ff0000; 
    text-decoration: none; 
}

nav a.active {
    font-weight: bold;
    text-decoration: underline;
}

#figureContainer {
    text-align: center;
    margin-top: 20px;
}

#figureContainer figure {
    display: inline-block;
    width: 320px;
    margin: 10px 5px; /* menos espacio entre figuras */
    vertical-align: top;
}

#figureContainer figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

#figureContainer figure figcaption {
    color: #ffffff;
    margin-top: 5px;
    font-size: 0.9em;
}

footer { 
    text-align: center; 
    margin-top: 20px; 
    border-top: 1px solid #000080; 
    padding: 10px 0; 
}

footer a { 
    color: #800000; 
    margin-top: 5px; 
    display: inline-block; 
}

#news { 
    background-image: url('backB6.jpg'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    padding: 20px; 
}

.important { 
    color: red; 
    font-weight: bold; 
}

.highlight { 
    background: rgb(0, 254, 63); 
}

@media only screen and (max-width: 720px) {
    #figureContainer figure {
        width: 90%;
        margin: 10px auto; /* centrar figuras en móvil */
    }
}
