/* =========================================
   1. VARIABLES Y BASE
   ========================================= */
/*:root {
    --text-color: #454444;
    --header-bg: #feeeee;
    --bg-color: #c2c0c0;
    --font-main: 'Quicksand', sans-serif;
}*/

:root {
    --text-color: #1A1A1A;
    --header-bg: #F9F9F7;
    --bg-color: #;
    --font-main: 'Quicksand', sans-serif;
}

/* --- reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- BASE --- */
body {
    font-family: var(--font-main);
    background-color: #dedbdb;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow-x: hidden;
    width: 100%;
    /* Espacio para header fixed */
    padding-top: 90px;
    /* Ajusta si mides que tu header es más alto/bajo */
}

main {
    flex: 1;
    /* Esto hace que el 'main' se estire y empuje al footer al fondo */
}

/* Header siempre fijo */
header {
    background-color: var(--header-bg);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    width: 100%;
    box-shadow: 0 2px 10px rgba(43, 35, 82, 0.845);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Logo DA SILVA */
.logo .main-title {
    font-size: 1.8rem;
    letter-spacing: 5px;
    font-weight: 300;
}

.logo .sub-title {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Navegación base */
.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.8rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    font-weight: 700;
    border-bottom: 1px solid var(--text-color);
}

/* Dropdowns */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--header-bg);
    min-width: 200px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    border-radius: 8px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content li a {
    padding: 12px 20px;
    display: block;
    white-space: nowrap; /* Evita que el texto salte a la siguiente línea */
}

/* 2. Footer integrado como texto simple */
footer,
#footer-placeholder {
    background-color: var(--header-bg);
    padding: 5px 0;
    text-align: center;
    /*border: none;*/
    /*color: #444;*/
    font-size: 8px;
    letter-spacing: 1px;
    box-shadow: 0 3px 5px rgba(25, 23, 34, 0.845);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(10px);

}

/* =========================================
   RESPONSIVE - MÓVIL / TABLET / HAMBURGER
   ========================================= */
@media (max-width: 1024px) {
    body {
        padding-top: 75px;
    }

    header {
        padding: 12px 4%;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
    }

    .hamburger span {
        width: 25px;
        height: 2px;
        background: var(--text-color);
    }

    #nav-menu {
        position: fixed;
        top: 20px;
        right: -100%;
        background: var(--header-bg);
        width: 260px;
        /* Ancho fijo para que no se vea excesivo */
        padding: 60px 25px;
        transition: right 0.4s ease;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        z-index: 9998;
        height: auto;
        max-height: 85vh;
        overflow-y: auto;
    }

    #nav-menu.active {
        right: 20px;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
    }

    /* COMPORTAMIENTO ACORDEÓN */
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        padding-left: 15px;
        background: transparent;
    }

    .dropdown.open>.dropdown-content {
        display: block;
        margin-top: 10px;
    }

    .dropdown-content li a {
        padding: 8px 0;
        font-size: 0.75rem;
    }

    .nav-link-lang {
        display: flex;
        align-items: center;
        gap: 5px;
        /* Espacio entre el globo y el texto ES, EN, etc. */
        text-decoration: none;
        font-weight: 500;
    }

    .icon-globe {
        font-size: 0.9rem;
        /* Un poco más pequeño que el texto para que no domine */
        opacity: 0.8;
        /* Un toque sutil para mantener el minimalismo */
    }

    [data-key],
    [data-key-alt],
    .lang-code {
        transition: opacity 0.4s ease-in-out;
    }


}