/* ==========================================
   FOOTER MOBILE - Título único
   ========================================== */

@media (max-width: 1024px) {
    
    .footer-stage {
        min-height: auto;
        padding: 40px 0;
    }
    
    .footer-wrap {
        padding: 20px;
        gap: 20px;
        min-height: auto;
    }
    .footer-headline-line1 {
    font-size: 28.2px;
    white-space: nowrap;
    color: var(--footer-white);
}
    /* Pills */
    .footer-top {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .footer-top::-webkit-scrollbar {
        height: 3px;
    }
    
    .footer-top::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 999px;
    }
    
    .footer-pill {
        flex-shrink: 0;
    }
    
    /* Main - Stack vertical */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 0;
    }
    
    /* LEFT - Card */
    .footer-left {
        padding-top: 0;
        gap: 20px;
        text-align: center;
    }
    
    .footer-card {
        width: 100%;
        max-width: 340px;
        height: 180px;
        margin: 0 auto;
    }
    
    .footer-card::before {
        font-size: 70px;
        left: 18px;
        top: 30px;
    }
    
    .footer-portrait {
        width: 220px;
        height: 200px;
        right: -5px;
        bottom: -5px;
    }
    
    /* CENTER - Título único */
    .footer-center {
        padding-top: 0;
        align-items: center;
        text-align: center;
    }
    
    /* Título único - Responsive */
    .footer-single-title {
        font-size: 52px !important;
        margin-bottom: 25px !important;
    }
    
    /* OCULTAR formulario en mobile */
    .footer-cf7-wrapper {
        display: none;
    }
    
    /* BOTÓN PARA ABRIR MODAL */
    .footer-contact-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 16px 32px;
        background: linear-gradient(135deg, rgba(255, 120, 0, 0.9), rgba(255, 70, 0, 0.7));
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 999px;
        color: rgba(255, 255, 255, 0.95);
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        font-family: 'Domi', sans-serif;
        cursor: pointer;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        box-shadow: 0 8px 24px rgba(255, 70, 0, 0.3);
        transition: all 0.3s ease;
        text-decoration: none;
    }
    
    .footer-contact-button:active {
        transform: scale(0.95);
    }
    
    .footer-contact-button svg {
        width: 18px;
        height: 18px;
        opacity: 0.9;
    }
    
    /* RIGHT - Info contacto */
    .footer-right {
        align-items: center;
        padding-bottom: 0;
        gap: 20px;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    /* Footer bottom - Stack vertical */
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .footer-bottom > div,
    .footer-bottom-mid,
    .footer-bottom-right {
        width: 100%;
        text-align: center;
    }
}

/* ==========================================
   MODAL - Glassmorphism
   ========================================== */

.footer-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.footer-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.footer-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(15, 15, 15, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 32px 24px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.footer-modal-overlay.active .footer-modal {
    transform: scale(1);
}

/* Botón cerrar (X) */
.footer-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.footer-modal-close:active {
    transform: scale(0.9);
}

.footer-modal-close svg {
    width: 18px;
    height: 18px;
    stroke: rgba(255, 255, 255, 0.8);
}

/* Título del modal */
.footer-modal-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
    margin-bottom: 8px;
    font-family: 'Domi', sans-serif;
}

.footer-modal-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 28px;
    font-family: 'Domi', sans-serif;
}

/* ==========================================
   FORMULARIO EN MODAL - Stack vertical
   ========================================== */

.footer-modal .footer-cf7-wrapper {
    display: block !important;
    width: 100%;
}

.footer-modal .footer-cf7-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    grid-template-columns: none !important;
}

.footer-modal .footer-cf7-left,
.footer-modal .footer-cf7-right {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

.footer-modal .footer-cf7-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.footer-modal .footer-cf7-field label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Domi', sans-serif;
    margin-bottom: 0;
    display: block;
}

.footer-modal .footer-cf7-field input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 15px !important;
    padding: 12px 16px !important;
    outline: none !important;
    font-family: 'Domi', sans-serif !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background-image: none !important;
}

.footer-modal .footer-cf7-field input:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.footer-modal .footer-cf7-field input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.footer-modal .footer-cf7-field textarea {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 15px !important;
    padding: 12px 16px !important;
    outline: none !important;
    font-family: 'Domi', sans-serif !important;
    min-height: 120px !important;
    resize: vertical !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.footer-modal .footer-cf7-field textarea:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.footer-modal .footer-cf7-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
}

.footer-modal .footer-cf7-submit {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    grid-column: auto !important;
}

.footer-modal .footer-cf7-submit input[type="submit"] {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, rgba(255, 120, 0, 0.9), rgba(255, 70, 0, 0.8)) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 999px !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    font-family: 'Domi', sans-serif !important;
    transition: all 0.2s ease !important;
}

.footer-modal .footer-cf7-submit input[type="submit"]:active {
    transform: scale(0.97);
}

.footer-modal .footer-cf7-submit::after {
    display: none !important;
}

.footer-modal .wpcf7-not-valid-tip {
    font-size: 11px;
    color: rgba(255, 100, 100, 0.9);
    margin-top: 4px;
    font-family: 'Domi', sans-serif;
}

.footer-modal .wpcf7-validation-errors,
.footer-modal .wpcf7-mail-sent-ok {
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    margin-top: 12px;
    font-family: 'Domi', sans-serif;
}

.footer-modal .wpcf7-validation-errors {
    background: rgba(255, 100, 100, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.footer-modal .wpcf7-mail-sent-ok {
    background: rgba(100, 255, 100, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.footer-modal .wpcf7-spinner {
    margin-left: 10px;
}

.footer-modal {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.footer-modal::-webkit-scrollbar {
    width: 6px;
}

.footer-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

body.footer-modal-open {
    overflow: hidden;
}