/*
Theme Name: Aireco HVAC
Theme URI: http://tusitio.com/aireco
Description: Tema para HVAC basado en Genesis Framework.
Author: Tu Nombre
Version: 1.0.0
Template: genesis
*/

:root {
    --primary: #FF6600;
    --dark: #1A1A1A;
    --light: #F8F9FA;
    --white: #ffffff;
    --font-body: 'Poppins', sans-serif;
    --radius: 5px;
}

/* ==========================================================================
   1. Reset & Typography
   ========================================================================== */
body {
    background-color: var(--white);
    color: var(--dark);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; transition: 0.3s; }
a:hover { color: var(--dark); }

h1, h2, h3, h4 { font-weight: 700; color: var(--dark); margin-bottom: 20px; }
h1 { font-size: 2.5rem; line-height: 1.2; }

/* ==========================================================================
   2. Layout Fixes (Full Width & Genesis Overrides)
   ========================================================================== */
/* Romper la "caja" de Genesis para permitir diseño de ancho completo */
.site-inner, 
.content-sidebar-wrap, 
.content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
}

/* Clases de alineación de Gutenberg */
.alignfull {
    margin-left: calc( -100vw / 2 + 100% / 2 );
    margin-right: calc( -100vw / 2 + 100% / 2 );
    max-width: 100vw;
    width: 100vw;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Contenedor estándar para el contenido */
.wp-block-group__inner-container, 
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* ==========================================================================
   3. Site Header (Logo, Menu, Button)
   ========================================================================== */
.site-header {
    background-color: var(--dark);
    padding: 10px 0;
}

/* Flexbox para alinear Logo - Menú - Botón */
.site-header .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* --- LOGO --- */
.site-header .title-area {
    width: auto !important;
    float: none !important;
    padding: 0;
    margin: 0;
    display: block;
}

/* Forzar visualización de la imagen del logo */
.custom-logo-link,
.custom-logo-link img,
.site-header .logo img {
    display: block !important;
    width: auto !important;
    max-width: 250px;
    height: auto !important;
    max-height: 80px; /* Altura máxima del logo */
}

/* Ocultar texto del título si el logo está presente */
.wp-custom-logo .site-title,
.site-title, 
.site-description {
    display: none !important;
}

/* --- MENÚ --- */
.nav-primary {
    display: block;
    width: auto;
    flex-grow: 1; /* Ocupa el espacio central */
    text-align: center;
    margin: 0 20px;
}

.nav-primary .genesis-nav-menu {
    display: inline-flex;
    gap: 30px;
}

.nav-primary .menu-item a {
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    display: block;
    padding: 10px 0;
}

.nav-primary .menu-item a:hover {
    color: var(--primary);
}

/* --- HEADER WIDGET (BOTÓN) --- */
.site-header .widget-area {
    float: none;
    width: auto;
    text-align: right;
}

/* ==========================================================================
   4. Colors & Blocks (Gutenberg)
   ========================================================================== */
.has-primary-color { color: var(--primary) !important; }
.has-primary-background-color { background-color: var(--primary) !important; }
.has-dark-color { color: var(--dark) !important; }
.has-dark-background-color { background-color: var(--dark) !important; }
.has-light-color { color: var(--light) !important; }
.has-light-background-color { background-color: var(--light) !important; }
.has-white-color { color: var(--white) !important; }

/* Botones */
.wp-block-button__link, 
.btn-orange {
    background-color: var(--primary);
    color: #fff !important;
    border-radius: var(--radius);
    padding: 12px 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.wp-block-button__link:hover, 
.btn-orange:hover {
    background-color: #fff;
    color: var(--primary) !important;
}

/* ==========================================================================
   5. Specific Sections (Hero, Coupons, Footer)
   ========================================================================== */

/* HOME HERO (Fondo negro forzado y textos blancos) */
.home-hero,
.has-dark-background-color {
    background-color: #1A1A1A !important;
    color: #ffffff !important;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.home-hero h1, 
.home-hero p,
.home-hero label {
    color: #ffffff;
}

/* FLUENT FORMS / FORMULARIOS (Caja blanca sobre fondo negro) */
.fluentform, 
.wpforms-container,
.hero-form-container .wp-block-group {
    background-color: #ffffff !important;
    padding: 25px;
    border-radius: 5px;
    color: #333;
}

/* Inputs visibles */
.fluentform input, 
.fluentform textarea,
.wpforms-container input,
.wpforms-container textarea {
    background-color: #ffffff !important;
    border: 1px solid #ccc !important;
    color: #333 !important;
    padding: 10px;
    width: 100%;
}

/* COUPONS (Efecto Hover) */
.coupon-box .wp-block-group {
    border: 2px dashed var(--primary);
    transition: transform 0.3s;
}
.coupon-box .wp-block-group:hover {
    transform: translateY(-5px);
    background-color: #fff !important;
}

/* FOOTER */
.site-footer {
    background-color: var(--dark);
    color: #999;
    padding: 50px 0;
    text-align: center;
}
.site-footer p { margin-bottom: 0; }

/* ==========================================================================
   6. Accessibility & Utility
   ========================================================================== */
/* Ocultar enlaces de salto (puntos y texto) */
.genesis-skip-link,
.genesis-skip-link ul,
.genesis-skip-link li {
    list-style: none !important;
    height: 0;
    width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
}

.screen-reader-text,
.screen-reader-shortcut {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================================================
   7. Responsive (Mobile - Menú Compatible)
   ========================================================================== */
@media only screen and (max-width: 959px) {
    
    /* 1. Contenedor del Header: Columna Vertical */
    .site-header .wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px; /* Espacio entre Logo, Menú y Botón */
        padding-bottom: 10px;
    }

    /* 2. El Logo: Asegurar tamaño correcto */
    .site-header .title-area {
        margin-bottom: 10px;
    }

    /* 3. El Menú: ¡HACERLO VISIBLE! */
    .nav-primary {
        display: block !important; /* Forzar que se vea */
        width: 100%;
        order: 2; /* Posición: Debajo del logo */
        margin: 0;
        padding: 10px 0;
        border-top: 1px solid rgba(255,255,255,0.1); /* Línea sutil separadora */
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* Lista vertical de enlaces */
    .nav-primary .genesis-nav-menu {
        display: flex;
        flex-direction: column; /* Uno debajo del otro */
        gap: 0; /* Sin huecos extraños */
        padding: 0;
        margin: 0;
    }

    /* Estilo de cada botón del menú */
    .nav-primary .menu-item {
        display: block;
        width: 100%;
        margin: 0;
    }

    .nav-primary .menu-item a {
        display: block;
        padding: 12px 0; /* Zona de toque amplia */
        font-size: 16px;
        color: #ffffff;
        border-bottom: 1px solid rgba(255,255,255,0.05); /* Línea muy fina entre items */
    }

    .nav-primary .menu-item:last-child a {
        border-bottom: none;
    }

    /* 4. El Botón de Llamada (Widget) */
    .site-header .widget-area {
        width: 100%;
        order: 3; /* Posición: Al final */
        margin-top: 5px;
        margin-bottom: 10px;
    }

    .btn-orange {
        width: 80%; /* Botón ancho pero no total */
        display: block;
        margin: 0 auto; /* Centrado */
        padding: 15px; /* Más fácil de tocar */
        font-size: 18px;
    }

    /* 5. Ajustes generales de bloques en móvil */
    .wp-block-columns {
        display: block;
    }
    .wp-block-column {
        margin-bottom: 40px;
    }
    
    /* Títulos más pequeños para que no corten palabras */
    h1 { font-size: 2.2rem; }
    
    /* Márgenes laterales seguros */
    .wrap, .wp-block-group__inner-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    
}
