/* 1. reset.css */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}
body {
    line-height: 1;
}
ol, ul {
    list-style: none;
}
blockquote, q {
    quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
a {
    color: inherit;
    text-decoration: none;
}

/* 2. style.css */
p {
    font-size: 1.2em; 
}
.cabecera {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    background-color: #043202;
    height: auto;
}
.linkultimas {
    color: white;
    font-size: 1.2em;
}
.imagen {
    padding: 5px 0 5px 5px;
}
.titulo-principal {
    display: flex;
    align-self: center;
    padding-left: 70px;
    font-size: 2em;
    font-weight: 300;
    color: white;
    padding-bottom: 5px;
}
#juntador {
    background-color: #043202;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    padding-bottom: 25px;
    padding-left: 15px;
}
.imagenmenu {
    height: 38px;
    width: 75px;
    position: relative;
    margin-top: 18px;
}
.header1 {
    display: flex;
    width: auto;
    font-family: Arial, Helvetica, sans-serif;
    flex-wrap: wrap;
    background-color: #043202;
    justify-content: center;
    margin-top: 20px;
}
.separador {
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    text-align: center;
    margin-right: 8em;
}
.seccion1 {
    display: flex;
}
.cuadrado1 {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    width: 100%;
    height: auto;
    background-color: #a9d5cf;
    padding: 20px 10px 0px 10px;
}
.cuadrado2 {
    width: 30%;
    height: auto;
    padding-left: 15px;
    padding-right: 15px;
    background-color: #043202;
    text-align: center;
}
.cuadrado3 {
    height: 500px;
    background-color: rgb(24, 93, 142);
}
.buscar {
    font-size: 1.2em;
    color: blue;
    margin-bottom: 0.5em;
}
.contenbut {
    padding-right: 15%;
    padding-left: 15%;  
}
.pie1 {
    display: flex;
    justify-content: center;
    height: 6em;
    background-color: black;
}

/* 3. menudesplegable.css → REEMPLAZADO COMPLETO */

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.nav li a {
    background-color: #08405e;
    color: #35D10E;
    text-decoration: none;
    padding: 10px 16px;
    display: block;
    font-size: 1em;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.3s;
}

.nav li a:hover,
.nav li a:focus {
    background-color: #1f0e81;
}

/* Submenús */
.nav li ul {
    display: none;
    position: absolute;
    min-width: 160px;
    background: #08405e;
    padding: 8px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10;
}

.nav li:hover > ul,
.nav li:focus-within > ul {
    display: block;
}

.nav li ul li a {
    padding: 8px 16px;
    border-radius: 0;
    white-space: normal;
}

/* Sub-submenús */
.nav li ul li ul {
    left: 100%;
    top: 0;
}

/* 4. menuderecho.css (sin cambios importantes, lo dejo igual) */
.subtitulo2 {
    font-size: 1.15em;
    text-align: center;
    color: #a9d5cf;
}
.link1:hover {
    color: rgb(103, 177, 209);
}
.linkultimas {
    color: white;
    font-size: 1.2em;
}
.parrafo__link {
    color: white;
    font-size: 1.0em;
}
.parrafo1 {
    padding: 5px;
    font-size: 1.2em;
}
.parrafo2 {
    padding: 5px;
    font-size: 0.9em;
}
.imagenmac {
    background-color: #043202 !important;
    padding-top: 10px;
    width: 200px;
    height: 169px;
    border-radius: 20%;
}
.linea {
    margin-top: 10px;
    margin-bottom: 10px;
    border-style: dashed;
    color: #2c4280;
}
.foto2 {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    position: relative;
}
.imagenadn {
    padding-top: 10px;
    border-radius: 20%;
}
.columna-derecha .foto-portada {
    width: 100% !important;
    height: auto !important;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 10px 0;
}
.link1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.imagenmac, .foto-portada {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

/* 5. media.css → actualizada */

@media screen and (max-width: 944px) {
    .cabecera {
        justify-content: center;
    }
    .titulo-principal {
        padding-top: 15px;
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 0px;
        font-size: 1.4em;
        text-align: center;
    }
}

@media screen and (max-width: 800px) {
    .nav {
        display: none !important;
    }
    .imagenmenu {
        display: block !important;
    }
}

@media screen and (max-width: 1550px) {
    .separador {
        display: none;
    }
}

@media screen and (max-width: 800px) {
    .cuadrado2 {
        display: none;
    }
    body {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        margin: 0;
        padding: 0;
    }
    .twitter1 {
        display: flex;
        flex-direction: column;
        width: 300px;
        height: 400px;
        max-width: 100%;
    }
    .arti1 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .cuadrado1 {
        width: 100%;
    }
    .elonfoto, .elonfoto1, .elonfoto2 {
        width: 90%;
        height: 90%;
        max-width: 100%;
    }
}

@media screen and (max-width: 520px) {
    .foto {
        width: 320px;
        height: 530px;
        max-width: 100%;
    }
    .imagen {
        display: none;
    }
}

@media screen and (max-width: 800px) {
    .titulo2, .titulo {
        font-size: 22px;
    }
    .subtitulo, .subtitulomac {
        font-size: 20px;
    }
    .parrafo {
        font-size: 18px;
    }
}

@media screen and (min-width: 800px) {
    .imagenmenu {
        display: none;
    }
}

/* 6. footer.css */
.linkultimas {
    color: white;
    font-size: 1.2em;
}
.imagen {
    padding: 5px 0 5px 5px;
}
.defooter {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.listades {
    display: flex;
}
.privacidad{
    color: green;
}
.Cookies {
    color: red;
}
.Quienes-somos {
    color: rgb(30, 150, 206);
}


.divisor {
    vertical-align: middle;
    color: white;
}
.derechos {
    font-size: 1em;
    flex-direction: column;
    text-align: center;
    color: gray;
}

/* 7. menuhamburguesa.css + mejoras */
#respmenu,
.respmenu {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    background-color: #94de98;
    z-index: 999;
    top: 80px;
    left: 0;
    right: 0;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.respmenu.active {
    display: flex;
}

.imagenmenu.hidden {
    display: none;
}

/* Botones dentro del menú hamburguesa */
.mena {
    font-size: 1.4em;
    text-align: center;
    width: 100%;
    margin: 10px 0;
}

.mena_botton {
    background-color: darkgrey;
    border-radius: 20%;
    margin-bottom: 10px;
    padding: 8px 12px;
    border: 2px solid green;
    width: 100%;
    text-align: center;
    cursor: pointer;
}

/* Responsive final para menú hamburguesa desplegado */
@media screen and (max-width: 768px) {
    .nav {
        display: none !important;
    }

    #respmenu.active .nav,
    .respmenu.active .nav {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        position: static;
        background: transparent;
        padding: 0;
        box-shadow: none;
    }

    .nav li a {
        width: 100%;
        text-align: center;
        padding: 12px;
        border-radius: 12px;
    }

    .nav li ul {
        position: static;
        width: 100%;
        padding-left: 20px;
        background: transparent;
        box-shadow: none;
    }
}
