p {
    color: #444848;
    font-size: 1.3em;
    font-family: "Playfair Display", serif;
}

p {
    font-family: "Vidaloka", serif;
    font-weight: 400;
    font-style: normal;
}

h1 {
    color: rgb(214, 214, 214);
    font-size: 9vw;
    font-family: "bebas neue", sans-serif;
    margin: 0;
    text-shadow: #000 2px 2px 2px;
}

h2 {
    color: rgb(37, 135, 99);
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
}

#contenedor a {
    text-decoration: none;
    color: rgb(37, 135, 99);
    font-weight: bold;
}

/* Elimina el margen por defecto del navegador */
body {
    margin: 0;
    padding: 0;
}

/* El contenedor principal fluye normalmente en el documento */
#contenedor {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    padding-top: 40px; /* empuja el contenido bajo el nav fijo */
    box-sizing: border-box;
}

/* Hero: contiene la imagen y el título superpuesto */
#hero {
    position: relative;
    width: 100%;
    line-height: 0; /* evita espacio extra debajo de la imagen */
}

#hero #fotocomputador {
    width: 100%;
    display: block;
}

/* El título se centra verticalmente sobre la imagen */
#titulo {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 0;
    width: 100%;
    text-align: center;
    transform: translateY(-50%);
}

.centrado {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

img {
    width: 100%;
}

#header-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 3;
    width: 100%;
    background-color: rgb(6, 18, 14);
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* permite que el nav caiga debajo en mobile */
    padding: 5px 20px;
    box-sizing: border-box;
    min-height: 30px;
}

#logoplaza {
    flex-shrink: 0;
}

#logoplaza img {
    width: 120px;
    display: block;
}

nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: aliceblue;
    font-family: "Roboto", sans-serif;
    max-width: 135px;
    text-align: center;
    line-height: 1.3;
    font-size: 13px;
}

html {
    scroll-behavior: smooth;
}

footer {
    width: 100%;
    height: 70px;
    background-color: rgb(6, 18, 14);
    text-align: center;
    padding-top: 30px;
}

footer span {
    color: aliceblue;
    font-family: "Roboto", sans-serif;
}

.contenedor-grafico {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 20px auto;
    max-width: 1200px;
}

.contenedor-grafico img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.contenedor-grafico p {
    margin-top: 15px;
    color: #333;
    font-size: 18px;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.pie {
    width: 100%;
    height: 100px;
    margin-top: -1px;
    padding-top: 5px;
    text-align: center;
}

.pie span {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: rgb(126, 128, 127);
    font-size: 1em;
}

blockquote {
    color: rgb(37, 135, 99);
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
}

/* Checkbox oculto visualmente pero funcional */
#menu-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

#hamburger {
    display: none;
}

/* ── Mobile ── */
@media screen and (max-width: 1000px) {

    /* Muestra el ícono hamburger */
    #hamburger {
        display: block;
        color: aliceblue;
        font-size: 1.6em;
        cursor: pointer;
        margin-left: auto;
        padding: 0 10px;
    }

    /* El logo vuelve a mostrarse en mobile */
    #logoplaza {
        display: block;
    }

    /* Menú cerrado por defecto */
    nav {
        display: none;
        flex-direction: column;
        background-color: rgb(6, 18, 14);
        position: fixed;       /* fixed igual que el header, así flota sobre todo */
        top: 40px;             /* justo debajo del header-bar */
        left: 0;
        width: 100%;
        z-index: 4;            /* por encima de la imagen y el contenido */
        padding: 10px 0;
        box-sizing: border-box;
    }

    nav a {
        padding: 10px 20px;
        max-width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* Cuando el checkbox está marcado, muestra el menú */
    #menu-toggle:checked ~ nav {
        display: flex;
    }

    /* La imagen se muestra (ya no se oculta) y se recorta limpiamente */
    #hero #fotocomputador {
        display: block;
        width: 100%;
        height: 60vw;
        object-fit: cover;
    }

    /* El título hereda el centrado vertical del desktop */

    h1 {
        margin: 0;
    }

    p {
        margin-left: 10px;
        margin-right: 10px;
    }

    h2 {
        margin-left: 10px;
        margin-right: 10px;
    }

    #iframecelular {
        height: 300px;
    }
}