/*
Theme Name: Direpack
Author: JugaroSoftware
Version: 3.28
Description: Tema personalizado para la empresa Direpack S.L
Text Domain: direpack
*/

:root {
    --verde: #057c57;
    --verde-oscuro: #046446;
    --verde-distribuidores: #1f8a68;
    --verde-iso: #3a9677;
    --menta: #cfe4dc;
    --menta-claro: #e6f2ee;
    --texto: #111;
    --texto-gris: #333;
    --oscuro: #2a2a2a;
    --azul: #00b4f0;
    --hero-titulo: 42px; /* tamaño común de los títulos de cabecera */
}

/* ===== Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 64px; /* los enlaces a #anclas no quedan tapados por el menú fijo */
}
/* Nada debe provocar scroll horizontal (p. ej. bloques que entran animados desde el lateral).
   "clip" no crea contenedor de scroll, así que no afecta a los elementos fijos. */
html,
body {
    overflow-x: hidden;
    overflow-x: clip;
}
body {
    margin: 0;
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.3;
    color: var(--texto);
    background: #fff;
}
img {
    max-width: 100%;
    height: auto;
}
a {
    color: var(--verde);
}
strong {
    font-weight: 700;
}
.contenedor,
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.centrado {
    text-align: center;
}
/* Palabras que no deben partirse por su guion (p. ej. "e-commerce"). */
.sin-corte {
    white-space: nowrap;
}
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
/* Enlace "Saltar al contenido": solo se ve al llegar con el tabulador */
.salto-contenido:focus {
    top: 10px;
    left: 10px;
    z-index: 1000;
    width: auto;
    height: auto;
    padding: 10px 16px;
    clip: auto;
    border-radius: 6px;
    background: #fff;
    color: var(--verde);
    font-weight: 600;
}
.icono {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
}

/* ===== Menú en píldora (fijo arriba al hacer scroll) ===== */
.site-header {
    position: fixed;
    top: 8px;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none; /* la franja transparente no bloquea los clics; solo la píldora */
}
.admin-bar .site-header {
    top: 40px;
}
@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 54px; /* la barra de administración mide 46px en móvil */
    }
}
.nav-pildora {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: center;
    width: 752px;
    max-width: 100%;
    height: 40px;
    padding: 0 52px 0 50px;
    border-radius: 20px;
    background: rgba(42, 42, 42, 0.85);
}
.main-navigation {
    flex: 1;
}
.main-navigation ul {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
}
.main-navigation a {
    display: block;
    color: #fff;
    font-size: 19px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.main-navigation a:hover {
    color: #8fd9b4;
}
/* Botón hamburguesa: solo en móvil */
.menu-toggle {
    display: none;
}

/* ===== Botones flotantes: contacto y carrito (abajo a la derecha, en todas las páginas) ===== */
.botones-flotantes {
    position: fixed;
    right: 24px;
    bottom: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px)); /* iPhone con barra inferior */
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.boton-flotante {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--verde);
    color: #fff;
    font-size: 26px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s, background 0.2s;
}
.boton-flotante:hover,
.boton-flotante:focus-visible {
    background: var(--verde-oscuro);
    color: #fff;
    transform: scale(1.06);
}
.boton-flotante:focus-visible {
    outline: 3px solid #8fd9b4;
    outline-offset: 3px;
}
/* Carrito: oscuro (como el menú) para distinguirlo del botón de contacto y de las secciones verdes. */
.carrito-flotante {
    border: 2px solid #fff;
    background: var(--oscuro);
}
.carrito-flotante:hover,
.carrito-flotante:focus-visible {
    background: #000;
}
.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--azul);
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    animation: contador-aparece 0.3s ease-out;
}
@keyframes contador-aparece {
    from { opacity: 0; transform: scale(0.4); }
    to   { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .boton-flotante,
    .cart-count {
        animation: none;
        transition: none;
    }
}

/* ===== Logo ===== */
.logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}
.logo-simbolo {
    display: block;
    width: 100%;
}
.logo-texto {
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1;
}

/* ===== Botones ===== */
.boton-tarjeta {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 7px;
    background: var(--verde);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.boton-tarjeta:hover {
    background: var(--verde-oscuro);
    color: #fff;
}
.boton-blanco {
    display: inline-block;
    min-width: 250px;
    padding: 14px 30px;
    border-radius: 12px;
    background: #fff;
    color: var(--verde);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
}
.boton-blanco:hover {
    background: var(--menta-claro);
}
.boton-contorno {
    display: inline-block;
    min-width: 216px;
    padding: 8px 20px;
    border: 1px solid var(--verde);
    border-radius: 7px;
    background: #fff;
    color: var(--verde);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}
.boton-contorno:hover {
    background: var(--menta-claro);
}

/* ===== Cabeceras ===== */
.hero {
    position: relative;
    display: flex;
    background: var(--verde) center / cover no-repeat;
}

/* Cabeceras de las páginas principales: ocupan toda la pantalla.
   svh = alto visible en móvil sin contar la barra del navegador; vh queda de respaldo. */
.hero-inicio,
.hero-empresa,
.hero-degradado,
.tienda-hero {
    min-height: 100vh;
    min-height: 100svh;
}

/* Inicio */
.hero-inicio {
    align-items: center;
    justify-content: center;
    padding: 70px 20px 90px;
}
.hero-inicio::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
}
.hero-inicio-centro {
    position: relative;
    text-align: center;
}
.logo-hero {
    width: 230px;
}
.logo-hero .logo-simbolo {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}
.logo-hero .logo-texto {
    margin-top: 24px;
    font-size: 38px;
    color: var(--verde);
}
.hero-inicio-titulo {
    margin: 22px 0 0;
    font-size: var(--hero-titulo);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: #1a1a1a;
}

/* Empresa */
.hero-empresa {
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 28px;
}
.hero-empresa::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
}
.hero-empresa-titulo {
    position: relative;
    margin: 0;
    font-size: var(--hero-titulo);
    line-height: 1.2;
    text-align: center;
    color: #000;
}
.hero-empresa-titulo strong,
.hero-empresa-titulo span {
    display: block;
}
.hero-empresa-titulo strong {
    font-weight: 800;
}
.hero-empresa-titulo span {
    font-weight: 400;
}

/* Maquinaria y Contacto: imagen con degradado verde abajo */
.hero-degradado {
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 36px;
}
.hero-degradado::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 58%, rgba(185, 225, 205, 0.6) 82%, rgba(5, 124, 87, 0.95) 100%);
}
.hero-degradado-titulo {
    position: relative;
    margin: 0;
    font-size: var(--hero-titulo);
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    color: #000;
}
.hero-degradado-titulo strong {
    font-weight: 700;
}

/* Páginas secundarias (carrito, legales, fichas) */
.hero-simple {
    min-height: 260px;
    align-items: flex-end;
    justify-content: center;
    padding: 80px 20px 30px;
    background-image: linear-gradient(135deg, var(--verde) 0%, #2a9b78 100%);
}
.hero-simple[style]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(5, 124, 87, 0.9));
}
.hero-simple-titulo {
    position: relative;
    margin: 0;
    font-size: var(--hero-titulo);
    line-height: 1.2;
    font-weight: 400;
    text-align: center;
    color: #fff;
}

/* ===== Secciones comunes ===== */
.seccion {
    padding: 30px 0 60px;
}
.titulo-seccion {
    text-wrap: balance; /* en móvil, líneas de longitud parecida en vez de una palabra suelta */
    margin: 0 0 22px;
    font-size: 24px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: #000;
}
.intro {
    max-width: 600px;
    margin: 0 auto 30px;
    text-align: center;
}
.intro-ancha {
    max-width: 960px;
}

/* ===== Inicio ===== */
.soluciones {
    display: grid;
    grid-template-columns: 466px 438px;
    justify-content: space-between;
    align-items: start;
    margin-top: 32px;
}
.soluciones-texto p {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.3;
    text-align: justify;
    hyphens: auto;
}
.soluciones-imagen {
    margin: -20px 0 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}
.soluciones-imagen img {
    display: block;
    width: 100%;
    aspect-ratio: 438 / 262;
    object-fit: cover;
}
.soluciones-imagen figcaption {
    padding: 6px;
    background: var(--verde);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
}
/* El verde de la flecha es una capa (::before) que al pasar el ratón se extiende hacia la
   izquierda hasta llenar el botón; el texto pasa a blanco y la flecha avanza un poco. */
.boton-saber-mas {
    position: relative;
    isolation: isolate; /* la capa verde (z-index -1) queda sobre el fondo blanco y bajo el texto */
    display: inline-flex;
    align-items: stretch;
    width: 200px;
    height: 40px;
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid var(--verde);
    border-radius: 12px;
    color: var(--verde);
    font-size: 19px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.35s ease;
}
.boton-saber-mas::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    width: 38px;
    background: var(--verde);
    transition: width 0.35s ease;
}
/* Con la animación de entrada (.revelar, tema.js) su "transition" sustituiría a la del color. */
.boton-saber-mas.revelar {
    transition:
        opacity 0.8s ease-out var(--retraso, 0ms),
        translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--retraso, 0ms),
        color 0.35s ease;
}
.boton-saber-mas:hover,
.boton-saber-mas:focus-visible {
    color: #fff;
}
.boton-saber-mas:hover::before,
.boton-saber-mas:focus-visible::before {
    width: 100%;
}
.boton-saber-mas > span:first-child {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}
.boton-saber-mas-flecha {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    color: #fff; /* el verde lo pone la capa ::before del botón */
    font-size: 22px;
    transition: transform 0.35s ease;
}
.boton-saber-mas:hover .boton-saber-mas-flecha,
.boton-saber-mas:focus-visible .boton-saber-mas-flecha {
    transform: translateX(3px);
}
@media (prefers-reduced-motion: reduce) {
    .boton-saber-mas,
    .boton-saber-mas::before,
    .boton-saber-mas-flecha {
        transition: none;
    }
}
.seccion-soluciones {
    padding-bottom: 0;
}
.seccion-vendidos {
    padding-bottom: 20px;
}
.seccion-vendidos .titulo-seccion {
    margin-bottom: 36px;
}
.intro-vendidos {
    max-width: 600px;
    margin-bottom: 50px;
}
.seccion-vendidos .rejilla-tarjetas {
    margin-bottom: 20px;
}

/* Opiniones de Google Maps (template-parts/resenas.php) */
.seccion-resenas {
    --sombra-resena: 0 1px 2px rgba(4, 100, 70, 0.06), 0 12px 32px -8px rgba(4, 100, 70, 0.18);
    position: relative;
    padding: 70px 0 80px;
    background:
        radial-gradient(60% 50% at 50% 0%, rgba(5, 124, 87, 0.08), transparent 70%),
        linear-gradient(to bottom, #fff, var(--menta-claro));
    overflow: hidden;
}
.resenas-antetitulo {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-align: center;
    text-transform: uppercase;
    color: var(--verde);
}
/* Estrellas parciales: el degradado pinta en amarillo el % de --nota sobre 5. */
.estrellas {
    display: inline-block;
    font-size: 17px;
    line-height: 1;
    letter-spacing: 2px;
}
.estrellas::before {
    content: "★★★★★";
    background: linear-gradient(90deg, #fbbc04 calc(var(--nota) * 20%), #d9dedc 0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* Insignia con la nota media */
.resenas-resumen {
    display: flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    max-width: 100%;
    margin: 6px auto 44px;
    padding: 12px 24px 12px 14px;
    border: 1px solid rgba(5, 124, 87, 0.12);
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--sombra-resena);
}
.resenas-resumen-google {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 8px;
    border-radius: 50%;
    background: #f4f6f5;
}
.resenas-nota {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--texto);
}
.resenas-resumen-detalle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    color: var(--texto-gris);
}
.resenas-resumen-detalle .estrellas {
    font-size: 20px;
}
.resenas-resumen a {
    color: var(--verde);
    font-weight: 700;
    text-decoration: none;
}
.resenas-resumen a:hover {
    text-decoration: underline;
}
/* Carrusel: fila con desplazamiento horizontal; tema.js lo hace avanzar solo. 3, 2 o 1 reseñas a la vista. */
.carrusel {
    --visibles: 3;
    margin: 0 0 32px;
}
/* El relleno deja sitio a la sombra y al movimiento al pasar el ratón (overflow la recortaría). */
.resenas {
    display: flex;
    gap: 20px;
    margin: -16px -12px 0;
    padding: 16px 12px 28px;
    scroll-padding: 0 12px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.resenas::-webkit-scrollbar {
    display: none;
}
.resenas:focus-visible {
    outline: 2px solid var(--verde);
    outline-offset: 4px;
}
.resena {
    flex: 0 0 calc((100% - (var(--visibles) - 1) * 20px) / var(--visibles));
    scroll-snap-align: start;
}
@media (max-width: 900px) {
    .carrusel {
        --visibles: 2;
    }
}
@media (max-width: 600px) {
    .carrusel {
        --visibles: 1;
    }
}
@media (prefers-reduced-motion: reduce) {
    .resenas {
        scroll-behavior: auto;
    }
}
.carrusel-controles {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}
.carrusel-controles[hidden] {
    display: none;
}
.carrusel-controles button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--sombra-resena);
    color: var(--verde);
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.carrusel-controles .carrusel-pausa {
    font-size: 12px;
    letter-spacing: -1px;
}
.carrusel-controles button:hover {
    transform: translateY(-2px);
}
.carrusel-controles button:hover,
.carrusel-controles .carrusel-pausa[aria-pressed="true"] {
    background: var(--verde);
    color: #fff;
}
.carrusel-controles button:focus-visible {
    outline: 2px solid var(--verde);
    outline-offset: 3px;
}
/* Tarjeta: blanca, con comilla decorativa de fondo y un leve ascenso al pasar el ratón. */
.resena figure {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 24px 26px 26px;
    border: 1px solid rgba(5, 124, 87, 0.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--sombra-resena);
    transition: transform 0.3s, box-shadow 0.3s;
}
.resena figure::after {
    content: "\201D";
    position: absolute;
    right: 20px;
    bottom: -18px;
    font-family: Georgia, serif;
    font-size: 120px;
    line-height: 1;
    color: var(--verde);
    opacity: 0.08;
    pointer-events: none;
}
.resena:hover figure {
    transform: translateY(-4px);
    box-shadow: 0 1px 2px rgba(4, 100, 70, 0.06), 0 20px 40px -10px rgba(4, 100, 70, 0.25);
}
.resena .estrellas {
    margin-top: 16px;
}
.resena-texto {
    flex: 1;
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--texto-gris);
}
.resena-texto p {
    margin: 0;
    white-space: pre-line;
}
.resena-autor {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
}
.resena-autor-datos {
    flex: 1;
    min-width: 0;
}
.resena-autor a {
    color: var(--texto);
    text-decoration: none;
}
.resena-autor a:hover {
    color: var(--verde);
}
.resena-autor time {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7671;
}
.resena-inicial {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1fa37a, var(--verde-oscuro));
    box-shadow: 0 4px 10px -2px rgba(4, 100, 70, 0.4);
    color: #fff;
    font-size: 18px;
}
.resena-google {
    flex-shrink: 0;
    align-self: flex-start;
    width: 20px;
    height: 20px;
}
.resenas-enlaces {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0;
}
.resenas-boton {
    display: inline-flex;
    align-items: center;
    padding: 12px 26px;
    border: 1px solid rgba(5, 124, 87, 0.25);
    border-radius: 999px;
    background: #fff;
    color: var(--verde);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.resenas-boton:hover {
    transform: translateY(-2px);
    box-shadow: var(--sombra-resena);
}
.resenas-boton-principal {
    border-color: var(--verde);
    background: var(--verde);
    color: #fff;
}
.resenas-boton-principal:hover {
    background: var(--verde-oscuro);
}
@media (max-width: 600px) {
    .seccion-resenas {
        padding: 50px 0 60px;
    }
    .resenas-resumen {
        gap: 10px;
        padding: 10px 18px 10px 10px;
    }
    .resenas-nota {
        font-size: 30px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .resena figure,
    .resenas-boton,
    .carrusel-controles button {
        transition: none;
    }
    .resena:hover figure,
    .resenas-boton:hover,
    .carrusel-controles button:hover {
        transform: none;
    }
}

/* Tarjetas de producto y máquina */
/* Máx. 960px y centrada: con el contenedor a 1200px, las 3 tarjetas no quedan separadas por huecos enormes. */
.rejilla-tarjetas,
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, 250px);
    justify-content: space-between;
    gap: 50px 20px;
    max-width: 960px;
    margin: 0 auto 30px;
    padding: 0;
    list-style: none;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}
.woocommerce ul.products li.product {
    width: auto;
    margin: 0;
    padding: 0;
    float: none;
}
.tarjeta {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 12px 16px 7px;
    border-radius: 8px;
    background: var(--menta);
    text-align: center;
}
.tarjeta-imagen {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 158px;
    margin-bottom: 12px;
}
.tarjeta-imagen::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 210px;
    height: 164px;
    transform: translate(-50%, -50%);
    background: url("assets/img/marca-agua.webp") center / contain no-repeat;
    opacity: 0.1;
}
.tarjeta-imagen img {
    position: relative;
    max-width: 210px;
    max-height: 150px;
    width: auto !important;
    height: auto;
    margin: 0 !important;
    object-fit: contain;
}
.tarjeta-titulo {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--verde);
}
.tarjeta-titulo a {
    color: inherit;
    text-decoration: none;
}
.tarjeta-precio {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 14px;
    font-size: 17px;
    color: var(--texto-gris);
}
.tarjeta-precio strong {
    font-size: 21px;
    font-weight: 700;
    color: #222;
}
.tarjeta-precio .woocommerce-Price-amount {
    font-weight: 700;
}
.tarjeta .boton-tarjeta {
    margin-top: auto;
}
.insignia {
    position: absolute;
    top: -8px;
    left: -19px;
    z-index: 2;
    width: 40px;
    height: auto;
}
.tarjeta-maquina {
    padding-bottom: 16px;
}
.tarjeta-maquina .tarjeta-titulo {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}
.tarjeta-tipo {
    margin: 0 0 20px;
    font-size: 17px;
    line-height: 1.25;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--texto-gris);
}
.boton-ancho {
    align-self: stretch;
    border-radius: 8px;
}
/* Enlace "Ver ficha" bajo el botón de la tarjeta de máquina. */
.enlace-ficha {
    margin-top: 8px;
    font-size: 15px;
    color: #666;
    text-decoration: none;
}
.enlace-ficha:hover {
    color: var(--verde);
    text-decoration: underline;
}

/* Sección degradada "A medida" */
.seccion-medida {
    padding: 0 0 28px;
    background: linear-gradient(to bottom, #fff 0px, #fff 50px, #b7d9cc 260px, #6aae96 420px, #3e9a7b 620px, #1a8463 100%);
}
.seccion-medida > .centrado {
    margin: 0;
    padding-top: 6px;
}
.titulo-medida {
    margin: 80px 0 34px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    color: #000;
}
.logo-medida {
    display: flex;
    width: 170px;
    margin: 0 auto 30px;
}
.logo-medida .logo-simbolo {
    filter: drop-shadow(0 0 28px rgba(0, 0, 0, 0.35));
}
.logo-medida .logo-texto {
    margin-top: 22px;
    font-size: 32px;
    color: #fff;
}
.ventajas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 38px 60px;
    margin: 0 0 52px;
    padding: 0;
    list-style: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #000;
}
.ventajas li {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ventajas img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}
.calidad {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 48px;
    text-align: center;
    text-wrap: balance;
    font-size: 20px;
    font-weight: 600;
    color: #000;
}
.calidad-estrellas {
    width: 22px;
    margin: -16px 2px 0 0;
    transform: rotate(-20deg);
}
.calidad-estrellas-der {
    margin: 16px 0 0 2px;
}

/* ===== Empresa ===== */
.seccion-especialistas {
    padding-top: 50px;
    padding-bottom: 0;
}
/* Con la sección del equipo oculta, el diagrama no queda pegado a la franja de distribuidores. */
.seccion-especialistas.sin-equipo {
    padding-bottom: 60px;
}
/* Posiciones tomadas del PDF sobre un lienzo de 1080 x 320, en % para que escale. */
.diagrama {
    position: relative;
    left: 50%;
    width: min(1080px, calc(100vw - 30px));
    aspect-ratio: 1080 / 320;
    transform: translateX(-50%);
}
.diagrama-flechas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.diagrama-halo {
    position: absolute;
    left: 37.96%;
    top: 25%;
    width: 24.26%;
}
.diagrama-logo {
    position: absolute;
    left: 42.31%;
    top: 39.69%;
    width: 15.56%;
}
.diagrama-item {
    position: absolute;
    display: flex;
    align-items: center;
    width: 21.3%;
    height: 49px;
    border: 2px solid var(--verde);
    border-radius: 18px;
    background: #fff;
}
.diagrama-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 49px;
    margin: -2px 0 -2px -2px;
    border-radius: 14px;
    background: var(--verde);
    color: #fff;
    font-size: 26px;
}
.diagrama-icono svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}
.diagrama-texto {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    color: var(--verde);
}
.diagrama-item-1 { left: 10.09%; top: 7.5%; }
.diagrama-item-2 { left: 73.06%; top: 25%; }
.diagrama-item-3 { left: 5.09%;  top: 68.44%; }
.diagrama-item-4 { left: 73.61%; top: 79.69%; }

.seccion-equipo {
    padding-top: 80px;
    padding-bottom: 30px;
    background: linear-gradient(to bottom, #fff 0px, var(--menta-claro) 90px);
}
.seccion-equipo .intro-ancha {
    max-width: 820px;
}
.equipo {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px 35px;
    max-width: 640px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.equipo li {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 125px;
    font-size: 17px;
    line-height: 1.25;
    text-align: center;
}
.equipo-foto {
    display: block;
    width: 125px;
    height: 125px;
    margin-bottom: 14px;
    overflow: hidden;
    border: 2px solid var(--verde);
    border-radius: 50%;
    background: #fff;
}
.equipo-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.equipo strong {
    color: var(--verde);
}
.equipo span:last-child {
    font-weight: 600;
}

.seccion-distribuidores {
    padding: 55px 0 55px;
    background: var(--verde-distribuidores);
    color: #fff;
}
.seccion-distribuidores .titulo-seccion,
.seccion-distribuidores .intro {
    color: #fff;
}
.seccion-distribuidores .intro {
    max-width: 640px;
    margin-bottom: 55px;
}
.marcas {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}
.marcas-grandes {
    justify-content: center;
    gap: 105px;
}
.marcas-grandes .marca-tesa img { width: 160px; }
.marcas-grandes .marca-sealed-air img { width: 155px; }
.marcas-grandes .marca-start img { width: 145px; }

.seccion-iso {
    padding-top: 40px;
}
.intro-iso {
    max-width: 750px;
}
.iso {
    display: grid;
    grid-template-columns: 1fr 235px;
    gap: 30px;
    align-items: center;
    max-width: 752px;
    margin: 0 auto;
    padding: 38px 45px 42px 48px;
    border-radius: 20px;
    background: var(--verde-iso);
    color: #fff;
}
.iso-texto p {
    margin: 0 0 20px;
}
.iso-texto p:last-child {
    margin-bottom: 0;
}
.iso-sello {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 255px;
    border-radius: 16px;
    background: #fff;
}
.iso-sello img {
    width: 165px;
}

/* ===== Tienda ===== */
.tienda-hero {
    position: relative;
    background: #fff right center / 62% auto no-repeat;
    overflow: hidden;
}
.tienda-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.85) 100%),
        linear-gradient(to right, #077c55 0%, #3d9c7b 14%, #a9d6c4 33%, #e9f4ef 46%, rgba(255, 255, 255, 0.35) 56%, rgba(255, 255, 255, 0) 70%);
}
.tienda-hero[style] {
    /* Encuadre del diseño: foto ampliada y desplazada a la derecha. */
    /* El ancho mínimo garantiza que la foto (proporción 1,5) cubra todo el alto de la pantalla. */
    background-size: max(1130px, calc(50vw + 137px), calc(100svh * 1.5)) auto;
    background-position: calc(50vw - 137px) center;
}
.tienda-hero-destacado {
    position: absolute;
    left: 58px;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    z-index: 1;
}
.tarjeta-destacada {
    border: 1px solid var(--verde);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: #ececec;
}
.etiqueta-destacado {
    display: block;
    padding: 6px;
    border-radius: 0 0 8px 8px;
    background: var(--azul);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
}
.tienda-hero-titulo {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 36px; /* misma distancia al borde que Maquinaria y Contacto */
    margin: 0;
    font-size: var(--hero-titulo);
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    color: #000;
}
.tienda-hero-titulo strong {
    font-weight: 700;
}
.franja-envio {
    margin: 0;
    padding: 2px 20px;
    background: var(--azul);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
}
.seccion-productos {
    padding-top: 22px;
    padding-bottom: 30px;
}
.contador-productos {
    margin: 0 0 30px;
    padding-left: 48px;
    font-size: 14px;
    color: #888;
}
.contador-productos strong {
    color: #555;
}
.seccion-productos .rejilla-tarjetas,
.seccion-productos ul.products {
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}
.seccion-a-medida {
    padding: 20px 20px 100px; /* la caja verde no va en .contenedor: margen lateral en móvil */
}
.caja-verde {
    max-width: 790px;
    margin: 0 auto;
    padding: 18px 24px 28px;
    border-radius: 20px;
    background: var(--verde);
    color: #fff;
    text-align: center;
}
.caja-verde .titulo-seccion {
    margin-bottom: 10px;
    color: #fff;
}
.caja-verde > p {
    margin: 0 0 24px;
}
.dos-tarjetas {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 80px;
}
.tarjeta-fondo {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 210px;
    height: 255px;
    padding: 98px 10px 0;
    border-radius: 16px;
    background: center / cover no-repeat;
}
.tarjeta-fondo p {
    margin: 0 0 40px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.boton-mini {
    display: inline-block;
    min-width: 115px;
    padding: 4px 16px;
    border-radius: 7px;
    background: var(--verde);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}
.boton-mini:hover {
    background: var(--verde-oscuro);
    color: #fff;
}

/* ===== Maquinaria ===== */
.seccion-maquinaria {
    padding-top: 40px;
    padding-bottom: 36px;
}
.seccion-maquinaria .intro {
    max-width: 915px;
    margin-bottom: 48px;
}
.seccion-maquinaria .titulo-seccion {
    margin-bottom: 30px;
}
.categorias-maquinas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto 20px;
}
.categorias-maquinas[hidden] {
    display: none;
}
.categorias-maquinas label {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--verde);
}
/* Flecha propia en verde (sustituye a la del navegador). */
.categorias-maquinas select {
    flex: 1;
    min-width: 0;
    padding: 9px 40px 9px 18px;
    border: 1px solid var(--verde);
    border-radius: 999px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23057c57' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
    color: var(--verde);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    appearance: none;
}
.categorias-maquinas select:focus-visible {
    outline: 2px solid var(--verde);
    outline-offset: 2px;
}
@media (max-width: 480px) {
    .categorias-maquinas {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
}
.grupo-maquinas {
    padding-top: 40px;
}
.grupo-maquinas[hidden] {
    display: none;
}
.grupo-maquinas-titulo {
    margin: 0 0 10px;
    font-size: 22px;
    font-style: italic;
    font-weight: 700;
    text-align: center;
    color: var(--verde);
}
.grupo-maquinas-descripcion {
    max-width: 760px;
    margin: 0 auto 28px;
    font-size: 16px;
    line-height: 1.4;
    text-align: center;
    color: var(--texto-gris);
}
/* Flex en lugar de grid para centrar las categorías con 1 o 2 máquinas. */
.rejilla-maquinas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 44px 60px;
    max-width: 870px;
    margin-left: auto;
    margin-right: auto;
}
.rejilla-maquinas > .tarjeta {
    width: 250px;
    height: auto;
}.tarjeta-maquina .tarjeta-imagen img {
    border-radius: 6px;
}
.seccion-asistencia {
    padding: 40px 0 40px;
    background: var(--verde);
    color: #fff;
}
.seccion-asistencia .titulo-seccion {
    margin-bottom: 40px;
    color: #fff;
}
.seccion-asistencia .intro {
    margin-bottom: 56px;
}
.servicios {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}
.servicio {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 221px;
    height: 210px;
    padding: 0 10px 8px;
    overflow: hidden;
    border-radius: 18px;
    background: #fff center / cover no-repeat;
    text-align: center;
}
.servicio::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.78);
}
.servicio img,
.servicio span {
    position: relative;
}
.servicio img {
    width: 110px;
    height: 100px;
    margin-bottom: 18px;
    object-fit: contain;
}
.servicio span {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--verde);
}

/* ===== Contacto ===== */
.seccion-contacto-datos {
    padding-top: 50px;
    padding-bottom: 80px;
}
.contacto-datos {
    display: grid;
    grid-template-columns: 418px 1fr;
    align-items: center;
    max-width: 1000px;
}
.mapa {
    display: block;
    height: 445px;
    overflow: hidden;
    border: 5px solid var(--verde);
    border-radius: 16px;
}
.mapa img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.contacto-lista {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: -40px;
    padding-left: 80px;
}
.contacto-lista h2 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    color: var(--verde);
}
.contacto-pildora {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 302px;
    min-height: 45px;
    padding: 2px 16px;
    border: 1px solid var(--verde);
    border-radius: 12px;
    color: var(--verde);
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
}
.contacto-pildora:hover {
    background: var(--menta-claro);
}
.contacto-pildora .icono {
    font-size: 24px;
}
.contacto-telefono {
    font-size: 24px;
}
.contacto-email {
    font-size: 20px;
}
.contacto-direccion {
    font-size: 18px;
}
.seccion-formulario {
    padding-top: 0;
    padding-bottom: 60px;
}
.titulo-formulario {
    margin: 0 0 22px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
}
.intro-formulario {
    max-width: 610px;
    margin-bottom: 48px;
}
.formulario-contacto form {
    position: relative;
    max-width: 772px;
    margin: 0 auto;
}
.formulario-contacto form::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -10px;
    width: 300px;
    height: 240px;
    transform: translateX(-50%);
    background: url("assets/img/marca-agua.webp") center / contain no-repeat;
    opacity: 0.1;
    pointer-events: none;
}
.campos {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 48px;
}
.campos label {
    display: block;
}
.campo-ancho {
    grid-column: 1 / -1;
    margin-top: -10px;
}
.campos input,
.campos select,
.campos textarea {
    width: 100%;
    height: 50px;
    padding: 0 10px;
    border: 2px solid var(--verde);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    font-size: 16px;
    color: var(--texto);
}
.campos textarea {
    height: 207px;
    padding: 8px 20px;
    resize: vertical;
}
.campos input::placeholder,
.campos textarea::placeholder {
    color: #4aa585;
}
.campos select {
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 18'%3E%3Cpath d='M0 0h20L10 18z' fill='%23057c57'/%3E%3C/svg%3E");
    background-position: right 20px center;
    background-size: 18px 16px;
    background-repeat: no-repeat;
}
.campos select:invalid {
    color: #4aa585;
}
.campos input:focus,
.campos select:focus,
.campos textarea:focus {
    outline: 3px solid rgba(5, 124, 87, 0.2);
}
.campo-check {
    position: relative;
    margin: 12px 0 14px;
    font-size: 14px;
    text-align: center;
}
.boton-enviar {
    width: 216px;
    height: 50px;
    border: 0;
    border-radius: 25px;
    background: var(--verde);
    color: #fff;
    font-family: inherit;
    font-size: 24px;
    font-weight: 400;
    cursor: pointer;
}
.boton-enviar:hover {
    background: var(--verde-oscuro);
}
.campo-oculto {
    position: absolute;
    left: -9999px;
}
.aviso {
    max-width: 772px;
    margin: 0 auto 24px;
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
}
.aviso-ok {
    background: var(--menta-claro);
    color: var(--verde-oscuro);
}
.aviso-error {
    background: #fdecea;
    color: #a12622;
}

/* ===== Fichas y WooCommerce ===== */
.dos-columnas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.imagen-marco {
    margin: 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--menta);
}
.imagen-marco img {
    display: block;
    width: 100%;
}
.texto,
.entry-content {
    line-height: 1.5;
}

/* Ficha de máquina */
/* La foto, en una tarjeta blanca centrada en vertical; las características, en su propia caja menta. */
.ficha-maquina .imagen-marco {
    align-self: center;
    padding: 16px;
    border: 1px solid var(--menta);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(5, 124, 87, 0.08);
}
.ficha-maquina .imagen-marco img {
    border-radius: 10px;
}
/* Sin hero (single-maquina.php): espacio para el menú fijo, barra de navegación y el nombre de
   la máquina como título sobre la descripción. */
.ficha-maquina {
    padding-top: 92px;
}
.ficha-maquina-cabecera {
    margin: 0 auto 18px;
    text-align: center;
}
.ficha-maquina-titulo {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--verde);
    text-wrap: balance;
}
.ficha-maquina-tipo {
    margin: 8px 0 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--texto-gris);
}
@media (max-width: 600px) {
    .ficha-maquina {
        padding-top: 80px;
    }
    .ficha-maquina-titulo {
        font-size: 26px;
    }
}
/* Fichas con varios modelos: la foto sola y centrada; debajo, los modelos uno al lado del otro */
.ficha-con-modelos .imagen-marco {
    max-width: 520px;
    margin: 0 auto 30px;
}
/* Con 1200px caben hasta tres modelos en fila; si no, bajan a la siguiente (mín. 300px cada uno). */
.ficha-con-modelos .texto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    align-items: start;
}
/* Foto y características: más aire entre columnas con el contenedor más ancho (en móvil van apiladas). */
@media (min-width: 761px) {
    .ficha-maquina .dos-columnas {
        gap: 56px;
    }
}
.ficha-con-modelos .ficha-modelo {
    margin-top: 0;
}
.ficha-con-modelos .texto > p:last-child {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    text-align: center;
}
@media (max-width: 760px) {
    .ficha-con-modelos .texto {
        grid-template-columns: 1fr;
    }
    .ficha-modelo {
        padding: 18px 16px 4px;
    }
}
.ficha-maquina .entry-content {
    font-size: 17px;
    line-height: 1.6;
    color: var(--texto-gris);
}
.ficha-maquina .entry-content strong {
    font-weight: 700;
    color: var(--texto);
}
/* Sin esto la imagen (más ancha que la pantalla) ensancha la columna en móvil. */
.ficha-maquina .dos-columnas > * {
    min-width: 0;
}
.ficha-maquina .entry-content > :first-child,
.entry-content .ficha-modelo > h2 {
    margin-top: 0;
}
.ficha-explicacion {
    max-width: 820px;
    margin: 0 auto 30px;
    text-align: center;
}
/* Fichas sin características: el botón, centrado junto a la foto */
.ficha-maquina .texto:has(> p:only-child) {
    align-self: center;
}
.ficha-explicacion > :last-child {
    margin-bottom: 0;
}
.ficha-intro {
    font-size: 19px;
    line-height: 1.5;
    color: var(--texto);
}
.ficha-intro strong {
    color: var(--verde);
}
/* Lista de características: caja menta con cada punto en su fila, separadas por una línea fina */
.entry-content .ficha-lista {
    margin: 0 0 1em;
    padding: 6px 22px;
    border-radius: 16px;
    background: var(--menta-claro);
    list-style: none;
}
.entry-content .ficha-lista li {
    position: relative;
    margin: 0;
    padding: 13px 0 13px 42px;
    border-bottom: 1px solid rgba(5, 124, 87, 0.12);
    text-align: left; /* también en móvil, donde el resto del texto va centrado */
}
.entry-content .ficha-lista li:last-child {
    border-bottom: 0;
}
/* Check verde en un círculo blanco */
.ficha-lista li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 10.6 3.5 7.9l-1 1 3.7 3.7 7.3-7.3-1-1z' fill='%23057c57'/%3E%3C/svg%3E") center / 16px no-repeat;
    box-shadow: 0 2px 6px rgba(5, 124, 87, 0.15);
}
/* Cada modelo de la ficha, en su propia tarjeta */
.ficha-modelo {
    margin-top: 24px;
    padding: 22px 24px 8px;
    border: 1px solid var(--menta);
    border-left: 5px solid var(--verde);
    border-radius: 12px;
}
.ficha-modelo .ficha-lista {
    padding: 4px 16px;
}
/* Botón "Asesórate" al final del texto */
.ficha-maquina .texto > p:last-child {
    margin: 28px 0 0;
}
/* "Asesórate" a todo el ancho de su columna. */
.ficha-maquina .texto > p:last-child .boton-tarjeta {
    display: block;
    width: 100%;
    padding: 13px 20px;
    font-size: 17px;
    text-align: center;
}
.page-numbers {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
}
.page-numbers.current {
    background: var(--verde);
    color: #fff;
}
.woocommerce nav.woocommerce-pagination ul,
.woocommerce nav.woocommerce-pagination ul li {
    border: 0;
}
/* ===== Ficha de producto (inc/ficha-producto.php) ===== */
/* Sin hero (woocommerce.php): el espacio de arriba deja libre el menú fijo. */
.pagina-ficha-producto {
    position: relative; /* por encima de las marcas de agua del fondo */
    padding-top: 92px;
}
/* Galería algo más ancha para aprovechar los 1200px (solo escritorio: en móvil, una columna). */
@media (min-width: 761px) {
    .woocommerce .pagina-ficha-producto div.product {
        grid-template-columns: minmax(0, 540px) minmax(0, 1fr);
    }
}
/* Sobre el fondo menta (.fondo-ficha), los datos, la descripción y las opiniones van en paneles
   blancos con la misma sombra que los del carrito. */
.fondo-ficha div.product div.summary,
.fondo-ficha .ficha-descripcion,
.fondo-ficha .ficha-opiniones {
    padding: 24px 28px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(4, 100, 70, 0.06), 0 12px 32px -8px rgba(4, 100, 70, 0.18);
}
/* Mismo hueco a los cuatro lados del panel de datos: padding igual y sin márgenes sueltos del
   primer y último elemento (el título, el pie con SKU/categoría o lo que toque según el producto). */
/* "div.summary" (no ".summary"): con la misma especificidad, la regla general
   ".woocommerce div.product .summary { padding-top: 4px }", que va después, ganaría. */
.fondo-ficha div.product div.summary {
    padding: 28px;
}
.fondo-ficha div.product div.summary > :first-child {
    margin-top: 0;
}
.fondo-ficha div.product div.summary > :last-child,
.fondo-ficha div.product div.summary > :last-child > :last-child {
    margin-bottom: 0;
}
.fondo-ficha .ficha-bloque {
    border-top: 0;
}
.fondo-ficha .ficha-descripcion,
.fondo-ficha .ficha-opiniones {
    margin-top: 32px;
    padding: 28px 32px;
}
.fondo-ficha .ficha-mas-vendidos {
    margin-top: 40px;
    padding-top: 0;
}
.fondo-ficha .ficha-volver {
    background: #fff;
}
/* Migas a la izquierda y el botón de volver a la derecha. */
.ficha-navegacion {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 18px;
    margin: 0 0 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--menta);
    font-size: 15px;
}
.ficha-volver {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--verde);
    border-radius: 999px;
    color: var(--verde);
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.ficha-volver:hover,
.ficha-volver:focus-visible {
    background: var(--verde);
    color: #fff;
}
.ficha-migas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #666;
}
.ficha-migas li + li::before {
    content: "/";
    margin: 0 8px;
    color: #aaa;
}
.ficha-migas a {
    color: var(--texto-gris);
    text-decoration: none;
}
.ficha-migas a:hover {
    color: var(--verde);
    text-decoration: underline;
}
.ficha-migas [aria-current] {
    color: var(--verde);
    font-weight: 600;
}
@media (max-width: 600px) {
    .pagina-ficha-producto {
        padding-top: 80px;
    }
    /* En móvil basta con el botón de volver: las migas largas ocuparían varias líneas. */
    .ficha-migas {
        display: none;
    }
}
/* Foto + datos arriba; descripción, opiniones y más vendidos a todo el ancho debajo. */
.woocommerce div.product {
    display: grid;
    grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
    gap: 0 56px;
    align-items: start;
}
.woocommerce div.product > * {
    grid-column: 1 / -1;
    min-width: 0;
}
.woocommerce div.product > .woocommerce-product-gallery {
    grid-column: 1;
}
.woocommerce div.product > .summary {
    grid-column: 2;
}
.woocommerce div.product > span.onsale {
    position: absolute;
}
/* Galería: miniaturas en columna a la izquierda de la foto principal */
.woocommerce div.product div.images.woocommerce-product-gallery {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    gap: 12px;
    width: 100%;
    margin: 0;
}
.woocommerce-product-gallery .flex-viewport,
.woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--menta);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}
.woocommerce div.product div.images .flex-control-thumbs {
    flex: 0 0 72px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 460px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    scrollbar-width: thin;
}
.woocommerce div.product div.images .flex-control-thumbs li {
    width: 100%;
    float: none;
    margin: 0;
}
.woocommerce div.product div.images .flex-control-thumbs li img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border: 1px solid var(--menta);
    border-radius: 8px;
    background: #fff;
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.15s, border-color 0.15s;
}
.woocommerce div.product div.images .flex-control-thumbs li img:hover,
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active {
    border-color: var(--verde);
    opacity: 1;
}
/* En escritorio la galería mide de alto lo mismo que el cuadro de datos de al lado:
   "contain: size" hace que su contenido no cuente para la altura de la fila (la marca el cuadro)
   y "stretch" la estira hasta ella; la foto se ajusta dentro sin deformarse. */
@media (min-width: 761px) {
    .woocommerce div.product > .woocommerce-product-gallery {
        align-self: stretch;
        contain: size;
        min-height: 340px;
    }
    /* Mismo margen inferior en los dos: si no, la galería se estira también por el margen
       del cuadro (WooCommerce le pone 2em) y acaba más abajo que él. */
    .woocommerce div.product div.images.woocommerce-product-gallery,
    .woocommerce div.product > div.summary {
        margin-bottom: 2em;
    }
    .woocommerce div.product div.images.woocommerce-product-gallery {
        height: auto;
    }
    /* Si la altura mínima de la galería alarga la fila, el cuadro se estira igual. */
    .woocommerce div.product > .summary {
        align-self: stretch;
    }
    /* La altura en línea que pone el carrusel (smoothHeight) se sustituye por la de la fila. */
    .woocommerce-product-gallery .flex-viewport {
        height: auto !important;
    }
    .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper,
    .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper,
    .woocommerce div.product div.images .woocommerce-product-gallery__image,
    .woocommerce div.product div.images .woocommerce-product-gallery__image > a {
        height: 100%;
    }
    .woocommerce div.product div.images .woocommerce-product-gallery__image > a {
        display: block;
    }
    .woocommerce div.product div.images .woocommerce-product-gallery__image img {
        height: 100%;
        aspect-ratio: auto;
        padding: 12px;
        box-sizing: border-box;
    }
    .woocommerce div.product div.images .flex-control-thumbs {
        max-height: none;
    }
}
.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    top: 10px;
    right: 10px;
}
/* Datos del producto */
.woocommerce div.product .summary {
    margin: 0;
    padding-top: 4px;
}
.woocommerce div.product .product_title {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.25;
    color: var(--verde);
}
.ficha-vendidos {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: -4px 0 16px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--menta-claro);
    font-size: 14px;
    color: var(--verde-oscuro);
}
.ficha-vendidos::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--verde);
}
.woocommerce div.product .woocommerce-product-details__short-description ul {
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}
.woocommerce div.product .woocommerce-product-details__short-description li {
    position: relative;
    margin: 0 0 8px;
    padding-left: 26px;
    line-height: 1.45;
}
.woocommerce div.product .woocommerce-product-details__short-description li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--menta-claro) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 10.6 3.5 7.9l-1 1 3.7 3.7 7.3-7.3-1-1z' fill='%23057c57'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.woocommerce div.product .product_meta {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--menta);
    font-size: 14px;
    color: #666;
}
.woocommerce div.product .product_meta > span {
    display: block;
    margin-bottom: 4px;
}
/* Producto sin precio: aviso y botón "Solicitar presupuesto" (inc/ficha-producto.php) */
.woocommerce div.product p.price:empty {
    display: none;
}
.ficha-presupuesto {
    margin: 4px 0 20px;
    padding: 16px 18px;
    border-radius: 10px;
    background: var(--menta-claro);
}
/* Texto centrado y repartido en líneas parecidas; debajo, el botón a todo el ancho. */
.ficha-presupuesto-texto {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.45;
    text-align: center;
    text-wrap: balance;
    color: var(--texto-gris);
}
.ficha-presupuesto-boton {
    display: block;
    width: 100%;
    padding: 12px 20px;
    font-size: 17px;
    text-align: center;
}
/* Bloques bajo la ficha */
.ficha-bloque {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--menta);
}
.ficha-bloque-titulo,
.woocommerce #reviews h2.woocommerce-Reviews-title,
.woocommerce #reviews #reply-title {
    margin: 0 0 18px;
    font-size: 21px;
    font-weight: 700;
    color: var(--verde);
}
.ficha-descripcion-texto {
    max-width: 780px;
    line-height: 1.65;
    color: var(--texto-gris);
}
.ficha-descripcion-texto h3 {
    margin: 26px 0 10px;
    font-size: 18px;
    color: var(--texto);
}
.ficha-descripcion-texto ul {
    padding-left: 20px;
}
.ficha-descripcion-texto li {
    margin-bottom: 6px;
}
.ficha-descripcion-texto li::marker {
    color: var(--verde);
}
.woocommerce #reviews #comments ol.commentlist li .comment-text {
    border-color: var(--menta);
    border-radius: 10px;
}
.woocommerce #reviews .woocommerce-noreviews {
    color: #666;
}
.woocommerce #review_form #respond {
    max-width: 640px;
    margin-top: 10px;
    padding: 22px 24px;
    border: 1px solid var(--menta);
    border-radius: 12px;
    background: var(--menta-claro);
}
.woocommerce #review_form #respond textarea,
.woocommerce #review_form #respond input[type="text"],
.woocommerce #review_form #respond input[type="email"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--menta);
    border-radius: 7px;
    background: #fff;
    font: inherit;
}
.woocommerce .star-rating span::before,
.woocommerce p.stars a {
    color: #f0b400;
}
.ficha-mas-vendidos .rejilla-tarjetas {
    margin-top: 26px;
}
@media (max-width: 760px) {
    .woocommerce div.product {
        grid-template-columns: minmax(0, 1fr);
    }
    .woocommerce div.product > .summary {
        grid-column: 1;
        padding-top: 24px;
    }
    /* En móvil, miniaturas en fila bajo la foto */
    .woocommerce div.product div.images.woocommerce-product-gallery {
        flex-direction: column;
    }
    .woocommerce div.product div.images .flex-control-thumbs {
        flex: none;
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .woocommerce div.product div.images .flex-control-thumbs li {
        flex: 0 0 64px;
    }
    .woocommerce div.product .product_title {
        font-size: 22px;
    }
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--verde);
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
    border-radius: 7px;
    background: var(--verde);
    color: #fff;
    font-family: inherit;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    background: var(--verde-oscuro);
    color: #fff;
}

/* ===== Carrito (page.php sin cabecera + inc/carrito.php) ===== */
/* Fondo a juego con el de las opiniones: brillo verde arriba, de blanco a menta claro,
   y el símbolo de Direpack como marca de agua (como en las tarjetas). */
.fondo-carrito,
.fondo-pagina,
.fondo-ficha,
.fondo-maquina {
    position: relative;
    min-height: 70vh;
    background:
        radial-gradient(60% 40% at 50% 0%, rgba(5, 124, 87, 0.1), transparent 70%),
        linear-gradient(to bottom, #fff, var(--menta-claro) 420px, var(--menta-claro));
    overflow: hidden;
}
.fondo-carrito::before,
.fondo-pagina::before,
.fondo-ficha::before,
.fondo-ficha::after,
.fondo-maquina::before {
    content: "";
    position: absolute;
    top: 70px;
    right: -120px;
    width: 520px;
    height: 400px;
    background: url("assets/img/marca-agua.webp") center / contain no-repeat;
    opacity: 0.06;
    pointer-events: none;
}
/* En las fichas y páginas, la marca de agua algo más visible que en el carrito. */
.fondo-pagina::before,
.fondo-ficha::before,
.fondo-ficha::after {
    opacity: 0.12;
}
.fondo-pagina > .container {
    position: relative; /* por encima de la marca de agua */
}

/* ===== Secciones blancas del resto de la web, con el mismo fondo que las fichas =====
   La primera sección blanca de cada tramo va de blanco a menta claro (con el brillo verde arriba
   y la marca de agua); las que la siguen, hasta la próxima sección de color, siguen en menta,
   para que no haya cortes entre ellas. */
.seccion-soluciones,
.seccion-especialistas,
.seccion-iso,
.seccion-maquinaria,
.seccion-productos,
.seccion-contacto-datos {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60% 40% at 50% 0%, rgba(5, 124, 87, 0.1), transparent 70%),
        linear-gradient(to bottom, #fff, var(--menta-claro) 420px, var(--menta-claro));
}
/* Continuación en menta. "Los más vendidos" vuelve a blanco al final porque la sección verde
   que la sigue empieza en blanco. */
.seccion-vendidos {
    background: linear-gradient(to bottom, var(--menta-claro), var(--menta-claro) 55%, #fff);
}
.seccion-a-medida,
.seccion-formulario {
    background: var(--menta-claro);
}
/* Marca de agua del logo, alternando de lado entre secciones. */
.seccion-soluciones::before,
.seccion-especialistas::before,
.seccion-iso::before,
.seccion-maquinaria::before,
.seccion-productos::before,
.seccion-contacto-datos::before {
    content: "";
    position: absolute;
    top: 60px;
    right: -120px;
    width: 520px;
    height: 400px;
    background: url("assets/img/marca-agua.webp") center / contain no-repeat;
    opacity: 0.12;
    pointer-events: none;
}
.seccion-especialistas::before,
.seccion-maquinaria::before,
.seccion-contacto-datos::before {
    right: auto;
    left: -150px;
}
.seccion-soluciones > *,
.seccion-especialistas > *,
.seccion-iso > *,
.seccion-maquinaria > *,
.seccion-productos > *,
.seccion-contacto-datos > * {
    position: relative; /* por encima de la marca de agua */
}
/* En la ficha de máquina, "Otras máquinas" ya va sobre el fondo de la ficha. */
.fondo-maquina .seccion-maquinaria {
    overflow: visible;
    background: none;
}
.fondo-maquina .seccion-maquinaria::before {
    content: none;
}
/* Lo que era transparente pasa a blanco para destacar sobre el menta. */
.boton-saber-mas,
.seccion-contacto-datos .contacto-pildora {
    background: #fff;
}
.seccion-contacto-datos .contacto-pildora:hover {
    background: var(--menta-claro);
}
.campos input,
.campos select,
.campos textarea {
    background-color: #fff;
}
/* En la ficha, una segunda marca de agua abajo a la izquierda (la página es larga). */
.fondo-ficha::after {
    top: auto;
    right: auto;
    bottom: 220px;
    left: -160px;
    transform: rotate(-12deg);
}
/* Ficha de máquina: la marca de agua, por el lado izquierdo. */
.fondo-maquina::before {
    right: auto;
    left: -150px;
    top: 140px;
    opacity: 0.12; /* algo más visible que en carrito y ficha de producto (0.06) */
}
/* Sobre el fondo menta, lo que era menta claro pasa a blanco para no perderse. */
.fondo-maquina .ficha-maquina,
.fondo-maquina .seccion-maquinaria {
    position: relative; /* por encima de la marca de agua */
}
.fondo-maquina .entry-content .ficha-lista,
.fondo-maquina .ficha-modelo {
    background: #fff;
    box-shadow: 0 1px 2px rgba(4, 100, 70, 0.06), 0 12px 32px -8px rgba(4, 100, 70, 0.18);
}
.fondo-maquina .ficha-lista li::before {
    background-color: var(--menta-claro); /* el círculo del check, que era blanco */
}
/* Dentro de la tarjeta blanca de cada modelo, la lista sigue en menta claro con checks blancos. */
.fondo-maquina .ficha-modelo .ficha-lista {
    background: var(--menta-claro);
    box-shadow: none;
}
.fondo-maquina .ficha-modelo .ficha-lista li::before {
    background-color: #fff;
}
.fondo-maquina .ficha-volver {
    background: #fff;
}
.fondo-maquina .ficha-volver:hover,
.fondo-maquina .ficha-volver:focus-visible {
    background: var(--verde);
}
/* Sin hero: el espacio de arriba deja libre el menú fijo. */
.pagina-carrito {
    position: relative;
    padding-top: 96px;
}
/* Sobre el fondo menta, el carrito y su resumen van en paneles blancos. */
.pagina-carrito .wc-block-cart__main,
.pagina-carrito .wc-block-cart__sidebar {
    padding: 22px 24px 18px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(4, 100, 70, 0.06), 0 12px 32px -8px rgba(4, 100, 70, 0.18);
}
.carrito-titulo {
    margin: 0 0 28px;
    font-size: 30px;
    font-weight: 700;
    color: var(--verde);
}
/* En ancho (is-large) WooCommerce pone los paneles lado a lado con anchos en %; con los
   paneles con fondo hace falta un hueco real entre ellos. En estrecho van uno bajo otro. */
.pagina-carrito .wc-block-cart.is-large {
    flex-wrap: nowrap;
    gap: 24px;
}
.pagina-carrito .wc-block-cart.is-large .wc-block-cart__main {
    flex: 1 1 auto;
    width: auto;
}
.pagina-carrito .wc-block-cart.is-large .wc-block-cart__sidebar {
    flex: 0 0 34%;
    width: 34%;
}
.pagina-carrito .wc-block-cart:not(.is-large) .wc-block-cart__sidebar {
    margin-top: 20px;
}
/* Líneas del carrito */
.pagina-carrito .wc-block-cart-items {
    border-collapse: separate;
    border-spacing: 0;
}
.pagina-carrito .wc-block-cart-items__header th {
    padding-bottom: 12px;
    border-bottom: 2px solid var(--menta);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--texto-gris);
}
.pagina-carrito .wc-block-cart-items__row td {
    border-bottom: 1px solid var(--menta);
}
.pagina-carrito .wc-block-cart-item__image img {
    aspect-ratio: 1;
    object-fit: contain;
    padding: 6px;
    border-radius: 10px;
    background: var(--menta-claro);
}
.pagina-carrito .wc-block-components-product-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--verde);
    text-decoration: none;
}
.pagina-carrito .wc-block-components-product-name:hover {
    text-decoration: underline;
}
.pagina-carrito .wc-block-cart-item__total {
    font-weight: 700;
}
.pagina-carrito .wc-block-components-quantity-selector {
    border-radius: 8px;
}
.pagina-carrito .wc-block-components-quantity-selector::after {
    border-color: var(--menta) !important;
    border-radius: 8px !important;
}
.pagina-carrito .wc-block-components-quantity-selector__button {
    color: var(--verde);
}
.pagina-carrito .wc-block-cart-item__remove-link {
    color: #a12622 !important;
    font-size: 14px !important;
}
/* Resumen: panel blanco a la derecha */
.pagina-carrito .wc-block-cart__sidebar {
    align-self: flex-start;
}
.pagina-carrito .wc-block-cart__totals-title {
    margin: 0 0 8px !important;
    padding: 0 !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    text-align: left !important;
    text-transform: none !important;
    color: var(--verde);
}
.pagina-carrito .wc-block-components-totals-wrapper {
    border-color: var(--menta) !important;
}
.pagina-carrito .wc-block-components-totals-footer-item {
    font-size: 20px;
}
.pagina-carrito .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-weight: 700;
    color: var(--verde);
}
.pagina-carrito .wc-block-components-panel__button {
    color: var(--verde);
    font-weight: 600;
}
.pagina-carrito .wc-block-components-text-input input {
    border-color: var(--menta) !important;
    border-radius: 8px !important;
}
.pagina-carrito .wc-block-cart__submit-button,
.pagina-carrito .wc-block-components-totals-coupon__button {
    border: 0;
    border-radius: 8px;
    background: var(--verde);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}
.pagina-carrito .wc-block-cart__submit-button:hover,
.pagina-carrito .wc-block-components-totals-coupon__button:hover {
    background: var(--verde-oscuro);
    color: #fff;
}
/* Carrito vacío */
.carrito-vacio {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}
.carrito-vacio-icono {
    width: 108px;
    height: 108px;
    margin-bottom: 22px;
    border-radius: 50%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23057c57' d='M0 1.5A.5.5 0 0 1 .5 1H2a.5.5 0 0 1 .485.379L2.89 3H14.5a.5.5 0 0 1 .491.592l-1.5 8A.5.5 0 0 1 13 12H4a.5.5 0 0 1-.491-.408L2.01 3.607 1.61 2H.5a.5.5 0 0 1-.5-.5M5 12a2 2 0 1 0 0 4 2 2 0 0 0 0-4m7 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4'/%3E%3C/svg%3E") 50% 54% / 50px no-repeat;
    box-shadow: 0 0 0 10px rgba(5, 124, 87, 0.08), 0 12px 32px -8px rgba(4, 100, 70, 0.25);
}
.carrito-vacio-titulo {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 700;
    color: var(--verde);
}
.carrito-vacio-texto {
    margin: 0 0 24px;
    line-height: 1.5;
    color: var(--texto-gris);
}
.carrito-vacio-boton {
    padding: 12px 34px;
    font-size: 17px;
}
.carrito-novedades {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--menta);
}
.carrito-novedades .titulo-seccion {
    margin-bottom: 32px;
}

/* ===== Pie ===== */
.site-footer {
    background: var(--oscuro);
    color: #fff;
}
.footer-inner {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 10px 14px 48px;
}
.footer-logo {
    justify-self: start;
    width: 102px;
    margin-top: -12px;
    text-decoration: none;
}
.footer-logo .logo {
    width: 100%;
}
.footer-logo .logo-simbolo {
    width: 86px;
}
.footer-logo .logo-texto {
    margin-top: 12px;
    font-size: 19px;
    color: #fff;
}
.footer-centro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 34px;
    min-width: 0;
    max-width: 100%;
    padding-top: 6px;
}
.footer-navigation ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-navigation a {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
}
.footer-navigation a:hover {
    color: #8fd9b4;
}
.footer-distribuidor {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 17px;
    font-weight: 500;
}
.marcas-pie {
    gap: 30px;
}
.marcas-pie .marca-tesa img { width: 100px; }
.marcas-pie .marca-sealed-air img { width: 98px; }
.marcas-pie .marca-start img { width: 90px; }
.footer-contacto h2 {
    margin: 0 0 6px;
    padding-left: 30px;
    font-size: 20px;
    font-weight: 500;
    text-align: center;
}
.footer-contacto address {
    font-style: normal;
}
.footer-contacto ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-contacto li {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}
.footer-contacto .icono {
    justify-self: center;
    font-size: 19px;
}
.footer-contacto a {
    color: #fff;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
}
.footer-contacto a.footer-direccion {
    font-size: 14px;
    line-height: 1.25;
}
.footer-contacto a.footer-telefono {
    font-size: 17px;
}
.footer-legal {
    margin: 0;
    padding: 0 20px 4px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}
.footer-legal a {
    color: #fff;
    text-decoration: none;
}

/* ===== Contenido de páginas genéricas (textos legales, etc.) ===== */
.page .entry-content {
    max-width: 820px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.65;
}
.entry-content h2 {
    margin: 2em 0 0.6em;
    font-size: 22px;
    font-style: italic;
    color: var(--verde);
}
.entry-content h3 {
    margin: 1.6em 0 0.5em;
    font-size: 19px;
}
.entry-content ul {
    padding-left: 1.3em;
}
.entry-content li {
    margin-bottom: 0.4em;
}
.legal-fecha {
    color: var(--texto-gris);
    font-size: 15px;
    font-style: italic;
}
.entry-content .wp-block-table {
    margin: 1.2em 0;
    overflow-x: auto;
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 1.45;
}
.entry-content th,
.entry-content td {
    padding: 10px 12px;
    border: 1px solid var(--menta);
    text-align: left;
    vertical-align: top;
}
.entry-content th {
    background: var(--verde);
    color: #fff;
}
.entry-content tbody tr:nth-child(even) td {
    background: var(--menta-claro);
}

/* ===== Animaciones =====
   Se usan "translate" y "scale" (no "transform") para no pisar los transform de posicionamiento.
   Solo se aplican si el usuario no ha pedido reducir el movimiento. */
@media (prefers-reduced-motion: no-preference) {
    /* Entrada de la página: menú, contenido de las cabeceras y botones flotantes */
    @keyframes entrada-subir {
        from { opacity: 0; translate: 0 30px; }
        to   { opacity: 1; translate: none; }
    }
    @keyframes entrada-bajar {
        from { opacity: 0; translate: 0 -20px; }
        to   { opacity: 1; translate: none; }
    }
    @keyframes entrada-zoom {
        from { opacity: 0; scale: 0.8; }
        to   { opacity: 1; scale: 1; }
    }
    .site-header {
        animation: entrada-bajar 0.7s ease-out both;
    }
    .logo-hero {
        animation: entrada-zoom 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }
    .hero-inicio-titulo,
    .hero-empresa-titulo,
    .hero-degradado-titulo,
    .hero-simple-titulo,
    .tienda-hero-titulo {
        animation: entrada-subir 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
    }
    .tienda-hero-destacado {
        animation: entrada-subir 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
    }
    .franja-envio {
        animation: entrada-subir 0.6s ease-out 0.6s both;
    }
    .botones-flotantes {
        animation: entrada-zoom 0.5s ease-out 0.8s both;
    }

    /* Scroll: el JS añade .revelar a cada bloque y .visible cuando entra en pantalla */
    .revelar {
        opacity: 0;
        translate: 0 40px;
        transition:
            opacity 0.8s ease-out var(--retraso, 0ms),
            translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--retraso, 0ms),
            scale 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--retraso, 0ms);
    }
    /* Variantes: desde los lados o con zoom */
    .soluciones-texto.revelar,
    .diagrama-item-1.revelar,
    .diagrama-item-3.revelar,
    .iso-texto.revelar,
    .mapa.revelar {
        translate: -50px 0;
    }
    .soluciones-imagen.revelar,
    .diagrama-item-2.revelar,
    .diagrama-item-4.revelar,
    .contacto-lista > .revelar {
        translate: 50px 0;
    }
    .diagrama-logo.revelar,
    .logo-medida.revelar,
    .iso-sello.revelar,
    .marcas-grandes > .revelar,
    .equipo > .revelar {
        translate: none;
        scale: 0.8;
    }
    .revelar.visible {
        opacity: 1;
        translate: none;
        scale: 1;
    }
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
    .soluciones {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    /* Filas centradas (flex) en vez de rejilla: la tarjeta que queda sola en la última fila
       va al centro, no pegada a la izquierda. Las de máquinas tienen su propio diseño. */
    .rejilla-tarjetas:not(.rejilla-maquinas),
    .woocommerce ul.products {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 40px 30px;
    }
    .rejilla-tarjetas:not(.rejilla-maquinas) > *,
    .woocommerce ul.products > li.product {
        flex: 0 0 250px;
    }
    /* Texto justificado en columna estrecha deja huecos grandes entre palabras. */
    .soluciones-texto p {
        text-align: left;
    }
    /* Los saltos de línea de las ventajas son para escritorio; aquí el texto se reparte solo. */
    .ventajas li br {
        display: none;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 30px;
        padding: 36px 20px 20px;
    }
    .footer-logo {
        justify-self: center;
    }
    .footer-contacto h2 {
        padding-left: 0;
    }
}
/* Por debajo del ancho del diseño, el diagrama pasa a una columna. */
@media (max-width: 900px) {
    .diagrama {
        left: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        width: auto;
        aspect-ratio: auto;
        margin: 20px 0 0;
        padding-bottom: 20px;
        transform: none;
    }
    .diagrama-item {
        width: 230px;
    }
    .diagrama-logo,
    .diagrama-item {
        position: relative;
        left: auto;
        top: auto;
    }
    .diagrama-logo {
        width: 140px;
        margin-bottom: 20px;
        /* Sin el halo gris, la sombra evita que la parte blanca se pierda sobre el fondo blanco. */
        filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.8)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    }
    .diagrama-flechas,
    .diagrama-halo {
        display: none;
    }
}
@media (max-width: 760px) {
    /* Menú hamburguesa */
    .site-header {
        justify-content: flex-end;
    }
    .nav-pildora {
        width: auto;
        height: auto;
        padding: 0;
        background: transparent;
    }
    .menu-toggle {
        display: flex;
        align-items: center;
        gap: 10px;
        height: 42px;
        padding: 0 18px 0 14px;
        border: 0;
        border-radius: 21px;
        background: rgba(42, 42, 42, 0.85);
        color: #fff;
        font-family: inherit;
        font-size: 17px;
        font-weight: 500;
        cursor: pointer;
    }
    .menu-toggle:focus-visible {
        outline: 3px solid #8fd9b4;
        outline-offset: 2px;
    }
    .menu-toggle-icono {
        position: relative;
        width: 20px;
        height: 14px;
    }
    .menu-toggle-icono span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform 0.25s, opacity 0.2s, top 0.25s;
    }
    .menu-toggle-icono span:nth-child(1) { top: 0; }
    .menu-toggle-icono span:nth-child(2) { top: 6px; }
    .menu-toggle-icono span:nth-child(3) { top: 12px; }
    .menu-abierto .menu-toggle-icono span:nth-child(1) { top: 6px; transform: rotate(45deg); }
    .menu-abierto .menu-toggle-icono span:nth-child(2) { opacity: 0; }
    .menu-abierto .menu-toggle-icono span:nth-child(3) { top: 6px; transform: rotate(-45deg); }
    .main-navigation {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        width: min(260px, calc(100vw - 32px));
        padding: 8px;
        border-radius: 18px;
        background: rgba(42, 42, 42, 0.96);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    }
    .menu-abierto .main-navigation {
        visibility: visible;
        opacity: 1;
        transform: none;
    }
    .main-navigation ul {
        flex-direction: column;
        gap: 2px;
    }
    .main-navigation a {
        padding: 12px 16px;
        border-radius: 12px;
        font-size: 18px;
    }
    .main-navigation a:hover,
    .main-navigation a:focus-visible {
        background: rgba(255, 255, 255, 0.1);
    }
    .main-navigation .current-menu-item > a,
    .main-navigation .current_page_item > a {
        color: #8fd9b4;
    }
    .botones-flotantes {
        right: 16px;
        bottom: 16px;
        bottom: calc(16px + env(safe-area-inset-bottom, 0px));
        gap: 12px;
    }
    .boton-flotante {
        width: 54px;
        height: 54px;
        font-size: 23px;
    }
    /* Páginas legales en móvil: texto centrado y 16 px de margen lateral */
    .pagina-legal .site-main .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .pagina-legal .entry-content {
        text-align: center;
    }
    .pagina-legal .entry-content ul {
        padding-left: 0;
        list-style-position: inside;
    }
    /* Las tablas no caben en móvil: cada fila pasa a ser una tarjeta apilada */
    .pagina-legal .entry-content thead {
        display: none;
    }
    .pagina-legal .entry-content table,
    .pagina-legal .entry-content tbody,
    .pagina-legal .entry-content tr,
    .pagina-legal .entry-content td {
        display: block;
        width: 100%;
    }
    .pagina-legal .entry-content tr {
        margin-bottom: 10px;
        border: 1px solid var(--menta);
        border-radius: 8px;
        overflow: hidden;
    }
    .pagina-legal .entry-content td {
        padding: 6px 10px;
        border: 0;
        text-align: center;
        background: transparent !important;
    }
    .pagina-legal .entry-content td:first-child {
        background: var(--verde) !important;
        color: #fff;
        font-weight: 700;
        word-break: break-word;
    }
    .pagina-legal .entry-content td:last-child:not(:first-child) {
        font-style: italic;
        color: var(--texto-gris);
    }
    /* En móvil todos los textos van centrados */
    .soluciones-texto p,
    .iso-texto,
    .dos-columnas .texto {
        text-align: center;
    }
    .ventajas li {
        flex-direction: column;
        text-align: center;
    }
    .ventajas li br {
        display: none;
    }
    /* "Calidad de marcas…": algo más pequeño y con las estrellas pegadas al texto. */
    .calidad {
        gap: 4px;
        padding: 0 8px;
        font-size: 17px;
    }
    .soluciones,
    .ventajas,
    .iso,
    .campos,
    .contacto-datos,
    .dos-columnas {
        grid-template-columns: 1fr;
    }
    .soluciones-imagen {
        margin-top: 0;
    }
    :root {
        --hero-titulo: 28px;
    }
    .logo-hero {
        width: 190px;
    }
    .logo-hero .logo-texto {
        font-size: 32px;
    }
    /* Sombra negra para que la parte blanca del símbolo no se pierda sobre la foto. */
    .logo-hero .logo-simbolo {
        filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.8)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
    }
    .hero-degradado-titulo,
    .hero-empresa-titulo,
    .hero-simple-titulo,
    .tienda-hero-titulo {
        padding: 0 20px;
    }
    /* En móvil el título se separa más del borde inferior (barra del navegador, botones flotantes). */
    .hero-empresa,
    .hero-degradado {
        padding-bottom: 160px;
    }
    .tienda-hero-titulo {
        bottom: 160px;
    }
    .titulo-seccion {
        font-size: 20px;
    }
    .marcas-grandes {
        flex-wrap: wrap;
        gap: 30px 50px;
    }
    .iso {
        padding: 28px 24px;
    }
    .iso-sello {
        height: 220px;
    }
    .tienda-hero {
        min-height: max(100svh, 640px);
    }
    .tienda-hero[style] {
        background-size: cover;
        background-position: 72% center;
    }
    .tienda-hero::before {
        background: linear-gradient(to bottom, rgba(7, 124, 85, 0.85) 0%, rgba(255, 255, 255, 0.4) 60%, rgba(255, 255, 255, 0.9) 100%);
    }
    .tienda-hero-destacado {
        left: 50%;
        top: 80px;
        transform: translateX(-50%);
    }
    .contador-productos {
        padding-left: 0;
        text-align: center;
    }
    .dos-tarjetas {
        gap: 24px;
    }
    .contacto-datos {
        gap: 30px;
    }
    .mapa {
        height: 320px;
    }
    .contacto-lista {
        margin-top: 0;
        padding-left: 0;
    }
    .contacto-pildora {
        width: 100%;
        max-width: 302px;
    }
    .campos {
        gap: 18px;
    }
    .campo-ancho {
        margin-top: 0;
    }
    .footer-distribuidor {
        flex-direction: column;
        gap: 14px;
    }
    .marcas-pie {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px 18px;
    }
    .marcas-pie .marca-tesa img { width: 84px; }
    .marcas-pie .marca-sealed-air img { width: 82px; }
    .marcas-pie .marca-start img { width: 76px; }
    /* En móvil, los bloques que entran desde los lados lo hacen desde abajo (no se cortan por el borde). */
    .soluciones-texto.revelar:not(.visible),
    .soluciones-imagen.revelar:not(.visible),
    .diagrama-item.revelar:not(.visible),
    .iso-texto.revelar:not(.visible),
    .mapa.revelar:not(.visible),
    .contacto-lista > .revelar:not(.visible) {
        translate: 0 40px;
    }
    .footer-navigation a {
        font-size: 17px;
    }
}
