/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/
.site-header {
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.07) !important;
}
.white{color: #ffffff !important;}
/* color general */
.orange{color: #c5442e !important;}
.orange-fondo{background: #c5442e !important;}
/* Productos de limpieza */
.blue{color: #036072 !important;}
.blue-fondo{background: #036072 !important;}
/* productos Absorbentes */
.purple{color: #6a3c6e !important;}
.purple-fondo{background: #6a3c6e !important;}
/* productos Medioambiente */
.green{color: #6b6d20 !important;}
.green-fondo{background: #6b6d20 !important;}
.titulo-bold{
    font-weight: 800 !important;
}
.titulo-light{
    font-weight: 400 !important;
    text-transform: lowercase !important;
}
.titulos-second {margin-bottom: 30px !important;}
.titulos-second .sow-headline{
    font-size: 40px !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    margin-bottom: 10px !important;
}
.titulos-second .sow-sub-headline{
    font-size: 22px !important;
}
.titulos-second .decoration, .small-titles .decoration{
    margin-top: 5px !important;
}
.titulos-second .decoration .decoration-inside, .small-titles .decoration .decoration-inside{
    border-top-width: 3px !important;
}
.small-titles{
    margin: 0px !important;
    padding: 0px 30px 30px !important;
}
.small-titles .sow-headline{
    font-size: 24px !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    margin-bottom: 10px !important;
}
.small-titles .sow-sub-headline{
    font-size: 18px !important;
}

/*** megamenu generatepress ***/



/* botones */
.so-widget-sow-button .ow-button-base .sowb-button {
  border: none !important;
    line-height: 1em !important;
    background: #c5442e !important;
}
.prod-button-base{
    margin: 15px auto !important;
}
.prod-button-base .button-base a{
    border-radius: 0.25em 0.25em 0.25em 0.25em !important;
    color: #fff !important;
    background: #c5442e  !important;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.05) !important;
    font-size: 1.2em !important;
    padding: 1em !important;
    padding-inline: 2em !important;
}
.prod-button-base .button-base a:hover,
.ow-button-base .sowb-button:hover{
    background: #ad4733 !important;
}
.sow-slider-base ul.sow-slider-images .sow-slider-image-wrapper .sow-hero-buttons {
    margin-top: 1em !important;
}
.so-widget-sow-button .ow-button-base .btn-wire.sowb-button{
    background: transparent !important;
    border: 1px solid #ffffff !important;
    color: #ffffff !important;
}
.so-widget-sow-button .ow-button-base .btn-wire.sowb-button:hover{
    background: #ad4733 !important;
    border: 1px solid #ad4733 !important;
}

/* home */
.home h2{
    font-weight: 600 !important;
}
.home-intro{
    text-align: center !important;
}
.home-intro h1{
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0px !important;
}
.home-intro p{
    font-size: 35px !important;
  line-height: 1.2 !important;
  letter-spacing: 0px !important;
}
.home-productos .home-productos-box{
 padding: 0px 30px 30px!important;
}
.home-productos .home-productos-box .sow-headline{
    font-size: 24px !important;
    letter-spacing: 0 !important;
}
.home-services{
    padding: 80px 15px !important;
}
.home-empresa-box{
    max-width: 900px !important;
    padding: 80px 15px !important;
}
.iconos-home .sow-features-feature-title{
    margin: 5px 0 !important;
    font-size: 22px !important;
    font-weight: 600 !important;
}
.iconos-home .sow-features-feature-text p{
    font-size: 16px !important;
}


/* woo */
.product_meta{
    border-top: none !important;
}
.product_meta .sku_wrapper,
.product_meta .posted_in{
    display:none !important;
}
.product_meta > span{
	margin-bottom: 30px !important;
}
.woocommerce .woocommerce-ordering {
  display: none !important;
}
.woocommerce-product-details__short-description blockquote{
    border-left: none !important;
    border-bottom: 4px solid rgba(0,0,0,.05) !important;
    padding: 5px 0px !important;
    font-size: 1.2em !important;
    font-style: italic !important;
    margin: 0 0 1.3em !important;
    font-weight: 600 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
    padding: 0 !important;
    margin: 0 auto !important;
}
.woocommerce div.product .woocommerce-tabs .panel {
    margin: 0 0 2em !important;
    padding: 30px 20px 40px !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a{
    padding: 15px 10px !important;
    font-size: 18px !important;
}
.woocommerce div.product div.summary {
  margin-bottom: 3em !important;
}
.product  h3{
    font-size: 20px !important;
    font-weight:600 !important;
}
.woocommerce-breadcrumb {
  font-size: .92em !important;
  color: #767676 !important;
  margin-bottom: 30px !important;
}
 .woocommerce ul.products li.product {
  margin-right: 2% !important;
  border: 1px solid #eee !important;
}
.woocommerce ul.products li.product .woocommerce-loop-category__title, .woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product h3{
padding: 5px 5px !important;
  line-height: 1.5 !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

/* ── Fila título + botón ─────────────────────────────────── */
.product-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.4rem;
}
.product-title-row .product_title.entry-title {
    margin: 0;
    flex: 1;
}

/* ── Botón "Solicita presupuesto" ────────────────────────── */
.product-title-row .prod-button-base a.open-modal-presupuesto {
    display: inline-block;
    white-space: nowrap;
    padding: 0.7rem 1.6rem;
    background-color: #c5442e;
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}
.product-title-row .prod-button-base a.open-modal-presupuesto:hover {
    opacity: 0.85;
}

/* ── Responsive: en móvil, columna y botón a ancho completo ── */
@media (max-width: 600px) {
    .product-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .product-title-row .prod-button-base {
        width: 100%;
    }
    .product-title-row .prod-button-base a.open-modal-presupuesto {
        display: block;
        text-align: center;
        white-space: normal;
    }
}

/* ── Línea de color bajo el título ───────────────────────── */
.product-title-line {
    display: block;      /* imprescindible en <span> para que width funcione */
    width: 100%;
    height: 3px;
    margin-bottom: 2rem;
    border-radius: 2px;
}

/* ── Sidebar: colores por slug en el href ────────────────── */
.sidebar .inside-right-sidebar {
    margin-top: 45px !important;
  margin-bottom: 45px !important;
}
.sidebar .inside-right-sidebar .widget {
  padding: 0px 30px !important;
}
.inside-right-sidebar{
    box-shadow: -4px 0 6px -4px  rgba(0,0,0,0.10) !important;
}
/* Categoría padre: Productos de Limpieza Industrial */
#woocommerce_product_categories-3 a[href*="/productos-de-limpieza-industrial/"] {
    color: #036072 !important;
}
/* Subcategorías (hijas y nietas) — mismo color, algo más suave */
#woocommerce_product_categories-3 a[href*="/productos-de-limpieza-industrial/"]:not([href$="/productos-de-limpieza-industrial/"]) {
    color: #036072 !important;
    opacity: 0.75 !important;
}
/* Categoría padre: Productos Absorbentes Industriales */
#woocommerce_product_categories-3 a[href*="/productos-absorbentes-industriales/"] {
    color: #6A3C6E !important;
}
#woocommerce_product_categories-3 a[href*="/productos-absorbentes-industriales/"]:not([href$="/productos-absorbentes-industriales/"]) {
    color: #6A3C6E !important;
    opacity: 0.75 !important;
}
/* Categoría padre: Productos de Prevención de Derrames */
#woocommerce_product_categories-3 a[href*="/productos-de-prevencion-de-derrames/"] {
    color: #6B6D20 !important;
}
#woocommerce_product_categories-3 a[href*="/productos-de-prevencion-de-derrames/"]:not([href$="/productos-de-prevencion-de-derrames/"]) {
    color: #6B6D20 !important;
    opacity: 0.75 !important;
}
/* Todas las categorías: peso normal por defecto */
#woocommerce_product_categories-3 a {
    font-weight: 400 !important;
}
/* Categorías padre: bold */
#woocommerce_product_categories-3 a[href$="/productos-de-limpieza-industrial/"],
#woocommerce_product_categories-3 a[href$="/productos-absorbentes-industriales/"],
#woocommerce_product_categories-3 a[href$="/productos-de-prevencion-de-derrames/"] {
    font-weight: 600 !important;
    
}
/* Categoría activa (la que está navegando): bold */
#woocommerce_product_categories-3 li.current-cat > a,
#woocommerce_product_categories-3 li.current-cat-parent > a,
#woocommerce_product_categories-3 li.current-cat-ancestor > a {
    font-weight: 600 !important;
}
/* ── Línea debajo de cada categoría padre ─────────────────── */
#woocommerce_product_categories-3 a[href$="/productos-de-limpieza-industrial/"],
#woocommerce_product_categories-3 a[href$="/productos-absorbentes-industriales/"],
#woocommerce_product_categories-3 a[href$="/productos-de-prevencion-de-derrames/"] {
    display: block;
    padding-bottom: 0.2rem;
    margin-bottom: 0.2rem;
    border-bottom: 2px solid currentColor;
}
/* ── Punto de lista en las subcategorías ─────────────────── */
#woocommerce_product_categories-3 li {
    list-style: none; /* aseguramos que no haya punto por defecto */
}
/* Subcategorías: todas las que NO son padre */
#woocommerce_product_categories-3 a[href*="/productos-de-limpieza-industrial/"]:not([href$="/productos-de-limpieza-industrial/"]),
#woocommerce_product_categories-3 a[href*="/productos-absorbentes-industriales/"]:not([href$="/productos-absorbentes-industriales/"]),
#woocommerce_product_categories-3 a[href*="/productos-de-prevencion-de-derrames/"]:not([href$="/productos-de-prevencion-de-derrames/"]) {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
#woocommerce_product_categories-3 a[href*="/productos-de-limpieza-industrial/"]:not([href$="/productos-de-limpieza-industrial/"])::before,
#woocommerce_product_categories-3 a[href*="/productos-absorbentes-industriales/"]:not([href$="/productos-absorbentes-industriales/"])::before,
#woocommerce_product_categories-3 a[href*="/productos-de-prevencion-de-derrames/"]:not([href$="/productos-de-prevencion-de-derrames/"])::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    flex-shrink: 0;
}
#woocommerce_product_categories-3 a[href$="/productos-absorbentes-industriales/"],
#woocommerce_product_categories-3 a[href$="/productos-de-prevencion-de-derrames/"] {
    margin-top: 30px !important;
}

/* cabeceras */
.cabecera-productos h1{
  font-weight: 600 !important;
  font-size: 3.2em !important;
}
.cabecera-productos h2{
    font-size: 28px !important;
  line-height: 1.3 !important;
}

/*CSS para el botón Modal*/
.presupuesto-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99998;
    display: none; /* JS controlará si se muestra o no */
    align-items: center;
    justify-content: center;
}
/* Fondo oscuro translúcido */
.presupuesto-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 99999;
}
/* Contenido del modal (la ventana blanca) */
.presupuesto-modal-content {
    position: relative;
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    z-index: 100000;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
/* Botón de cerrar (X) */
.presupuesto-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    color: #555;
    line-height: 1;
}
.presupuesto-modal-close:hover {
    color: #000;
}

/* contacto */
.formulario-contacto{
    background: #efefef !important;
    padding: 30px !important;
}
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="tel"], input[type="number"], textarea, select {
  color: var(--contrast);
  background-color: var(--base-3);
  border-color: var(--base);
  width: 100% !important;
}

/* footer  */
.site-info{
    display: none !important;
}
.footer-widgets .widget_media_image {
  margin-bottom: 5px !important;
    filter: brightness(0) invert(1) !important;
    max-width:220px !important;
    width: 100% !important;
}
.footer-contact{
    margin-bottom: 10px !important;
}
.footer-widgets .widget {
  margin-bottom: 20px !important;
}
.copyright{
    color: #aaaaaa !important;
}
.copyright hr {
  background-color: #aaaaaa !important;
  border: 0;
  height: 1px;
  margin-bottom: 15px !important;
  margin-top: 30px !important;
}

/* tablas responsive de los productos */
.tabla-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Botón "Ver producto" ─────────────────────────────── */
.tabla-responsive td[data-label="Ver producto"] a,
.tabla-responsive td[data-label="Ficha Seguridad"] a {
    display: inline-block;
    padding: 0.45rem 1rem;
    font-size: 0;              /* oculta texto original */
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 4px;
    border: 2px solid;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.tabla-responsive td[data-label="Ver producto"] a::before {
    content: "Ver producto";
    font-size: 0.8rem;
}
.tabla-responsive td[data-label="Ficha Seguridad"] a::before {
    content: "Ver ficha";
    font-size: 0.8rem;
}

/* ── Botón "Descargar ficha" ──────────────────────────── */
.tabla-responsive td[data-label="Ficha Técnica"] a {
    display: inline-block;
    padding: 0.45rem 1rem;
    font-size: 0;              /* oculta texto original */
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 4px;
    color: #fff !important;
    transition: opacity 0.2s ease;
}
.tabla-responsive td[data-label="Ficha Técnica"] a::before {
    content: "Descargar ficha";
    font-size: 0.8rem;
}
.tabla-responsive td[data-label="Ficha Técnica"] a:hover {
    opacity: 0.85;
}

/* ── Columnas centradas ───────────────────────────────── */
.tabla-responsive td[data-label="Ver producto"],
.tabla-responsive td[data-label="Ficha Técnica"],
.tabla-responsive td[data-label="Ficha Seguridad"] {
    text-align: center !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    padding-left: 15px !important;
}

/* ── Colores por clase del div contenedor ────────────── */

/* Limpieza Industrial */
.tabla-responsive.cat-limpieza td[data-label="Ver producto"] a,
.tabla-responsive.cat-limpieza td[data-label="Ficha Seguridad"] a {
    border-color: #036072;
    color: #036072 !important;
}
.tabla-responsive.cat-limpieza td[data-label="Ver producto"] a:hover,
.tabla-responsive.cat-limpieza td[data-label="Ficha Seguridad"] a:hover {
    background-color: #036072;
    color: #fff !important;
}
.tabla-responsive.cat-limpieza td[data-label="Ficha Técnica"] a {
    background-color: #036072;
}

/* Absorbentes Industriales */
.tabla-responsive.cat-absorbentes td[data-label="Ver producto"] a,
.tabla-responsive.cat-absorbentes td[data-label="Ficha Seguridad"] a {
    border-color: #6A3C6E;
    color: #6A3C6E !important;
}
.tabla-responsive.cat-absorbentes td[data-label="Ver producto"] a:hover,
.tabla-responsive.cat-absorbentes td[data-label="Ficha Seguridad"] a:hover {
    background-color: #6A3C6E;
    color: #fff !important;
}
.tabla-responsive.cat-absorbentes td[data-label="Ficha Técnica"] a {
    background-color: #6A3C6E;
}

/* Prevención de Derrames */
.tabla-responsive.cat-derrames td[data-label="Ver producto"] a,
.tabla-responsive.cat-derrames td[data-label="Ficha Seguridad"] a {
    border-color: #6B6D20;
    color: #6B6D20 !important;
}
.tabla-responsive.cat-derrames td[data-label="Ver producto"] a:hover,
.tabla-responsive.cat-derrames td[data-label="Ficha Seguridad"] a:hover {
    background-color: #6B6D20;
    color: #fff !important;
}
.tabla-responsive.cat-derrames td[data-label="Ficha Técnica"] a {
    background-color: #6B6D20;
}

/* ══════════════════════════════════════════════════════════
   TABLAS — bordes horizontales y colores por categoría
   ══════════════════════════════════════════════════════════ */

.tabla-responsive table {
    border-collapse: collapse !important;
    border: none !important;
    width: 100% !important;
}

.tabla-responsive th,
.tabla-responsive td {
    border: none !important;
}

/* ── Limpieza Industrial — #036072 ────────────────────── */
.tabla-responsive.cat-limpieza thead th,
.tabla-responsive.cat-limpieza tbody tr:first-child th {
    border-bottom: 2px solid #036072 !important;
    color: #036072 !important;
}
.tabla-responsive.cat-limpieza tbody td {
    border-bottom: 1px solid rgba(3, 96, 114, 0.25) !important;
}
.tabla-responsive.cat-limpieza tbody tr:last-child td {
    border-bottom: none !important;
}

/* ── Absorbentes Industriales — #6A3C6E ───────────────── */
.tabla-responsive.cat-absorbentes thead th,
.tabla-responsive.cat-absorbentes tbody tr:first-child th {
    border-bottom: 2px solid #6A3C6E !important;
    color: #6A3C6E !important;
}
.tabla-responsive.cat-absorbentes tbody td {
    border-bottom: 1px solid rgba(106, 60, 110, 0.25) !important;
}
.tabla-responsive.cat-absorbentes tbody tr:last-child td {
    border-bottom: none !important;
}

/* ── Prevención de Derrames — #6B6D20 ─────────────────── */
.tabla-responsive.cat-derrames thead th,
.tabla-responsive.cat-derrames tbody tr:first-child th {
    border-bottom: 2px solid #6B6D20 !important;
    color: #6B6D20 !important;
}
.tabla-responsive.cat-derrames tbody td {
    border-bottom: 1px solid rgba(107, 109, 32, 0.25) !important;
}
.tabla-responsive.cat-derrames tbody tr:last-child td {
    border-bottom: none !important;
}

/* ── Referencia en negrita ─────────────────────────────── */
.tabla-responsive td[data-label="Referencia"] {
    font-weight: 600 !important;
    vertical-align: middle !important;
}

/* Ocultar botón si la celda está vacía o sin enlace */
.tabla-responsive td[data-label="Ver producto"]:empty,
.tabla-responsive td[data-label="Ficha Técnica"]:empty {
    border: none !important;
}

/* Ocultar el borde del botón outline si no hay <a> dentro */
.tabla-responsive td[data-label="Ver producto"] a:not([href]),
.tabla-responsive td[data-label="Ficha Técnica"] a:not([href]) {
    display: none !important;
}

/* ── Bordes en el TR (funciona con rowspan y sin él) ─────── */

.tabla-responsive.cat-limpieza tbody tr {
    border-bottom: 1px solid rgba(3, 96, 114, 0.25);
}
.tabla-responsive.cat-absorbentes tbody tr {
    border-bottom: 1px solid rgba(106, 60, 110, 0.25);
}
.tabla-responsive.cat-derrames tbody tr {
    border-bottom: 1px solid rgba(107, 109, 32, 0.25);
}

/* Quitar borde última fila */
.tabla-responsive.cat-limpieza tbody tr:last-child,
.tabla-responsive.cat-absorbentes tbody tr:last-child,
.tabla-responsive.cat-derrames tbody tr:last-child {
    border-bottom: none !important;
}

/* Quitar border-bottom de los TD para evitar duplicados */
.tabla-responsive.cat-limpieza tbody td,
.tabla-responsive.cat-absorbentes tbody td,
.tabla-responsive.cat-derrames tbody td {
    border-bottom: none !important;
}
/* ── Ficha Técnica: solo esa columna centrada ─────────── */
.tabla-responsive thead th:nth-last-child(1),
.tabla-responsive tbody td[data-label="Ficha Técnica"],
.tabla-responsive tbody td[rowspan] {
    text-align: center;
    vertical-align: middle;
}

/* Asegurar que Referencia queda a la izquierda */
.tabla-responsive thead th:first-child,
.tabla-responsive tbody td[data-label="Referencia"] {
    text-align: left;
}


/* ── Base: quitar estilos del tema en el tab ─────────────── */
.woocommerce-tabs .tabs li a,
.woocommerce-tabs .tabs li.active a {
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    background-color: #fff !important;
    border-bottom: none !important;
}

/* ── Línea inferior del ul (la barra completa) ───────────── */
body.cat-limpieza .woocommerce-tabs ul.tabs {
    border-bottom: 3px solid #036072 !important;
}
body.cat-absorbentes .woocommerce-tabs ul.tabs {
    border-bottom: 3px solid #6A3C6E !important;
}
body.cat-derrames .woocommerce-tabs ul.tabs {
    border-bottom: 3px solid #6B6D20 !important;
}

/* ── Texto del tab activo en color de categoría ─────────── */
body.cat-limpieza .woocommerce-tabs .tabs li.active a {
    color: #036072 !important;
    font-weight: 600;
}
body.cat-absorbentes .woocommerce-tabs .tabs li.active a {
    color: #6A3C6E !important;
    font-weight: 600;
}
body.cat-derrames .woocommerce-tabs .tabs li.active a {
    color: #6B6D20 !important;
    font-weight: 600;
}
/* ── Línea de cierre inferior de la tabla ─────────────── */
body.cat-limpieza .tabla-responsive table,
body.cat-absorbentes .tabla-responsive table,
body.cat-derrames .tabla-responsive table {
    border-bottom: none;
}

body.cat-limpieza .tabla-responsive {
    border-bottom: 2px solid rgba(3, 96, 114, 0.25);
}
body.cat-absorbentes .tabla-responsive {
    border-bottom: 2px solid rgba(106, 60, 110, 0.25);
}
body.cat-derrames .tabla-responsive {
    border-bottom: 2px solid rgba(107, 109, 32, 0.25);
}

@media (max-width: 600px) {
    /* scroll horizontal mejorado */

    .tabla-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Indicador visual de scroll */
    .tabla-responsive::after {
        content: "← desliza →";
        display: block;
        text-align: center;
        font-size: 0.75rem;
        color: #999;
        padding: 4px 0;
        font-style: italic;
    }

    /* Tabla con ancho mínimo para que no se comprima */
    .tabla-responsive table {
        min-width: 500px;
    }

    /* Celdas con padding reducido en móvil */
    .tabla-responsive th,
    .tabla-responsive td {
        padding: 0.5rem 0.6rem;
        font-size: 0.82rem;
    }
}