.elementor-7674 .elementor-element.elementor-element-669d057{--display:flex;--position:fixed;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;top:0px;}body:not(.rtl) .elementor-7674 .elementor-element.elementor-element-669d057{left:0px;}body.rtl .elementor-7674 .elementor-element.elementor-element-669d057{right:0px;}.elementor-7674 .elementor-element.elementor-element-20128e4{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-7674 .elementor-element.elementor-element-ffc3df7{--display:flex;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}/* Start custom CSS for html, class: .elementor-element-0fe6536 */:root {
    --nav-primary: #45bb8a;
    --nav-text: #161d19;
}

/* Barra Principal */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem max(1.5rem, calc((100% - 1280px) / 2 + 1.5rem));
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.navbar-logo img {
    height: 84px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Enlaces */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--nav-text);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
    padding: 0.25rem 0;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--nav-primary);
    transition: width 0.25s ease;
    border-radius: 2px;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: var(--nav-primary);
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
    width: 100%;
}

/* Dropdown / Submenú Escritorio */
.nav-item-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.dropdown-arrow {
    transition: transform 0.25s ease;
}

.nav-item-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    min-width: 250px;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.07);
    padding: 0.5rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    margin: 0;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid rgba(0, 0, 0, 0.07);
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}
/* Soporte de clase activa en ítems del dropdown */
.dropdown-menu a.active {
    background-color: #eff5ef !important;
    color: #45bb8a !important;
    padding-left: 1.25rem !important;
    font-weight: 600 !important;
}

/* Soporte de clase activa en vista móvil */
@media (max-width: 768px) {
    .nav-links a.active {
        color: var(--nav-primary) !important;
        background-color: rgba(69, 187, 138, 0.08) !important;
        font-weight: 700 !important;
    }

    .dropdown-menu a.active {
        background-color: rgba(69, 187, 138, 0.18) !important;
        color: #45bb8a !important;
        font-weight: 600 !important;
    }
}

.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(6px);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: flex !important;
    align-items: center;
    padding: 0.65rem 1rem !important;
    color: #161d19 !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    white-space: nowrap;
    border-radius: 8px;
}

.dropdown-menu a::after {
    display: none !important;
}

.dropdown-menu a:hover {
    background-color: #eff5ef !important;
    color: #45bb8a !important;
    padding-left: 1.25rem !important;
}

/* Botón CTA */
.btn-cta {
    background: linear-gradient(135deg, #45bb8a 0%, #35a477 100%) !important;
    color: #ffffff !important;
    padding: 0.75rem 1.6rem !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(69, 187, 138, 0.25);
    transition: all 0.25s ease !important;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn-cta:hover {
    background: linear-gradient(135deg, #35a477 0%, #0bb0b0 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(69, 187, 138, 0.4);
}

/* Botón Hamburguesa */
.mobile-menu-btn {
    display: none;
    background: transparent !important; /* Elimina la franja verde estirada */
    border: none !important;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 8px;
    width: 42px !important;            /* Ancho compacto */
    height: 42px !important;           /* Alto cuadrado */
    min-width: 42px !important;
    margin-left: auto;                  /* Lo empuja siempre al extremo derecho */
    border-radius: 8px;
    z-index: 1001;
    box-shadow: none !important;
    flex-shrink: 0;                     /* Evita que flex lo deforme */
}


.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2.5px;
    background-color: var(--nav-text);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .navbar-desktop-cta {
        display: none !important;
    }

    /* Cajón deslizable del menú */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        padding: 0;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                    visibility 0.3s ease;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        max-height: calc(100vh - 75px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.35rem;
        z-index: 9999;
    }

    .nav-links.active {
        padding: 1.25rem 1.5rem 2rem 1.5rem;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.75rem 1rem;
        text-align: center;
        font-size: 1rem;
        border-radius: 8px;
    }

    /* Desactivar línea subrayada en móvil */
    .nav-links a::after {
        display: none !important;
    }

    .nav-item-dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
        cursor: pointer;
        user-select: none;
    }

    /* Acordeón desplegable en móvil */
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        background-color: #eff5ef !important;
        border-radius: 10px !important;
        padding: 0 !important;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
                    opacity 0.25s ease, 
                    padding 0.3s ease, 
                    margin 0.3s ease !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.25rem;
        width: 100%;
        margin: 0 !important;
    }

    .nav-item-dropdown.open .dropdown-menu {
        max-height: 280px;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto;
        padding: 0.5rem !important;
        margin-top: 0.35rem !important;
    }

    .nav-item-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-menu::before {
        display: none !important;
    }

    .dropdown-menu a {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
        text-align: center !important;
        justify-content: center !important;
        color: #3d4a42 !important;
        border-radius: 6px;
        background: transparent;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .dropdown-menu a:hover,
    .dropdown-menu a:active {
        background-color: rgba(69, 187, 138, 0.15) !important;
        color: #45bb8a !important;
    }

    .nav-links .mobile-cta-li {
        margin-top: 0.75rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .mobile-cta-li .btn-cta {
        width: 100% !important;
        max-width: 320px;
    }
}

/* ========================================================
   MODAL POPUP CON CENTRADO Y RESPONSIVE PERFECTO
   ======================================================== */

/* 1. Fondo Oscuro (Overlay a pantalla completa) */
.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background-color: rgba(10, 10, 10, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 1.5rem !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* 2. Tarjeta Blanca Centrada (Modal Card) */
.modal-card {
    background-color: #ffffff !important;
    border-radius: 18px !important;
    border: 1px solid rgba(188, 202, 192, 0.5) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35) !important;
    width: 100% !important;
    max-width: 560px !important;
    margin: auto !important; /* <--- OBLIGATORIO: Centra la tarjeta en cualquier pantalla */
    max-height: calc(100vh - 3rem) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 2.25rem !important;
    position: relative !important;
    box-sizing: border-box !important;
    transform: scale(0.95) translateY(12px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', -apple-system, sans-serif;
    color: #161d19;
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0) !important;
}

/* 3. Botón de Cierre Circular */
.modal-close-btn {
    position: absolute !important;
    top: 1.25rem !important;
    right: 1.25rem !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    background-color: #eff5ef !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #3d4a42 !important;
    font-size: 24px !important;
    line-height: 1 !important;
    font-family: Arial, sans-serif !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
    z-index: 99 !important;
}

.modal-close-btn:hover {
    background-color: #45bb8a !important;
    color: #ffffff !important;
    transform: rotate(90deg) !important;
}

/* 4. Textos de Cabecera */
.modal-header {
    margin-bottom: 1.25rem;
    padding-right: 2.5rem;
}

.modal-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #45bb8a;
    display: block;
    margin-bottom: 0.25rem;
}

.modal-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: #161d19;
    margin: 0 0 0.35rem 0;
    line-height: 1.25;
}

.modal-subtitle {
    font-size: 0.88rem;
    color: #3d4a42;
    line-height: 1.45;
    margin: 0;
}

/* 5. Estructura y Cuadrícula de Campos */
.modal-cf7-wrapper,
.modal-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.modal-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* 2 columnas en PC */
    gap: 0.85rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.modal-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.3rem !important;
    width: 100% !important;
    min-width: 0 !important; /* <--- Evita que los inputs desborden su celda */
    box-sizing: border-box !important;
}

.modal-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #161d19;
}

/* Envoltura span de Contact Form 7 */
.modal-card .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
}

.modal-card input.modal-input,
.modal-card select.modal-input,
.modal-card textarea.modal-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.7rem 0.9rem !important;
    font-size: 0.9rem !important;
    font-family: inherit !important;
    color: #161d19 !important;
    background-color: #ffffff !important;
    border: 1px solid rgba(188, 202, 192, 0.6) !important;
    border-radius: 9px !important;
    outline: none !important;
    transition: all 0.2s ease !important;
}

.modal-card input.modal-input:focus,
.modal-card select.modal-input:focus,
.modal-card textarea.modal-input:focus {
    border-color: #45bb8a !important;
    box-shadow: 0 0 0 3px rgba(69, 187, 138, 0.18) !important;
}

.modal-card select.modal-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%233d4a42' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.85rem center !important;
    padding-right: 2.25rem !important;
    cursor: pointer;
}

.modal-card textarea.modal-textarea {
    resize: vertical;
    min-height: 65px;
}

/* Botón de Enviar */
.modal-card input.modal-btn-submit {
    background: linear-gradient(135deg, #45bb8a 0%, #35a477 100%) !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    padding: 0.85rem 1.5rem !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(69, 187, 138, 0.28) !important;
    transition: all 0.25s ease !important;
    width: 100% !important;
    margin-top: 0.3rem !important;
}

.modal-card input.modal-btn-submit:hover {
    background: linear-gradient(135deg, #35a477 0%, #0bb0b0 100%) !important;
    transform: translateY(-2px) !important;
}

/* ========================================================
   6. RESPONSIVE MÓVIL (PANTALLAS MENORES A 640px)
   ======================================================== */
@media (max-width: 640px) {
    .modal-overlay {
        padding: 0.75rem !important;
        align-items: flex-start !important; /* Facilita el scroll en teléfonos con pantallas cortas */
    }

    .modal-card {
        padding: 1.5rem 1.2rem !important;
        margin: auto !important;
        max-width: 100% !important;
    }

    .modal-grid {
        grid-template-columns: 1fr !important; /* <--- PASA A 1 COLUMNA PARA QUE NADA SE CORTE */
        gap: 0.75rem !important;
    }

    .modal-header {
        padding-right: 2rem;
    }

    .modal-title {
        font-size: 1.25rem !important;
    }
}/* End custom CSS */
/* Start custom CSS for html, class: .elementor-element-457e67a */.modal-close-btn {
    position: absolute !important;
    top: 1.25rem !important;
    right: 1.25rem !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    border-radius: 50% !important;
    background-color: #eff5ef !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #3d4a42 !important;
    font-size: 26px !important;
    line-height: 1 !important;
    font-family: Arial, sans-serif !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
    z-index: 99 !important;
}

.modal-close-btn:hover {
    background-color: #45bb8a !important;
    color: #ffffff !important;
    transform: rotate(90deg) !important;
}/* End custom CSS */