/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Tema hijo personalizado para World Gas Company
Author: World Gas Company
Template: astra
Version: 1.0.0
*/


/* =========================================================
   CONTENEDOR PRINCIPAL CIBRIX / ANTCODE (FULL ANCHO)
   ========================================================= */

.wgc-cibrix-copyright {
    position: relative;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
    background: transparent !important;
    color: #ffffff;
}

/* =========================================================
   FONDO COMPLETO EN TODO EL FOOTER (1920x120px)
   ========================================================= */

/* Asigna el fondo a la barra externa completa de Astra */
.site-below-footer-wrap[data-section="section-below-footer-builder"] {
    position: relative !important;
    background-image: url("https://worldgascompany.com/wp-content/uploads/2026/09/footergif.gif") !important;
    background-repeat: repeat-x !important;
    background-position: bottom center !important;
    background-size: auto 100% !important;
    overflow: hidden;
}

/* Capa oscura extendida a toda la franja del footer */
.site-below-footer-wrap[data-section="section-below-footer-builder"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.75);
    z-index: 1;
    pointer-events: none;
}

/* Asegurar que el contenido interno y la hormiga queden sobre la capa oscura */
.site-below-footer-wrap .ast-builder-grid-row-container-inner {
    position: relative;
    z-index: 2;
}

/* =========================================================
   ZONA DE ANIMACIÓN (TRANSPARENTE PARA MOSTRAR CONTENEDOR)
   ========================================================= */

.wgc-cibrix-animation {
    position: relative;
    width: 100%;
    height: 52px;
    margin: 0 auto;
    overflow: hidden;
    box-sizing: border-box;
    background: transparent !important; /* Mantiene la transparencia para ver el fondo del contenedor padre */
}

.wgc-cibrix-animation-bg {
    width: 100%;
    height: 100%;
}

/* =========================================================
   ESTILO PERSONALIZADO PARA ANTCODE
   ========================================================= */

/* Base para todas las letras */
.wgc-cibrix-brand .wgc-cibrix-letter {
    display: inline-block;
    font-weight: 700;
    transition: opacity 0.12s ease;
}

/* Primeras 3 letras: "ANT" (#00FF41) */
.wgc-cibrix-brand .wgc-cibrix-letter:nth-child(-n+3) {
    color: #00FF41 !important;
    text-shadow: 0 0 6px rgba(0, 255, 65, 0.4);
}

/* Siguientes 4 letras: "CODE" (#04D9F9 / #04D9FF) */
.wgc-cibrix-brand .wgc-cibrix-letter:nth-child(n+4) {
    color: #04D9F9 !important;
    text-shadow: 0 0 6px rgba(4, 217, 249, 0.4);
}

/* =========================================================
   HORMIGA CIBRIX (RECORRIDO COMPLETO DE BORDE A BORDE)
   ========================================================= */

.wgc-cibrix-ant {
    position: absolute;
    bottom: 0px !important;
    top: auto !important;
    left: calc(100% + 80px);
    width: 40px !important;
    height: 40px !important;
    max-width: none !important;
    object-fit: contain;
    transform: none !important;
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(0 0 2px rgba(0, 180, 255, 0.75)) drop-shadow(0 0 2px rgba(0, 180, 255, 0.25));
    opacity: 1;
}

/* =========================================================
   ANIMACIÓN DE LA HORMIGA
   ========================================================= */

.wgc-cibrix-ant.is-walking {
    animation: wgc-cibrix-walk 30s linear forwards !important;
}

@keyframes wgc-cibrix-walk {
    0% {
        left: calc(100% + 80px);
    }
    100% {
        left: -80px;
    }
}

/* =========================================================
   TEXTO DEL ÁREA CIBRIX
   ========================================================= */

.wgc-cibrix-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    box-sizing: border-box;
    z-index: 2;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

/* =========================================================
   LÍNEA DE TEXTO CONTROLADA POR JAVASCRIPT
   ========================================================= */

.wgc-text-line {
    display: inline-block;
    min-height: 20px;
    white-space: nowrap;
    color: #ffffff;
    font-size: inherit;
    font-weight: 400;
}

/* =========================================================
   MARCA CIBRIX / ANTCODE
   ========================================================= */

.wgc-cibrix-brand {
    display: inline-block;
    color: #FD5D24;
    font-weight: 700;
    white-space: nowrap;
}

/* =========================================================
   LETRAS INDIVIDUALES
   ========================================================= */

.wgc-cibrix-brand span {
    display: inline-block;
    color: #FD5D24;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.12s ease;
}

/* =========================================================
   VERSIÓN Y LEÓN CAMUFLADO (FIL 4:13)
   ========================================================= */

.wgc-version {
    display: inline-block !important;
    margin-left: 15px !important;
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.45) !important;
    letter-spacing: 0.5px !important;
    vertical-align: middle !important;
}

.wgc-faith {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    margin-left: 18px !important;
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.3) !important;
    vertical-align: middle !important;
}

.wgc-lion-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain !important;
    display: inline-block !important;
    opacity: 0.75 !important;
    filter: brightness(40%) !important;
}

/* =========================================================
   OCULTAR ÚNICAMENTE EL TEXTO ESTÁTICO ANTIGUO
   ========================================================= */

.wgc-cibrix-credit {
    display: none !important;
}

/* =========================================================
   FOOTER PERSONALIZADO
   ========================================================= */

.wgc-footer-columns {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 50px 40px;
    box-sizing: border-box;
    background: #111111;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;
}

/* =========================================================
   CADA COLUMNA
   ========================================================= */

.wgc-footer-column {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
}

/* =========================================================
   TÍTULOS
   ========================================================= */

.wgc-footer-column h3 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

/* =========================================================
   TEXTOS
   ========================================================= */

.wgc-footer-column p {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================================
   LISTAS
   ========================================================= */

.wgc-footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wgc-footer-column li {
    margin: 0 0 10px;
}

/* =========================================================
   ENLACES
   ========================================================= */

.wgc-footer-column a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    transition:
        color 0.25s ease,
        padding-left 0.25s ease;
}

.wgc-footer-column a:hover {
    color: #FD5D24;
    padding-left: 4px;
}

/* =========================================================
   COLUMNA EMPRESA
   ========================================================= */

.wgc-footer-company-inner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* =========================================================
   QR
   ========================================================= */

.wgc-footer-qr {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    overflow: hidden;
}

/* =========================================================
   INFORMACIÓN EMPRESA
   ========================================================= */

.wgc-footer-company-info {
    flex: 1;
}

.wgc-footer-company-info h3 {
    margin-bottom: 12px;
}

/* =========================================================
   SEPARADORES DE COLUMNAS
   ========================================================= */

.wgc-footer-column + .wgc-footer-column {
    border-left: 1px solid rgba(253, 93, 36, 0.46);
    padding-left: 35px;
}

/* =========================================================
   ASEGURAR BOX-SIZING
   ========================================================= */

.wgc-footer-columns,
.wgc-cibrix-copyright {
    box-sizing: border-box;
}

.wgc-footer-columns *,
.wgc-cibrix-copyright * {
    box-sizing: border-box;
}

/* =========================================================
   TABLET - FOOTER
   ========================================================= */

@media (max-width: 900px) {
    .wgc-footer-columns {
        gap: 30px;
        padding-left: 25px;
        padding-right: 25px;
    }

    .wgc-footer-column + .wgc-footer-column {
        padding-left: 25px;
    }

    .wgc-footer-company-inner {
        flex-direction: column;
    }

    .wgc-footer-qr {
        width: 70px;
        height: 70px;
    }
}

/* =========================================================
   TABLET - CIBRIX
   ========================================================= */

@media (max-width: 768px) {
    .wgc-cibrix-copyright {
        padding-left: 0;
        padding-right: 0;
    }

    .wgc-cibrix-animation {
        height: 52px;
    }

    .wgc-cibrix-text {
        font-size: 13px;
        padding: 0 8px;
    }

    .wgc-cibrix-ant {
        width: 36px !important;
        height: 36px !important;
    }

    .wgc-footer-columns {
        flex-direction: column;
        align-items: stretch;
        gap: 35px;
        padding: 35px 20px;
    }

    .wgc-footer-column {
        width: 100%;
    }

    .wgc-footer-column + .wgc-footer-column {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-left: 0;
        padding-top: 30px;
    }

    .wgc-footer-company-inner {
        flex-direction: row;
    }
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 480px) {
    .wgc-cibrix-copyright {
        padding: 0;
    }

    .wgc-cibrix-animation {
        height: 55px;
    }

    .wgc-cibrix-text {
        font-size: 12px;
        white-space: normal;
        padding: 0 4px;
    }

    .wgc-cibrix-ant {
        width: 32px !important;
        height: 32px !important;
    }

    .wgc-footer-columns {
        padding: 30px 18px;
        gap: 30px;
    }

    .wgc-footer-column + .wgc-footer-column {
        padding-top: 25px;
    }

    .wgc-footer-company-inner {
        gap: 15px;
    }

    .wgc-footer-qr {
        flex: 0 0 65px;
        width: 65px;
        height: 65px;
    }

    .wgc-footer-column h3 {
        font-size: 17px;
    }

    .wgc-footer-column p,
    .wgc-footer-column a {
        font-size: 13px;
    }
}

/* =========================================================
   WGC HEADER PEGAJOSO - VERSIÓN ULTRA COMPACTA
========================================================= */

/* Liberar el contenedor del Header para posición fija */
.site-header,
#masthead {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 999999 !important;
    background-color: #000000 !important;
    transition: background-color .35s ease, box-shadow .35s ease !important;
}

/* Anular alturas mínimas de Astra */
#masthead .site-primary-header-wrap,
#masthead .ast-primary-header-bar,
#masthead .site-header-primary-section-left,
#masthead .site-header-primary-section-right {
    min-height: 0 !important;
    transition: padding .35s ease, min-height .35s ease !important;
}

/* Tamaños en Estado Normal */
#masthead .site-primary-header-wrap {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

#masthead .site-logo-img .custom-logo {
    width: 170px !important;
    height: auto !important;
    display: block;
    transition: width .35s ease, transform .35s ease !important;
}

/* =========================================================
   CORRECCIÓN DE FRANJA BLANCA BAJO EL HEADER PEGAJOSO
========================================================= */

.site-header,
#ast-fixed-header,
.main-header-bar {
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

.ast-header-break-point .site-header,
.ast-sticky-header-active #page,
#content,
.site-content,
#primary {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* =========================================================
   ESTADO SCROLL (MENU REDUCIDO AL MÁXIMO)
========================================================= */

body.wgc-header-scrolled #masthead {
    background: rgba(0, 0, 0, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(8px);
}

/* Reducción del padding vertical de la barra */
body.wgc-header-scrolled #masthead .site-primary-header-wrap,
body.wgc-header-scrolled #masthead .ast-primary-header-bar {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

/* Reducción del logo */
body.wgc-header-scrolled #masthead .site-logo-img .custom-logo {
    width: 85px !important;
    transform: scale(1) !important;
}

/* Reducción del padding de los enlaces del menú */
body.wgc-header-scrolled #masthead .main-header-menu > .menu-item > .menu-link {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    line-height: 1.2 !important;
}

/* Borde inferior multicolor WGC */
body.wgc-header-scrolled #masthead::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #FD5D24, #00B4FF, transparent);
    pointer-events: none;
}

/* =========================================================
   RESPONSIVE HEADER (TABLET & MOBILE)
========================================================= */

@media (max-width: 921px) {
    #masthead .site-logo-img .custom-logo {
        width: 135px !important;
    }

    body.wgc-header-scrolled #masthead .site-logo-img .custom-logo {
        width: 75px !important;
    }
}

/* =========================================================
   WGC — RESPIRACIÓN ENTRE HEADER STICKY Y HERO
   Mantiene el fondo pegado al menú pero baja el contenido
========================================================= */

/* Heroes principales */
.wgc-hero,
.wgc-page-hero,
.wgc-contact-hero,
.wgc-projects-hero,
.wgc-gallery-hero,
.wgc-catalogos-seccion {

    padding-top: 32px !important;
}


/* Si el hero tiene un contenedor interno */
.wgc-hero > *,
.wgc-page-hero > *,
.wgc-contact-hero > *,
.wgc-projects-hero > *,
.wgc-gallery-hero > *,
.wgc-catalogos-seccion > .wgc-catalogos-container {

    position: relative;
    z-index: 2;
}


/* =========================================================
   CASO GENERAL:
   primera sección visual después del header
========================================================= */

#content.site-content > .ast-container > #primary > .entry-content > section:first-child {

    padding-top: 32px;
}


/* =========================================================
   HERO CON IMAGEN DE FONDO
   No queremos que la imagen se separe del header
========================================================= */

.wgc-hero,
.wgc-page-hero,
.wgc-contact-hero,
.wgc-projects-hero,
.wgc-gallery-hero {

    margin-top: 0 !important;

    background-position: center center;

}


/* =========================================================
   MÓVIL
========================================================= */

@media (max-width: 768px) {

    .wgc-hero,
    .wgc-page-hero,
    .wgc-contact-hero,
    .wgc-projects-hero,
    .wgc-gallery-hero,
    .wgc-catalogos-seccion {

        padding-top: 24px !important;

    }

}