:root {
    --font-headline: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --primary-color: #2d5a43;
    --neutral-color: #f5f2ed;
    --text-color: #717973;
    --gutter: 80px;

    --header-glass-solid: rgba(255, 255, 255, 0.97);
    --header-sub-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    --header-hover: rgba(45, 90, 67, 0.08);
    --header-transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background: var(--neutral-color);
    font-family: var(--font-body);
    color: var(--text-color);

    &.dropdown-open {
        overflow: hidden;

        &::before {
            content: '';
            position: fixed;
            inset: 0;
            z-index: 0;
            background: rgba(0, 0, 0, 0.3);
            opacity: 0;
            animation: dropdown-overlay-in var(--header-transition) forwards;
        }

        &.dropdown-closing::before {
            animation: dropdown-overlay-out var(--header-transition) forwards;
        }
    }

    &.search-open {
        overflow: hidden;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headline);
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

p,
a {
    font-family: var(--font-body);
    color: var(--text-color);
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.02em;
    text-transform: none;
}

@keyframes dropdown-overlay-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes dropdown-overlay-out {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

#masthead.site-header {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 var(--gutter);
    text-align: center;
    pointer-events: none;
    transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    &.is-scrolled {
        top: 0;
        padding: 10px var(--gutter);

        .header-container {
            border-radius: 0 0 24px 24px;
            background: rgba(255, 255, 255, 0.94);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
        }
    }

    .header-container {
        position: relative;
        display: inline-flex;
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        align-items: center;
        justify-content: space-between;
        padding: 10px calc(var(--gutter) / 2);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.72);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
        pointer-events: auto;
        transition: background 0.35s ease, box-shadow 0.35s ease, border-radius 0.35s ease;
    }

    .header-left {
        position: relative;
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .custom-logo-link {
        display: flex;
        align-items: center;
        max-width: 180px;

        img {
            display: block;
            height: auto;
            max-width: 100%;
        }
    }

    .menu-toggle,
    .search-toggle,
    .dropdown-close,
    .search-close {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 6px;
        border: none;
        border-radius: 10px;
        background: transparent;
        color: var(--primary-color);
        cursor: pointer;
        transition: background 0.2s ease;

        &:hover {
            background: var(--header-hover);
        }

        .material-symbols-outlined {
            font-size: 24px;
            line-height: 1;
        }
    }

    .menu-toggle {
        &[aria-expanded="true"] {
            background: var(--header-hover);
        }
    }

    .dropdown-navigation {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 10001;
        display: flex;
        flex-direction: column;
        width: 300px;
        height: 100dvh;
        background: var(--header-glass-solid);
        backdrop-filter: blur(20px);
        box-shadow: 4px 0 40px rgba(0, 0, 0, 0.12);
        visibility: hidden;
        pointer-events: none;
        transform: translateX(-100%);
        transition: transform var(--header-transition), visibility var(--header-transition);

        &.active {
            visibility: visible;
            pointer-events: auto;
            transform: translateX(0);
        }
    }

    .dropdown-navigation__head {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 20px 16px 12px;
        border-bottom: 1px solid rgba(45, 90, 67, 0.1);
    }

    .dropdown-navigation__body {
        flex: 1;
        overflow-y: auto;
        padding: 8px 8px 32px;

        > div {
            width: 100%;
        }
    }

    #dropdown-menu {
        list-style: none;
        margin: 0;
        padding: 0;

        > .menu-item > a {
            font-family: var(--font-headline);
            font-size: 12px;
            font-weight: 600;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            text-align: left;
        }

        .menu-item > a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 13px 16px;
            color: var(--text-color);
            border-radius: 10px;
            transition: background 0.2s ease, color 0.2s ease;

            &:hover {
                background: var(--header-hover);
                color: var(--primary-color);
            }
        }

        .menu-item-has-children > a::after {
            content: '\e313';
            font-family: 'Material Symbols Outlined';
            font-size: 20px;
            color: var(--primary-color);
            flex-shrink: 0;
            transition: transform 0.25s ease;
        }

        .menu-item.is-open {
            > a::after {
                transform: rotate(180deg);
            }

            > .sub-menu {
                display: block;
            }
        }

        .sub-menu {
            display: none;
            list-style: none;
            margin: 0;
            padding: 0;

            .menu-item > a {
                font-size: 14px;
                font-weight: 500;
                text-transform: none;
                padding: 10px 16px 10px 28px;
            }

            .sub-menu .menu-item > a {
                padding-left: 40px;
                font-size: 13px;
            }

            .sub-menu .sub-menu .menu-item > a {
                padding-left: 52px;
            }
        }
    }

    .main-navigation {
        display: block;
        width: auto;
        overflow: visible;

        > div {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }

        ul ul,
        ul ul ul {
            float: none;
            left: auto;
            top: auto;
            box-shadow: none;
        }

        ul ul a {
            width: auto;
        }

        li {
            position: relative;
        }

        a {
            text-decoration: none;
        }
    }

    .main-navigation #primary-menu {
        display: inline-flex;
        align-items: center;
        gap: 16px;
        overflow: visible;

        > .menu-item {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            overflow: visible;

            > a {
                display: inline-block;
                white-space: nowrap;
                color: var(--text-color);
                font-weight: 600;

                &:hover {
                    color: var(--primary-color);
                }
            }

            &:hover > .sub-menu,
            &.focus > .sub-menu {
                display: flex;
            }

            > .sub-menu {
                top: 50px;
                left: 0;
            }
        }

        > .menu-item-has-children::after {
            content: '\e313';
            font-family: 'Material Symbols Outlined';
            font-size: 12px;
            margin-left: 6px;
            pointer-events: none;
        }

        > .menu-item-has-children::before {
            content: '';
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            height: 50px;
            z-index: 9998;
        }

        .sub-menu,
        .sub-menu .menu-item > .sub-menu {
            display: none;
            position: absolute;
            float: none;
            flex-direction: column;
            align-items: flex-start;
            gap: 2px;
            width: max-content;
            max-width: max-content;
            padding: 8px;
            margin: 0;
            background: #fff;
            border-radius: 12px;
            box-shadow: var(--header-sub-shadow);
            z-index: 9999;
        }

        .sub-menu .menu-item {
            display: inline-flex;
            align-items: center;
            width: max-content;
            max-width: max-content;

            > a {
                display: block;
                padding: 10px 14px;
                white-space: nowrap;
                border-radius: 8px;
                color: var(--text-color);
                transition: background 0.2s ease, color 0.2s ease;

                &:hover {
                    background: #f3f5f7;
                    color: var(--primary-color);
                }
            }

            &:hover > .sub-menu,
            &.focus > .sub-menu {
                display: flex;
            }

            > .sub-menu {
                top: 0;
                left: calc(100% + 8px);
                z-index: 10000;
            }
        }

        .sub-menu .menu-item-has-children::after {
            content: '\e5cc';
            font-family: 'Material Symbols Outlined';
            font-size: 14px;
            margin-left: 6px;
            color: var(--primary-color);
            pointer-events: none;
        }

        .sub-menu .menu-item-has-children::before {
            content: '';
            position: absolute;
            top: 0;
            left: 100%;
            width: 14px;
            height: 100%;
            z-index: 9998;
        }
    }

    .search-navigation {
        position: fixed;
        inset: 0;
        z-index: 10002;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100dvh;
        background: var(--header-glass-solid);
        backdrop-filter: blur(24px);
        visibility: hidden;
        pointer-events: none;
        opacity: 0;
        transform: translateY(-12px);
        transition:
            opacity var(--header-transition),
            transform var(--header-transition),
            visibility var(--header-transition);

        &.active {
            visibility: visible;
            pointer-events: auto;
            opacity: 1;
            transform: translateY(0);
        }
    }

    .search-navigation__head {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 20px var(--gutter) 12px;
        border-bottom: 1px solid rgba(45, 90, 67, 0.1);
    }

    .search-navigation__title {
        font-family: var(--font-headline);
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--primary-color);
    }

    .search-navigation__toolbar {
        flex-shrink: 0;
        padding: 20px var(--gutter) 16px;

        form.search-form {
            width: 100%;
            max-width: 720px;
            margin-inline: auto;

            .search-field-wrap {
                position: relative;
                display: flex;
                align-items: center;
                width: 100%;
            }

            .search-field-icon {
                position: absolute;
                left: 18px;
                font-size: 24px;
                color: var(--primary-color);
                pointer-events: none;
            }

            .search-field {
                display: block;
                width: 100%;
                box-sizing: border-box;
                padding: 16px 52px 16px 52px;
                border: 1px solid rgba(45, 90, 67, 0.2);
                border-radius: 16px;
                background: #fff;
                font-family: var(--font-body);
                font-size: 17px;
                color: var(--text-color);
                outline: none;
                box-shadow: var(--header-sub-shadow);
                appearance: none;
                -webkit-appearance: none;
                transition: border-color 0.2s ease, box-shadow 0.2s ease;

                &:focus {
                    border-color: var(--primary-color);
                    box-shadow: 0 0 0 4px var(--header-hover);
                }

                &::placeholder {
                    color: rgba(113, 121, 115, 0.65);
                }

                &::-webkit-search-decoration,
                &::-webkit-search-cancel-button {
                    -webkit-appearance: none;
                    appearance: none;
                }
            }

            .search-submit {
                position: absolute;
                right: 8px;
                display: flex;
                align-items: center;
                justify-content: center;
                width: 40px;
                height: 40px;
                padding: 0;
                border: none;
                border-radius: 10px;
                background: var(--primary-color);
                color: #fff;
                line-height: 1;
                cursor: pointer;
                appearance: none;
                -webkit-appearance: none;
                transition: background 0.2s ease;

                &:hover {
                    background: #234a36;
                }

                .material-symbols-outlined {
                    font-size: 22px;
                    line-height: 1;
                }
            }
        }
    }

    .search-navigation__results {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
        padding: 8px var(--gutter) 40px;
    }

    .search-navigation__status {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .search-results-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .search-result-card {
        display: flex;
        flex-direction: column;
        gap: 10px;
        height: 100%;
        padding: 16px;
        border-radius: 14px;
        background: #fff;
        border: 1px solid rgba(45, 90, 67, 0.1);
        box-shadow: var(--header-sub-shadow);
        text-decoration: none;
        transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;

        &:hover {
            transform: translateY(-2px);
            border-color: rgba(45, 90, 67, 0.25);
            box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
        }
    }

    .search-result-card__media {
        overflow: hidden;
        border-radius: 10px;
        aspect-ratio: 16 / 9;
        background: var(--neutral-color);

        img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }

    .search-result-card__type {
        font-family: var(--font-headline);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--primary-color);
    }

    .search-result-card__title {
        font-family: var(--font-headline);
        font-size: 15px;
        font-weight: 700;
        line-height: 1.3;
        color: var(--primary-color);
    }

    .search-result-card__excerpt {
        font-size: 13px;
        line-height: 1.5;
    }

    .search-results-footer {
        margin-top: 24px;
    }

    .search-results-see-all {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 12px 18px;
        border-radius: 10px;
        background: var(--header-hover);
        font-family: var(--font-headline);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        text-decoration: none;
        color: var(--primary-color);
        transition: background 0.2s ease;

        &:hover {
            background: rgba(45, 90, 67, 0.15);
        }
    }
}

/* Content clearance below fixed header (except full-bleed hero pages) */
.site-main {
    padding-top: 108px;
}

body.home .site-main,
body.elementor-page .site-main,
.site-main--destinos {
    padding-top: 0;
}

/* Compact weather widget — shortcode / hero overlay */
.destino-clima-widget--compact {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 0;
    padding: 14px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    color: var(--text-color);
}

.destino-clima-widget--compact.destino-clima-widget--error {
    background: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    padding: 12px 16px;
}

.destino-clima-widget--compact .destino-clima-widget__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
}

.destino-clima-widget--compact .destino-clima-widget__icon {
    font-size: 36px;
    color: var(--primary-color);
}

.destino-clima-widget--compact .destino-clima-widget__icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.destino-clima-widget--compact .destino-clima-widget__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.destino-clima-widget--compact .destino-clima-widget__location {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.3;
}

.destino-clima-widget--compact .destino-clima-widget__temp {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.1;
}

.destino-clima-widget--compact .destino-clima-widget__temp strong {
    color: var(--primary-color);
    font-weight: 800;
}

.destino-clima-widget--compact .destino-clima-widget__condition {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.3;
}

.destino-clima-widget--compact .destino-clima-widget__hint {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.85;
}

@media (max-width: 1024px) {
    :root {
        --gutter: 32px;
    }

    #masthead.site-header.is-scrolled {
        padding: 8px var(--gutter);
    }
}

@media (max-width: 640px) {
    :root {
        --gutter: 20px;
    }

    #masthead.site-header {
        top: 10px;
    }

    .site-main {
        padding-top: 96px;
    }

    body.home .site-main,
    body.elementor-page .site-main,
    .site-main--destinos {
        padding-top: 0;
    }
}


.noticias-title {
    min-height: 35px;
}

.noticias-title a {
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.noticias-categories a {
    font-family: Montserrat, sans-serif;
    font-size: 10px;
    font-weight: 600;
}

.noticias-text p {
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 300;
}

.text-footer p {
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 300;
}

.text-menu-footer li a {
    padding: 0;
}

.template-2-categories a {
    font-weight: 800;
}



/* Estilos Footer */

.vh-footer {
    background: #f7f6f3;
    border-top: 1px solid #e2e2e2;
    padding-top: 70px;
}

.vh-footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.vh-footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 30px;
}

.vh-footer-brand h2 {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 30px;
    color: #003f43;
    font-weight: 700;
}

.vh-footer-brand p {
    font-family: Montserrat, sans-serif;
    max-width: 450px;
    color: #444;
    line-height: 1.5;
    font-size: 14px;
}

.vh-footer-brand p:nth-of-type(2) {
    font-size: 13px;
    margin-top: 20px;
    opacity: 0.8;
}

.vh-footer-social {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.vh-footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ecece8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a072;
    text-decoration: none;
    transition: .3s;
}

.vh-footer-logo {
    margin-left: -15px;
    height: 80px;
}

.vh-footer-social a:hover {
    background: #60a072;
    color: #fff;
    transition: .3s;
}

.vh-footer-social i {
    font-size: 20px;
}

.vh-footer-menu h4 {
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    color: #60a072;
    margin-top: 30px;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: .5px;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    
    margin-bottom: 8px;
}

.footer-menu a {
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    color: #666;
    transition: .3s;
}

.footer-menu a:hover {
    color: #0c4e35;
    transition: .3s;
}

.vh-footer-bottom {
    font-family: Montserrat, sans-serif;
    border-top: 1px solid #e2e2e2;
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    color: #777;
    font-size: 12px;
}

.vh-footer-bottom a {
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    color: #777;
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
}

.vh-footer-bottom a:hover {
    color: #9ad3bd;
}

@media (max-width: 992px) {

    .vh-footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .vh-footer-brand h2 {
        font-size: 42px;
    }

    .vh-footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

}


.text-licencias p {
    font-family: Inter, sans-serif;
    font-size: 20px;
    color: #ffffff;
    line-height: 1.5;
}

.text-licencias-titulo p {
    font-family: Inter, sans-serif;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
}

.requisitos-licencia p {
    font-family: Inter, sans-serif;
    font-size: 12px;
    color: var(--text-color);
    line-height: 1.5;
}

.text-menores p {
    font-family: Inter, sans-serif;
    font-size: 14px;
    color: #ffffff;
    line-height: 1.5;
}

.text-tasas p {
    font-family: Inter, sans-serif;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
}

.contact-list {
    .elementor-icon-list-icon {
        background: #2d5a43;
        border-radius: 50%;
        padding: 10px !important;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        margin-right: 12px;
        justify-content: center;
        svg {
            margin: 0 !important;
            path {
                fill: #fff;
            }  
        } 
    }
    .elementor-icon-list-item {
        span {
            font-family: Inter, sans-serif !important;
            font-size: 16px;
            font-weight: 400;
        }
    }
} 

.tramites-list {
    .elementor-icon-list-item {
        align-items: flex-start !important;
    }
    
    .elementor-icon-list-icon {
        background: #14422d;
        border-radius: 50%;
        width: 60px;
        height: 43px;
        padding: 10px !important;
        display: flex;
        align-items: center;
        margin-right: 15px;
        justify-content: center;
        svg {
            margin: 0 !important;
            path {
                fill: #fff;
            }  
        } 

    }
    
    .elementor-icon-list-item {
        span {
            font-family: Inter, sans-serif !important;
            font-size: 16px;
            font-weight: 400;
        }
    }
}

