
/* VARIABLES DE COLOR Y CONFIGURACIÓN BASE (EXACTAS AL CÓDIGO ORIGINAL) */
:root {
    --primary-gold: #c5945e;
    --dark-bg: #111111;
    --dark-card: #1a1a1a;
    --light-bg: #f9f9f9;
    --text-dark: #222222;
    --text-light: #ffffff;
    --text-muted: #777777;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.menu-body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #1a1a1a;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.menu-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. MENÚ DE NAVEGACIÓN (HEADER) - DEGRADADO IDÉNTICO AL ORIGINAL */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0.8) 0%, rgba(17, 17, 17, 0) 100%);
    /*padding: 20px 0; */
    transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}

header.scrolled {
    background: #111111;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
}

.logo-img {
    display: block;
    width: 165px;
    height: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 6px;
}

nav ul li a:hover {
    color: var(--primary-gold);
}

/* --- SUBMENÚS DESPLEGABLES --- */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #111111;
    min-width: 200px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 0;
}

nav ul li:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    padding: 6px 20px 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 5px;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    color: #dddddd;
    font-size: 13.5px;
    padding: 8px 20px;
    justify-content: space-between;
    width: 100%;
}

.dropdown-menu li a:hover,
.dropdown-menu li.has-submenu:hover > a {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary-gold);
}

/* SUBMENÚ FIANZAS NIVEL 2 */
.sub-dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #181818;
    min-width: 210px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    list-style: none;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.25s ease;
    z-index: 1300;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dropdown-menu li.has-submenu:hover > .sub-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sub-dropdown-menu li a {
    padding: 10px 18px;
    font-size: 13px;
    color: #cccccc;
}

.sub-dropdown-menu li:first-child a {
    background-color: var(--primary-gold);
    color: var(--text-light);
    font-weight: 500;
}

.sub-dropdown-menu li:first-child a:hover {
    background-color: #b0814f;
}

/* BOTÓN CONTÁCTANOS ORIGINAL */
.btn-contact {
    background-color: var(--primary-gold);
    color: var(--text-light) !important;
    padding: 10px 22px;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 14px;
    text-transform: uppercase;
}

.btn-contact:hover {
    background-color: #b0814f;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}

.menu-toggle:hover {
    color: var(--primary-gold);
}

/* RESPONSIVIDAD (MÓVIL ORIGINAL DE LA PLANTILLA) */
@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }

    header .container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
        width: 100%;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .logo-area {
        position: relative;
        margin: 0 auto;
        z-index: 999;
    }

    .logo-img {
        width: 140px;
    }

    nav {
        display: block !important; 
        position: fixed;
        top: 0;
        left: -100%; 
        right: auto;
        width: 280px;
        height: 100vh;
        background-color: #111111;
        box-shadow: 5px 0 15px rgba(0,0,0,0.5);
        padding: 100px 30px 40px 30px;
        transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        overflow-y: auto;
    }

    nav.menu-open {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0 !important;
        width: 100%;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: flex;
        justify-content: space-between;
        font-size: 16px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Acordeón en móvil */
    .dropdown-menu,
    .sub-dropdown-menu {
        position: static !important;
        box-shadow: none !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
        width: 100%;
        background-color: #161616;
        padding: 0;
        border: none;
        border-radius: 0;
    }

    .dropdown-menu.show-mobile,
    .sub-dropdown-menu.show-mobile {
        display: block !important;
    }

    .dropdown-header-title {
        display: none;
    }

    .dropdown-menu li a {
        padding: 10px 15px;
        font-size: 14px;
    }

    .sub-dropdown-menu {
        background-color: #0d0d0d;
    }

    .sub-dropdown-menu li a {
        padding: 10px 15px 10px 25px;
        font-size: 13.5px;
    }

    .sub-dropdown-menu li:first-child a {
        background-color: transparent;
        color: var(--primary-gold);
    }

    .btn-contact {
        text-align: center;
        margin-top: 15px;
        display: block !important;
        border-bottom: none !important;
    }

    .arrow-icon {
        transition: transform 0.3s ease;
    }

    .arrow-icon.rotate {
        transform: rotate(180deg);
    }
}
