/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Template: astra
Author: Brainstorm Force
Author URI: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
Description: The Astra WordPress theme is lightning-fast and highly customizable. It has over 1 million downloads and the only theme in the world with 5,700+ five-star reviews! It’s ideal for professional web designers, solopreneurs, small businesses, eCommerce, membership sites and any type of website. It offers special features and templates so it works perfectly with all page builders like Spectra, Elementor, Beaver Builder, etc. Fast performance, clean code, mobile-first design and schema markup are all built-in, making the theme exceptionally SEO-friendly. It’s fully compatible with WooCommerce, SureCart and other eCommerce plugins and comes with lots of store-friendly features and templates. Astra also provides expert support for free users. A dedicated team of fully trained WordPress experts are on hand to help with every aspect of the theme. Try the live demo of Astra: https://zipwp.org/themes/astra/
Tags: custom-menu,custom-logo,entertainment,one-column,two-columns,left-sidebar,e-commerce,right-sidebar,custom-colors,editor-style,featured-images,full-width-template,microformats,post-formats,rtl-language-support,theme-options,threaded-comments,translation-ready,blog
Version: 4.11.2.1749658770
Updated: 2025-06-11 16:19:30

*/

/* 1) Eliminar padding lateral que aplica .site-header-section > * */
.site-header-section > * {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* 2) Forzar estructura de 3 columnas y dar prioridad al centro.
   Ajusta los valores 120px / 1fr / 160px según necesidad */
.ast-builder-grid-row {
  display: grid !important;
  grid-template-columns: minmax(80px, auto) 1fr minmax(120px, auto) !important;
  align-items: center;
  column-gap: 0 !important;
  row-gap: 0 !important;
}

/* 3) Asegurar que la sección central pueda crecer y tomar ancho */
.site-header-primary-section-center.site-header-section,
.ast-grid-left-center-section,
.site-header-primary-section-center {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
}

/* 4) Reducir al mínimo las secciones izquierda y derecha (si son muy grandes) */
.site-header-primary-section-left-center.site-header-section,
.site-header-primary-section-right-center.site-header-section {
  flex: 0 0 auto !important;
  max-width: 220px !important; /* ajuste: pon 140/180/220 según prefieras */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 5) Forzar que el wrapper del buscador use el 100% del espacio disponible */
.dgwt-wcas-search-wrapp,
.dgwt-wcas-sf-wrapp {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
}

/* 6) Input ocupa todo el espacio disponible */
.dgwt-wcas-sf-wrapp .dgwt-wcas-search-input {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* 7) Si quieres limitar el centro a un max (ej. 800px) y centrarlo */
.site-header-primary-section-center.site-header-section .dgwt-wcas-search-wrapp {
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 8) Quitar cualquier altura mínima forzada por Astra */
.site-header-primary,
.site-header-section,
.ast-builder-grid-row,
.ast-builder-grid-row > * {
  min-height: 0 !important;
  height: auto !important;
}

/* 9) Responsive: en pantallas pequeñas el buscador ocupa 100% */
@media (max-width: 991px) {
  .ast-builder-grid-row {
    display: block !important;
  }

  .site-header-primary-section-left-center.site-header-section,
  .site-header-primary-section-right-center.site-header-section,
  .site-header-primary-section-center.site-header-section {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    display: block !important;
  }

  .dgwt-wcas-search-wrapp,
  .dgwt-wcas-sf-wrapp {
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
