/*
Theme Name: Firefront Child
Description: Child Theme for firefront Theme
Author: zozothemes
Version: 1.0
Template: firefront
Tags: one-column, two-columns, right-sidebar, flexible-header, custom-colors, custom-header, custom-menu, custom-logo, editor-style, featured-images, footer-widgets, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
Text Domain: zozothemes
*/

/*Custom Style Code Right Here */
/* =========================================================
   GOLSATEL - FOOTER LAYOUT FIX v2
   Child theme CSS - no modifica el core de Firefront
   ========================================================= */

/* Ancho completo del contenedor */
.footer-widgets-wrap .container {
  max-width: 1300px;
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}

/* Fila horizontal: no colapsar en desktop */
.footer-widgets-wrap .row {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -ms-flex-align: start;
  align-items: flex-start;
}

/* Columna izquierda brand (col-md-4) */
.footer-widgets-wrap .footer-widget-2.col-md-4 {
  -ms-flex: 0 0 33.3333%;
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  padding-right: 40px;
  box-sizing: border-box;
}

/* Columna derecha links (col-md-8) */
.footer-widgets-wrap .footer-widget-2.col-md-8 {
  -ms-flex: 0 0 66.6667%;
  flex: 0 0 66.6667%;
  max-width: 66.6667%;
  box-sizing: border-box;
}

/* Sub-columnas de links dentro col-md-8 */
.footer-right-columns .wp-block-columns {
  display: -ms-flexbox !important;
  display: flex !important;
  -ms-flex-wrap: nowrap !important;
  flex-wrap: nowrap !important;
  gap: 32px !important;
  width: 100%;
  margin: 0 !important;
}

.footer-right-columns .wp-block-column {
  -ms-flex: 1 1 0px !important;
  flex: 1 1 0 !important;
  min-width: 0;
  padding: 0 !important;
}

/* Titulos de columnas de links */
.footer-right-columns .widgettitle {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Links */
.footer-right-columns .menu-item a,
.footer-right-columns .menu-item span {
  font-size: 14px;
  line-height: 2.1;
  color: #bababa;
  display: block;
}

.footer-right-columns .menu-item a:hover {
  color: #d44f0e;
  text-decoration: none;
}

.footer-right-columns ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Logo del footer */
.footer-brand-column .footer-logo img {
  max-width: 200px;
  height: auto;
  display: block;
}

/* Redes sociales */
.footer-brand-column .footer-social {
  display: -ms-flexbox !important;
  display: flex !important;
  gap: 12px;
  -ms-flex-align: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Suscripcion form */
.footer-brand-column .footer-subscribe > div {
  display: -ms-flexbox !important;
  display: flex !important;
  -ms-flex-align: stretch;
  align-items: stretch;
}

.footer-brand-column .footer-subscribe input[type="email"] {
  -ms-flex: 1 !important;
  flex: 1 !important;
  min-width: 0;
}

/* RESPONSIVE tablet <= 1024px */
@media (max-width: 1024px) {
  .footer-widgets-wrap .row {
    -ms-flex-wrap: wrap !important;
    flex-wrap: wrap !important;
  }
  .footer-widgets-wrap .footer-widget-2.col-md-4,
  .footer-widgets-wrap .footer-widget-2.col-md-8 {
    -ms-flex: 0 0 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
  }
  .footer-right-columns .wp-block-columns {
    -ms-flex-wrap: wrap !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
  }
  .footer-right-columns .wp-block-column {
    -ms-flex: 0 0 calc(50% - 12px) !important;
    flex: 0 0 calc(50% - 12px) !important;
    max-width: calc(50% - 12px) !important;
  }
  .footer-brand-column {
    padding-bottom: 32px !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 24px;
  }
}

/* RESPONSIVE movil <= 600px */
@media (max-width: 600px) {
  .footer-widgets-wrap .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .footer-right-columns .wp-block-columns {
    -ms-flex-direction: column !important;
    flex-direction: column !important;
    gap: 24px !important;
  }
  .footer-right-columns .wp-block-column {
    -ms-flex: 0 0 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
  .footer-brand-column .footer-subscribe > div {
    -ms-flex-direction: column !important;
    flex-direction: column !important;
  }
  .footer-brand-column .footer-subscribe input[type="email"] {
    border-right: 1px solid rgba(255,255,255,0.15) !important;
    border-bottom: none !important;
    border-radius: 4px 4px 0 0 !important;
  }
  .footer-brand-column .footer-subscribe button {
    border-radius: 0 0 4px 4px !important;
  }
  .footer-bottom-wrap .copyright-bar-ul {
    -ms-flex-pack: center !important;
    justify-content: center !important;
    text-align: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  .footer-bottom-wrap p {
    text-align: center;
    font-size: 13px;
  }
}

/* === GOLSATEL NAV DROPDOWN & BREADCRUMB CRITICAL FIX === */
.elementor-nav-menu--dropdown a, .sub-menu a, .sub-menu li a, .elementor-sub-menu a {
    color: #111111 !important;
}
.breadcrumb, .breadcrumb a, .breadcrumb span, .gls-bombas-wrapper .hero .breadcrumb, .gls-bombas-wrapper .hero .breadcrumb a, .gls-bombas-wrapper .hero .breadcrumb span {
    color: #FFFFFF !important;
    opacity: 1 !important;
}
/* === FIN GOLSATEL CRITICAL FIX === */

/* === GOLSATEL ABSOLUTE OVERRIDE === */
.elementor-nav-menu--dropdown a,
.sub-menu a,
.sub-menu li a,
.elementor-sub-menu a,
.primary-menu .sub-menu li a {
    color: #111111 !important;
}

.gls-bombas-wrapper .hero .breadcrumb,
.gls-bombas-wrapper .hero .breadcrumb a,
.gls-bombas-wrapper .hero .breadcrumb span,
.gls-bombas-wrapper .breadcrumb,
.gls-bombas-wrapper .breadcrumb a,
.gls-bombas-wrapper .breadcrumb span,
.breadcrumb,
.breadcrumb a,
.breadcrumb span {
    color: #FFFFFF !important;
    opacity: 1 !important;
}

.gls-bombas-wrapper .hero .stat .num,
.gls-bombas-wrapper .hero .stat .lbl,
.gls-bombas-wrapper .stat .num,
.gls-bombas-wrapper .stat .lbl {
    color: #111111 !important;
    opacity: 1 !important;
}
/* === END GOLSATEL ABSOLUTE OVERRIDE === */

/* === NEBULIZADA 97708 HEADER TRANSPARENT FIX === */
.page-id-97708 .site-header, .page-id-97708 header, .page-id-97708 #masthead, .page-id-97708 .header-wrap, .page-id-97708 .header-navbar, .page-id-97708 .header-logobar {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
}
.page-id-97708 header a, .page-id-97708 #masthead a, .page-id-97708 .site-header a, .page-id-97708 .header-navbar a {
  color: #ffffff !important;
}
/* === END NEBULIZADA 97708 HEADER TRANSPARENT FIX === */

/* === SUPERVISION REMOTA 97664 HEADER FIX === */
.page-id-97664 .site-header, .page-id-97664 header, .page-id-97664 #masthead {
  background: transparent !important; background-color: transparent !important; border: none !important;
}
.page-id-97664 header a, .page-id-97664 #masthead a, .page-id-97664 .site-header a {
  color: #ffffff !important;
}
/* === END SUPERVISION REMOTA 97664 HEADER FIX === */



/* ===========================================================
   CSS GLOBAL DE ENTRADAS DE BLOG & MAQUETACIÓN
   =========================================================== */

/* Forzar contenedor centrado y legibilidad en las entradas del blog */
body.single-post .entry-content, 
body.single-post article, 
.post-content,
.gs-blog-overhaul .wrap,
.gs-blog-overhaul {
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    float: none !important;
}

/* Corregir solapamiento del Header / Logo */
header, .site-header, #masthead {
    position: relative !important;
    z-index: 999 !important;
    margin-bottom: 30px !important;
}

/* Tipografía y texto del post */
body.single-post p, 
body.single-post li,
.gs-blog-overhaul p,
.gs-blog-overhaul li {
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: #333333 !important;
    margin-bottom: 18px !important;
}

body.single-post h1, 
body.single-post h2, 
body.single-post h3,
.gs-blog-overhaul h1,
.gs-blog-overhaul h2,
.gs-blog-overhaul h3 {
    color: #111111 !important;
    font-weight: 700 !important;
    margin-top: 28px !important;
    margin-bottom: 14px !important;
}

/* Ocultar cualquier resto del sidebar o widget roto */
.sidebar, #secondary, .widget-area, .content-widgets-outer-wrapper, .widget_block {
    display: none !important;
}



/* ============================================================
   HEADER MENU CONTRAST & SUBMENU DROPDOWN FIX
   ============================================================ */

/* Header background & z-index */
#site-header,
.site-header,
.site-header.header-absolute,
.sticky-head,
.header-navbar {
    background-color: #ffffff !important;
    position: relative !important;
    z-index: 99999 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06) !important;
}

/* Primary Top-Level Menu Links (Visible Dark Text on White Header) */
.primary-menu > li > a,
.primary-menu-wrapper > ul > li > a,
.header-navigation-wrapper .primary-menu > li > a,
.nav.navbar-ul .primary-menu > li > a,
.nav.wp-menu > li > a {
    color: #111111 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    padding: 18px 16px !important;
    display: inline-block !important;
    transition: color 0.2s ease !important;
}

/* Primary Top-Level Menu Hover & Active state */
.primary-menu > li > a:hover,
.primary-menu > li:hover > a,
.primary-menu-wrapper > ul > li > a:hover,
.primary-menu > li.current-menu-item > a,
.primary-menu > li.current-menu-ancestor > a {
    color: #C0272D !important;
}

/* Submenu Dropdown Container (White Card with Shadow) */
.primary-menu .sub-menu,
.nav-menu .sub-menu,
.primary-menu-wrapper .sub-menu,
ul.primary-menu ul.sub-menu {
    background: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    border: 1px solid #e8e6e1 !important;
    padding: 10px 0 !important;
    min-width: 250px !important;
    z-index: 999999 !important;
    margin-top: 0 !important;
}

/* Submenu Dropdown Links */
.primary-menu .sub-menu li a,
.primary-menu-wrapper .sub-menu li a,
.nav-menu .sub-menu li a,
ul.primary-menu ul.sub-menu li a {
    color: #222222 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    padding: 10px 20px !important;
    display: block !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    background: transparent !important;
    transition: all 0.15s ease !important;
}

/* Submenu Dropdown Hover state */
.primary-menu .sub-menu li a:hover,
.primary-menu-wrapper .sub-menu li a:hover,
.nav-menu .sub-menu li a:hover,
ul.primary-menu ul.sub-menu li a:hover {
    color: #C0272D !important;
    background: #F8F9FA !important;
    padding-left: 24px !important;
}
