:root {
    --at-primary: #006B2B;
    --at-accent: #EAF52C;
    --at-text: #00381C;
    --at-shadow: 0 10px 30px rgba(0, 56, 28, 0.08);
}

html {
    scroll-behavior: smooth
}

footer ul.contacto {
    margin-left: 10px
}

footer ul.contacto li {
    list-style: none
}

footer ul.contacto li .fa {
    margin-right: 6px;
    width: 16px
}

/* =============================================================================
   Premium Language Switcher Styling
   ============================================================================= */
.hv-lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    line-height: initial;
}

/* Desktop Trigger */
.hv-lang-current {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px 14px;
    background: rgba(0, 107, 43, 0.06);
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.hv-lang-switcher:hover .hv-lang-current {
    background: #fff;
    border-color: var(--at-primary);
    box-shadow: 0 4px 12px rgba(0, 107, 43, 0.1);
}

.hv-lang-icon {
    width: 20px;
    height: 20px;
    display: block;
    filter: brightness(0) saturate(100%) invert(26%) sepia(94%) General saturate(497%) hue-rotate(101deg) brightness(91%) contrast(101%);
    /* Match dark green */
}

.hv-lang-arrow {
    font-size: 10px;
    color: var(--at-primary);
    transition: transform 0.3s ease;
}

.hv-lang-switcher:hover .hv-lang-arrow {
    transform: rotate(180deg);
    color: var(--at-primary);
}

/* Dropdown Container (Desktop) */
.hv-lang-list {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    padding: 10px 0;
    list-style: none;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 56, 28, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    border: 1px solid rgba(0, 107, 43, 0.05);
}

.hv-lang-switcher:hover .hv-lang-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hv-lang-list li {
    margin: 0;
    padding: 0;
}

.hv-lang-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--at-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.hv-lang-list li:hover a {
    background: rgba(0, 107, 43, 0.08);
    color: var(--at-primary);
}

.hv-lang-list li.active a {
    color: var(--at-primary);
    background: rgba(0, 107, 43, 0.05);
    font-weight: 700;
}

/* Flags styling */
.hv-flag-wrap img {
    width: 20px !important;
    height: auto !important;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Arrow pointer for the dropdown (Desktop only) */
.hv-lang-list::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0, 107, 43, 0.05);
    border-top: 1px solid rgba(0, 107, 43, 0.05);
}

.img-home4 {
    display: block !important;
    width: 100% !important;
}

/* MOBILE VIEW: Horizontal row, no dropdown */
@media (max-width: 1024px) {
    .desktop-only {
        display: none !important;
    }

    .hv-lang-list {
        position: static;
        display: flex;
        gap: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        box-shadow: none;
        padding: 10px 0;
        margin: 0;
        min-width: auto;
        border: none;
        backdrop-filter: none;
        flex-wrap: wrap;
    }

    .hv-lang-list::before {
        display: none;
    }

    .hv-lang-list li a {
        padding: 8px 16px;
        gap: 8px;
        text-transform: none;
        font-size: 0.85rem;
        background: #ffffff;
        border-radius: 50px;
        box-shadow: 0 2px 8px rgba(0, 56, 28, 0.1);
        border: 1px solid rgba(0, 107, 43, 0.1);
        font-weight: 600;
        color: var(--at-text);
    }

    .hv-lang-list li.active a {
        background: var(--at-primary);
        border-color: var(--at-primary);
        color: #fff;
    }

    .hv-lang-list li:hover a {
        background: #f9f9f9;
    }

    
}

/* =============================================================================
   General UI Fixes
   ============================================================================= */