@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../fonts/PlusJakartaSans-Variable.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

:root {
    /* ===== DESIGN SYSTEM - DISTRIBUIDORA IMPERIAL ===== */

    /* Color primario: rojo solo como acento */
    --color-primary: #b71c1c;
    --color-primary-dark: #8e1414;
    --color-primary-soft: rgba(183, 28, 28, 0.12);

    /* Colores base */
    --color-black: #0a0a0a;
    --color-dark: #111111;
    --color-dark-secondary: #1a1a1a;
    --color-gray-900: #222222;
    --color-gray-700: #555555;
    --color-gray-500: #888888;
    --color-gray-300: #cccccc;
    --color-gray-100: #f5f5f5;
    --color-white: #ffffff;

    /* Bordes sobre fondo claro */
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-strong: rgba(0, 0, 0, 0.16);

    /* Bordes sobre bandas oscuras (header/nav) */
    --color-border-dark: rgba(255, 255, 255, 0.1);

    /* Tipografía */
    --font-primary: "Plus Jakarta Sans", sans-serif;
    --font-secondary: "Plus Jakarta Sans", sans-serif;

    --font-size-xs: 0.75rem; /* 12px */
    --font-size-sm: 0.875rem; /* 14px */
    --font-size-base: 1rem;
    --font-size-lg: 1.5rem; /* 24px */
    --font-size-xl: 1.8rem;
    --font-size-xxl: 2.75rem; /* 48px */

    /* Altura del header (logo 2.75rem + padding 0.75rem x2) */
    --header-height: 4.25rem;

    /* Espaciado */
    --section-padding: 5rem;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;

    /* Border radius (radio principal: 1rem) */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 2rem;

    /* ===== ALIAS LEGACY (componentes heredados) ===== */
    /* ATENCIÓN: estos aliases existen por compatibilidad con componentes del template base.
       No usarlos en código nuevo. Usar las variables --color-* directamente. */
    --primary-color: var(--color-gray-700); /* engañoso: apunta a gris, no al rojo */
    --secondary-color: var(--color-primary);
    --secondary-dark: var(--color-primary-dark);
    --secondary-light: var(--color-gray-100);

    --neutral-dark: var(--color-dark);

    --text-color: var(--color-gray-900);
    --white: var(--color-white);
    --brand-yellow: var(--color-primary); /* engañoso: es rojo #b71c1c, no amarillo */

    --gray-light: var(--color-gray-100);

    --gray-100: #f2f2f2;
    --gray-200: #e1e1e1;
    --gray-300: #c7c7c7;
    --gray-400: #9a9a9a;
    --gray-500: #6e6e6e;
    --gray-600: #4a4a4a;
    --gray-700: #2e2e2e;
    --gray-800: #1e1e1e;
    --gray-900: #121212;

    --green-whatsapp: #16a34b;
    --green-whatsapp-dark: #12813b;
    --red: var(--color-primary);

    --filter-primary: brightness(0) saturate(100%) invert(23%) sepia(0%)
        saturate(5340%) hue-rotate(329deg) brightness(91%) contrast(86%);
    --filter-secondary: brightness(0) saturate(100%) invert(14%) sepia(71%)
        saturate(4456%) hue-rotate(352deg) brightness(89%) contrast(96%);

    --switch-width: 56px;
    --switch-height: 32px;
    --switch-padding: 4px;
    --knob-size: calc(var(--switch-height) - (var(--switch-padding) * 2));
    --transition: 220ms cubic-bezier(0.2, 0.9, 0.3, 1);

    /* Safe areas (notch / home indicator) */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);

    /* Touch targets mínimos (WCAG 2.5.5) */
    --touch-min: 44px;
    --touch-comfortable: 48px;
}

*,
*::before,
*::after {
    font-family: var(--font-primary);
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    box-sizing: border-box;
}

*:focus-visible {
    outline: 0.125rem solid var(--color-primary);
    outline-offset: 0.1875rem;
}

body {
    background-color: var(--color-white);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-weight: 700;
    color: var(--color-dark);
}

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

img {
    max-width: 100%;
    height: auto;
}

.small,
small {
    font-size: 0.875rem;
}

.bodyPag.scrollnone {
    overflow: hidden;
}

/* elimina flechitas del input tipo numero/cantidad */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}

/*===== INICIO DESIGN SYSTEM IMPERIAL =====*/

/* Contenedor global */
.container-custom {
    width: 100%;
    max-width: 80.5rem; /* 1400px */
    margin-inline: auto;
    padding-inline: 1rem;
}

/* Padding vertical global de secciones */
.section-padding {
    padding-block: var(--section-padding);
}

/* Header universal de secciones */
.section-header {
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-dark);
    margin-bottom: 0;
}

.section-header h2::after {
    content: "";
    display: block;
    width: 3rem;
    height: 0.25rem;
    margin-top: var(--space-sm);
    background-color: var(--color-primary);
    border-radius: var(--radius-sm);
}

.section-header--center {
    text-align: center;
}

.section-header--center h2::after {
    margin-inline: auto;
}

/* Sistema de cards */
.card-custom {
    background-color: var(--color-white);
    border: 0.0625rem solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    transition: border-color 0.3s ease, transform 0.3s ease,
        box-shadow 0.3s ease;
}

.card-custom:hover {
    border-color: var(--color-border-strong);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.06);
}

/* Sistema de botones */
.btn-primary-custom,
.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    min-height: var(--touch-min);
    padding: 0.75rem var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    min-height: 48px;
    transition: background-color 0.3s ease, border-color 0.3s ease,
        color 0.3s ease;
}

.btn-primary-custom {
    background-color: var(--color-black);
    border: 0.125rem solid var(--color-primary);
    color: var(--color-white);
}

.btn-primary-custom:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-secondary-custom {
    background-color: transparent;
    border: 0.0625rem solid var(--color-border-strong);
    color: var(--color-gray-900);
}

.btn-secondary-custom:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Logo tipográfico (placeholder hasta tener logo definitivo) */
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-logo::before {
    content: "";
    width: 0.375rem;
    align-self: stretch;
    background-color: var(--color-primary);
    border-radius: var(--radius-sm);
}

.brand-logo-text {
    display: flex;
    flex-direction: column;
}

.brand-logo-top {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.38em;
    color: var(--color-gray-700);
    text-transform: uppercase;
}

.brand-logo-name {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.1;
    color: var(--color-dark);
    text-transform: uppercase;
}

/* Superficies: fondo claro predominante, oscuro solo en bandas de acento */
.surface-muted {
    background-color: var(--color-gray-100);
}

.surface-dark {
    background-color: var(--color-dark);
}

/*===== FIN DESIGN SYSTEM IMPERIAL =====*/

/*===== INICIO UTILITARIOS =====*/

.breadcrumb-item,
.breadcrumb-item a {
    font-size: var(--font-size-sm);
}

.breadcrumb-item a {
    transition: all 0.3s;
}

.breadcrumb-item a:hover {
    color: var(--secondary-dark);
}

.main-padding {
    padding-top: 2rem;
    padding-bottom: 6rem;
}

.heading-simple {
    padding: 2rem 0;
    margin-bottom: 4rem;
}

.title-simple {
    font-size: 2.5rem;
    margin-bottom: 0;
}

.page-padding {
    padding-bottom: 6rem;
}

.padding-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.padding-section-first {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.padding-section-last {
    padding-top: 1rem;
    padding-bottom: 3rem;
}

.margin-section {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.page-title {
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: var(--font-size-xxl);
    line-height: 1.2;
    letter-spacing: 0.05rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.hero-section {
    overflow: hidden;
}

.hero-container {
    position: relative;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    overflow: hidden;
    margin-bottom: 4rem;
}

.hero-container:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-image {
    width: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    left: 50%;
    top: 50%;
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.05rem;
    line-height: 1.3;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: var(--font-size-xxl);
    font-weight: 600;
    margin-bottom: 0;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    max-width: 700px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

.heading-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    margin-left: auto;
    margin-right: auto;
    max-width: 56.25rem;
    text-align: center;
}

.section-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.section-image {
    position: absolute;
    top: -12px;
    right: 12px;
    width: 30px;
    height: auto;
    animation: floatSide 4s ease-in-out infinite;
    will-change: transform;
}

@keyframes floatSide {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-8px);
    }
    100% {
        transform: translateX(0);
    }
}

.section-tag {
    border-radius: 2rem;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.2;
    width: fit-content;
    padding: 0.5rem 0.875rem;
}

.section-title {
    color: var(--color-dark);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0;
}

.section-title a {
    color: var(--color-dark);
    transition: color 0.3s;
}

.section-title a:hover {
    color: var(--color-primary);
}

.section-description {
    color: var(--color-gray-700);
    margin-top: 0;
    margin-bottom: 0;
    margin-inline: auto;
    font-size: var(--font-size-base);
    line-height: 1.6;
    max-width: 60ch;
}

.nav-breadcrumb {
    padding-top: 1rem;
}

.hidden {
    display: none;
}
.show {
    display: block;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 9997;
}
.overlay.open {
    opacity: 1;
    visibility: visible;
}

.swiper {
    width: 100%;
}

.z-10 {
    z-index: 10;
}

.products-section {
    position: relative;
    overflow: hidden;
}

.banner-section {
    position: relative;
    overflow: hidden;
}

.vector-product {
    position: absolute;
    top: -12%;
    left: 0;
    opacity: 0.8;
}

.bg-linear-secondary {
    background: linear-gradient(
        180deg,
        var(--color-white) 0%,
        var(--color-gray-100) 100%
    );
    border-block: 0.0625rem solid var(--color-border);
}

.products-section .container-custom {
    position: relative;
    z-index: 2;
}

/*==== FIN UTILITARIOS =====*/

/*= inicio botones =*/
.btn-primary {
    height: var(--touch-comfortable);
    width: 100%;
    letter-spacing: 0.02rem;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 0.5rem;
    background: var(--color-black);
    border: 1px solid var(--color-black);
    border-radius: var(--radius-full);
    color: var(--color-white);
    font-size: 1.05rem;
    font-weight: 600;
    touch-action: manipulation;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-primary:hover {
    background-color: var(--color-gray-700);
    border-color: var(--color-gray-700);
    color: var(--color-white);
}
.btn-primary:active {
    transform: scale(0.97);
    opacity: 0.9;
}
.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-700);
    border-radius: var(--radius-lg);
    font-weight: 600;
    height: var(--touch-comfortable);
    font-size: 1.15rem;
    padding: 0.875rem 1.375rem;
    width: fit-content;
    touch-action: manipulation;
    cursor: pointer;
    transition:
        background 0.3s,
        color 0.3s;
}
.btn-secondary:hover {
    color: var(--white);
    background: var(--brand-lightblue);
}
.btn-secondary:active {
    transform: scale(0.97);
    opacity: 0.9;
}
.label-estado {
    background: var(--hover-orange);
    border: 1px solid var(--brand-orange);
    border-radius: 0.5rem;
    color: var(--brand-orange);
    font-weight: 600;
    padding: 4px 10px;
    font-size: 0.875rem;
}

/*= fin botones =*/

/* === INICIO HEADER === */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: transparent;
    border-bottom: 0.0625rem solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Al scrollear: fondo blanco y contenido oscuro */
.header--scrolled {
    background-color: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(0.5rem);
    backdrop-filter: blur(0.5rem);
    border-bottom-color: var(--color-border);
}

.header--scrolled .header-logo img {
    filter: none;
}

.header--scrolled .header-menu-link {
    color: var(--color-gray-900);
}

.header--scrolled .header-menu-link:hover,
.header--scrolled .header-menu-link.active {
    color: var(--color-primary);
}

.header--scrolled .header-action-btn {
    color: var(--color-gray-900);
}

.header--scrolled .header-action-btn:hover {
    color: var(--color-primary);
    background-color: var(--color-gray-100);
}

.header--scrolled .cart-button {
    color: var(--color-gray-900);
}

.header--scrolled .cart-button:hover {
    color: var(--color-primary);
    background-color: var(--color-gray-100);
}

.header--scrolled .header-search {
        background-color: var(--color-white);
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding-block: 0.75rem;
}

.header-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo img {
    height: 2.75rem;
    width: auto;
    object-fit: contain;
    /* versión monocroma blanca hasta contar con el logo en blanco */
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

/* Menú principal (solo desktop) */
.header-menu {
    display: none;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.header-menu-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: var(--touch-min);
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-md);
    color: var(--color-white);
    font-size: var(--font-size-base);
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.3s ease, background-color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.header-menu-link::after {
    content: "";
    position: absolute;
    left: 0.875rem;
    right: 0.875rem;
    bottom: 0.25rem;
    height: 0.125rem;
    border-radius: var(--radius-sm);
    background-color: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.header-menu-link:hover,
.header-menu-link.active {
    background-color: rgba(255, 255, 255, 0.18);
}

.header--scrolled .header-menu-link:hover,
.header--scrolled .header-menu-link.active {
    background-color: transparent;
}

.header-menu-link:hover::after,
.header-menu-link.active::after {
    transform: scaleX(1);
}

/* Mega menú de Productos (solo CSS: hover + focus-within) */
.has-mega {
    position: relative;
}

.mega-caret {
    margin-left: 0.25rem;
    transition: transform 0.25s ease;
}

.has-mega:hover .mega-caret,
.has-mega:focus-within .mega-caret,
.header-menu-link[aria-expanded="true"] .mega-caret {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 50%;
    z-index: 20;
    width: 44rem;
    max-width: calc(100vw - 2rem);
    padding: var(--space-lg);
    background-color: var(--color-white);
    border: 0.0625rem solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 0.75rem);
    transition: opacity 0.25s ease, transform 0.25s ease,
        visibility 0s linear 0.25s;
}

/* Puente invisible: evita que el menú se cierre al cruzar
   el espacio entre el enlace y el panel */
.mega-menu::before {
    content: "";
    position: absolute;
    top: -1rem;
    left: 0;
    right: 0;
    height: 1rem;
}

.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu,
.mega-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
    transition: opacity 0.25s ease, transform 0.25s ease,
        visibility 0s;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.mega-menu-title {
    font-size: var(--font-size-sm);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-dark);
    padding-bottom: var(--space-xs);
    margin-bottom: var(--space-sm);
    border-bottom: 0.125rem solid var(--color-primary);
}

.mega-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.mega-menu-link {
    display: block;
    padding: 0.375rem 0.5rem;
    border-radius: var(--radius-sm);
    color: var(--color-gray-700);
    font-size: var(--font-size-sm);
    line-height: 1.4;
    transition: color 0.2s ease, background-color 0.2s ease,
        padding-left 0.2s ease;
}

.mega-menu-link:hover,
.mega-menu-link:focus-visible {
    color: var(--color-primary);
    background-color: var(--color-gray-100);
    padding-left: 0.75rem;
}

/* Acciones: buscador, usuario, carrito, hamburguesa */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-shrink: 0;
}

.header-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    border: 0;
    padding: 0;
    background-color: transparent;
    border-radius: var(--radius-md);
    color: var(--color-white);
    cursor: pointer;
    touch-action: manipulation;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.header-action-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.header-action-btn:hover {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.15);
}

.header-action-btn:active {
    transform: scale(0.95);
}

/* Buscador compacto: fila desplegable en mobile, inline en desktop */
.header-search {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: var(--space-xs) var(--space-sm);
    /* background-color: var(--color-white); */
    border-bottom: 0.0625rem solid var(--color-border);
}

.header-search.open {
    display: block;
}

.header-search-field {
    position: relative;
    width: 100%;
}

.input-header-search {
    width: 100%;
    height: 2.75rem;
    padding-left: 1rem;
    padding-right: 3rem;
    font-size: var(--font-size-base);
    color: var(--color-gray-900);
    background-color: var(--color-gray-100);
    border: 0.0625rem solid transparent;
    border-radius: var(--radius-lg);
    outline: none;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.input-header-search::placeholder {
    color: var(--color-gray-500);
}

.input-header-search:focus {
    background-color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-search {
    position: absolute;
    top: 50%;
    right: 0.25rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: var(--radius-md);
    color: var(--color-gray-700);
    touch-action: manipulation;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-search svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.btn-search:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-search:active {
    transform: translateY(-50%) scale(0.92);
}

/* Botón usuario: oculto en mobile, visible en desktop */
.header-btn-user {
    display: none;
}

.link-nav-header-icon {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    min-height: var(--touch-min);
    min-width: var(--touch-min);
    background-color: transparent;
    touch-action: manipulation;
    transition: all 0.3s;
}

.link-nav-header-icon:hover {
    background-color: var(--secondary-light);
}

.link-nav-header-icon:active {
    transform: scale(0.95);
    opacity: 0.85;
}

.icon-menu {
    height: 32px;
    width: 32px;
}

.not-mobile {
    display: none;
}

/* = inicio menu mobile = */

.translate-x-0 {
    transform: translateX(0);
}

.translate-x-full {
    transform: translateX(-100%);
}

.box-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-min);
    min-width: var(--touch-min);
}

.menu-toggle {
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    background-color: transparent;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    touch-action: manipulation;
}

.menu-toggle-line {
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active .one {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .two {
    opacity: 0;
}

.menu-toggle.active .three {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 40;
}

.header-menu-sidebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.header-menu-sidebar h2 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0;
}

.close-menu-toggle {
    background-color: transparent;
    border: 0;
    min-height: var(--touch-min);
    min-width: var(--touch-min);
    height: 44px;
    width: 44px;
    padding: 0;
    touch-action: manipulation;
    transition: background-color 0.3s;
}

.close-menu-toggle:hover {
    background-color: var(--color-gray-100);
}

.menu-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 26rem;
    max-width: 100%;
    height: 100vh;
    background-color: var(--color-white);
    padding: 1rem;
    z-index: 50;
    overflow: hidden;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.menu-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.menu-subtitle {
    font-weight: 500;
    margin-bottom: 0;
}

.container-menu {
    overflow: auto;
    height: calc(100vh - 61px);
}

.title-menu-categories {
    border-bottom: 1px solid var(--color-border);
    color: var(--color-dark);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.box-menu-level {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    background-color: var(--color-gray-100);
    border-radius: var(--radius-lg);
    padding: 0.875rem 0.5rem;
    margin-bottom: 1rem;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    margin-bottom: 0.25rem;
}

.menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 0.5rem;
    min-height: var(--touch-min);
    border: 0;
    background: none;
    cursor: pointer;
    color: var(--color-gray-700);
    touch-action: manipulation;
}

.menu-span {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.menu-icon {
    width: 1rem;
    height: 1rem;
    color: var(--color-gray-700);
}

.menu-footer {
    margin-top: 2rem;
}

.menu-extra-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.menu-link.active {
    color: var(--color-primary);
    font-weight: 700;
}

.menu-link-extra {
    color: var(--color-gray-700);
    text-decoration: none;
    transition: color 0.2s ease;
}

.rotate-90 {
    transform: rotate(90deg);
}

.accordion-icon {
    transition: all 0.3s;
}

/* Botón volver */
.menu-back-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--secondary-color);
    font-size: 0.875rem;
    background: none;
    border: none;
    cursor: pointer;
    margin-bottom: 0.5rem;
    padding: 0;
}

.menu-back-icon {
    width: 1rem;
    height: 1rem;
}

/* accordeones */
.sidebar-accordion-content {
    list-style: none;
    padding-left: 0.5rem;
}

/* Sidebar login block */
.sidebar-login {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-lg);
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
}

.sidebar-login:hover {
    opacity: 0.88;
    color: var(--color-white);
}

.sidebar-login svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* Área scrollable del sidebar */
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 0.125rem;
}

/* Grupo de navegación */
.sidebar-group {
    padding-top: 1.25rem;
    margin-bottom: 0.25rem;
    border-top: 1px solid var(--color-border);
}

.sidebar-group:first-child {
    padding-top: 0;
    border-top: 0;
}

.sidebar-group-title {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
    padding: 0 0.5rem;
}

.sidebar-group-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.sidebar-group-link {
    display: block;
    padding: 0.5rem;
    min-height: var(--touch-min);
    color: var(--color-gray-700);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
}

.sidebar-group-link:hover {
    color: var(--color-primary);
    background-color: var(--color-gray-100);
}

.sidebar-group-link.active {
    color: var(--color-primary);
    font-weight: 600;
}

/* = fin menu mobile = */

/* = inicio aside carrito = */

.cart-button-wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.cart-button {
    color: var(--color-white);
    position: relative;
    border: none;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cart-button:hover {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.15);
}

.cart-button-icon {
    height: 24px;
    min-width: 24px;
    max-width: 24px;
    width: 24px;
    object-fit: contain;
    transition: all 0.3s;
    /* icono blanco sobre header transparente */
    filter: brightness(0) invert(1);
}

.cart-button-label {
    color: var(--text-color);
    font-size: var(--font-size-sm);
}

.cart-button-count {
    position: absolute;
    top: -2px;
    right: -3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    border-radius: 100%;
    color: var(--white);
    font-size: var(--font-size-xs);
    height: 18px;
    width: 18px;
    margin-bottom: 0;
}

.cart-header.open {
    transform: translateX(0);
    transition: ease-in-out 0.6s;
}
.cart-header {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    background: var(--white);
    overflow: hidden;
    max-width: 460px;
    width: 100%;
    transform: translateX(100%);
    transition: ease-in-out 0.6s;
    z-index: 9999;
    padding-top: env(safe-area-inset-top, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}
.item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--secondary-light);
    border-bottom: 1px solid var(--secondary-dark);
    margin-bottom: 1rem;
    padding: 1.6rem;
    width: 100%;
}
.cart-head-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0;
}
.cart-head-btn {
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
    background: var(--white);
    border: 1px solid var(--gray-500);
    border-radius: var(--radius-full);
    outline: 0;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-color);
    transition: all 0.3s;
}

.cart-head-btn svg {
    width: 16px;
    height: 16px;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

.cart-head-btn:hover {
    background: var(--color-black);
    border-color: var(--color-black);
    color: var(--color-white);
}

.wrapper-cart-flex {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}
.wapper-cart {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding: 1.6rem;
    scrollbar-color: var(--gray-700) var(--gray-100);
}

.wapper-cart::-webkit-scrollbar {
    width: 6px;
}

.wapper-cart::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: var(--radius-full);
}

.wapper-cart::-webkit-scrollbar-thumb {
    background-color: var(--gray-700);
    border-radius: var(--radius-full);
}

.wapper-cart::-webkit-scrollbar-thumb:hover {
    background-color: var(--brand-lightblue);
}
.item-body {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    column-gap: 1rem;
    width: 100%;
}
.card-cart {
    width: 100%;
    display: flex;
    align-items: flex-start;
    column-gap: 1rem;
    padding-left: 0;
    padding-right: 0;
    padding-top: 1.6rem;
    padding-bottom: 1.6rem;
    border-bottom: 1px solid var(--gray-300);
}
.card-cart-images {
    display: block;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    width: 20%;
    transition: border-color 0.3s;
}
.card-cart-images:hover {
    border-color: var(--secondary-color);
}
.card-cart-images img {
    width: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}
.card-cart-images:hover img {
    transform: scale(1.05);
}
.card-cart-wrapper {
    width: 80%;
    display: flex;
    align-items: start;
    gap: 0.5rem;
}
.card-cart-text {
    width: 80%;
}
.card-cart-title {
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02rem;
    text-transform: capitalize;
    width: 95%;
    margin-top: 0;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-cart-title a {
    color: var(--text-color);
    transition: all 0.3s;
}
.card-cart-title a:hover {
    color: var(--secondary-color);
}
.card-cart-price {
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.1rem;
    width: 95%;
    margin-bottom: 0;
}
.card-cart-actions {
    display: flex;
    width: 20%;
}

.card-btn-remove {
    background: transparent;
    border: 0;
    padding: 0;
    margin-bottom: 0;
    text-decoration: underline;
    color: var(--text-color);
    transition: all 0.3s;
}
.card-btn-remove svg {
    height: 22px;
    width: 22px;
}
.card-btn-remove:hover {
    color: var(--secondary-color);
    text-decoration: none;
}
.item-footer:last-child {
    display: flex;
    justify-content: center;
    background-color: var(--secondary-light);
    border-top: 1px solid var(--primary-color);
    padding: 1.6rem;
    padding-bottom: max(1.6rem, env(safe-area-inset-bottom, 0px));
}
.cart-footer {
    position: sticky;
    bottom: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}
.grid-total-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cart-footer-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.05rem;
    margin-bottom: 0;
}
.cart-footer-total {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
    margin-bottom: 0;
    color: var(--text-color);
}
.btn-checkout {
    height: 48px;
    width: 100%;
    font-size: 1.125rem;
    letter-spacing: 0.05rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 0.5rem;
    background: var(--color-black);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-black);
    color: var(--color-white);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
}
.btn-checkout:hover {
    background-color: var(--color-gray-700);
    border-color: var(--color-gray-700);
    color: var(--color-white);
}

/* = fin aside carrito = */

/* === FIN HEADER === */

/*==== INICIO INDEX ====*/

/* = inicio hero = */

.hero-carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
    /* el hero comienza detrás del header translúcido */
    margin-top: calc(var(--header-height) * -1);
}

.hero-swiper {
    height: 34rem;
}

.hero-carousel .swiper-slide {
    position: relative;
    height: 100%;
}

/* Overlay sutil: la imagen es protagonista, la legibilidad la da el panel */
.hero-carousel .swiper-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    /* franja superior oscura para que el header transparente
       (texto/iconos blancos) sea legible + base inferior sutil */
    background:
        linear-gradient(
            to bottom,
            rgba(10, 10, 10, 0.65) 0,
            rgba(10, 10, 10, 0.25) var(--header-height),
            rgba(10, 10, 10, 0) calc(var(--header-height) * 2.5)
        ),
        linear-gradient(
            to top,
            rgba(10, 10, 10, 0.45) 0%,
            rgba(10, 10, 10, 0.15) 55%,
            rgba(10, 10, 10, 0.05) 100%
        );
}

.hero-carousel picture {
    display: block;
    height: 100%;
}

/* = inicio marcas (marquee) = */

/* Desplazamiento continuo: velocidad constante sin pausas */
.brands-swiper .swiper-wrapper {
    transition-timing-function: linear !important;
    align-items: center;
}

.brand-slide {
    width: auto;
}

.brand-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    padding-inline: var(--space-lg);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.brand-logo-link img {
    height: 6rem;
    width: auto;
    max-width: 9rem;
    object-fit: contain;
}

.brand-logo-link:hover {
    opacity: 1;
    transform: translateY(-0.25rem);
}

/* = fin marcas (marquee) = */

.slide-media {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Bloque de contenido propio de cada slide */
.hero-slide-content {
    --hero-cut: 3.5rem;
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
}

/* Panel blanco translúcido con espacios arriba/abajo y terminación
   diagonal a la derecha (referencia hero_home.png) */
.hero-slide-content::before {
    content: "";
    position: absolute;
    top: calc(var(--header-height) + var(--space-lg));
    bottom: var(--space-lg);
    left: 0;
    width: calc(100% - 0.25rem);
    background: rgba(255, 255, 255, 0.82);
    clip-path: polygon(
        0 0,
        calc(100% - var(--hero-cut)) 0,
        100% 100%,
        0 100%
    );
}

.hero-slide-content .container-custom {
    width: 100%;
}

/* Bloque de texto sobre el panel */
.hero-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
    max-width: 100%;
    padding-block: var(--space-lg);
    padding-right: 4.5rem;
    text-align: left;
}

/* Entrada del contenido al activarse el slide */
.hero-copy > * {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.swiper-slide-active .hero-copy > * {
    opacity: 1;
    transform: none;
}

.swiper-slide-active .hero-copy > *:nth-child(1) {
    transition-delay: 0.2s;
}

.swiper-slide-active .hero-copy > *:nth-child(2) {
    transition-delay: 0.35s;
}

.swiper-slide-active .hero-copy > *:nth-child(3) {
    transition-delay: 0.5s;
}

@media (prefers-reduced-motion: reduce) {
    .hero-copy > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.hero-heading {
    color: var(--color-dark);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.15;
    text-wrap: balance;
    margin-bottom: 0;
}

.hero-desc {
    color: var(--color-gray-700);
    font-size: var(--font-size-base);
    line-height: 1.6;
    max-width: 32rem;
    margin-bottom: 0;
}

/* Navegación del slider: esquina inferior derecha */
.hero-nav {
    position: absolute;
    right: var(--space-sm);
    bottom: var(--space-sm);
    z-index: 3;
    display: flex;
    gap: var(--space-xs);
}

.hero-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--touch-min);
    height: var(--touch-min);
    padding: 0;
    background: var(--color-black);
    border: 0.0625rem solid var(--secondary-color);
    border-radius: var(--radius-full);
    color: var(--color-white);
    cursor: pointer;
    touch-action: manipulation;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hero-nav-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.hero-nav-btn:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.hero-nav-btn:active {
    transform: scale(0.95);
}

/* = fin hero = */

/* = inicio product card = */

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s;
}

.wrapper-product-card {
    display: block;
    width: 100%;
}

.product-media {
    display: block;
    position: relative;
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.875rem;
    width: 100%;
    overflow: hidden;
}

.product-media img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: var(--radius-lg);
    display: block;
    width: 100%;
    transition: all 1s;
}

/* Producto sin foto: mismo recuadro cuadrado que la imagen, vacío. */
.product-img--vacia {
    display: block;
    aspect-ratio: 1 / 1;
    width: 100%;
    border-radius: var(--radius-lg);
    background-color: var(--gray-100);
}

.product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-top: 0.5rem;
    padding: 0.875rem;
    transition: all 0.3s;
}

.product-brand {
    display: block;
    color: var(--gray-500);
    font-size: var(--font-size-sm);
    margin-bottom: 0.25rem;
    transition: all 0.3s;
}

.product-brand:hover {
    color: var(--secondary-color);
}

.product-info .product-brand {
    display: inline-block;
    background-color: var(--gray-100);
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
}

.product-name {
    color: var(--primary-color);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
    height: calc(2 * 1.4em);
}

.product-price-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.875rem;
    padding-bottom: 1.25rem;
}

/* Alturas uniformes: todos los slides estiran a la card más alta */
.products-swiper .swiper-slide,
.featured-swiper .swiper-slide {
    height: auto;
}

.products-swiper .product-card,
.featured-swiper .product-card {
    height: 100%;
}

/* Layout portada + carrusel: columna en mobile, dos columnas en desktop */
.products-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    align-items: stretch;
}

.products-cover {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.products-cover picture {
    display: block;
    height: 100%;
}

.products-cover img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 1s;
}

.products-cover:hover img {
    transform: scale(1.03);
}

/* El carrusel no debe desbordar la columna del grid */
.products-carousel {
    min-width: 0;
}

/* Acciones de la card: consulta y presupuesto (sin precios) */
.product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.875rem;
}

.btn-product-wsp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.875rem;
    background: transparent;
    border: 1px solid var(--color-black);
    border-radius: var(--radius-full);
    color: var(--color-black);
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    min-height: var(--touch-comfortable);
    touch-action: manipulation;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-product-wsp svg {
    flex-shrink: 0;
    color: var(--color-black);
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-product-wsp:hover {
    background: var(--color-gray-700);
    border-color: var(--color-gray-700);
    color: var(--color-white);
}

.btn-product-wsp:hover svg {
    color: var(--color-white);
}

.btn-product-wsp:active {
    transform: scale(0.97);
    opacity: 0.9;
}


.current-price {
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
}

.old-price {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
    font-weight: 500;
    line-height: 1;
    text-decoration: line-through;
}

.product-card:hover .product-media img {
    transform: scale(1.05);
    transition: all 1s;
}

.product-card:hover .product-name {
    color: var(--secondary-color);
}

.product-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.cart-btn {
    position: relative;
    cursor: pointer;
    pointer-events: auto;
    border-width: 1px;
    border-style: solid;
    border-radius: var(--border-radius-sm);
    min-height: var(--touch-min);
    padding: 0 1rem;
    width: 100%;
    background: var(--white);
    touch-action: manipulation;
    transition: all 0.3s;
}

.cart-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* = fin product card = */

/* = inicio banner categorías destacadas = */

.banner-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.banner-item {
    aspect-ratio: 4 / 3;
}

.banner-link {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

/* Overlay sobre la imagen: scrim superior (título) e inferior (botón) */
.banner-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.65) 0%,
        rgba(10, 10, 10, 0.45) 45%,
        rgba(10, 10, 10, 0.7) 100%
    );
    z-index: 1;
}

/* El destacado alinea su contenido a la izquierda: scrim lateral */
.banner-item--featured .banner-link::after {
    background: linear-gradient(
        90deg,
        rgba(10, 10, 10, 0.8) 0%,
        rgba(10, 10, 10, 0.55) 45%,
        rgba(10, 10, 10, 0.35) 75%
    );
}

.banner-media {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 1s;
}

/* Contenido directamente sobre la imagen, sin caja contenedora */
.banner-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: var(--space-md);
    color: var(--white);
}

/* Destacado: hero reducido, centrado verticalmente */
.banner-item--featured .banner-content {
    justify-content: center;
    max-width: 34rem;
}

.banner-title {
    color: var(--color-white);
    font-size: var(--font-size-lg);
    font-weight: 600;
    line-height: 1.2;
}

.banner-item--featured .banner-title {
    margin-bottom: var(--space-xs);
}

.banner-desc {
    display: none;
    font-size: var(--font-size-base);
    margin-bottom: var(--space-sm);
}

/* Botón */
.banner-btn {
    display: inline-block;
    font-size: var(--font-size-sm);
    padding: 0.4rem 1.1rem;
    border: 1px solid var(--white);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

/* Hover */
.banner-link:hover .banner-media {
    transform: scale(1.05);
}

.banner-link:hover .banner-btn {
    background: var(--white);
    border-color: var(--white);
    color: var(--gray-900);
}

/* = fin banner categorías destacadas = */

/*==== FIN INDEX ====*/

/*==== INICIO CONTACTO ====*/

.contact-section {
    padding-bottom: 6rem;
}

.contact-section-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}
.select-control {
    background-color: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    height: 48px;
    width: 100%;
    appearance: none;
    background-image: url(../images/icons/caret-down.svg);
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding: 0.375rem 0.75rem;
    padding-right: 2.5rem;
    transition: all 0.3s;
}
.form-file-group {
    display: flex;
    flex-direction: column;
}

.form-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    background-color: var(--gray-100);
    border: 1px dashed var(--gray-400);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-file-label:hover {
    background-color: var(--gray-300);
}

.form-file-input {
    display: none;
}

.file-name {
    margin-top: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--secondary-color);
}

.grid-contacto {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 2rem;
    row-gap: 2rem;
}
.item-contacto {
    background: var(--white);
    border: 1px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
}
.row-contacto {
    display: flex;
    flex-direction: column;
    border: none;
    background-color: var(--secondary-light);
    border-radius: var(--radius-lg);
}
.title-form {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.4;
    letter-spacing: 0.04rem;
}
.subtitle-form {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    letter-spacing: 0.04rem;
}
.desc-form {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    letter-spacing: 0.04rem;
}
.form-control-contact {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0.375rem 0.75rem;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--white);
    background-clip: padding-box;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-300);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: all 0.3s;
}
.form-control-textarea {
    display: block;
    width: 100%;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 0.375rem 0.75rem;
    font-size: var(--font-size-base);
    box-shadow: none;
    height: 80px;
}
.contacto-map {
    min-height: 300px;
    height: 100%;
    overflow: hidden;
    margin-top: auto;
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    color: var(--gray-900);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    cursor: pointer;
    min-height: var(--touch-comfortable);
    height: 48px;
    width: 200px;
    padding: 0 var(--spacing-xl);
    overflow: hidden;
    touch-action: manipulation;
    transition: all 0.3s;
}
.submit-button:active {
    transform: scale(0.97);
    opacity: 0.9;
}
.submit-button:hover {
    background-color: var(--secondary-dark);
    border: 1px solid var(--secondary-dark);
    color: var(--white);
}

.contact-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-card {
    display: flex;
    align-items: start;
    gap: 0.875rem;
    background-color: var(--white);
    border: 1px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    font-size: clamp(0.95rem, 4vw, 1.15rem);
    padding: 1rem;
}

.contact-card:nth-child(1),
.contact-card:nth-child(2) {
    width: 100%;
}

.contact-icon-bubble {
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.contact-icon-bubble svg {
    height: 24px;
    width: 24px;
}

.contact-info a {
    display: block;

    line-height: 1.2;
    word-break: break-all;
    transition: all 0.3s;
}

.contact-card:hover .contact-icon-bubble {
    color: var(--secondary-color);
}

.contact-card:hover a {
    color: var(--secondary-dark);
}

.grid-contact-stores {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.card-contact-stores {
    background-color: var(--white);
    border: 1px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.card-contact-stores h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.875rem;
}

.card-contact-stores p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.card-contact-link {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 0.5rem;
    color: var(--primary-color);
    min-height: var(--touch-min);
    touch-action: manipulation;
    transition: all 0.3s;
    margin-bottom: 0.25rem;
}

.card-contact-link svg {
    height: 22px;
    min-width: 22px;
    max-width: 22px;
    width: 22px;
}

.card-contact-link:hover {
    color: var(--secondary-dark);
}

.contact-rrss {
    margin-top: 2rem;
}

.contact-social {
    display: flex;
    gap: 1.125rem;
    padding: 0;
    list-style: none;
    align-items: center;
    margin-bottom: 0;
}

.contact-social a {
    width: var(--touch-min);
    height: var(--touch-min);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--white);
    border: 1px solid var(--secondary-dark);
    border-radius: 100%;
    color: var(--secondary-dark);
    touch-action: manipulation;
    transition: all 0.3s;
}
.contact-social a:active {
    transform: scale(0.92);
    opacity: 0.85;
}

.contact-social a:hover {
    color: var(--white);
    background-color: var(--secondary-dark);
    border: 1px solid var(--secondary-dark);
}

.contact-social svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s;
}

/*==== FIN CONTACTO ====*/

/* ==== INICIO CATALOGO ==== */

.catalogo-page {
    padding-top: 0;
    padding-bottom: 6rem;
}

.grid-catalogo {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 2.5rem;
}

.grid-products {
    display: grid;
    grid-gap: 1rem;
    margin-top: 2rem;
    grid-template-columns: 1fr;
    height: fit-content;
}

.toolbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    row-gap: 1rem;
    padding-top: 0.6rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--secondary-dark);
    margin-bottom: 1rem;
}

.title-tolbox {
    font-size: 2rem;
    letter-spacing: 0.02rem;
    line-height: 1;
    color: var(--text-color);
    margin-bottom: 0;
}

.toolbox-left {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    width: fit-content;
}

.toolbox-item {
    display: flex;
    align-items: center;
    column-gap: 1rem;
}

.btn-filtro {
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
    background: var(--secondary-light);
    border: 1px solid var(--secondary-light);
    border-radius: var(--radius-md);
    outline: 0;
    height: 42px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.3s;
}

.btn-filtro img,
.btn-filtro svg {
    height: 16px;
    width: 16px;
    object-fit: contain;
    aspect-ratio: 1 / 1;
}

.toolbox-item label {
    font-size: 0.875rem;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.select-custom .input-filter {
    display: block;
    width: 120px;
    height: 44px;
    border: 1px solid var(--gray-400);
    background: var(--white);
    border-radius: var(--radius-md);
    color: var(--gray-700);
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    background: url(../images/icons/caret-down.svg);
    background-repeat: no-repeat;
    background-size: 15px 15px;
    background-position: right -1rem center;
    background-origin: content-box;
    padding: 0.5rem 1.5rem 0.5rem 0.5rem;
}

/* inicio filtros aside */

.aside-filtros {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 9999;
    width: 100%;
    max-width: 350px;
    display: none;
    background: var(--white);
    overflow: hidden;
    transition: all 0.3s;
}

.aside-filtros.visible {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cart-head-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gray-900);
    letter-spacing: 0.02rem;
    margin-bottom: 0;
}

.aside-filter-clean {
    border-bottom: 1px solid var(--secondary-dark);
    margin-bottom: 0;
    padding: 1rem;
    padding-top: 0;
}

.btn-filter-clean {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-light);
    border: 1px solid var(--secondary-color);
    border-radius: var(--radius-lg);
    color: var(--gray-900);
    font-size: 1rem;
    height: 48px;
    width: 100%;
    padding: 0.5rem 0.875rem;
    transition: all 0.3s;
}

.btn-filter-clean:hover {
    background-color: var(--secondary-dark);
    color: var(--white);
}

.btn-filter-clean svg {
    height: 18px;
    width: 18px;
}

.aside-details-container {
    overflow-y: auto;
    padding: 1rem 2rem;
}

.details-tabs {
    position: relative;
}

.details-tabs__principal {
    border-bottom: 1px solid var(--secondary-dark);
    padding: 0.5rem 0;
}

.summary-tabs {
    color: var(--text-color);
    font-size: 1.05rem;
    font-weight: 600;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.summary-tabs__principal {
    font-size: 1.15rem;
}

.summary-tabs img,
.summary-tabs svg {
    height: 18px;
    width: 18px;
}

.list-aside {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    padding-left: 0;
}

.list-aside__principal {
    margin-top: 0.25rem;
    margin-bottom: 0;
    padding: 0 1.5rem 1rem 0;
}

.input-filtro {
    display: none;
}

.label-filtro {
    font-size: 1rem;
    color: var(--gray-900);
    padding-left: 1.6rem;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.label-filtro::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 100%;
    border: 1px solid var(--gray-400);
}

.label-filtro::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background-image: url(../images/icons/check.svg);
    background-position: center;
    background-size: 12px;
    background-repeat: no-repeat;
    background-color: transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.input-filtro[type="checkbox"]:checked ~ .label-filtro::after {
    opacity: 1;
    visibility: visible;
}

/* fin filtros aside */


/*==== FIN CATALOGO ====*/

/*==== INICIO FICHA PRODUCTOS ====*/

.product-main {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.row-ficha {
    background: var(--white);
    border-radius: var(--radius-lg);
}

.product-info {
    background: var(--color-white);
    padding: 1rem 0 2rem;
}

.heading-product {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.product-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.group-product-meta {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1.5rem;
    padding-bottom: 0.875rem;
}

.product-description {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    color: var(--color-gray-700);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.5rem;
    row-gap: 0.5rem;
    align-items: center;
    color: var(--gray-300);
    font-size: 1rem;
}

.product-meta a {
    transition: all 0.3s;
}

.product-meta a:hover {
    border: 1px solid var(--secondary-light);
    background-color: var(--secondary-light);
}

.product-code {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    column-gap: 0.75rem;
    row-gap: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.btn-product-cart {
    background: var(--color-black);
    color: var(--color-white);
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--color-black);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1.2;
    text-decoration: none;
    height: fit-content;
    min-height: var(--touch-comfortable);
    width: 100%;
    touch-action: manipulation;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-product-cart:active {
    transform: scale(0.97);
    opacity: 0.9;
}

.btn-product-cart:hover {
    background: var(--text-color);
    border-color: var(--text-color);
    color: var(--color-white);
    opacity: 0.88;
}

.btn-product-cart:hover img {
    filter: brightness(1) invert(0);
}

.group-btns-ficha {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.group-btns-ficha .btn-product-cart,
.group-btns-ficha .btn-whatsapp {
    flex: 1;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--color-white);
    padding: 0.5rem 0.875rem;
    border: 1px solid #25D366;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    line-height: 1.2;
    text-decoration: none;
    height: fit-content;
    min-height: var(--touch-comfortable);
    width: 100%;
    touch-action: manipulation;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    border-color: #1ebe5d;
    color: var(--color-white);
}

.btn-whatsapp:active {
    transform: scale(0.97);
    opacity: 0.9;
}

.product-card-footer {
    margin-top: 2rem;
}

.accordion-producto {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-producto .accordion-item {
    border: 1px solid var(--gray-200);
    overflow: hidden;
    margin-bottom: 0;
    border-bottom: 1px solid var(--gray-200);
}

.accordion-producto .accordion-item:first-of-type {
    border-top: 1px solid var(--gray-200);
}

.accordion-producto .accordion-item:last-of-type {
    border-bottom: 1px solid var(--gray-200);
}

/* ===== ACORDEÓN FICHA PRODUCTO ===== */

.accordion-ficha {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.accordion-ficha .accordion-item {
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--color-white);
}

.accordion-ficha .accordion-button {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-gray-900);
    background-color: var(--color-gray-100);
    padding: 1rem 1.25rem;
    border: 0;
    box-shadow: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.accordion-ficha .accordion-button:not(.collapsed) {
    color: var(--color-primary);
    background-color: var(--color-white);
    box-shadow: none;
}

.accordion-ficha .accordion-button::after {
    filter: none;
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.25s ease;
}

.accordion-ficha .accordion-button:not(.collapsed)::after {
    opacity: 1;
    filter: none;
}

.accordion-ficha .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem var(--color-primary-soft);
    outline: none;
}

.accordion-ficha .accordion-body {
    font-family: var(--font-primary);
    font-size: var(--font-size-sm);
    color: var(--color-gray-700);
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--color-border);
    line-height: 1.7;
}

.accordion-ficha .accordion-body ul {
    padding-left: 1.25rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.accordion-ficha .accordion-body li::marker {
    color: var(--color-primary);
}

/* ===== FIN ACORDEÓN FICHA PRODUCTO ===== */

.accordion-producto .accordion-item:first-of-type,
.accordion-producto .accordion-item:last-of-type {
    border-radius: var(--radius-lg);
}

.accordion-producto .accordion-button {
    background: transparent;
    color: var(--text-color);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-producto .accordion-button:hover {
    background: var(--hover-blue);
    border-radius: 0;
}

.accordion-producto .accordion-body {
    color: var(--text-color);
    line-height: 1.6;
    padding: 1.25rem;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button:not(.collapsed)::after {
    background-image: var(--bs-accordion-btn-icon);
}

/* inicio tabs description && especificaciones */

.tabs-producto__nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.tabs-producto__btn {
    position: relative;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tabs-producto__btn:hover {
    color: var(--gray-900);
    background-color: var(--secondary-light);
    font-weight: 600;
}

.tabs-producto__btn.active {
    color: var(--gray-900);
    background-color: var(--secondary-light);
    font-weight: 600;
}

.tabs-producto__btn.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
}

.tabs-producto__content {
    padding-top: 1rem;
}

.tabs-producto__body {
    font-size: var(--font-size-base);
    color: var(--gray-500);
    line-height: 1.6;
}

.tabs-producto__body ul {
    padding-left: 1rem;
}

.tabs-producto__body li {
    margin-bottom: 0.5rem;
}
/* fin tabs description && especificaciones */

.title-quantity-options {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.quantity-label,
.installment-label {
    display: block;
    margin-bottom: 0.5rem;
}
.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-full);
    min-height: var(--touch-comfortable);
    overflow: hidden;
    padding: 0;
    width: fit-content;
}
.quantity-input {
    font-size: 1rem;
    color: var(--gray-900);
    background-color: transparent;
    text-align: center;
    min-height: var(--touch-min);
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    outline: 0;
}
.quantity-decrease,
.quantity-increase {
    font-size: 1.3rem;
    color: var(--gray-900);
    border: 0;
    outline: 0;
    background: transparent;
    border-radius: 100%;
    min-height: var(--touch-min);
    min-width: var(--touch-min);
    height: var(--touch-min);
    width: var(--touch-min);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    transition: all 0.3s;
}
.quantity-decrease:hover,
.quantity-increase:hover {
    background-color: var(--gray-200);
    color: var(--gray-900);
}
.quantity-decrease svg,
.quantity-increase svg {
    width: 14px;
    height: 14px;
}
.quantity-decrease:hover svg,
.quantity-increase:hover svg {
    fill: var(--gray-900);
}

/* inicio recomendados */

.related-section {
    position: relative;
    padding-top: 3rem;
    padding-bottom: 3rem;
    overflow: hidden;
}
.related-section .container {
    position: relative;
    z-index: 2;
}
.related-title {
    font-size: 1.8rem;
    font-weight: 600;
    font-family: var(--font-secondary);
    color: var(--gray-700);
    line-height: 1.4;
    margin-bottom: 2rem;
    text-align: start;
}

.related-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.related-tabs__btn {
    position: relative;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.related-tabs__btn.active,
.related-tabs__btn:hover {
    color: var(--gray-900);
    background-color: var(--secondary-light);
    font-weight: 600;
}

.related-tabs__btn.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.55rem;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
}

/* fin recomendados */

/* inicio Slick Carousel */
.slider-single > .slide:not(:first-child) {
    display: none;
}
.slider-nav > .slide:not(:first-child) {
    display: none;
}
.position-product {
    position: sticky;
    top: 30px;
    z-index: 9;
    width: 90%;
}
.container-slider-product {
    margin-right: auto;
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
    gap: 1rem;
}
.slider-single {
    overflow: hidden;
}
.slick-single {
    width: 100%;
}
.product-main-image {
    display: flex;
    border: 1px solid var(--color-gray-700);
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 1rem;
    margin-right: 0.5rem;
    margin-bottom: 0;
}
.btn-expant {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--white);
    border: 1px solid var(--gray-500);
    border-radius: 0.875rem;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.5rem;
    z-index: 9;
    transition: all 0.3s;
}
.btn-expant:hover {
    background: var(--hover-blue);
}
.slick-slider .btn-expant img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.slick-vertical.slider-nav .slick-slide {
    border: 1px solid var(--gray-200);
    background: var(--white);
    border-radius: var(--radius-lg);
    cursor: pointer;
    margin-bottom: 1rem;
    padding: 0.5rem;
}
.slick-vertical.slider-nav .slick-slide.is-active,
.slick-vertical.slider-nav .slick-slide:hover {
    border: 1px solid var(--color-black);
}
.slick-slide img {
    border-radius: 0.875rem;
    object-fit: contain;
    height: auto;
    width: 100%;
}

.fancybox-is-open .fancybox-bg {
    background: var(--white);
    opacity: 0.6;
}
.fancybox-slide--image {
    background: transparent;
}
.fancybox-navigation .fancybox-button {
    opacity: 1;
    visibility: visible !important;
}
.fancybox-button--zoom {
    display: none !important;
}
.fancybox-button--play {
    display: none !important;
}
.fancybox-button--thumbs {
    display: none !important;
}
.fancybox-button,
.fancybox-button:link,
.fancybox-button:visited {
    color: #888484 !important;
}

.fancybox-button {
    background: transparent !important;
}
.fancybox-navigation .fancybox-button {
    opacity: 1 !important;
}
.fancybox-button--arrow_right {
    position: relative;
}
.fancybox-button--arrow_right svg {
    opacity: 0;
    visibility: hidden;
}
.fancybox-button--arrow_right::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
    width: 20px;
    height: 20px;
    border-right: 2px solid #929292;
    border-bottom: 2px solid #929292;
}
.fancybox-button--arrow_left svg {
    opacity: 0 !important;
    visibility: visible;
}
.fancybox-button--arrow_left::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 20px;
    height: 20px;
    border-left: 2px solid #929292;
    border-bottom: 2px solid #929292;
}
/* Fin Slick Carousel */

/*==== FIN FICHA PRODUCTOS ====*/

/* ==== INICIO MODAL CARRITO ==== */
.title-modal {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.02rem;
    text-align: center;
    margin-bottom: 1.2rem;
}
.modal-header {
    border-bottom: 0;
}
.btn-close:focus {
    box-shadow: 0 0 0 0.25rem var(--primary-color);
}
.card-product-modal {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1rem;
}
.card-product-modal img {
    border-radius: var(--radius-md);
}
.product-title-modal {
    color: var(--gray-600);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.02rem;
    line-height: 1.2;
    text-align: center;
    text-transform: capitalize;
    margin-bottom: 0.5rem;
}
.details-product-modal {
    display: flex;
    flex-wrap: wrap;
    align-items: self-end;
    justify-content: center;
    gap: 0.8rem;
}
.product-cantidad-modal {
    letter-spacing: 0.02rem;
    line-height: 1.2;
    text-align: center;
    color: var(--gray-700);
    margin-bottom: 0.875rem;
}
.grid-buttons-modal {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.btn-outline-primary-2 {
    height: 48px;
    width: 100%;
    font-size: 1rem;
    letter-spacing: 0.02rem;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--color-black);
    border-radius: var(--radius-full);
    color: var(--color-black);
    transition: all 0.3s;
}

.btn-outline-primary-2:hover {
    background: var(--color-gray-700);
    border-color: var(--color-gray-700);
    color: var(--color-white);
}

/* ==== FIN MODAL CARRITO ==== */

/* ==== INICIO TERMINOS ==== */

.tc-wrapper {
    color: var(--gray-700);
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.tc-wrapper a {
    color: var(--gray-700);
}

.tc-title {
    font-size: var(--font-size-xxl);
    font-weight: 600;
    color: var(--gray-700);
    text-align: center;
    margin-bottom: 5rem;
}

.tc-subtitle {
    font-size: var(--font-size-base);
    line-height: 1.6;
}

.tc-wrapper h2,
.tc-heading {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tc-wrapper p,
.tc-section p {
    font-size: var(--font-size-base);
    line-height: 1.6;
}

/* ==== FIN TERMINOS ==== */

/* ====  INICIO FOOTER ==== */

/* ===== BASE ===== */

.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    line-height: 1.6;
}

/* ===== FRANJA SUPERIOR DE CONTACTO ===== */

.footer-strip {
    background-color: var(--color-black);
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-border-dark);
}

.footer-strip-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem var(--space-md);
}

.footer-strip-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-strip-icon {
    color: var(--color-white);
    background-color: var(--color-primary);
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-strip-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.footer-strip-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.footer-strip-label {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.footer-strip-value {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.2s ease;
}

a.footer-strip-value:hover {
    color: var(--color-primary);
}

/* ===== FOOTER MAIN ===== */

.footer-main {
    padding: var(--space-2xl) 0 var(--space-xl);
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.footer-col {
    display: flex;
    flex-direction: column;
}

/* ===== COL 1: BRAND ===== */

.footer-logo-link {
    display: inline-block;
    margin-bottom: var(--space-md);
}

.footer-logo-img {
    filter: brightness(0) invert(1);
    height: 3.75rem;
    width: auto;
    display: block;
}

.footer-brand-desc {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 30ch;
    margin-bottom: var(--space-md);
    text-wrap: pretty;
}

.footer-social-wrap {
    display: flex;
    gap: 0.625rem;
    align-items: center;
}

.footer-social-link {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.footer-social-link svg {
    width: 1.375rem;
    height: 1.375rem;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.footer-social-link:focus-visible {
    outline: 0.125rem solid var(--color-primary);
    outline-offset: 0.125rem;
}

/* ===== COLS 2 & 3: NAV ===== */

.footer-col-heading {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.03em;
    margin-bottom: var(--space-sm);
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-nav-link {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.footer-nav-link:hover,
.footer-nav-link:focus-visible {
    color: var(--color-white);
}

.footer-nav-link:focus-visible {
    outline: 0.125rem solid var(--color-primary);
    outline-offset: 0.125rem;
    border-radius: var(--radius-sm);
}

/* ===== COL 4: CTA CARD ===== */

.footer-col--cta {
    display: flex;
}

.footer-cta-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
}

.footer-cta-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    border-radius: var(--radius-md);
    color: var(--color-white);
    flex-shrink: 0;
}

.footer-cta-icon svg,
.footer-cta-icon img {
    width: 28px;
    height: 28px;
}

.footer-cta-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.3;
    margin: 0;
    text-wrap: balance;
}

.footer-cta-desc {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.65;
    margin: 0;
    text-wrap: pretty;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    align-self: flex-start;
    letter-spacing: 0.5px;
}

/* ===== FOOTER BOTTOM ===== */

.footer-bottom {
    border-top: 1px solid var(--color-border-dark);
    padding: 1.25rem 0;
}

.footer-copyright {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
}

.footer-copyright a {
    display: inline-flex;
    align-items: center;
}

.footer-copyright svg {
    height: 0.875rem;
    width: auto;
    display: block;
}

/* ===== SECCIÓN SUCURSALES ===== */

.branches-section {
    background-color: var(--color-white);
}

.section-header--with-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.branches-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-shrink: 0;
}

.branch-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-md);
    border: 0.0625rem solid var(--color-border-strong);
    background-color: transparent;
    color: var(--color-gray-900);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.branch-nav-btn:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.branch-nav-btn.swiper-button-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.branch-nav-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ===== FIN SECCIÓN SUCURSALES ===== */

/* ===== SECCIÓN CONVERSIÓN: CUENTA MAYORISTA + CATÁLOGO ===== */

.conversion-section {
    background-color: var(--color-gray-100);
}

.conversion-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.conversion-block {
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
}

.conversion-block--form {
    background-color: var(--color-white);
    border: 0.0625rem solid var(--color-border);
}

.conversion-desc {
    color: var(--color-gray-700);
    font-size: var(--font-size-sm);
    line-height: 1.7;
    margin-top: 0;
    margin-bottom: var(--space-lg);
}

.form-float {
    position: relative;
    margin-bottom: var(--space-md);
}

.form-float input {
    width: 100%;
    padding: 1.375rem var(--space-sm) 0.5rem;
    border: 0.0625rem solid var(--color-border-strong);
    border-radius: var(--radius-md);
    background-color: var(--color-white);
    font-size: var(--font-size-base);
    color: var(--color-dark);
    transition: border-color 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.form-float input:focus-visible {
    outline: 0.125rem solid var(--color-primary);
    outline-offset: 0.125rem;
    border-color: var(--color-primary);
}

.form-float label {
    position: absolute;
    top: 50%;
    left: var(--space-sm);
    transform: translateY(-50%);
    font-size: var(--font-size-base);
    color: var(--color-gray-700);
    pointer-events: none;
    transition: top 0.18s ease, font-size 0.18s ease, color 0.18s ease,
        transform 0.18s ease;
    line-height: 1;
}

.form-float input:focus ~ label,
.form-float input:not(:placeholder-shown) ~ label {
    top: 0.55rem;
    transform: none;
    font-size: var(--font-size-xs);
    color: var(--color-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
}

@media (max-width: 575px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.conversion-submit {
    width: 100%;
    margin-top: var(--space-sm);
    justify-content: center;
}

.conversion-block--catalog {
    background-color: var(--color-dark);
    border: 0.0625rem solid var(--color-dark-secondary);
    position: relative;
    overflow: hidden;
    color: var(--color-white);
}

.conversion-catalog-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.conversion-catalog-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: var(--color-primary);
    border-radius: var(--radius-lg);
    color: var(--color-white);
    flex-shrink: 0;
    margin-bottom: var(--space-lg);
}

.conversion-catalog-icon svg,
.conversion-catalog-icon img {
    width: 2rem;
    height: 2rem;
}

.conversion-catalog-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.conversion-block--catalog .section-header h2 {
    color: var(--color-white);
}

.conversion-block--catalog .section-header h2::after {
    background-color: var(--color-primary);
}

.conversion-block--catalog .conversion-desc {
    color: var(--color-gray-300);
}

.conversion-catalog-btn {
    align-self: flex-start;
    margin-top: auto;
}

/* ===== FIN SECCIÓN CONVERSIÓN ===== */

/* ===== SECCIÓN NOTICIAS ===== */

.news-section {
    background-color: var(--color-white);
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: border-color 0.3s ease;
}

.news-card-image {
    border-radius: var(--radius-lg);
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.news-card-body {
    padding-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    flex: 1;
}

.news-card-date {
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    transition: color 0.3s;
}

.news-card:hover .news-card-title {
    color: var(--secondary-color);
}

.news-card-excerpt {
    font-size: var(--font-size-sm);
    color: var(--color-gray-700);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.news-card-link {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-dark);
    align-self: flex-start;
    margin-top: var(--space-sm);
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: color 0.3s, text-decoration-color 0.3s;
}

.news-card:hover .news-card-link {
    color: var(--secondary-color);
    text-decoration-color: var(--secondary-color);
}

/* ===== FIN SECCIÓN NOTICIAS ===== */

/* ===== SECCIÓN CTA PROVEEDORES ===== */

.supplier-cta-section {
    position: relative;
    overflow: hidden;
    min-height: 22rem;
    display: flex;
    align-items: center;
}

.supplier-cta-picture {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.supplier-cta-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.supplier-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 1;
}

.supplier-cta-section .container-custom {
    position: relative;
    z-index: 2;
    padding-block: var(--section-padding);
}

.supplier-content {
    max-width: 36rem;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
}

.supplier-content h2 {
    color: var(--color-white);
    font-size: var(--font-size-lg);
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}

.supplier-content p {
    color: var(--color-white);
    font-size: var(--font-size-sm);
    line-height: 1.7;
    margin: 0;
}

.supplier-cta-btn {
    align-self: center;
}

/* ===== FIN SECCIÓN CTA PROVEEDORES ===== */

/* = inicio boton flotante = */
.float-btn-whatsapp {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--green-whatsapp);
    color: var(--color-white);
    transition: transform 0.3s ease;
}

.float-btn-whatsapp svg {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
}

.float-btn-whatsapp:hover {
    transform: translateY(-0.25rem);
}

/* = fin boton flotante = */

/* ==== FIN FOOTER ==== */

/* === INICIO CUSTOMIZACION NAVIGATION SWIPER === */

.customization-button-prev,
.customization-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--color-black);
    border-radius: var(--radius-lg);
    color: var(--color-black);
    height: 48px;
    width: 48px;
    padding: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition:
        color 0.3s,
        background 0.3s,
        border 0.3s;
}

.customization-button-prev {
    left: 0;
}

.customization-button-next {
    right: 0;
}

.customization-button-prev:hover,
.customization-button-next:hover {
    background-color: var(--color-black);
    border: 1px solid var(--color-black);
    color: var(--white);
}

.customization-button-prev svg,
.customization-button-next svg {
    height: 32px;
    width: 32px;
}

/* === FIN CUSTOMIZACION NAVIGATION SWIPER === */

/* === Slider nav: estilos mobile por defecto (horizontal) === */
.slider-nav .slick-track {
    display: flex !important;
    gap: 0.875rem;
}
.slider-nav .slick-slide {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    padding: 0.4rem;
}
.slider-nav .slick-slide.is-active {
    border: 1px solid var(--color-black);
}
.slider-nav {
    width: 100%;
    height: auto;
}
.slider-nav img {
    width: 96%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================================
   SECCIÓN QUIÉNES SOMOS (about-section)
   =================================================== */

.about-section {
    overflow: hidden;
    background-color: var(--color-gray-100);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

/* Columna de contenido */
.about-col-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-section-header {
    margin-bottom: var(--space-lg);
}

.about-section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--color-dark);
    text-wrap: balance;
}

.about-section-header h2::after {
    content: "";
    display: block;
    width: 3rem;
    height: 0.25rem;
    margin-top: var(--space-sm);
    background-color: var(--color-primary);
    border-radius: var(--radius-sm);
}

.about-desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-gray-700);
    max-width: 52ch;
    margin-bottom: var(--space-xl);
    text-wrap: pretty;
}

/* Stats */
.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.about-stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background-color: var(--color-white);
    border: 0.0625rem solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 0.625rem var(--space-sm);
}

.about-stat-icon {
    display: flex;
    align-items: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.about-stat-icon svg,
.about-stat-icon img {
    width: 20px;
    height: 20px;
}

.about-stat-text {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-gray-900);
    white-space: nowrap;
}

/* CTA */
.about-cta {
    width: fit-content;
}

/* Imagen */
.about-image-wrap {
    position: relative;
}

.about-image-accent {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 45%;
    height: 55%;
    background-color: var(--color-primary-soft);
    border-radius: var(--radius-lg);
    z-index: 0;
}

.about-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
}

.about-col-content,
.about-stats,
.about-cta,
.about-image-wrap {
    will-change: transform;
}

/* ===================================================
   PÁGINA NOSOTROS
   =================================================== */

/* ----- Inner Hero ----- */

.inner-hero {
    position: relative;
    overflow: hidden;
    min-height: 55vh;
    display: flex;
    align-items: flex-end;
    margin-top: calc(var(--header-height) * -1);
    padding-bottom: var(--space-2xl);
}

.inner-hero-picture {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.inner-hero-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.inner-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to right, rgba(10,10,10,.78) 0%, rgba(10,10,10,.5) 55%, rgba(10,10,10,.2) 100%),
        linear-gradient(to top,   rgba(10,10,10,.4)  0%, rgba(10,10,10,0)  50%);
}

.inner-hero .container-custom {
    position: relative;
    z-index: 2;
    padding-top: calc(var(--header-height) + var(--space-xl));
    width: 100%;
}

.inner-hero-content {
    max-width: 44rem;
}

.inner-hero-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.2;
    text-wrap: balance;
    margin-bottom: var(--space-md);
}

.inner-hero-desc {
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0;
    max-width: 40rem;
}

/* ----- Métricas ----- */

.metrics-section {
    background-color: var(--color-gray-100);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.metric-card {
    padding: var(--space-lg) var(--space-md);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid;
}

.metric-card--gray { border-color: var(--color-gray-900); }
.metric-card--red  { border-color: var(--color-primary); }

.metric-number {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.2rem;
    margin: 0 0 var(--space-xs);
    line-height: 1;
}

.metric-value {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--color-dark);
    line-height: 1;
}

.metric-sup {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.metric-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-gray-700);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

/* ----- Historia ----- */

.historia-section {
    background-color: var(--color-white);
}

.historia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.historia-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.historia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.historia-content .section-header {
    margin-bottom: var(--space-lg);
}

.historia-content p {
    color: var(--color-gray-700);
    line-height: 1.75;
    margin-bottom: var(--space-sm);
}

.historia-content p:last-child {
    margin-bottom: 0;
}

/* ----- Cultura / Tabs ----- */

.cultura-section {
    background-color: var(--color-gray-100);
}

.cultura-tabs {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto var(--space-xl);
    padding: 0.375rem;
    gap: 0.25rem;
    background: var(--color-white);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-full);
    overflow-x: auto;
    scrollbar-width: none;
}

.cultura-tabs::-webkit-scrollbar { display: none; }

.cultura-tab-btn {
    padding: 0.625rem var(--space-md);
    background: none;
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-gray-700);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cultura-tab-btn:hover {
    color: var(--color-dark);
}

.cultura-tab-btn[aria-selected="true"] {
    background: var(--color-dark);
    color: var(--color-white);
}

.cultura-panel { display: none; }
.cultura-panel.is-active { display: block; }

.cultura-panel-inner {
    position: relative;
    min-height: 26rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cultura-panel-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cultura-panel-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.6);
}

.cultura-panel-content {
    position: relative;
    z-index: 2;
    padding: var(--space-2xl);
    min-height: 26rem;
    display: flex;
    align-items: center;
}

.cultura-text-block {
    background: rgba(255, 255, 255, 0.96);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    max-width: 36rem;
}

.cultura-text-block h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 800;
    margin-bottom: var(--space-sm);
    color: var(--color-dark);
}

.cultura-text-block p {
    color: var(--color-gray-700);
    line-height: 1.75;
    margin: 0;
}

.valores-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    width: 100%;
    max-width: 44rem;
    margin-inline: auto;
}

.valor-card {
    background: rgba(255, 255, 255, 0.96);
    padding: var(--space-md);
    border-radius: var(--radius-md);
}

.valor-card-icon {
    width: 2rem;
    height: 2rem;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
    display: block;
}

.valor-card h4 {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.375rem;
}

.valor-card p {
    font-size: var(--font-size-sm);
    color: var(--color-gray-700);
    line-height: 1.55;
    margin: 0;
}

/* =====================================================
   INICIO LOGIN
   ===================================================== */

.section-login {
    padding: var(--section-padding) 0;
    background:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
        url(../images/banner-login.webp) center / cover no-repeat;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
}
.row-login {
    justify-content: center;
    gap: 1.5rem;
}

/* ---- Card del formulario ---- */
.form-box {
    position: relative;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    background-color: var(--color-white);
    padding: 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.14);
}

/* ---- Título ---- */
.title-login {
    color: var(--color-primary);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-align: center;
    padding-bottom: 0.625rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-primary);
}

/* ---- Subtítulo ---- */
.text-login {
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
    text-align: center;
    margin-bottom: 1.25rem;
}

/* ---- Formulario ---- */
.form-login {
    margin-top: 1.5rem;
}
.form-login .form-group {
    margin-bottom: 1.25rem;
}
.form-login label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: 0.375rem;
}

/* ---- Inputs (ct-input) ---- */
.ct-input {
    display: block;
    width: 100%;
    height: 3rem;
    padding: 0 1rem;
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: var(--color-gray-900);
    background-color: var(--color-white);
    border: 1.5px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.ct-input::placeholder {
    color: var(--color-gray-300);
    font-weight: 400;
}
.ct-input:hover {
    border-color: var(--color-gray-500);
}
.ct-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.1875rem var(--color-primary-soft);
}

/* ---- Botón mostrar/ocultar contraseña ---- */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    line-height: 1;
    color: var(--color-gray-500);
    transition: color 0.2s ease;
}
.toggle-password:hover {
    color: var(--color-gray-700);
}
.toggle-password img {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}
.toggle-password .eye-open-icon {
    display: none;
}

/* ---- Footer del formulario ---- */
.form-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
}

/* ---- Link olvidar contraseña ---- */
.forgot-link {
    display: block;
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-gray-500);
    text-decoration: underline;
    transition: color 0.2s ease;
}
.forgot-link:hover {
    color: var(--color-primary);
    text-decoration: none;
}

/* ---- Tabs (Iniciar Sesión / Registrarse) ---- */
.nav.nav-pills.nav-login {
    column-gap: 0;
    justify-content: center;
    border-bottom: 1px solid var(--color-border-strong);
    margin-bottom: 1.5rem;
}
.nav.nav-pills.nav-login .nav-item .nav-link {
    border-radius: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    color: var(--color-gray-500);
    font-size: 1rem;
    font-weight: 500;
    padding: 0.625rem 1.75rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.nav.nav-pills.nav-login .nav-item .nav-link:hover {
    color: var(--color-gray-700);
}
.nav.nav-pills.nav-login .nav-item .nav-link.active {
    border-bottom-color: var(--color-primary);
    color: var(--color-primary);
    font-weight: 700;
    background: transparent;
}

/* ---- Botón Google ---- */
.form-choice {
    font-size: var(--font-size-base);
    color: var(--text-color);
}
.btn-login.btn-g {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 3rem;
    padding: 0 1.5rem;
    background-color: var(--color-white);
    border: 1.5px solid var(--color-border-strong);
    border-radius: var(--radius-full);
    color: var(--color-gray-700);
    font-size: var(--font-size-base);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-align: center;
    margin: 0 auto;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-login.btn-g:hover {
    background-color: var(--color-gray-100);
    border-color: var(--color-gray-300);
    color: var(--color-gray-900);
}

/* ---- Separador "O" ---- */
.rm-divider-or {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.25rem 0;
    color: var(--color-gray-300);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.rm-divider-or div {
    flex: 1;
    height: 1px;
    background: var(--color-border);
    margin: 0 0.75rem;
}

/* ==== FIN LOGIN ==== */

/* =====================================================
   PAGE HERO
   ===================================================== */

.page-hero {
    padding: var(--space-lg) 0;
    background-color: var(--color-gray-100);
    border-bottom: 1px solid var(--color-border);
}

.page-hero__inner {
    text-align: center;
}

.page-hero__title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-gray-900);
    margin: 0;
}

/* =====================================================
   INICIO MI CUENTA
   ===================================================== */

.seccion-mi-cuenta {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-2xl);
}
.row-cuenta {
    row-gap: var(--space-md);
    align-items: flex-start;
}
.wrapper-micuenta {
    position: relative;
}

/* ---- Sidebar de navegación ---- */
.nav-cuenta {
    list-style: none;
    margin-bottom: 0;
    padding: 0.75rem;
    background-color: var(--color-gray-100);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}
.nav-cuenta li:last-child .nav-link {
    border-bottom: 0;
}
.nav-cuenta li .nav-link {
    display: flex;
    align-items: center;
    column-gap: 0.625rem;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--color-gray-700);
    background: transparent;
    border: 0;
    border-radius: var(--radius-md);
    outline: 0;
    text-align: left;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
.nav-cuenta li .nav-link.active {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 600;
}
.nav-cuenta li .nav-link:hover:not(.active) {
    background-color: var(--color-primary-soft);
    color: var(--color-primary);
    padding-left: 1.25rem;
}

/* ---- Área de contenido (tabs) ---- */
.tab-cuenta {
    padding: 1.5rem;
    background-color: var(--color-gray-100);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

/* ---- Encabezado de cada tab ---- */
.heading-tab-cuenta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-border);
}
.title-tab-cuenta {
    color: var(--color-gray-900);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-bottom: 0;
}
.subtitle-tab-cuenta {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-gray-700);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

/* ---- Labels de formulario ---- */
.ct-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-gray-700);
    margin-bottom: 0.375rem;
}
.form-group {
    position: relative;
    margin-bottom: 1.25rem;
}
.form-group label {
    color: var(--color-gray-700);
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 0.375rem;
}

/* ---- Mapa ---- */
.form-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ---- Grid botones cuenta ---- */
.grid-btn-cuenta {
    width: 420px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 1rem;
    margin-top: var(--space-md);
}

/* ---- Grid de pedidos ---- */
.grid-compras {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: var(--space-lg);
}
.grid-compras:last-child {
    margin-top: var(--space-lg);
}

/* ---- Card de pedido ---- */
.card-compras {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    background-color: var(--color-white);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-lg);
    transition: box-shadow 0.2s ease;
}
.card-compras:hover {
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}
.list-card-compras {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: var(--font-size-sm);
}
.card-actions-compras {
    display: flex;
    align-items: center;
    column-gap: 1rem;
    flex-wrap: wrap;
    margin-left: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

/* ---- Badge de estado del pedido ---- */
.label-estado {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background-color: var(--color-primary-soft);
    color: var(--color-primary);
}

/* ---- Estado vacío ---- */
.text-sin-datos {
    padding: var(--space-lg);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--color-gray-500);
}

/* ---- Grupo de botones de acción ---- */
.group-actions-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 1rem;
    row-gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 550px;
    margin: var(--space-sm) auto 0;
}

/* ---- Botón principal (cuenta) ---- */
.btn-principal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    column-gap: 0.5rem;
    width: 190px;
    height: var(--touch-comfortable);
    margin-top: var(--space-sm);
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-full);
    font-size: var(--font-size-base);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-white);
    text-align: center;
    text-decoration: none;
    padding: 0 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.btn-principal:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
}
.btn-principal.mx-auto {
    margin-left: auto;
    margin-right: auto;
}
.btn-principal.mt-0 {
    margin-top: 0;
}

/* ---- Botón outline (cuenta) ---- */
.btn-outline-principal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: var(--touch-comfortable);
    background-color: transparent;
    border: 1.5px solid var(--color-primary);
    border-radius: var(--radius-full);
    color: var(--color-primary);
    font-size: var(--font-size-base);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none;
    padding: 0 1.25rem;
    margin-top: var(--space-sm);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-outline-principal:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}
.group-actions-buttons .btn-principal,
.group-actions-buttons .btn-outline-principal {
    flex: 1;
    width: 100%;
    min-width: 160px;
}

/* ---- Botón eliminar (genérico) ---- */
.btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: fit-content;
    background-color: transparent;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    color: var(--color-gray-700);
    min-width: 120px;
    padding: 0.5rem 1.25rem;
    font-size: var(--font-size-sm);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-delete:hover {
    color: var(--color-white);
    background-color: #dc2626;
    border-color: #dc2626;
}

/* ---- Tabla tarjetas (mobile-first) ---- */
.table-tarjetas {
    width: 100%;
    border: 0;
    border-collapse: collapse;
}
.table-tarjetas thead {
    display: none;
}
.table-tarjetas tbody,
.table-tarjetas tr,
.table-tarjetas td {
    display: block;
    width: 100%;
}
.table-tarjetas tr {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 0.75rem;
    padding: 0.75rem;
}
.table-tarjetas td {
    padding: 0.625rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    font-size: var(--font-size-sm);
}
.table-tarjetas td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--color-gray-500);
    margin-right: 0.75rem;
    flex: 0 0 40%;
    text-align: left;
}
.table-tarjetas td:last-child {
    justify-content: flex-end;
}
.table-tarjetas td[colspan] {
    display: block;
    text-align: center;
}
.table-tarjetas td[colspan]::before {
    display: none;
}

/* ---- Link cargar tarjeta ---- */
.btn-cargar-tarjeta {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.2s ease;
}
.btn-cargar-tarjeta:hover {
    color: var(--color-primary-dark);
}

/* ---- Botón eliminar tarjeta ---- */
.btn-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: fit-content;
    background-color: transparent;
    border: 1px solid #dc2626;
    border-radius: var(--radius-full);
    color: #dc2626;
    min-width: 110px;
    padding: 0.5rem 1.25rem;
    font-size: var(--font-size-sm);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.btn-remove:hover {
    color: var(--color-white);
    background-color: #dc2626;
}

/* ---- Card dirección ---- */
.card-dashboard {
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-lg);
    transition: box-shadow 0.2s ease;
}
.card-dashboard:hover {
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.08);
}
.card-dashboard-edit,
.card-dashboard-delete {
    color: var(--color-primary);
    font-weight: 500;
    transition: color 0.2s ease;
}
.card-dashboard-edit:hover,
.card-dashboard-delete:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

/* ---- Detalles de entrega en pedidos ---- */
.container-item-list-card-compras {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.container-item-list-card-compras p {
    margin-bottom: 0;
    font-size: var(--font-size-sm);
}

/* ==== FIN MI CUENTA ==== */

@media (min-width: 576px) {
    .container {
        max-width: calc(100% - 1.5rem);
    }

    /*==== INICIO HEADER ====*/
    :root {
        --header-height: 4.5rem;
    }

    .header-logo img {
        height: 3rem;
    }

    .not-mobile {
        display: block;
    }

    /*==== FIN HEADER ====*/

    /*==== INICIO CATALOGO ====*/
    .grid-products {
        grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    }
    /*==== FIN CATALOGO ====*/

    /*==== INICIO FICHA ====*/
    .spec-list li {
        flex-direction: row;
        gap: 0.5rem;
    }
    .group-btns-ficha {
        flex-direction: row;
    }
    /*==== FIN FICHA ====*/

    /*=== INICIO FOOTER ===*/

    .footer-strip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /*=== FIN FOOTER ===*/
}

@media (min-width: 768px) {
    /* == INICIO UTILITARIOS == */

    .container {
        max-width: calc(100% - 2rem);
    }

    .padding-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .padding-section-first {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .padding-section-last {
        padding-top: 3rem;
        padding-bottom: 5rem;
    }

    .margin-section {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .hero-section-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .thumb-top-animate {
        right: 2rem;
        width: 95px;
    }

    /* == FIN UTILITARIOS == */

    .content-header-top p {
        font-size: 1.15rem;
    }

    /* = INICIO INDEX = */
    /* Composición asimétrica: destacado ~65% + secundarios apilados */
    .banner-container {
        grid-template-columns: 1.85fr 1fr;
        grid-template-rows: repeat(2, 1fr);
    }

    .banner-item {
        aspect-ratio: auto;
    }

    .banner-desc {
        display: block;
    }

    .banner-item:nth-child(1) {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }

    .banner-item:nth-child(2) {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    .banner-item:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .banner-item--featured .banner-title {
        font-size: var(--font-size-xl);
    }

    .banner-item--featured .banner-content {
        padding: var(--space-xl);
    }

    /* = inicio hero = */
    .hero-swiper {
        height: 38rem;
    }

    .hero-slide-content {
        --hero-cut: 5rem;
    }

    .hero-slide-content::before {
        width: 70%;
    }

    .hero-carousel .swiper-slide::after {
        background:
            linear-gradient(
                to bottom,
                rgba(10, 10, 10, 0.65) 0,
                rgba(10, 10, 10, 0.25) var(--header-height),
                rgba(10, 10, 10, 0) calc(var(--header-height) * 2.5)
            ),
            linear-gradient(
                90deg,
                rgba(10, 10, 10, 0.35) 0%,
                rgba(10, 10, 10, 0.1) 55%,
                rgba(10, 10, 10, 0) 100%
            );
    }

    .hero-copy {
        max-width: 26rem;
        padding-right: 0;
    }

    .hero-heading {
        font-size: 2.25rem;
    }

    .hero-desc {
        font-size: 1.125rem;
    }
    /* = fin hero = */

    /* = inicio home cta catalogo = */
    .conversion-grid {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }

    .conversion-block {
        padding: var(--space-2xl);
    }
    /* = inicio home cta catalogo = */

     /* = inicio proveedores home = */
    .supplier-cta-section {
        min-height: 30rem;
    }

    .supplier-content h2 {
        font-size: var(--font-size-xxl);
    }
     /* = fin proveedores home = */
    /* = FIN INDEX = */

    /* = INICIO FICHA PRODUCTOS = */
    .product-main {
        margin-bottom: 6rem;
    }

    .product-info {
        padding-right: 2rem;
        padding-left: 2rem;
    }

    .product-title {
        font-size: 1.8rem;
    }

    .action-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .tabs-producto__btn {
        font-size: var(--font-size-base);
        padding: 1rem 1.25rem;
    }

    .btn {
        flex: 1;
    }

    .related-section {
        padding-top: 4rem;
        padding-bottom: 6rem;
    }

    .related-title {
        font-size: 2.25rem;
    }

    /* = FIN FICHA PRODUCTOS = */

    /* = INICIO MI CUENTA = */
    .grid-compras {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    }
    .tab-cuenta {
        padding: 2rem;
    }
    .table-tarjetas {
        border: initial;
    }
    .table-tarjetas thead {
        display: table-header-group;
    }
    .table-tarjetas tbody {
        display: table-row-group;
    }
    .table-tarjetas tr {
        display: table-row;
        background: transparent;
        border-radius: 0;
        margin-bottom: 0;
        padding: 0;
        border: initial;
    }
    .table-tarjetas td {
        display: table-cell;
        width: auto;
        padding: 1.25rem 0.75rem;
        vertical-align: middle;
        font-size: inherit;
        border-bottom: 1px solid var(--color-border);
    }
    .table-tarjetas td::before {
        display: none;
    }
    .table-tarjetas td:last-child {
        justify-content: initial;
    }
    .table-tarjetas td[colspan] {
        display: table-cell;
        text-align: center;
    }
    .table-tarjetas thead th {
        padding: 0.75rem;
        font-size: var(--font-size-sm);
        font-weight: 700;
        color: var(--color-gray-500);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        border-bottom: 2px solid var(--color-border-strong);
        text-align: left;
    }
    /* = FIN MI CUENTA = */

    /*=== INICIO FOOTER ===*/

    .footer-strip-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-main-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    /*=== FIN FOOTER ===*/
}

@media (min-width: 992px) {
    /*=== INICIO INDEX ===*/
    .hero-carousel .swiper-button-next,
    .hero-carousel .swiper-button-prev {
        display: flex;
    }

    .about-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 4rem;
    }

    .about-image.reverse {
        order: 2;
    }
    .about-text.reverse {
        order: 1;
    }

    .about-text-title {
        font-size: 2rem;
    }

    /* = inicio hero = */
    .hero-swiper {
        height: min(44rem, 88svh);
    }

    .hero-slide-content {
        --hero-cut: 6rem;
    }

    .hero-slide-content::before {
        width: 60%;
    }

    .hero-copy {
        max-width: 28rem;
    }

    .hero-nav {
        right: var(--space-lg);
        bottom: var(--space-lg);
    }
    /* = fin hero = */
    
    /* = inicio marcas home = */
    .brand-logo-link img {
        height: 7.5rem;
        max-width: 11rem;
    }
    /* = fin marcas home = */

    /* = inicio product card = */
    .products-layout {
        grid-template-columns: minmax(16rem, 21rem) 1fr;
        gap: var(--space-lg);
    }

    /* La portada adopta la altura del carrusel */
    .products-cover img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    /* = fin product card = */

    /*=== FIN INDEX ===*/

    /* = INICIO NOSOTROS PAGE = */
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .about-desc {
        max-width: 48ch;
    }
    /* = FIN NOSOTROS PAGE = */

    /*== INICIO CONTACTO ==*/
    .grid-contacto {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-card,
    .card-contact-stores {
        padding: 1.25rem;
    }
    .item-contacto {
        padding: 2rem;
    }
    /*== FIN CONTACTO ==*/
}

@media (min-width: 1024px) {
    /* = INICIO FICHA = */
    .product-info {
        padding-left: 2rem;
        padding-right: 3rem;
        padding-bottom: 4rem;
    }

    .row-ficha {
        display: grid;
        grid-template-columns: calc(55% - 2rem) 45%;
        gap: 2rem;
        padding-left: 0.6rem;
    }

    .article-slider-product {
        position: sticky;
        top: 5rem;
        height: fit-content;
        margin-bottom: 1rem;
        z-index: 9;
    }

    .product-card-footer {
        margin-top: 2rem;
    }

    /* = FIN FICHA = */

    /*== INICIO FOOTER ==*/
    .footer-main-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
        gap: var(--space-2xl);
    }
    /*== FIN FOOTER ==*/
}

@media (min-width: 1080px) {
    /* = inicio header = */
    :root {
        --header-height: 4.75rem;
    }

    .header-menu {
        display: flex;
    }

    .header-search {
        position: static;
        display: block;
        width: 13rem;
        padding: 0;
        background: transparent;
        border-bottom: 0;
    }

    /* Buscador sobre header transparente: vidrio oscuro con borde
       visible para que contraste sobre cualquier imagen */
    .input-header-search {
        color: var(--color-white);
        background-color: rgba(10, 10, 10, 0.35);
        -webkit-backdrop-filter: blur(0.375rem);
        backdrop-filter: blur(0.375rem);
        border-color: rgba(255, 255, 255, 0.55);
    }

    .input-header-search::placeholder {
        color: var(--color-gray-100);
        opacity: 0.85;
    }

    .input-header-search:focus {
        color: var(--color-white);
        background-color: rgba(10, 10, 10, 0.55);
        border-color: var(--color-primary);
    }

    .btn-search {
        color: var(--color-white);
    }

    /* Buscador con el header scrolleado (fondo blanco) */
    .header--scrolled .input-header-search {
        color: var(--color-gray-900);
        background-color: var(--color-gray-100);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        border-color: var(--color-border-strong);
    }

    .header--scrolled .input-header-search::placeholder {
        color: var(--color-gray-500);
    }

    .header--scrolled .input-header-search:focus {
        background-color: var(--color-white);
        border-color: var(--color-primary);
    }

    .header--scrolled .btn-search {
        color: var(--color-gray-900);
    }

    .header--scrolled .btn-search:hover {
        background-color: var(--color-gray-100);
        color: var(--color-primary);
    }

    .header-search-toggle,
    .header-menu-toggle {
        display: none;
    }

    .header-btn-user {
        display: inline-flex;
    }

    .header-logo img {
        height: 3.25rem;
    }

    /* = fin header = */
}

@media screen and (min-width: 1100px) {
    /* ==== INICIO CATALOGO ==== */
    .grid-catalogo {
        grid-template-columns: 300px 1fr;
    }

    .catalogo-featured {
        padding-top: 1rem;
        padding-bottom: 4rem;
    }

    .grid-products {
        grid-template-columns: repeat(3, 1fr);
    }

    .toolbox {
        flex-direction: row;
        gap: 2rem;
    }

    .toolbox-left {
        justify-content: end;
    }

    .btn-filtro {
        display: none;
    }

    .toolbox-item label {
        font-weight: 600;
    }

    .select-custom .input-filter {
        font-size: 0.875rem;
        width: 190px;
    }

    /* inicio filtros aside */
    .aside-filtros {
        position: inherit;
        top: unset;
        bottom: unset;
        width: unset;
        display: block;
        width: 300px;
        z-index: unset;
    }
    .item-head-catalogo {
        background-color: transparent;
        margin-bottom: 1rem;
        padding: 1rem 0;
    }
    .catalogo-head-btn {
        display: none;
    }

    .aside-filter-clean {
        margin-bottom: 1rem;
        padding: 0;
        padding-bottom: 1rem;
    }

    .aside-details-container {
        padding: 0;
    }

    /* fin filtros aside */

    /*==== FIN CATALOGO ====*/

    /*= INICIO FICHA =*/
    .container-slider-product {
        display: grid;
        grid-template-columns: 100px minmax(0, 1fr);
        flex-direction: unset;
        width: auto;
    }
    .slider-nav .slick-track {
        display: block !important;
    }
    .slider-nav .slick-slide {
        background: var(--white);
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-lg);
        margin-bottom: 1rem;
        cursor: pointer;
        padding: 0.5rem;
    }
    .slider-nav .slick-slide.is-active {
        border: 1px solid var(--color-black);
    }
    .slider-nav {
        width: auto;
        height: auto;
    }
    .slider-nav img {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    /*= FIN FICHA =*/
}

@media (min-width: 1200px) {
    .container {
        max-width: 1240px;
    }

    /* = inicio hero = */
    .hero-slide-content {
        --hero-cut: 7rem;
    }

    .hero-slide-content::before {
        width: 50%;
    }

    .hero-heading {
        font-size: 2.5rem;
    }

    .hero-copy {
        max-width: 30rem;
    }
    /* = fin hero = */

    /* = INICIO NOSOTROS PAGE = */
    .about-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
    /* = FIN NOSOTROS PAGE = */

    /*== INICIO CATALOGO  ==*/
    .grid-products {
        grid-template-columns: repeat(3, 1fr);
    }
    /*== FIN CATALOGO  ==*/

    /*== INICIO CONTACTO  ==*/
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    /*== FIN CONTACTO  ==*/
}

@media (min-width: 1400px) {
    .container {
        max-width: 1260px;
    }
}

@media (min-width: 1500px) {
    .container {
        max-width: 1260px;
    }
}

/* Sidebar horizontal en mobile/tablet */
@media screen and (max-width: 991px) {
    /* = INICIO MI CUENTA = */
    .nav-cuenta {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.375rem;
        padding: 0.625rem;
        position: static;
    }
    .nav-cuenta::-webkit-scrollbar {
        display: none;
    }
    .nav-cuenta li {
        flex-shrink: 0;
    }
    .nav-cuenta li .nav-link {
        white-space: nowrap;
        padding: 0.5rem 1rem;
        border-radius: var(--radius-full);
        font-size: var(--font-size-sm);
    }
    .nav-cuenta li .nav-link:hover:not(.active) {
        padding-left: 1rem;
    }
    /* = FIN MI CUENTA = */

    /* = INICIO NOSOTROS PAGE = */
    .metrics-grid   { grid-template-columns: repeat(2, 1fr); }
    .historia-grid  { grid-template-columns: 1fr; }
    .historia-image { aspect-ratio: 16 / 9; }
    /* = FIN NOSOTROS PAGE = */
}

@media (max-width: 575px) {
    /* = INICIO LOGIN = */
    .form-box {
        padding: 2rem 1.25rem;
    }
    .nav.nav-pills.nav-login .nav-item .nav-link {
        font-size: var(--font-size-sm);
        padding: 0.5rem 1.25rem;
    }
    /* = FIN LOGIN = */

    /* = INICIO NOSOTROS PAGE = */
    .metric-card           { padding: var(--space-md) var(--space-sm); }
    .cultura-panel-content { padding: var(--space-lg); }
    .cultura-text-block    { padding: var(--space-md); }
    .valores-grid          { grid-template-columns: 1fr; }
    /* = FIN NOSOTROS PAGE = */
}

/* ===================================================
   ACCESIBILIDAD: Respetar preferencia sin animaciones
   =================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================================================
   Cabecera de categoría  ·  /productos/{familia}[/{subcategoria}]
   Mobile first: el texto va arriba y la imagen debajo. Desde 992px se
   parte en dos columnas, como el diseño del cliente.
   El título es texto real, no va dentro de la imagen: el banner de
   referencia mide 1181x226 y a ancho de teléfono quedaría ilegible.
   =================================================================== */

/* ===================================================================
   Cabecera de categoría  ·  /productos[/{familia}[/{subcategoria}]]
   Cada slide es una pieza completa: su foto, su título, su texto y,
   solo el de la categoría, el botón de "Ver novedades". Por eso el
   alto y el degradado viven en el slide y no en la sección.
   El texto es marcado, no va dentro de la imagen: el banner de
   referencia mide 1181x226 y en teléfono quedaría ilegible.
   =================================================================== */

.categoria-hero {
    position: relative;
    /* Red de seguridad: pase lo que pase con el contenido o el carrusel, la cabecera no
       puede comerse la pantalla. El alto real lo fija min-height en el slide. */
    max-height: 1600px;
    background-color: var(--color-white);
    overflow: hidden;
}

.categoria-hero-slide {
    position: relative;
    display: flex;
    align-items: flex-end;
    box-sizing: border-box;
    min-height: 16rem;
}

/* Foto y velo fuera del flujo: el texto nunca queda tapado ni empujado. */
.categoria-hero-foto {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
}

.categoria-hero-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}

/* El degradado que despeja el fondo bajo el texto. Vertical en teléfono. */
.categoria-hero-velo {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        var(--color-white) 0%,
        rgba(255, 255, 255, 0.94) 46%,
        rgba(255, 255, 255, 0) 88%
    );
}

.categoria-hero-panel {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 80.5rem;
    margin-inline: auto;
    padding: var(--space-lg) 1rem;
}

.categoria-hero-copy {
    max-width: 32rem;
}

.categoria-hero-title {
    margin: 0 0 var(--space-sm);
    font-family: var(--font-primary);
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--color-dark);
}

.categoria-hero-title-line {
    display: block;
}

.categoria-hero-title-line--acento {
    color: var(--color-primary);
}

/* Dos líneas y corta. Sin esto, una categoría con la bajada larga estira la cabecera. */
.categoria-hero-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    max-width: 30rem;
    margin: 0 0 var(--space-md);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    color: var(--color-gray-700);
}

.categoria-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.75rem var(--space-md);
    border: 0.125rem solid var(--color-primary);
    border-radius: var(--radius-lg);
    background-color: var(--color-black);
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.categoria-hero-cta:hover,
.categoria-hero-cta:focus-visible {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.categoria-hero-cta svg {
    flex-shrink: 0;
}

/* Arriba a la derecha en teléfono: abajo la tapa el texto. */
.categoria-hero-paginacion {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    display: flex;
    gap: var(--space-xs);
    justify-content: flex-end;
    z-index: 3;
}

.categoria-hero-paginacion .swiper-pagination-bullet {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--radius-full);
    background-color: var(--color-white);
    opacity: 0.55;
}

.categoria-hero-paginacion .swiper-pagination-bullet-active {
    background-color: var(--color-primary);
    opacity: 1;
}

@media (min-width: 768px) {
    .categoria-hero-slide {
        min-height: 20rem;
    }
}

@media (min-width: 992px) {
    /* 26rem sobre ~1400px de ancho es aproximadamente la altura natural de la foto
       recortada, que es 3.3:1, así que se estira lo mínimo. */
    .categoria-hero-slide {
        align-items: center;
        min-height: 26rem;
    }

    /* El degradado se da vuelta: blanco a la izquierda, donde está el texto, y se abre
       hacia la derecha para que la foto respire. */
    .categoria-hero-velo {
        background: linear-gradient(
            to right,
            var(--color-white) 0%,
            var(--color-white) 24%,
            rgba(255, 255, 255, 0.88) 40%,
            rgba(255, 255, 255, 0) 70%
        );
    }

    /* El panel se alinea con el contenedor del sitio. */
    .categoria-hero-panel {
        max-width: none;
        padding-block: var(--space-xl);
        padding-inline: max(1rem, calc((100vw - 80.5rem) / 2 + 1rem));
    }

    .categoria-hero-paginacion {
        top: auto;
        bottom: var(--space-md);
        right: var(--space-lg);
    }
}

/* ===================================================================
   Distintivo de la card de producto
   Uno solo por card. En el catálogo manda la prioridad OFERTA, NUEVO,
   PREMIUM; en el listado de novedades todas muestran NUEVO, que es el
   motivo por el que están ahí.
   =================================================================== */

.product-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    z-index: 2;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.4;
    color: var(--color-white);
}

.product-badge--novedad,
.product-badge--oferta {
    background-color: var(--color-primary);
}

.product-badge--premium {
    background-color: var(--color-black);
}

/* ===================================================================
   Listado vacío  ·  una categoría sin productos o sin novedades
   =================================================================== */

.listado-vacio {
    grid-column: 1 / -1;
    padding: var(--space-xl) var(--space-md);
    border: 0.0625rem solid var(--color-border);
    border-radius: var(--radius-lg);
    background-color: var(--color-white);
    text-align: center;
}

.listado-vacio-titulo {
    margin: 0 0 var(--space-xs);
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-dark);
}

.listado-vacio-texto {
    margin: 0 0 var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--color-gray-700);
}

/* = banners de la home con video = */

/* El <video> lleva la misma clase que la imagen (`slide-media` / `banner-media`) y hereda su
   tamaño y su `object-fit`. Solo falta elegir cuál se ve cuando el banner trae dos videos: el
   de escritorio desde 768px, el de mobile por debajo. */
.media-video--desktop {
    display: none;
}

.media-video--mobile {
    display: block;
}

@media (min-width: 768px) {
    .media-video--desktop {
        display: block;
    }

    .media-video--mobile {
        display: none;
    }
}

/* = fin banners con video = */

/* = precio, disponibilidad y filtros del catálogo (Sprint 5) = */

/* "Consultar disponibilidad": el producto no tiene precio. Mismo peso que el importe, en gris. */
.product-price-consult {
    color: var(--gray-500);
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: 1.2;
}

/* "Sin stock": independiente del precio. Se dibuja aunque los precios estén apagados. */
.product-stock-out {
    align-self: flex-start;
    margin-top: 0.5rem;
    padding: 0.125rem 0.5rem;
    border-radius: var(--radius-sm);
    background-color: var(--gray-100);
    color: var(--gray-700);
    font-size: var(--font-size-sm);
    font-weight: 600;
    line-height: 1.4;
}

/* El tramo de precio es una opción única (radio): el mismo tilde que la casilla. */
.input-filtro[type="radio"]:checked ~ .label-filtro::after {
    opacity: 1;
    visibility: visible;
}

/* Paginación del catálogo: la misma de /noticias (allá vive en la propia vista). */
.catalogo-page .paginacion {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    margin: 2rem 0 0;
    padding: 0;
}

.catalogo-page .paginacion-item a,
.catalogo-page .paginacion-item span {
    display: inline-flex;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.9rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    color: var(--color-dark);
    font-weight: 600;
    text-decoration: none;
    background: var(--color-white);
}

.catalogo-page .paginacion-item a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.catalogo-page .paginacion-item.is-active span {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.catalogo-page .paginacion-item.is-disabled span {
    opacity: 0.45;
}

/* El título de cada columna del mega-menú y de cada grupo del menú mobile ahora es un
   enlace a su familia: conserva el aspecto del título. */
.mega-menu-title a,
.sidebar-group-title a {
    color: inherit;
    text-decoration: none;
}

.mega-menu-title a:hover,
.sidebar-group-title a:hover {
    color: var(--color-primary);
}

/* = fin precio, disponibilidad y filtros = */

/* Avisos de los formularios públicos (contacto y cliente mayorista): éxito, error general y error por campo.
   Solo existen cuando el visitante acaba de enviar; un formulario recién abierto no los dibuja. */
.form-aviso {
    margin: 0 0 var(--space-md, 1rem);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md, 0.5rem);
    font-size: var(--font-size-sm, 0.9rem);
    font-weight: 600;
    line-height: 1.5;
    border: 0.0625rem solid transparent;
}

.form-aviso--exito {
    background: #e8f5e9;
    border-color: #2e7d32;
    color: #1b5e20;
}

.form-aviso--error {
    background: var(--color-primary-soft);
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
}

.form-error {
    display: block;
    margin-top: 0.25rem;
    font-size: var(--font-size-xs, 0.8rem);
    font-weight: 600;
    color: var(--color-primary);
}

.cf-input.is-invalid,
.cf-select.is-invalid,
.cf-textarea.is-invalid,
.form-float input.is-invalid {
    border-color: var(--color-primary);
}

/* En el formulario de la home la etiqueta flota al centro del contenedor: el error no puede ir dentro del
   flujo (la movería). Va debajo del campo, sobre el margen, que crece lo justo para alojar dos renglones. */
.form-float .form-error {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.15rem;
    line-height: 1.25;
}

.form-float.tiene-error {
    margin-bottom: 2.75rem;
}

/* = fin avisos de formularios = */

/* = presupuesto (Sprint 11) = */

/* El precio que dibuja `<x-precio>` dentro del cajón: sin el aire que lleva en la card. */
.card-cart-text .product-price-box {
    padding-top: 0;
    padding-bottom: 0.5rem;
    gap: 0.25rem;
}

.card-cart-text .current-price {
    font-size: var(--font-size-base);
}

.cart-footer-nota,
.cart-table__nota {
    margin: 0;
    font-size: var(--font-size-xs, 0.8rem);
    color: var(--gray-500);
}

/* El precio bajo el nombre del producto en la tabla de la página. */
.cart-table__table .product-price-box {
    padding-top: 0.5rem;
    padding-bottom: 0;
}

.cart-table__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    font-weight: 600;
}

.cart-table__total-monto {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* Estado vacío de la página de presupuesto. */
.cart-table--vacio {
    margin: var(--section-padding, 3rem) 0 5rem;
    text-align: center;
}

.cart-table--vacio .btn-primary-custom {
    display: inline-flex;
}

/* Un formulario dentro de una celda o del cajón no agrega márgenes propios. */
.cart-table__table form,
.card-cart-text form {
    margin: 0;
}

/* = fin presupuesto = */

/* = cuentas de cliente (Sprint 12) = */

/* «Cerrar sesión» es un formulario POST con un botón que se ve como el resto de los enlaces del menú de la cuenta. */
.nav-cuenta form {
    margin: 0;
}

.nav-cuenta .nav-link--boton {
    width: 100%;
    background: none;
    border: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

/* Un aviso dentro de la cuenta queda separado del contenido que sigue. */
.wrapper-micuenta .form-aviso {
    margin-bottom: 1.25rem;
}

/* = fin cuentas de cliente = */
