/* Importación de fuentes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Boiling&display=swap');

:root {
    --primary-color: #00533e;         /* Verde principal */
    --secondary-color: #c7986c;       /* Beige/marrón claro */
    --light-bg: #f5f2e4;              /* Beige claro */
    --hover-color: #00533e;           /* Verde principal para hover */
    --text-color: #333333;            /* Color de texto principal */
    --shadow-color: rgba(0, 83, 62, 0.1); /* Sombra con tono verde */
}

.navbar {
    background-color: var(--light-bg);
    box-shadow: 0 2px 15px var(--shadow-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    display: flex;
    align-items: center;
    height: 60px;
    flex-grow: 1;
    max-width: 300px;
}

.logo-img {
    height: 100%;
    width: auto;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.navbar-menu {
    display: flex;
    align-items: center;
    flex-grow: 2;
    justify-content: flex-end;
}

.navbar-links {
    display: flex;
    list-style: none;
}

.navbar-links li {
    margin-left: 1.5rem;
    position: relative;
}

.navbar-links a {
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
}

.navbar-links a:hover {
    color: var(--hover-color);
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1;
    top: 100%;
    left: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    padding-left: 20px;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Navbar Toggle (Mobile) */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    margin-left: 1rem;
    transition: color 0.3s ease;
}

.navbar-toggle:hover {
    color: var(--hover-color);
}

/* Mobile Styles */
@media (max-width: 992px) {
    .navbar-logo {
        height: 50px;
        max-width: 200px;
        flex-grow: 0;
    }

    .navbar-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--light-bg);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px var(--shadow-color);
        z-index: 999;
    }
    
    .navbar-links.active {
        left: 0;
    }
    
    .navbar-links li {
        margin: 1.5rem 0;
    }
    
    .dropdown-content {
        position: static;
        display: none;
        opacity: 1;
        transform: none;
        box-shadow: none;
        width: 100%;
        margin-top: 0.5rem;
        background-color: rgba(0,0,0,0.03);
    }
    
    .dropdown-content a {
        padding: 0.8rem 2rem;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .navbar-toggle {
        display: block;
    }
}

@media (max-width: 576px) {
    .navbar-container {
        padding: 0 0.8rem;
    }
    
    .navbar-logo {
        height: 45px;
        max-width: 180px;
    }
    
    .navbar-links {
        top: 65px;
        height: calc(100vh - 65px);
    }
}