/*
 Theme Name:   Ecuanegos Theme
 Theme URI:    https://ecuanegos.com
 Description:  Tema independiente para portales GAD (Ecuanegos). No requiere Hello Elementor. Pensado para usarse con el plugin GAD Core (header/footer, home PHP, LOTAIP, etc.).
 Author:       Wilson Hernández — Ecuanegos
 Author URI:   https://ecuanegos.com
 Version:      1.2.3
 Requires at least: 6.0
 Tested up to: 6.8
 Requires PHP: 7.4
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  ecuanegos-theme
 Tags:         custom-logo, custom-menu, featured-images, full-width-template, translation-ready
*/

:root {
    /* Marca: la define GAD Core (Estructura GAD → color principal/secundario).
       No fijar colores de un GAD concreto aquí. */
    --gad-text: #1f2937;
    --gad-light: #f8fafc;
    --gad-border: #d8dee8;
    --ecu-content-width: 1140px;
}

/* Blindaje básico de enlaces del tema — no aplica dentro de componentes GAD Core */
a:hover {
    color: var(--gad-primary, #0a4f9d);
}

:is(.gad-noticias-a, .gad-noticias-b, .gad-noticia-single, .gad-interna-page, .gad-interna-contenido, .gad-modulo-page, .gad-mensaje-presidente, .gad-contacto-a, .gad-contacto-b, .gad-contacto-pagina, .gad-lotaip, .gad-rendicion, .gad-pdot, .gad-gestion, .gad-informe-labores, .gad-parroquia-a, .gad-parroquia-b, .gad-galeria-a, .gad-galeria-b, .gad-album) a:hover {
    color: unset;
}

button.gad-galeria-lightbox-close,
button.gad-galeria-lightbox-close:hover,
button.gad-galeria-lightbox-close:focus {
    background-color: var(--gad-secondary, #f8af35) !important;
    color: #fff !important;
    border: 0 !important;
}
button.gad-galeria-lightbox-close:hover,
button.gad-galeria-lightbox-close:focus {
    background-color: var(--gad-primary, #0a4f9d) !important;
}

/* Páginas internas / módulo GAD — banner a ancho completo */
body.gad-interna-template #page,
body.gad-interna-template .site,
body.gad-interna-template .site-content,
body.gad-modulo-template #page,
body.gad-modulo-template .site,
body.gad-modulo-template .site-content {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.gad-interna-template .gad-interna-hero,
body.gad-modulo-template .gad-interna-hero {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.gad-modulo-page {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.elementor-button,
.elementor-button:hover,
.elementor-button:focus {
    --e-global-color-accent: var(--gad-primary, #0a4f9d);
}
