/* PROECO - Familias de productos. Revision 20261103-1.
   Requires the family markers/palette from ProecoSectorOutput.php.
   No category-ID colour table and no changes to the sector stylesheet.
   Keeps original banners, SEO text, product cards, grids and carousel options.
   Palette comes from the existing family heading, without changing its colour.
*/

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha {
    margin-top: 30px !important;
    margin-bottom: 30px !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container {
    display: flex !important;
    width: 100% !important;
    max-width: 1200px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-productos {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-productos > .elementor-column-wrap {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap {
    background-image: none !important;
    background-color: transparent !important;
    align-content: flex-start !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-background-overlay,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-spacer,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-productos > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-spacer:first-child {
    display: none !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-productos > .elementor-column-wrap > .elementor-widget-wrap,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-productos > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-productos .elementor-products,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-productos .swiper-container-wrapper,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-productos .swiper-products-carousel {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-productos .elementor-products > .products.row {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-heading > .elementor-widget-container,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-productos > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-heading > .elementor-widget-container {
    background: var(--pq-familia-color) !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 10px 16px !important;
    margin: 0 0 24px !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-heading > .elementor-widget-container {
    margin: 0 !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-heading .elementor-heading-title,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-heading .elementor-heading-title span,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-heading .elementor-heading-title a,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-productos > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-heading .elementor-heading-title,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-productos > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-heading .elementor-heading-title span,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-productos > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-heading .elementor-heading-title a {
    color: var(--pq-familia-title-ink) !important;
    font-family: Montserrat, Arial, sans-serif !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-heading .elementor-heading-title {
    text-align: left !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-productos > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-heading .elementor-heading-title {
    text-align: center !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-button > .elementor-widget-container {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-button .elementor-button {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 70px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 8px 20px !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--pq-familia-soft) !important;
    color: #3f4c5a !important;
    font-family: Montserrat, Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 3 !important;
    text-align: left !important;
    white-space: normal !important;
    transition: background-color .15s ease, color .15s ease !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-button .elementor-button .elementor-button-content-wrapper,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-button .elementor-button .elementor-button-text {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    white-space: normal !important;
    min-width: 0 !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-button .elementor-button:hover,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-button .elementor-button:focus {
    background: var(--pq-familia-hover) !important;
    color: var(--pq-familia-ink) !important;
    opacity: 1 !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-button .elementor-button:focus-visible {
    outline: 2px solid var(--pq-familia-ink) !important;
    outline-offset: -3px !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-button .elementor-button[aria-current="page"],
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-button .elementor-button[aria-current="page"]:hover,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-button .elementor-button[aria-current="page"]:focus {
    background: #ffffff !important;
    color: var(--pq-familia-ink) !important;
    line-height: 4 !important;
    min-height: 88px !important;
    padding: 8px 20px !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-productos .elementor-inner-section .elementor-widget-heading > .elementor-widget-container {
    background: var(--pq-familia-soft) !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-productos .elementor-inner-section .elementor-widget-heading .elementor-heading-title,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-productos .elementor-inner-section .elementor-widget-heading .elementor-heading-title span,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-productos .elementor-inner-section .elementor-widget-heading .elementor-heading-title a {
    color: #3f4c5a !important;
}

@media (min-width: 768px) {

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu {
    flex: 0 0 33.333333% !important;
    width: 33.333333% !important;
    max-width: 33.333333% !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-productos {
    flex: 0 0 66.666667% !important;
    width: 66.666667% !important;
    max-width: 66.666667% !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-productos > .elementor-column-wrap {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

}

/* Match the compact mobile sector layout, without changing product count. */
@media (max-width: 767px) {

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha {
    padding-left: 30px !important;
    padding-right: 30px !important;
    box-sizing: border-box !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-productos > .elementor-column-wrap {
    padding: 20px !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-button .elementor-button,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-button .elementor-button:hover,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-button .elementor-button:focus,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-button .elementor-button[aria-current="page"],
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-button .elementor-button[aria-current="page"]:hover,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-button .elementor-button[aria-current="page"]:focus {
    font-size: 18px !important;
    line-height: 1.5 !important;
    min-height: 54px !important;
    height: auto !important;
    padding: 8px 24px !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-button .elementor-button .elementor-button-content-wrapper,
body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-button .elementor-button .elementor-button-text {
    font-size: 18px !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    min-width: 0 !important;
}

body#category #content-wrapper .elementor-top-section.pq-familia-sin-derecha > .elementor-container > .elementor-row > .pq-familia-menu > .elementor-column-wrap > .elementor-widget-wrap > .elementor-widget-heading > .elementor-widget-container {
    padding: 10px 20px !important;
}

}
