/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/
Description: Tema hijo para personalización de Inmobiliaria Global House.
Author: TuNombre
Template: hello-elementor
Version: 1.3
*/

/* =========================================
   1. MODAL CONTACTO
   ========================================= */
.igh-modal { position: fixed; inset: 0; z-index: 9999; display: none; }
.igh-modal[aria-hidden="false"] { display: block; }
.igh-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
.igh-modal-box { position: relative; max-width: 520px; margin: 10vh auto; background: #fff; padding: 28px; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.igh-modal-box h3 { margin: 0 0 18px; font-size: 22px; font-weight: 600; line-height: 1.3; }
.igh-modal-close { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 22px; cursor: pointer; line-height: 1; color: #243b50; }
.igh-modal-box form { display: grid; grid-template-columns: 1fr; gap: 14px; }
.igh-modal-box label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.igh-modal-box input, .igh-modal-box textarea { width: 100%; padding: 10px 12px; border: 1px solid #dcdcdc; border-radius: 8px; font-size: 14px; outline: none; font-family: inherit; }
.igh-modal-box input:focus, .igh-modal-box textarea:focus { border-color: #0056ff; }
.igh-modal-box textarea { min-height: 90px; resize: vertical; }
.igh-modal-box button[type="submit"] { align-self: flex-start; margin-top: 6px; padding: 10px 22px; border-radius: 10px; border: 1px solid #243b50; background: #fff; color: #243b50; font-size: 15px; cursor: pointer; transition: all .2s ease; }
.igh-modal-box button[type="submit"]:hover { background: #243b50; color: #fff; }
@media (max-width:600px) { .igh-modal-box { margin: 6vh 16px; padding: 22px; } }

/* =========================================
   2. FOOTER GLOBAL (Diseño Unificado)
   ========================================= */

/* Estructura base */
.site-footer {
    width: 100% !important;
    clear: both !important;
    display: block !important;
    background-color: #fff;
    
    /* FIX: Este margen asegura que la línea no se pegue al contenido en ninguna página */
    margin-top: 70px !important; 
    
    padding-top: 60px;
    padding-bottom: 40px;
    border-top: 1px solid #eaeaea; /* La línea transparente */
    font-family: Arial, sans-serif;
}

/* Rejilla de 4 columnas */
.site-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto !important; 
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr; 
    gap: 40px;
    align-items: start;
}

/* Títulos y fuentes */
.site-footer h3,
.site-footer h4,
.site-footer .footer-heading {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
}

.site-footer .footer-logo,
.site-footer .main-title {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
}

.site-footer .footer-desc {
    font-size: 15px;
    line-height: 1.5;
    color: #555;
    margin-bottom: 30px;
    max-width: 90%;
}

/* Listas y Links */
.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin-bottom: 12px;
    font-size: 15px;
    color: #555;
    display: flex;
    align-items: start;
    gap: 8px;
}

/* Bullet rosado */
.site-footer ul li::before {
    content: "•";
    color: #0d3864;
    font-weight: bold;
}

.site-footer a {
    text-decoration: none;
    color: #0d3864;
    transition: 0.2s;
}

.site-footer a:hover {
    text-decoration: underline;
}

/* Copyright */
.footer-bottom, .footer-copyright {
    font-size: 13px;
    color: #777;
    margin-top: 20px;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .site-footer .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .site-footer {
        margin-top: 40px !important;
    }
}