.navbar-logo {
    font-family: "Crimson Text", Sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    transition: color 250ms ease-out;
}

.navbar-logo-img {
    aspect-ratio: initial;
    width: auto !important;
    height: 2.5rem !important;
    padding: 0 1rem 0 0;
}

.navbar-logo:hover {
    color: var(--e-global-color-primary) !important;
}


#navbar-container {
    box-shadow: 0 0 16px 0px rgba(0, 0, 0, .1);
}

#navbar-navigation-dropdown {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

#navbar-grid {
    gap: 1rem;
}

/* Navbar links */
#menu-1-7a6d8768 {
    flex-wrap: nowrap;
}

.elementor-menu-toggle {
    border-radius: 0 !important;
}

.heading-title-light {
    color: var(--e-global-color-primary) !important;
}

.heading-title-dark {
    color: var(--e-global-color-primary-text-dark) !important;
}

.contacto-form {
    margin: 1em 0 !important;
}

.soluciones-tile {
    max-height: 300px !important;
}

.soluciones-tile img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* @media screen and (min-width: 1025px) {
    .contacto-form {
        margin: -7em 1em 0 0 !important;
    }
} */

.d-flex {
    display: flex !important;
}

.flex-column {
    display: flex !important;
    flex-direction: column !important;
}

.flex-row {
    display: flex !important;
    flex-direction: row !important;
}

.justify-start {
    justify-content: flex-start !important;
}

.justify-between {
    justify-content: space-between !important;
}

.justify-around {
    justify-content: space-around !important;
}

.justify-evenly {
    justify-content: space-evenly !important;
}

.justify-end {
    justify-content: flex-end !important;
}

.justify-center {
    justify-content: center !important;
}

.align-start {
    align-items: flex-start !important;
}

.align-end {
    align-items: flex-end !important;
}

.align-center {
    align-items: center !important;
}

.text-center {
    text-align: center !important;
}

.social-network-link {
    transition: color 200ms ease-out !important;
    color: var(--e-global-color-secondary) !important;
    font-weight: 600;
    padding: 0 0.5rem;
}

.social-network-link:hover {
    color: var(--e-global-color-primary) !important;
}

.social-network-link:active {
    color: var(--e-global-color-primary-darker) !important;
}

.social-network-icon {
    font-size: 1.7rem;
    padding: 0.5rem;
    color: inherit;
    transition: inherit;
}

.button-success {
    background-color: var(--e-global-color-success) !important;
    border-color: var(--e-global-color-success-dark) !important;
}

.button-error {
    background-color: var(--e-global-color-error) !important;
    border-color: var(--e-global-color-error-dark) !important;
}

.button-label-icon {
    padding: 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.d-none {
    display: none !important;
}

.error-message {
    color: var(--e-global-color-error) !important;
    padding: 0.5rem 0 !important;
}

.separator {
    width: 100%;
    height: 5rem !important
}

/* =============================================
   #auditorias
   ============================================= */

#auditorias .elementor-background-overlay {
    background-image: url("./../../../../img/bg-auditorias.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.7;
    transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
}

#auditorias {
    position: relative;
    padding: 5em 0;
    overflow: hidden;
}

#auditorias .elementor-container {
    align-items: stretch;
}

#auditorias .auditorias-top-half-col-left {
    max-width: 800px;
    margin-bottom: 2rem;
}

/* ---- Content column ---- */
#auditorias .auditorias-content-col {
    z-index: 1;
}

#auditorias .auditorias-intro {
    /* color: rgba(255, 255, 255, 0.85); */
    /* font-size: 1.05rem; */
    line-height: 1.7;
    margin-bottom: 0;
}

/* ---- Services list ---- */
#auditorias .auditorias-list {
    margin-top: 1rem;
}

#auditorias .auditorias-list-title {
    /* font-size: 1.15rem; */
    font-weight: 700;
    /* color: var(--e-global-color-primary); */
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---- Service cards grid ---- */
#auditorias .auditorias-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

#auditorias .auditorias-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.25rem;
    transition: transform 0.35s cubic-bezier(.22, .61, .36, 1),
        box-shadow 0.35s cubic-bezier(.22, .61, .36, 1),
        background 0.35s ease;
}

#auditorias .auditorias-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

#auditorias .auditorias-card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--e-global-color-primary), #0fa082);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(45, 108, 223, 0.35);
}

#auditorias .auditorias-card-content h4 {
    /* color: #fff; */
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.35rem 0;
    line-height: 1.3;
}

#auditorias .auditorias-card-content p {
    /* color: rgba(255, 255, 255, 0.72); */
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.55;
}

/* ---- Image column (right) ---- */
#auditorias .auditorias-image-col>.elementor-widget-wrap {
    background-image: url("./../../../../img/DSC_0013.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 400px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    margin: 8px 16px;
}

/* ---- Scroll-reveal animation ---- */
.auditorias-reveal {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(.22, .61, .36, 1),
        transform 0.8s cubic-bezier(.22, .61, .36, 1);
}

.auditorias-reveal--left {
    transform: translateX(-50px);
}

.auditorias-reveal--right {
    transform: translateX(50px);
}

.auditorias-reveal.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ---- CTA button inside #auditorias ---- */
#auditorias .elementor-button {
    margin-top: 1.5rem;
}

/* ---- Responsive ---- */
@media screen and (max-width: 1024px) {
    #auditorias .auditorias-services-grid {
        grid-template-columns: 1fr !important;
    }
}

@media screen and (max-width: 767px) {
    .navbar-logo {
        font-size: 1rem;
        font-weight: 700;
    }

    .navbar-logo-img {
        width: auto !important;
        height: 1.5rem !important;
        padding: 0 1rem;
    }

    #auditorias {
        padding: 3em 0;
    }

    #auditorias .auditorias-top-half-col-left {
        /* max-width: 600px; */
        margin-bottom: 1rem;
    }

    #auditorias .auditorias-image-col>.elementor-widget-wrap {
        min-height: 280px;
        margin-top: 2rem;
    }

    #auditorias .auditorias-services-grid {
        grid-template-columns: 1fr;
    }

    #auditorias .auditorias-card {
        padding: 1rem;
    }
}

/* =============================================
   Navbar actions (CTA + Language switcher)
   ============================================= */

.navbar-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ---- CTA "Recibe asesoría" button ---- */
.navbar-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 1.25rem;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    color: #fff !important;
    background-color: var(--e-global-color-primary);
    border: 1px solid var(--e-global-color-primary);
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    text-decoration: none;
}

.navbar-cta-btn:hover,
.navbar-cta-btn:focus {
    color: var(--e-global-color-340804a);
    background-color: var(--e-global-color-primary-darker);
    border-color: var(--e-global-color-primary);
}

/* ---- Language switcher ---- */
.lang-switcher {
    position: relative;
}

#lang-toggle {
    background-color: var(--e-global-color-primary);
    border: 1px solid var(--e-global-color-primary);
}

#lang-toggle:hover,
#lang-toggle:focus {
    background-color: var(--e-global-color-primary-darker);
    border-color: var(--e-global-color-primary);
}

.lang-switcher__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--e-global-color-light-gray);
    border-radius: 0;
    cursor: pointer;
    color: var(--e-global-color-secondary);
    transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.lang-switcher__toggle:hover,
.lang-switcher__toggle:focus {
    color: var(--e-global-color-primary);
    border-color: var(--e-global-color-primary);
    background-color: rgba(86, 185, 183, 0.06);
    outline: none;
}

.lang-switcher__icon {
    width: 18px;
    height: 18px;
}

/* ---- Dropdown ---- */
.lang-switcher__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 150px;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--e-global-color-very-light-gray);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.lang-switcher__dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 16px;
    font-family: "Manrope", Sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--e-global-color-secondary) !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    text-align: left;
}

.lang-switcher__option:hover {
    background-color: rgba(86, 185, 183, 0.08) !important;
    color: var(--e-global-color-primary) !important;
}

.lang-switcher__option.is-active {
    color: var(--e-global-color-primary);
    font-weight: 700;
}

.lang-switcher__check {
    width: 14px;
    height: 14px;
    margin-left: 8px;
    opacity: 0;
    color: var(--e-global-color-primary);
    transition: opacity 0.15s ease;
}

.lang-switcher__option.is-active .lang-switcher__check {
    opacity: 1;
}

/* ---- Medium size screens ---- */
@media screen and (max-width: 1024px) {

    /* Stack the entire navbar vertically on tablets and below */
    #navbar-container .elementor-container {
        flex-wrap: wrap;
    }

    #navbar-grid {
        flex-wrap: nowrap !important;
        gap: 0.5rem;
    }

    #navbar-logo-container {
        margin-right: auto;
    }

    .navbar-logo-img {
        padding-left: 0;
        padding-right: 0.5rem;
    }

    /* Hamburger button */
    #navbar-container .elementor-container>[data-id="624866e8"] {
        order: 3;
        flex: 0 0 auto;
        width: auto;
    }

    .navbar-actions {
        order: 2;
        gap: 0.5rem;
    }

    .navbar-cta-btn {
        height: 34px;
        padding: 0 1rem;
        font-size: 10px;
    }

    .lang-switcher__toggle {
        width: 34px;
        height: 34px;
    }

    .lang-switcher__icon {
        width: 16px;
        height: 16px;
    }
}

/* ---- Small size screens ---- */
@media screen and (max-width: 767px) {

    /* On mobile: logo row has logo + actions side by side */
    #navbar-container .elementor-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    /* Logo column */
    #navbar-container .elementor-container>[data-id="2b226648"] {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
    }

    /* Nav menu column — keep burger visible but in flow */
    #navbar-container .elementor-container>[data-id="624866e8"] {
        order: 3;
        flex: 0 0 auto;
        width: auto;
    }

    /* Actions group (CTA + globe) */
    .navbar-actions {
        order: 2;
        flex: 0 0 auto;
        gap: 0.4rem;
    }

    .navbar-cta-btn {
        height: 32px;
        padding: 0 0.75rem;
        font-size: 9px;
    }

    .lang-switcher__toggle {
        width: 32px;
        height: 32px;
    }

    .lang-switcher__icon {
        width: 15px;
        height: 15px;
    }

    .lang-switcher__dropdown {
        right: 0;
    }
}