/* Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 2.2.5
*/

/* ==========================================================================
   1. RESET Y CONFIGURACIÓN GLOBAL
   ========================================================================== */
#site-header,
.site-header,
#site-footer,
.site-footer,
.page-header,
.entry-title {
    display: none !important;
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box !important;
}

/* ==========================================================================
   2. COMPORTAMIENTO STICKY (SOLO ESCRITORIO)
   ========================================================================== */
@media (min-width: 992px) {
    body {
        padding-top: 105px;
        /* Evita que el contenido se meta bajo el header */
    }

    .mi-header-pro {
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100% !important;
        z-index: 9999;
    }

    /* Ajuste para que la barra de WordPress no tape el header */
    .admin-bar .mi-header-pro {
        top: 32px !important;
    }
}

/* ==========================================================================
   3. ESTRUCTURA DEL HEADER
   ========================================================================== */
.mi-header-pro {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: 120px;
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.container-personalizado {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto !important;
    padding: 0 20px;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.logo img {
    max-width: 150px !important;
    height: auto !important;
    display: block;
}

/* Contenedor de Menú + Botón */
.header-derecha {
    display: flex !important;
    align-items: center !important;
    gap: 20px;
    flex-wrap: nowrap !important;
    /* Fuerza a que todo esté en una línea */
}

/* ==========================================================================
   4. MENÚ DE NAVEGACIÓN (ESCRITORIO)
   ========================================================================== */
.menu-listado {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.menu-listado>li {
    position: relative;
    padding: 0 12px;
}

.menu-listado>li>a {
    color: #1e293b !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s;
}

.menu-listado>li>a:hover {
    color: #3a7d1e !important;
}

/* Indicador de Submenú (Flechita) */
.menu-item-has-children>a::after {
    content: '▾';
    margin-left: 5px;
    font-size: 10px;
}

/* Submenús Escritorio */
.menu-listado .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-top: 3px solid #1e293b;
}

.menu-listado li:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.menu-listado .sub-menu li a {
    padding: 10px 20px;
    display: block;
    color: #444 !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.menu-listado .sub-menu li a:hover {
    background: #f8faf7;
    color: #1e293b !important;
}

/* ==========================================================================
   5. BOTÓN TELÉFONO (CTA)
   ========================================================================== */
.header-cta {
    flex-shrink: 0;
    /* Impide que el botón se haga pequeño */
}

.boton-presupuesto {
    background-color: #1e293b !important;
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
    display: inline-block;
    transition: background 0.3s, transform 0.2s;
}

.boton-presupuesto:hover {
    background-color: #3a7d1e !important;
    transform: scale(1.03);
}

/* ==========================================================================
   6. RESPONSIVE (MÓVIL Y TABLET)
   ========================================================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #1e293b;
    transition: 0.3s;
}

@media (max-width: 991px) {
    .mi-header-pro {
        height: 120px;
    }

    /* Header más bajo en móvil */

    .menu-toggle {
        display: flex;
    }

    .navegacion-principal {
        display: none;
    }

    /* El menú desplegado */
    .navegacion-principal.is-active {
        display: block;
        position: absolute;
        top: 85px;
        left: 0;
        width: 100%;
        background: #fff;
        max-height: 85vh;
        overflow-y: auto;
        z-index: 9999;
        border-top: 1px solid #eee;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

    .menu-listado {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-listado>li {
        width: 100%;
        border-bottom: 1px solid #f2f2f2;
        padding: 0;
    }

    .menu-listado>li>a {
        padding: 15px 20px;
        display: block;
        width: 100%;
        color: #333 !important;
    }

    /* Submenús en móvil: Estilo limpio (sin rojo) y empujando contenido */
    .menu-listado .sub-menu {
        position: static !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: #f9fcf8;
        box-shadow: none;
        padding: 0;
        border-top: none;
    }

    .menu-listado .sub-menu li {
        border-left: 4px solid #e0eadd;
    }

    .menu-listado .sub-menu li a {
        padding: 12px 35px;
        color: #666 !important;
        font-size: 13px;
    }

    .header-cta {
        display: none;
    }

    /* Ocultamos botón en móvil para priorizar espacio */
}

/* ==========================================================================
   ESTILOS GENERALES DEL FOOTER PREMIUM
   ========================================================================== */
.mi-footer-pro {
    background-color: #0f172a; /* Fondo pizarra oscuro elegante */
    color: #cbd5e1;
    padding: 70px 0 0 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
}

/* Rejilla Responsiva de 4 columnas */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    padding-bottom: 50px;
}

.footer-columna {
    display: flex;
    flex-direction: column;
}

/* Titulares de las columnas */
.footer-titulo {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 22px 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Línea decorativa debajo del título */
.footer-titulo::after {
    content: '';
    display: block;
    width: 45px;
    height: 3px;
    background-color: #0073aa; /* Color azul corporativo */
    margin-top: 8px;
}

.footer-descripcion {
    line-height: 1.6;
    color: #94a3b8;
    margin: 0 0 15px 0;
}

.footer-contacto-rapido p {
    margin: 0;
    font-size: 14px;
    color: #cbd5e1;
}

/* Estilos de las Listas (Menú WP y Servicios) */
.footer-menu-links, .footer-servicios-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu-links li, .footer-servicios-links li {
    margin-bottom: 12px;
}

.footer-menu-links li a, .footer-servicios-links li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.footer-menu-links li a:hover, .footer-servicios-links li a:hover {
    color: #38bdf8; /* Azul claro al pasar el cursor */
    padding-left: 6px;
}

/* Columna de Atención al Cliente */
.footer-atencion p {
    margin: 0 0 10px 0;
}

.footer-telefono-destacado a, .footer-email-destacado a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
}

.footer-telefono-destacado a:hover, .footer-email-destacado a:hover {
    color: #38bdf8;
}

.footer-horario {
    margin-top: 15px;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid #0073aa;
}

.footer-horario p {
    margin: 0;
    font-size: 13.5px;
    color: #94a3b8;
}

/* --------------------------------------------------------------------------
   BARRA DE COPYRIGHT INFERIOR
   -------------------------------------------------------------------------- */
.footer-bottom {
    background-color: #020617; /* Fondo todavía más oscuro */
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: #64748b;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
}

.footer-legal-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
    margin: 0 5px;
}

.footer-legal-links a:hover {
    color: #cbd5e1;
}

/* --- RESPONSIVE (MÓVILES) --- */
@media (max-width: 768px) {
    .mi-footer-pro {
        padding: 50px 20px 0 20px;
    }
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
}