/*
Theme Name: Refrigeracion VC
Theme URI: https://insumosrefrigeracionvc.online
Author: Agencia Crecienta
Author URI: https://crecienta.com.ar
Description: Tema propio para Refrigeracion VC. WordPress con codigo propio, sin Elementor. WooCommerce + MercadoPago.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: refrigeracion-vc
*/

:root {
    --ink: #09131f;
    --ink-2: #162537;
    --body: #314052;
    --muted: #637083;
    --line: #d9e2ec;
    --soft: #f3f7fb;
    --panel: #ffffff;
    --blue: #115da8;
    --blue-dark: #0a3768;
    --blue-soft: #e7f1fb;
    --green: #16936b;
    --green-soft: #e8f7f1;
    --amber: #f7b731;
    --red: #d92d20;
    --shadow-sm: 0 10px 28px rgba(9, 19, 31, 0.08);
    --shadow-md: 0 18px 44px rgba(9, 19, 31, 0.14);
    --radius: 8px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--body);
    background: #fff;
    text-rendering: optimizeLegibility;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--blue);
    text-decoration: none;
}

a:hover {
    color: var(--blue-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--ink);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

h1 {
    font-size: clamp(2.35rem, 5vw, 4.8rem);
    max-width: 920px;
}

h2 {
    font-size: clamp(1.85rem, 3.2vw, 3rem);
}

h3 {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

p {
    max-width: 68ch;
}

.container {
    width: min(100% - 40px, var(--container));
    margin-inline: auto;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 14px;
    color: var(--green);
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.section-kicker::before {
    content: "";
    width: 26px;
    height: 2px;
    background: currentColor;
}

.section-heading {
    margin-bottom: 34px;
    text-align: center;
}

.section-heading .section-kicker {
    margin-inline: auto;
}

.section-heading.compact {
    margin-bottom: 24px;
}

.section-heading.with-action {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
}

.section-heading.with-action .section-kicker {
    margin-inline: 0;
}

.link-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
}

.link-action::after {
    content: "->";
    color: var(--blue);
}

/* Botones */
.btn,
button,
input[type="submit"],
.woocommerce button.button,
.woocommerce a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn::after,
.woocommerce a.button::after {
    content: "->";
    font-weight: 900;
}

.btn-primary,
input[type="submit"],
.woocommerce button.button,
.woocommerce a.button {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 12px 26px rgba(17, 93, 168, 0.24);
}

.btn-primary:hover,
input[type="submit"]:hover,
.woocommerce button.button:hover,
.woocommerce a.button:hover {
    background: var(--blue-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #fff;
    color: var(--ink);
    border-color: rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background: var(--amber);
    color: var(--ink);
    transform: translateY(-2px);
}

.btn-outline {
    background: #fff;
    color: var(--blue);
    border-color: var(--line);
}

.btn-outline:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
    transform: translateY(-2px);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 1px 0 rgba(9, 19, 31, 0.08);
    backdrop-filter: blur(14px);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-top {
    background: var(--ink);
    color: #dbeafe;
    padding: 8px 0;
    font-size: 0.82rem;
    font-weight: 700;
    text-align: center;
}

.header-main {
    padding: 14px 0;
}

.header-inner {
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto auto;
    align-items: center;
    gap: 18px;
}

.site-logo img {
    width: auto;
    height: 58px;
}

.header-search form,
.woocommerce-product-search,
.search-form {
    display: flex;
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.header-search input[type="search"],
.hero-search input[type="search"],
.search-field {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 16px;
    color: var(--ink);
    font: inherit;
    font-size: 0.94rem;
    background: transparent;
}

.header-search button,
.header-search input[type="submit"],
.hero-search button,
.hero-search input[type="submit"],
.search-submit {
    min-height: 46px;
    border-radius: 0;
    box-shadow: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-account,
.header-cart,
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: #fff;
    font-size: 1.25rem;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.header-account:hover,
.header-cart:hover,
.menu-toggle:hover {
    color: var(--blue);
    border-color: rgba(17, 93, 168, 0.36);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.header-cart {
    position: relative;
}

.header-cart .cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
}

.menu-toggle {
    display: none;
}

.main-nav {
    background: var(--blue);
}

.main-nav ul {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    width: min(100% - 40px, var(--container));
    margin: 0 auto;
    list-style: none;
}

.main-nav li {
    position: relative;
}

.main-nav li a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 15px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.main-nav li a:hover,
.main-nav li:hover>a {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.main-nav li ul {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    width: 260px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius) var(--radius);
    background: #fff;
    box-shadow: var(--shadow-md);
}

.main-nav li:hover>ul {
    display: block;
}

.main-nav li ul a {
    min-height: 42px;
    border-radius: 6px;
    color: var(--ink);
}

.main-nav li ul a:hover {
    background: var(--blue-soft);
    color: var(--blue-dark);
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    padding: 110px 0 130px;
    background-color: #09131f;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
}

/* Overlay doble: oscurecimiento general + degradado hacia la izquierda para que el texto resalte */
.hero-overlay {
    position: absolute;
    inset: 0;
    /* Capa 1: oscurecimiento fuerte desde la izquierda — zona del texto */
    background:
        linear-gradient(100deg,
            rgba(4, 10, 20, 0.95) 0%,
            rgba(5, 15, 30, 0.90) 30%,
            rgba(6, 18, 36, 0.75) 55%,
            rgba(8, 22, 44, 0.40) 75%,
            rgba(8, 22, 44, 0.10) 100%
        ),
        /* Capa 2: viñeta radial — oscurece bordes superior e inferior */
        radial-gradient(ellipse 120% 80% at 55% 50%,
            transparent 20%,
            rgba(2, 6, 14, 0.55) 70%,
            rgba(2, 6, 14, 0.80) 100%
        ),
        /* Capa 3: sombra desde abajo */
        linear-gradient(0deg, rgba(0, 0, 0, 0.60) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Grilla sutil para dar textura tecnica */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    pointer-events: none;
}

.hero-layout {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 760px;
}

.hero-copy {
    width: 100%;
}

.hero .section-kicker {
    color: #8fe6c6;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 22px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    margin-bottom: 24px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.hero-search {
    width: min(100%, 620px);
    margin: 28px 0 20px;
}

.hero-search form {
    display: flex;
    min-height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.hero-search input[type="search"] {
    padding-inline: 18px;
    font-size: 1rem;
}

.hero-search button,
.hero-search input[type="submit"] {
    min-height: 58px;
    padding-inline: 22px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: min(100%, 560px);
    margin-top: 40px;
}

.hero-metrics div {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.25s;
}

.hero-metrics div:hover {
    background: rgba(255, 255, 255, 0.15);
}

.hero-metrics strong {
    display: block;
    color: #fff;
    font-size: 1.55rem;
    line-height: 1;
}

.hero-metrics span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.77rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Benefits */
.benefits {
    margin-top: -58px;
    padding-bottom: 72px;
    background: linear-gradient(180deg, transparent 0, transparent 58px, var(--soft) 58px, var(--soft) 100%);
}

.benefits-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.benefit-item {
    min-height: 210px;
    padding: 24px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.benefit-item img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    margin-bottom: 18px;
}

.benefit-item h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.benefit-item p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Categories */
.section-categories {
    padding: 96px 0;
    background:
        linear-gradient(180deg, #fff 0%, #f7fbff 100%);
}

.section-categories .section-heading {
    max-width: 760px;
    margin-inline: auto;
}

.section-categories .section-heading p {
    margin: 14px auto 0;
    color: var(--muted);
    font-size: 1rem;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
    grid-template-rows: repeat(2, minmax(250px, 1fr));
    gap: 18px;
    min-height: 610px;
}

.category-card {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: calc(var(--radius) + 2px);
    background: var(--ink);
    box-shadow: 0 18px 54px rgba(9, 19, 31, 0.16);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-card:first-child {
    grid-row: 1 / span 2;
}

.category-card:hover {
    border-color: rgba(255, 255, 255, 0.78);
    box-shadow: 0 24px 70px rgba(9, 19, 31, 0.24);
    transform: translateY(-5px);
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(5, 11, 19, 0.08) 0%, rgba(5, 11, 19, 0.68) 58%, rgba(5, 11, 19, 0.92) 100%),
        linear-gradient(90deg, rgba(17, 93, 168, 0.68), rgba(22, 147, 107, 0.08));
}

.category-card:first-child::after {
    background:
        linear-gradient(180deg, rgba(5, 11, 19, 0.04) 0%, rgba(5, 11, 19, 0.56) 56%, rgba(5, 11, 19, 0.94) 100%),
        linear-gradient(90deg, rgba(17, 93, 168, 0.74), rgba(9, 19, 31, 0.08));
}

.category-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background: #0b1725;
}

.category-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.36s ease, filter 0.36s ease;
}

.category-card:hover .category-media img {
    filter: saturate(1.08) contrast(1.04);
    transform: scale(1.06);
}

.category-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
    min-height: 100%;
    padding: 28px;
    color: rgba(255, 255, 255, 0.84);
}

.category-content::before {
    content: "Linea tecnica";
    display: inline-flex;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    backdrop-filter: blur(10px);
}

.category-card:nth-child(2) .category-content::before {
    content: "Precision";
}

.category-card:nth-child(3) .category-content::before {
    content: "Insumos clave";
}

.category-content h3 {
    max-width: 11ch;
    margin-bottom: 12px;
    color: #fff;
    font-size: clamp(1.35rem, 2.2vw, 2.1rem);
    text-wrap: balance;
}

.category-content p {
    max-width: 38ch;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
}

.category-content .btn {
    margin-top: auto;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: none;
}

.category-content .btn:hover {
    background: var(--amber);
    color: var(--ink);
    border-color: var(--amber);
}

/* Empresa / video */
.section-empresa {
    padding: 92px 0;
    background:
        linear-gradient(180deg, #0b1725 0%, #0f2540 100%);
    color: rgba(255, 255, 255, 0.78);
}

.empresa-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    align-items: center;
    gap: 64px;
}

.empresa-text h2 {
    color: #fff;
    margin-bottom: 20px;
}

.empresa-text p {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 16px;
}

.empresa-contact {
    display: grid;
    gap: 10px;
    margin-top: 26px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.06);
}

.empresa-contact p {
    margin: 0;
}

.empresa-contact strong {
    color: #fff;
}

.empresa-video {
    display: grid;
    justify-items: center;
    gap: 14px;
}

.video-device {
    position: relative;
    width: min(100%, 360px);
    aspect-ratio: 9 / 16;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 34px;
    background: #050b13;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.video-device-bar {
    position: absolute;
    z-index: 2;
    top: 13px;
    left: 50%;
    width: 86px;
    height: 18px;
    border-radius: 0 0 14px 14px;
    background: #050b13;
    transform: translateX(-50%);
}

.video-device video {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: #000;
    object-fit: cover;
}

.video-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100%, 360px);
    gap: 12px;
    color: #fff;
    font-size: 0.9rem;
}

.video-caption span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Marcas */
.section-marcas {
    padding: 56px 0;
    overflow: hidden;
    background: #fff;
}

.marcas-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 6px 0 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.marcas-slider::-webkit-scrollbar {
    display: none;
}

.marca-item {
    display: grid;
    place-items: center;
    flex: 0 0 154px;
    height: 98px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    scroll-snap-align: center;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.marca-item:hover {
    border-color: rgba(17, 93, 168, 0.32);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.marca-item img {
    width: 104px;
    height: 66px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.72;
    transition: filter 0.18s ease, opacity 0.18s ease;
}

.marca-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Ofertas */
.section-ofertas {
    padding: 86px 0;
    background: var(--soft);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
    border-color: rgba(17, 93, 168, 0.28);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.badge-oferta {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.product-image-link {
    display: grid;
    place-items: center;
    min-height: 210px;
    padding: 22px;
    background: #fff;
}

.product-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.product-card:hover img {
    transform: scale(1.04);
}

.product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
    border-top: 1px solid var(--line);
}

.product-cat {
    min-height: 1.1em;
    margin-bottom: 8px;
    color: var(--green);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.product-card h3 {
    margin-bottom: 14px;
    font-size: 0.95rem;
    line-height: 1.35;
}

.product-card h3 a {
    color: var(--ink);
}

.product-card h3 a:hover {
    color: var(--blue);
}

.product-price {
    margin-top: auto;
    color: var(--blue);
    font-size: 1.05rem;
    font-weight: 900;
}

.product-price del {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.empty-state {
    max-width: none;
    padding: 28px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
}

/* CTA */
.section-cta-tecnico {
    padding: 78px 0;
    background:
        linear-gradient(135deg, rgba(17, 93, 168, 0.94), rgba(22, 147, 107, 0.92)),
        var(--blue);
    color: #fff;
    text-align: center;
}

.section-cta-tecnico .section-kicker {
    color: #d9fff1;
    margin-inline: auto;
}

.section-cta-tecnico h2 {
    color: #fff;
    margin-bottom: 12px;
}

.section-cta-tecnico p {
    margin: 0 auto 26px;
    color: rgba(255, 255, 255, 0.82);
}

/* Footer */
.site-footer {
    padding: 58px 0 24px;
    background: var(--ink);
    color: #c6d0dc;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 1fr;
    gap: 32px;
    margin-bottom: 34px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 14px;
    font-size: 1rem;
}

.footer-col p,
.footer-col a {
    display: block;
    color: #c6d0dc;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: #fff;
}

.footer-col .btn {
    display: inline-flex;
    margin-top: 12px;
    color: #fff;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #96a6b8;
    font-size: 0.82rem;
    text-align: center;
}

.footer-bottom p {
    max-width: none;
}

.footer-bottom a {
    color: #fff;
}

/* WooCommerce – Layout base del catálogo */
.woocommerce-main {
    padding: 48px 0 64px;
}

.woocommerce-products-wrap {
    width: 100%;
}

/* Header de categoría */
.woocommerce-products-header {
    padding: 48px 0 0;
    background: var(--soft, #f4f7fb);
    border-bottom: 1px solid var(--line, #e8ecf0);
}

.woocommerce-products-header .page-title {
    margin-bottom: 6px;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.woocommerce-products-header__description {
    margin-bottom: 28px;
    color: var(--muted, #5c6570);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Result count + ordering */
.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count {
    margin-bottom: 18px;
    font-size: 0.92rem;
    color: var(--muted, #5c6570);
}

.woocommerce-ordering {
    margin-bottom: 22px !important;
}

.woocommerce-ordering select {
    padding: 8px 12px;
    border: 1px solid var(--line, #e8ecf0);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
    background: #fff;
}

/* Grilla de productos — limpiada, sin floats */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-align: left;
}

/* Card de producto (content-product.php) */
.product-card {
    display: flex;
    flex-direction: column;
    min-height: 380px;
    overflow: hidden;
    border: 1px solid var(--line, #e8ecf0);
    border-radius: var(--radius, 10px);
    background: #fff;
    box-shadow: var(--shadow-sm, 0 1px 4px rgba(0, 0, 0, 0.05));
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
    border-color: rgba(17, 93, 168, 0.28);
    box-shadow: var(--shadow-md, 0 6px 20px rgba(0, 0, 0, 0.1));
    transform: translateY(-3px);
}

.product-image-link {
    display: grid;
    place-items: center;
    min-height: 210px;
    padding: 22px;
    background: #fff;
}

.product-image-link img {
    width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.product-card .product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 18px 20px;
    border-top: 1px solid var(--line, #e8ecf0);
}

.product-card .product-cat {
    margin-bottom: 6px;
    color: var(--green, #267a48);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.product-card .product-title {
    margin-bottom: 12px;
    font-size: 0.92rem;
    line-height: 1.35;
    font-weight: 600;
}

.product-card .product-title a {
    color: var(--ink, #1a1a1a);
}

.product-card .product-title a:hover {
    color: var(--blue, #115DA8);
}

.product-card .product-price {
    margin-top: auto;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--blue, #115DA8);
}

.product-card .product-price del {
    display: block;
    margin-bottom: 2px;
    color: var(--muted, #5c6570);
    font-size: 0.8rem;
    font-weight: 600;
}

.product-card .product-price ins {
    text-decoration: none;
    color: inherit;
}

/* Paginación */
.woocommerce nav.woocommerce-pagination {
    margin-top: 40px;
}

.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 6px;
    border: none !important;
    padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line, #e8ecf0) !important;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.woocommerce nav.woocommerce-pagination ul li a {
    background: #fff;
    color: var(--ink, #1a1a1a);
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: var(--blue, #115DA8);
    border-color: var(--blue, #115DA8) !important;
    color: #fff;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--blue, #115DA8);
    border-color: var(--blue, #115DA8) !important;
    color: #fff;
}

/* Estado vacío */
.woocommerce-info.empty-state {
    padding: 48px 24px;
    border: 1px dashed var(--line, #e8ecf0);
    border-radius: var(--radius, 10px);
    background: var(--soft, #f4f7fb);
    text-align: center;
}

.woocommerce-info.empty-state p {
    margin-bottom: 20px;
    color: var(--muted, #5c6570);
    font-size: 1.05rem;
}

/* Responsive */
@media (max-width: 1080px) {
    .hero {
        min-height: auto;
        padding: 80px 0 100px;
    }

    .hero-layout {
        max-width: 100%;
    }

    .benefits-grid,
    .products-grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .categories-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        min-height: 0;
    }

    .category-card {
        min-height: 330px;
    }

    .category-card:first-child {
        grid-row: auto;
    }
}

@media (max-width: 860px) {
    .header-inner {
        grid-template-columns: auto 1fr auto auto;
    }

    .header-search {
        grid-column: 1 / -1;
        order: 2;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-nav ul {
        display: none;
        width: 100%;
        padding: 8px 20px 16px;
    }

    .main-nav.menu-open ul {
        display: flex;
        flex-direction: column;
    }

    .main-nav li a {
        min-height: 44px;
        border-radius: 6px;
    }

    .main-nav li ul {
        position: static;
        display: none;
        width: auto;
        margin-left: 12px;
        box-shadow: none;
    }

    .main-nav li:hover>ul,
    .main-nav li:focus-within>ul {
        display: block;
    }

    .empresa-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-heading.with-action {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {

    .container,
    .woocommerce-main,
    .main-nav ul {
        width: min(100% - 28px, var(--container));
    }

    .hero {
        padding: 48px 0 76px;
    }

    .hero h1 {
        font-size: 2.35rem;
    }

    .hero-metrics,
    .benefits-grid,
    .products-grid,
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .hero-search form {
        flex-direction: column;
    }

    .hero-search input[type="search"] {
        min-height: 52px;
    }

    .hero-search button,
    .hero-search input[type="submit"] {
        width: 100%;
    }

    .hero {
        padding: 60px 0 80px;
    }

    .hero-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .benefits {
        margin-top: -36px;
    }

    .category-card {
        min-height: 310px;
    }

    .category-content {
        padding: 24px;
    }

    .category-content h3 {
        max-width: 12ch;
    }

    .section-categories,
    .section-empresa,
    .section-ofertas {
        padding: 64px 0;
    }

    .video-device {
        width: min(100%, 320px);
    }
}

@media (max-width: 420px) {
    .header-inner {
        gap: 10px;
    }

    .site-logo img {
        height: 48px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-account,
    .header-cart,
    .menu-toggle {
        width: 40px;
        height: 40px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-actions .btn {
        width: 100%;
    }
}
