/* ========================================================
   📋 TABLA DE CONTENIDOS
   ======================================================== 
   1. VARIABLES CSS - Configuración global
   2. RESET Y ESTILOS BASE - Normalización
   3. TIPOGRAFÍA - HTML, BODY, headings
   4. CONTENEDORES - Layout general
   5. HEADER Y NAVEGACIÓN - Header, nav bar, búsqueda
   6. HERO SECTION - Sección hero principal
   7. BANNER - Banners de construcción
   8. SECCIONES - Estilos generales de secciones
   9. COMPONENTES - Botones, cards, iconos
   10. CATEGORÍAS - Cards de categorías
   11. PRODUCTOS - Cards y detalles de productos
   12. GALERÍA Y CARRUSEL - Productos en carrusel
   13. PDP - Página de detalles del producto
   14. FILTROS Y SIDEBAR - Filtros y sidebar
   15. ACORDEÓN - Información adicional
   16. FOOTER - Pie de página
   17. WHATSAPP - Widget flotante
   18. PAGINACIÓN - Estilos de paginación
   19. UTILIDADES - Helpers y componentes pequeños
   20. RESPONSIVE - Media queries y adaptabilidad
   ======================================================== */

/* ========================================================
   1️⃣  VARIABLES CSS - CONFIGURACIÓN GLOBAL
   ======================================================== */

:root {
    /* ================================
       🎨 COLORES BASE
       ================================ */
    --color-fondo: #f2f2f2;
    --color-superior: #ffffff;
    --color-principal: #2f7fa1;
    --color-secundario: #5cc0ebf;
    --color-acento: #6bb8c8;
    --color-texto: #1a1a1a;
    --color-subtexto: #555555;
    --color-borde: #dddddd;
    --color-sombra: rgba(0,0,0,0.08);
    --color-destructivo: #e11d48;

    /* ================================
       🔵 COLORES ESPECÍFICOS UI
       ================================ */
    --color-hero-overlay: rgba(0,0,0,0.5);
    --color-cta-bg: #a9afb5;
    --color-card-bg: #e5e5e5;
    --color-card-hover: #dcdcdc;
    --color-discount-bg: #c7d9e3;
    --color-whatsapp: #25d366;
    --color-acordeon: #295a75;

    /* ================================
       ✍️ TIPOGRAFÍA
       ================================ */
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --font-heading-weight: 700;
    --font-body-weight: 400;

    --fs-base: 16px;
    --fs-sm: 0.875rem;
    --fs-md: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-xxl: 1.5rem;

    /* ================================
       📏 ESPACIADOS
       ================================ */
    --space-xxs: 4px;
    --space-xs: 8px;
    --space-sm: 12px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;

    /* ================================
       📐 LAYOUT
       ================================ */
    --max-width: 1200px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --shadow-sm: 0 2px 6px var(--color-sombra);
    --shadow-md: 0 8px 25px rgba(0,0,0,0.12);

    /* ================================
       ⚡ TRANSICIONES
       ================================ */
    --transition-fast: 150ms;
    --transition-med: 250ms;
    --transition-smooth: cubic-bezier(.2,.9,.3,1);
}

/* ========================================================
   2️⃣  RESET Y ESTILOS BASE
   ======================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.session-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.profile-menu {
    position: relative;
    display: inline-flex;
}

.profile-menu-toggle {
    cursor: pointer;
    font-family: inherit;
}

.profile-menu-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 180ms ease;
}

.profile-menu.is-open .profile-menu-toggle::after {
    transform: rotate(225deg) translateY(-1px);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 1200;
    display: none;
    min-width: 220px;
    padding: 8px;
    border: 1px solid var(--color-borde);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

.profile-dropdown[hidden] {
    display: none !important;
}

.profile-menu.is-open .profile-dropdown {
    display: grid;
    gap: 2px;
}

.profile-dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--color-texto);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.profile-dropdown a:hover,
.profile-dropdown a:focus-visible {
    background: #eef7fb;
    color: var(--color-principal);
}

.profile-dropdown .profile-dropdown-danger {
    color: var(--color-destructivo);
}

.session-link,
.cart-auth-link,
.checkout-auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid var(--color-borde);
    border-radius: 6px;
    background: #ffffff;
    color: var(--color-texto);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.register-link,
.cart-auth-link.primary,
.checkout-auth-link.primary,
.profile-link {
    border-color: var(--color-principal);
    background: var(--color-principal);
    color: #ffffff;
}

.logout-link {
    color: var(--color-destructivo);
}

.cart-auth-actions,
.checkout-auth-state {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 12px 0;
}

.checkout-auth-state {
    padding: 12px 0;
    border-bottom: 1px solid var(--color-borde);
}

.checkout-auth-state strong {
    color: var(--color-principal);
}

.auth-divider {
    display: grid;
    grid-template-columns: minmax(32px, 1fr) auto minmax(32px, 1fr);
    align-items: center;
    gap: 10px;
    color: var(--color-subtexto);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: var(--color-borde);
}

.google-auth-slot {
    min-height: 40px;
    display: inline-grid;
    place-items: center;
}

.product-sale-meta,
.cart-sale-meta {
    display: block;
    margin: 4px 0 8px;
    color: var(--color-subtexto);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.35;
}

.product-sale-meta strong {
    color: var(--color-texto);
    font-weight: 800;
}

.cart-sale-meta {
    margin: 2px 0 4px;
    font-size: 0.82rem;
}

.product-stock-notice {
    margin: 4px 0 10px;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.35;
}

.product-stock-notice.is-low {
    color: #b45309;
}

.product-stock-notice.is-out {
    color: #b91c1c;
}

.auth-modal[hidden] {
    display: none !important;
}

html.auth-modal-open {
    overflow: hidden;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 18px;
}

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
}

.auth-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(430px, 100%);
    max-height: min(720px, calc(100vh - 36px));
    overflow: auto;
    padding: 26px;
    border: 1px solid rgba(47, 127, 161, 0.18);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-borde);
    border-radius: 8px;
    background: #ffffff;
    color: var(--color-texto);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.auth-modal-head p {
    margin: 0 0 6px;
    color: var(--color-principal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-modal-head h2 {
    margin: 0 38px 18px 0;
    color: #12384e;
    font-size: 1.45rem;
    line-height: 1.2;
}

.auth-modal-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 18px;
    padding: 4px;
    border: 1px solid var(--color-borde);
    border-radius: 8px;
    background: #f6f8fa;
}

.auth-modal-tabs button,
.auth-modal-panel button[type="submit"] {
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
}

.auth-modal-tabs button {
    background: transparent;
    color: #26323b;
    font-size: 0.86rem;
}

.auth-modal-tabs button.active,
.auth-modal-panel button[type="submit"] {
    background: var(--color-principal);
    color: #ffffff;
}

.auth-modal-panel {
    display: none;
}

.auth-modal-panel.active {
    display: block;
}

.auth-modal-panel label {
    display: block;
    margin: 12px 0 6px;
    color: #26323b;
    font-weight: 800;
}

.auth-modal-panel input {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #d1d7de;
    border-radius: 8px;
    background: #ffffff;
    color: var(--color-texto);
    font-size: 1rem;
}

.auth-modal-panel input:focus {
    border-color: var(--color-principal);
    outline: none;
    box-shadow: 0 0 0 4px rgba(47, 127, 161, 0.14);
}

.auth-modal-panel button[type="submit"] {
    width: 100%;
    margin-top: 18px;
}

.auth-modal-panel button:disabled {
    background: #9ca3af;
    cursor: wait;
}

.auth-modal-message {
    min-height: 22px;
    margin: 14px 0 0;
    color: #b91c1c;
    line-height: 1.4;
}

.auth-modal-message.success {
    color: #047857;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================================
   3️⃣  TIPOGRAFÍA - HTML, BODY Y HEADINGS
   ======================================================== */

html {
    font-size: var(--fs-base);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: var(--font-body-weight);
    color: var(--color-texto);
    background: linear-gradient(180deg, var(--color-fondo) 0%, #ffffff 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.45;
    padding-top: 120px;
}

h1, h2, h3, h4, h5 {
    margin: 0;
    color: var(--color-texto);
    font-weight: var(--font-heading-weight);
}

p {
    margin: 0 0 var(--space-md) 0;
    color: var(--color-subtexto);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast) var(--transition-smooth);
}

a:focus {
    outline: 2px dashed rgba(11, 95, 255, 0.2);
    outline-offset: 2px;
}

/* ========================================================
   4️⃣  CONTENEDORES - LAYOUT GENERAL
   ======================================================== */

.contenedor,
.home-hero-wrapper,
.container,
.construction-container {
    width: 92%;
    max-width: 1320px;
    margin: auto;
    padding: 0 var(--space-md);
}

.layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    min-width: 0;
    max-width: 100%;
}

.layout > .products {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: clamp(16px, 2vw, 24px);
}

.layout > .products > *,
.layout > .products .product-card,
.layout > .products .subcategory-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.layout > .products .product-image {
    min-width: 0;
    max-width: 100%;
}

.layout > .products .product-card h4,
.layout > .products .product-card p,
.layout > .products .product-title,
.layout > .products .product-category,
.layout > .products .product-price-product,
.layout > .products .variantes-wrapper,
.layout > .products .product-actions,
.layout > .products .product-actions a,
.layout > .products .product-actions button {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* ========================================================
   5️⃣  HEADER Y NAVEGACIÓN
   ======================================================== */

.header {
    background: var(--color-superior);
    box-shadow: var(--shadow-md);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header.hide-header {
    transform: translateY(-100%);
    opacity: 0;
}

/* FILA SUPERIOR */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 5%;
    max-width: var(--max-width);
    margin: auto;
}

.logo img {
    width: 140px;
    height: 90px;
    border-radius: 60px;
    object-fit: contain;
}

/* BUSCADOR */
.search-box {
    display: flex;
    width: 50%;
    border-radius: 40px;
    padding: 5px;
    box-shadow: inset 0 2px 5px var(--color-sombra);
    transition: var(--transition-med);
}

.search-box:focus-within {
    background: #fff;
    box-shadow: 0 0 0 2px var(--color-secundario);
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    padding: var(--space-sm) var(--space-md);
    outline: none;
    font-size: var(--fs-md);
    color: var(--color-texto);
}

.search-box input::placeholder {
    color: var(--color-subtexto);
}

.search-box button {
    border-radius: 30px;
        width: 40px;
    height: 40px;
    cursor: pointer;
    transition: var(--transition-med);
}
 .search-box {
  position: relative;
}

.autocomplete-wrapper {
  position: relative;
  flex: 1;
}

#searchGlobal {
  position: relative;
  z-index: 2;
  background: transparent;
}

.search-ghost {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  padding-left: 12px;
  color: #b6b6b6;
  white-space: pre;
  overflow: hidden;
  font: inherit;
}

.search-ghost .typed {
  color: transparent;
}

.search-ghost .suggested {
  color: #b6b6b6;
}

.resultados {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  overflow: hidden;
}

.result-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 15px;
  cursor: pointer;
}

.result-item:hover,
.result-item.active {
  background: #f5f7fa;
}

.result-item-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1f3f5;
}

.result-item-content strong {
  display: block;
  font-size: 14px;
}

.result-item-content small {
  display: block;
  color: #777;
  font-size: 12px;
}
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.autocomplete-wrapper {
  position: relative;
  flex: 1;
  z-index: 1;
}

#searchGlobal {
  position: relative;
  z-index: 2;
  background: transparent;
}

.search-ghost {
  pointer-events: none;
  z-index: 1;
}

.search-btn {
  position: relative;
  z-index: 20;
  pointer-events: auto;
  cursor: pointer;
}

.resultados {
  z-index: 9999;
}
.search-box button:hover {
    background: var(--color-acento);
}

/* RESULTADOS DE BÚSQUEDA */
.resultados {
    position: absolute;
    background: white;
    width: 100%;
    top: 43px;
    max-height: 300px;
    overflow: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.result-item {
    padding: 10px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: center;
}

.result-item:hover {
    background: #f2f2f2;
}

.result-item-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #eef7fb;
    color: var(--color-principal);
    font-weight: 800;
}

/* ACCIONES DEL HEADER */
.actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 20px;
}

.header-acciones {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.header-acciones .accion {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition-fast) var(--transition-smooth), transform var(--transition-fast);
}

.header-acciones .accion:hover {
    background: rgba(11, 95, 255, 0.04);
    transform: translateY(-2px);
}

.header-acciones .accion .contador {
    background: var(--color-acento);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 999px;
}

/* CARRITO */
.cart {
    position: relative;
    cursor: pointer;
}

.cart span {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--color-destructivo);
    color: #fff;
    font-size: 12px;
    border-radius: 50%;
    padding: 3px 6px;
}

/* NAVEGACIÓN BAR */
.nav-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 5%;
    border-top: 1px solid var(--color-borde);
    max-width: var(--max-width);
    margin: auto;
}

.categories-btn {
    background: var(--color-principal);
    color: #fff;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-med);
}

.categories-btn:hover {
    background: var(--color-acento);
}

/* MENÚ */
.menu {
    display: flex;
    gap: var(--space-lg);
}

.menu a {
    text-decoration: none;
    color: var(--color-texto);
    font-weight: 500;
    position: relative;
    font-size: var(--fs-md);
}

.menu a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--color-principal);
    transition: var(--transition-med);
}

.menu a:hover::after {
    width: 100%;
}

.menu a.active {
    color: var(--color-principal);
}

/* ========================================================
   6️⃣  HERO SECTION
   ======================================================== */

.home-hero-section {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(22px, 3vw, 36px) 0;
    background:
        linear-gradient(
            90deg,
            rgba(7, 18, 33, 0.92) 0%,
            rgba(7, 18, 33, 0.80) 48%,
            rgba(7, 18, 33, 0.58) 100%
        ),
        url('../img/ba-1280.webp') center/cover no-repeat;
}

.home-hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    display: none;
}

.home-hero-section::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(
        rgba(30, 136, 199, 0.18),
        transparent 70%
    );
    right: -200px;
    top: -200px;
    display: none;
}

.home-hero-wrapper {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: clamp(22px, 4vw, 48px);
    align-items: center;
}

/* BADGE HERO */
.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    color: #fff;
    font-weight: 700;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.home-hero-title {
    font-family: var(--font-sans);
    font-size: 3.45rem;
    line-height: 0.98;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0;
    margin-bottom: 14px;
    max-width: 680px;
}

.home-hero-title span {
    color: var(--color-acento);
    display: block;
}

.home-hero-description {
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
    max-width: 560px;
    margin-bottom: 18px;
}

.hero-search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    width: min(100%, 560px);
    margin-bottom: 14px;
    padding: 7px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.2);
}

.hero-search-form input {
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 14px;
    color: #1f2937;
    font: inherit;
}

.hero-search-form button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: var(--color-principal);
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
    padding: 0 18px;
}

/* BENEFICIOS HERO */
.home-hero-benefits {
    display: none;
}

.hero-benefit-item {
    padding: 16px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    color: #fff;
    font-weight: 600;
    transition: var(--transition);
}

.hero-benefit-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.16);
}

/* ACCIONES HERO */
.home-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.hero-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 8px;
    background: #255B7D;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    box-shadow: 0 20px 40px rgba(13, 92, 134, 0.25);
}

.hero-primary-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px rgba(13, 92, 134, 0.35);
}

.hero-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.hero-buying-modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 620px;
}

.hero-buying-card {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.hero-buying-card strong,
.hero-buying-card span {
    display: block;
}

.hero-buying-card strong {
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.hero-buying-card span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    line-height: 1.45;
}

.hero-trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 620px;
    margin-top: 10px;
}

.hero-trust-row span {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
}

.hero-category-panel {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.22);
}

.hero-category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.hero-category-heading h2 {
    color: #0f172a;
    font-size: 1.05rem;
}

.hero-category-heading a {
    color: var(--color-principal);
    font-size: 0.9rem;
    font-weight: 800;
}

.hero-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.hero-category-card {
    position: relative;
    display: grid;
    min-height: 116px;
    overflow: hidden;
    border-radius: 8px;
    background: #0f172a;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero-category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.72));
}

.hero-category-card img {
    width: 100%;
    height: 100%;
    min-height: 116px;
    object-fit: cover;
    transition: transform 220ms ease;
}

.hero-category-card span {
    position: absolute;
    inset: auto 10px 10px;
    z-index: 1;
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-category-card:hover,
.hero-category-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
}

.hero-category-card:hover img,
.hero-category-card:focus-visible img {
    transform: scale(1.05);
}

.hero-secondary-button:hover {
    background: #fff;
    color: var(--color-principal);
    transform: translateY(-4px);
}

.hero-catalog-button {
    font-size: 0;
}

.hero-catalog-button::after {
    content: "Ver catalogo digital";
    font-size: 1rem;
}

/* Hero comercial tipo acceso rapido */
.hero-market {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: clamp(24px, 3vw, 38px) 0;
    overflow: hidden;
    background: #12384e;
}

.hero-market::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 15, 25, 0.34), rgba(5, 15, 25, 0.06)),
        rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

.hero-market-wrap {
    position: relative;
    z-index: 1;
    width: min(92%, 1230px);
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(22px, 4vw, 42px);
    align-items: center;
}

.hero-copy {
    color: #ffffff;
    min-width: 0;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 14px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-label::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-acento);
    box-shadow: 0 0 0 4px rgba(107, 184, 200, 0.2);
}

.hero-copy h1 {
    max-width: 560px;
    margin: 0 0 12px;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 3.35rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

.hero-copy p {
    max-width: 550px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.02rem;
    line-height: 1.55;
}

.hero-search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    width: min(100%, 520px);
    margin-bottom: 16px;
    padding: 7px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.22);
}

.hero-search-box input {
    min-width: 0;
    min-height: 44px;
    border: 0;
    outline: 0;
    padding: 0 14px;
    color: #26323b;
    font: inherit;
    background: transparent;
}

.hero-search-box button {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--color-acento);
    color: #0b2230;
    font-weight: 900;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.hero-search-box button:hover,
.hero-search-box button:focus-visible {
    transform: translateY(-1px);
    background: #8ed0de;
    box-shadow: 0 10px 20px rgba(5, 30, 45, 0.16);
}

.hero-buttons,
.hero-benefits,
.buy-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-buttons {
    margin-bottom: 18px;
}

.btn-yellow,
.btn-white {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: 900;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.btn-yellow {
    background: var(--color-acento);
    color: #082333;
    box-shadow: 0 16px 28px rgba(5, 30, 45, 0.18);
}

.btn-white {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.btn-yellow:hover,
.btn-yellow:focus-visible,
.btn-white:hover,
.btn-white:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(5, 30, 45, 0.2);
}

.btn-white:hover,
.btn-white:focus-visible {
    background: #ffffff;
    color: var(--color-principal);
}

.hero-benefits div {
    min-height: 44px;
    display: flex;
    align-items: center;
    flex: 1 1 140px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
}

.hero-panel {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 52px rgba(2, 6, 23, 0.22);
    backdrop-filter: blur(14px);
}

.hero-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.hero-panel-head h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.18rem;
    line-height: 1.2;
}

.hero-panel-head span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.85rem;
    font-weight: 700;
}

.hero-carousel-controls {
    display: none;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.hero-carousel-controls span {
    min-width: 38px;
    text-align: center;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
    font-weight: 800;
}

.hero-carousel-btn {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease;
}

.hero-carousel-btn:hover,
.hero-carousel-btn:focus-visible {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
    outline: 0;
}

.hero-carousel-btn:disabled {
    cursor: default;
    opacity: 0.45;
    transform: none;
}

.hero-carousel-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.category-grid-alt {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.hero-category-carousel.is-ready .cat-alt {
    display: block;
}

.hero-category-carousel.is-ready .cat-alt[hidden] {
    display: none !important;
}

.cat-alt {
    position: relative;
    min-height: 118px;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: #12384e;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.18);
    isolation: isolate;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero-dynamic-cat ~ .cat-alt:not(.hero-dynamic-cat) {
    display: none;
}

.cat-alt::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(7, 18, 33, 0.06), rgba(7, 18, 33, 0.86));
}

.cat-alt img {
    width: 100%;
    height: 100%;
    min-height: 118px;
    object-fit: cover;
    display: block;
    opacity: 0.9;
    transition: transform 220ms ease, opacity 220ms ease;
}

.cat-alt strong {
    position: absolute;
    left: 12px;
    right: 10px;
    bottom: 11px;
    z-index: 2;
    display: block;
    color: #ffffff;
    font-size: 0.92rem;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
}

.cat-alt small {
    display: block;
    margin-top: 3px;
    color: #aee5ef;
    font-size: 0.72rem;
    font-weight: 900;
}

.cat-alt:hover,
.cat-alt:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.28);
    outline: 0;
}

.cat-alt:hover img,
.cat-alt:focus-visible img {
    transform: scale(1.05);
    opacity: 1;
}

.buy-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.buy-option {
    padding: 13px 15px;
    border-radius: 12px;
    background: #ffffff;
    color: #26323b;
    box-shadow: 0 10px 22px rgba(2, 6, 23, 0.1);
}

.buy-option strong {
    display: block;
    margin-bottom: 5px;
    color: #12384e;
    font-size: 0.95rem;
}

.buy-option p {
    margin: 0;
    color: #53616c;
    font-size: 0.85rem;
    line-height: 1.35;
}

/* ========================================================
   7️⃣  BANNER - BANNERS DE CONSTRUCCIÓN
   ======================================================== */

.banner-construccion {
    background: linear-gradient(
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.55)
    ),
        url("../img/banner.png");
    background-size: cover;
    background-position: center;
    padding: 2.5rem 3rem;
    display: flex;
    align-items: center;
    min-height: 320px;
    margin-bottom: 2rem;
}

.banner-content {
    max-width: 600px;
    color: #ffffff;
}

.banner-content h1 {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff !important;
    margin-bottom: 1rem;
}

.banner-content h1 span {
    color: #f5c400;
}

.banner-content p {
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
}

.btn-banner {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    background-color: #f5c400;
    color: #1a1a1a;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-banner:hover {
    background-color: #d9ab00;
}

/* ========================================================
   8️⃣  SECCIONES - ESTILOS GENERALES DE SECCIONES
   ======================================================== */

.seccion {
    margin: var(--space-xxl) 0;
}

.seccion .seccion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.section-heading-wrapper {
    text-align: center;
    margin-bottom: 60px;
}

.section-mini-title {
    display: inline-block;
    background: #e8f1ff;
    color: #0057ff;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-main-title {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 800;
    max-width: 850px;
    margin: auto;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin: 3rem 1rem 2rem;
    position: relative;
}

.section-description {
    margin-top: 20px;
    color: #666;
    font-size: 1.1rem;
}

/* Espaciado visual del home */
.construction-problems-section {
    padding: clamp(64px, 8vw, 110px) 0 clamp(56px, 7vw, 96px);
}

.construction-problems-section + .whatsapp + #lista-categorias,
#lista-categorias {
    display: block;
    scroll-margin-top: 130px;
    max-width: 920px;
    margin: clamp(56px, 7vw, 92px) auto 18px !important;
    padding: 0 18px;
    text-align: center;
}

#lista-categorias + .seccion-main-descripcion {
    max-width: 760px;
    margin: 0 auto clamp(30px, 4vw, 46px) !important;
    padding: 0 18px;
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.7;
}

#lista-categorias + .seccion-main-descripcion + .categories-grid {
    margin-bottom: clamp(54px, 7vw, 90px);
}

.catalog-promo-section {
    width: 92%;
    max-width: 1180px;
    margin: clamp(42px, 6vw, 78px) auto 0;
    padding: 0 var(--space-md);
}

.catalog-promo-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(18px, 3vw, 34px);
    align-items: center;
    overflow: hidden;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgba(47, 127, 161, 0.18);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(233, 247, 252, 0.94)),
        #ffffff;
    box-shadow: 0 18px 45px rgba(13, 92, 134, 0.12);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.catalog-promo-card::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(92, 192, 235, 0.16);
    pointer-events: none;
}

.catalog-promo-card:hover {
    transform: translateY(-4px);
    border-color: rgba(47, 127, 161, 0.34);
    box-shadow: 0 24px 58px rgba(13, 92, 134, 0.18);
}

.catalog-promo-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 18px;
    background: #255B7D;
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(37, 91, 125, 0.22);
}

.catalog-promo-icon svg {
    width: 42px;
    height: 42px;
}

.catalog-promo-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.catalog-promo-content {
    position: relative;
    z-index: 1;
}

.catalog-promo-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--color-principal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.catalog-promo-content h2 {
    margin-bottom: 8px;
    color: #0f172a;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    line-height: 1.12;
}

.catalog-promo-content p {
    max-width: 660px;
    margin: 0;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.65;
}

.catalog-promo-button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 24px;
    border-radius: 12px;
    background: #255B7D;
    color: #ffffff;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 14px 28px rgba(37, 91, 125, 0.22);
    transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.catalog-promo-button:hover,
.catalog-promo-button:focus-visible {
    background: #2f7fa1;
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(47, 127, 161, 0.28);
}

/* BREADCRUMB */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb ol {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.breadcrumb li {
    color: #6b7280;
}

.breadcrumb li a {
    color: #2563eb;
}

.breadcrumb li::after {
    content: "/";
    margin-left: 0.5rem;
    color: #9ca3af;
}

.breadcrumb li:last-child::after {
    content: "";
}

.breadcrumb .active {
    font-weight: 600;
    color: #111827;
}

/* ========================================================
   9️⃣  COMPONENTES REUTILIZABLES - BOTONES Y CARDS
   ======================================================== */

/* BOTONES */
.categoria-btn {
    background: linear-gradient(
        135deg,
        var(--color-principal),
        var(--color-secundario)
    );
    color: #fff !important;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(13, 92, 134, 0.22);
}

.categoria-btn::after {
    display: none;
}

.categoria-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 35px rgba(13, 92, 134, 0.28);
}

.btn-primary {
    background: #a3e4f9;
    color: black;
    padding: 1rem 1rem;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    flex: 1;
}

.btn-primary:hover {
    background: #295a75;
    color: white;
}

.btn-secondary {
    background: white;
    border: 1px solid #d1d5db;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
}

/* CARDS BASE */
.product-card,
.problem-card-item,
.category-card-item {
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    content-visibility: auto;
    contain-intrinsic-size: 360px 520px;
}

.product-card:hover,
.problem-card-item:hover,
.category-card-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.problem-card-item {
    border-radius: 24px;
    border: 1px solid #edf2f7;
    padding: 36px;
    transition: 0.35s ease;
    box-shadow: 0 10px 30px rgba(13, 92, 134, 0.06);
}

.problem-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(13, 92, 134, 0.12);
}

/* GRIDS DE CARDS */
.problems-grid-layout,
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    max-width: 1420px;
    margin: 0 auto 38px;
    padding: 0 14px;
}

.products {
    grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
    gap: 2rem;
    align-items: stretch;
    min-height: 360px;
}

/* ICONOS EN CARDS */
.problem-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        #0d5c86,
        #1e88c7
    );
    color: #fff;
    font-size: 2rem;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(13, 92, 134, 0.18);
}

.problem-card-item h3,
.category-content h3 {
    font-size: 1.5rem;
    color: var(--color-texto);
    margin-bottom: 16px;
}

.problem-card-item p,
.category-content p {
    color: var(--color-subtexto);
    line-height: 1.8;
}

/* ========================================================
   🔟 CATEGORÍAS
   ======================================================== */

.category-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    gap: 0;
    padding: 0;
    flex-direction: column;
    grid-column: span 2;
    min-height: 100%;
}

.categories-grid .category-card:nth-child(11):last-child {
    grid-column: 5 / span 2;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    overflow: hidden;
    background: #f3f4f6;
}

.category-image img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 15px;
    object-fit: contain;
}

.category-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
}

.category-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.5em;
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.category-subtitle {
    display: none;
}

.category-btn {
    display: inline-block;
    align-self: flex-start;
    margin-top: auto;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    font-size: 0.82rem;
    font-weight: 600;
    background: #ffffff;
    color: #111827;
    pointer-events: none;
    text-align: center;
}

.subcategory-card {
    width: 100%;
    min-height: 0;
    padding: 14px;
    border: 1px solid #edf0f2;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    grid-column: auto;
    overflow: hidden;
    gap: 0;
}

.subcategory-card:hover,
.subcategory-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.subcategory-card .product-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
    margin: 0 0 10px;
    padding: 14px;
    overflow: hidden;
    border-radius: 10px;
    background: #eef3f5;
}

.subcategory-card .product-image img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 10px;
    object-fit: contain;
    object-position: center;
}

.subcategory-card .product-title {
    display: -webkit-box;
    min-height: 2.5em;
    margin: 0 0 7px;
    overflow: hidden;
    color: #202124;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.subcategory-card .product-category {
    margin: 0 0 18px;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.subcategory-card .product-actions {
    margin-top: auto;
}

.subcategory-card .btn-secondary {
    width: 100%;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d7de;
    border-radius: 8px;
    background: #ffffff;
    color: #202124;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.subcategory-card .btn-secondary:hover,
.subcategory-card .btn-secondary:focus-visible {
    border-color: #2f7fa1;
    background: #eef7fb;
    color: #12384e;
}

/* ========================================================
   1️⃣1️⃣  PRODUCTOS - CARDS Y DETALLES
   ======================================================== */

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    background-color: #f3f4f6;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image::before,
.skeleton-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #eef3f6 0%, #f8fafb 45%, #eef3f6 100%);
    background-size: 220% 100%;
    animation: productSkeletonPulse 1.15s ease-in-out infinite;
}

.product-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    object-fit: contain;
    object-position: center;
    transition: opacity 0.22s ease;
}

.product-image img.is-loaded {
    opacity: 1;
}

.product-image img.is-placeholder {
    padding: 18%;
}

.category-image,
.cat-alt,
.main-image {
    position: relative;
    overflow: hidden;
    background: #eef3f6;
}

.category-image::before,
.cat-alt::before,
.main-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #eef3f6 0%, #f8fafb 45%, #eef3f6 100%);
    background-size: 220% 100%;
    animation: productSkeletonPulse 1.15s ease-in-out infinite;
}

.category-image img,
.cat-alt img,
.subcategory-card .product-image img,
.main-image img,
.thumbnails img {
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.category-image img.is-loaded,
.cat-alt img.is-loaded,
.subcategory-card .product-image img.is-loaded,
.main-image img.is-loaded,
.thumbnails img.is-loaded {
    opacity: 1;
}

.category-image img.is-placeholder,
.cat-alt img.is-placeholder,
.subcategory-card .product-image img.is-placeholder,
.main-image img.is-placeholder,
.thumbnails img.is-placeholder {
    padding: 12%;
    object-fit: contain;
}

.product-card-skeleton {
    pointer-events: none;
    min-height: 340px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px;
    background: #ffffff;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.22);
    content-visibility: visible;
    contain-intrinsic-size: auto;
}

.skeleton-box,
.skeleton-line,
.skeleton-button {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    background: #dddddd;
}

.product-card-skeleton .skeleton-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    min-height: 0;
    margin-bottom: 18px;
}

.skeleton-line,
.skeleton-button {
    min-height: 14px;
}

.skeleton-line::before,
.skeleton-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #d7d7d7 0%, #eeeeee 45%, #d7d7d7 100%);
    background-size: 220% 100%;
    animation: productSkeletonPulse 1.15s ease-in-out infinite;
}

.skeleton-line-title {
    width: 68%;
    min-height: 19px;
    margin-top: 0;
}

.skeleton-line-short {
    width: 58%;
    min-height: 17px;
}

.skeleton-line-price {
    width: 58%;
    min-height: 17px;
}

.skeleton-button {
    width: 100%;
    min-height: 40px;
    margin-top: auto;
}

@keyframes productSkeletonPulse {
    0% {
        background-position: 110% 0;
    }

    100% {
        background-position: -110% 0;
    }
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.product-category {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.8rem;
}

.product-price-product {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: rgb(37, 99, 235);
    gap: 15px;
}

.product-actions {
    display: flex;
    gap: 0.6rem;
    flex-direction: column;
    text-align: center;
    margin-top: auto;
}

/* ETIQUETAS DE PRODUCTO */
.discount-tag {
    display: inline-block;
    background-color: var(--color-secundario);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 700;
    margin-top: 5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.old-price {
    order: 2;
    font-size: 0.7em;
    color: #9ca3af;
    text-decoration: line-through;
}

.current-price {
    order: 1;
    font-weight: 700;
    color: var(--color-principal);
}

/* ========================================================
   1️⃣2️⃣  GALERÍA Y CARRUSEL DE PRODUCTOS
   ======================================================== */

.product-pdp-premium {
    display: flex;
    max-width: 1200px;
    margin: 24px auto 40px;
    background: var(--color-background);
    box-shadow: 0 5px 25px var(--color-shadow);
    padding: 30px;
    border-radius: 12px;
}

.product-breadcrumb {
    margin: 18px auto 16px;
    max-width: 1200px;
    padding: 0 24px;
}

.product-gallery {
    flex: 1.5;
    padding-right: 40px;
    display: flex;
    flex-direction: column;
}

.main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 15px;
    border: 1px solid #EEE;
    border-radius: 6px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    white-space: nowrap;
}

.thumbnails img {
    min-width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
    border-radius: 4px;
}

.thumbnails img:hover,
.thumbnails img.active {
    border-color: var(--color-accent);
}

/* CARRUSEL */
.carrusel-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 30px;
    position: relative;
}

.carrusel-title {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--color-text-dark);
}

.carrusel-viewport {
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0;
}

.carrusel-wrapper {
    display: flex;
    gap: 20px;
    width: max-content;
}

.carrusel-item {
    min-width: 250px;
    scroll-snap-align: start;
    background: var(--color-background);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.carrusel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carrusel-item a {
    text-decoration: none;
    color: var(--color-text-dark);
    display: block;
    padding: 15px;
}

.carrusel-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.carrusel-item p {
    font-weight: 600;
    font-size: 1em;
    text-align: center;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carrusel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #CCC;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
}

.carrusel-nav:hover {
    background-color: #EEE;
    color: var(--color-accent);
}

.nav-prev {
    left: 10px;
}

.nav-next {
    right: 10px;
}

/* ========================================================
   1️⃣3️⃣  PDP - PÁGINA DE DETALLES DEL PRODUCTO
   ======================================================== */

.product-details {
    flex: 1;
    padding-left: 30px;
}

.header-info .product-title {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 0.2rem;
}

.product-price {
    font-size: 2.2em;
    font-weight: 800;
    color: #2f7fa1;
    margin-top: 5px;
    margin-bottom: 25px;
    position: relative;
    display: block;
}

.product-price.price-unavailable {
    color: #FF4500;
    font-size: 1.8em;
}

.divider {
    height: 1px;
    background-color: #EAEAEA;
    margin: 25px 0;
}

/* VARIANTES */
.product-variants {
    margin-top: 12px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-variants > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-variants label {
    min-width: 80px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.variant-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 6px 30px 6px 10px;
    font-size: 14px;
    font-weight: 500;
    color: #111;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23333'%3E%3Cpath d='M2 4l4 4 4-4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.variant-select:hover {
    border-color: #2563eb;
}

.variant-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.stock-info {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #16a34a;
}

.stock-info.out {
    color: #dc2626;
}

.variantes-wrapper {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 15px;
    justify-content: space-between;
    flex-direction: row;
}

.product-description {
    margin: 40px 0;
}

.product-description h2 {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 15px;
}

.description {
    font-size: 1em;
    color: #444;
    margin-bottom: 25px;
}

/* CAJA DE COMPRA */
.purchase-box {
    border-top: 1px solid #EAEAEA;
    padding-top: 25px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 8px;
}

.quantity-selector label {
    font-weight: 600;
    margin-right: 10px;
}

.quantity-selector button {
    background-color: #EFEFEF;
    border: 1px solid #DDD;
    width: 35px;
    height: 35px;
    border-radius: 4px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: bold;
}

.quantity-selector button:hover {
    background-color: #DDD;
}

.quantity-selector input {
    width: 40px;
    height: 35px;
    text-align: center;
    border: 1px solid #DDD;
    border-radius: 4px;
    font-size: 1em;
    -moz-appearance: textfield;
}

.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.stock-info.in-stock {
    color: var(--color-success);
}

.stock-info.out-of-stock {
    color: var(--color-secundario);
}

.purchase-actions {
    display: grid;
    gap: 12px;
}

.cta-atc,
.cta-buy-now {
    background-color: #8fd0df;
    color: black;
    border: none;
    padding: 18px 30px;
    width: 100%;
    font-size: 1.4em;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    text-transform: uppercase;
}

.cta-buy-now {
    background-color: #111827;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(17, 24, 39, 0.25);
}

.cta-atc:hover:not(:disabled),
.cta-buy-now:hover:not(:disabled) {
    background-color: #2f7fa1;
    transform: translateY(-2px);
}

.cta-buy-now:hover:not(:disabled) {
    background-color: #0f766e;
}

.cta-atc:disabled,
.cta-buy-now:disabled {
    background-color: #A9A9A9;
    cursor: not-allowed;
    box-shadow: none;
    color: #444;
}

.trust-badges {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 15px;
    font-size: 0.9em;
    color: #444;
    padding-top: 10px;
    border-top: 1px solid #F0F0F0;
}

.trust-badges span {
    display: flex;
    align-items: center;
}

.specs-link {
    display: inline-block;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 3px;
    transition: color 0.2s, border-color 0.2s;
    font-size: 1.1em;
}

.specs-link:hover {
    color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}

/* ========================================================
   1️⃣4️⃣  FILTROS Y SIDEBAR
   ======================================================== */

.sidebar {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.sidebar label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 1rem;
    display: block;
}

.sidebar select {
    width: 100%;
    padding: 0.6rem;
    margin-top: 0.4rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.category-tags {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-tags span {
    padding: 0.4rem 0.7rem;
    background: #e5e7eb;
    border-radius: 6px;
    font-size: 0.8rem;
}

.filtro-bloque {
    min-width: 200px;
    flex: 0 0 auto;
    background: #fff;
    padding: 0.8rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 5px;
}

.filter-list::-webkit-scrollbar {
    width: 4px;
}

.filter-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.filter-list li {
    margin-bottom: 1rem;
    list-style: none;
}

.filter-list label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    user-select: none;
}

.filter-list label:hover {
    background-color: #f0f4f8;
}

.filter-list input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
    flex-shrink: 0;
}

.filter-name {
    font-weight: 500;
    color: #1f2937;
    flex-grow: 1;
}

.filter-count {
    font-size: 0.85rem;
    color: #9ca3af;
    background-color: #f3f4f6;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-weight: 500;
}

.filter-list label:hover .filter-count {
    background-color: #e5e7eb;
    color: #6b7280;
}

/* RANGO DE PRECIOS */
.price-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.price-box {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.25rem 0.4rem;
    background: #fff;
    width: 90px;
}

.price-box span {
    font-size: 0.8rem;
    color: #6b7280;
    margin-right: 0.2rem;
}

.price-box input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 0.8rem;
    color: #111827;
}

.price-box input::-webkit-inner-spin-button,
.price-box input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-box input[type=number] {
    -moz-appearance: textfield;
}

.price-btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #ffffff;
    color: #111827;
    cursor: pointer;
    width: fit-content;
}

.price-btn:hover {
    background: #f3f4f6;
}

/* ========================================================
   1️⃣5️⃣  ACORDEÓN - INFORMACIÓN ADICIONAL
   ======================================================== */

.additional-info-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 30px;
}

.info-acordeon-item {
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background-color: #fff;
}

.acordeon-title {
    display: flex;
    align-items: center;
    font-size: 1.05em;
    font-weight: 600;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
    background-color: #f7f7f7;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}

summary::-webkit-details-marker {
    display: none;
}

.info-acordeon-item:hover .acordeon-title {
    background-color: #eef5f8;
}

.info-acordeon-item[open] .acordeon-title {
    background-color: var(--color-acordeon);
    color: #fff;
}

.acordeon-content {
    padding: 18px;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
    border-top: 1px solid #e0e0e0;
}

.acordeon-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 14px;
    background-repeat: no-repeat;
    background-size: contain;
    transition: transform 0.3s ease;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='12' y1='5' x2='12' y2='19'/><line x1='5' y1='12' x2='19' y2='12'/></svg>");
}

.info-acordeon-item[open] .acordeon-icon {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><line x1='5' y1='12' x2='19' y2='12'/></svg>");
}

/* ========================================================
   1️⃣6️⃣  FOOTER
   ======================================================== */

footer {
    background: #62B7DD;
    width: 100%;
    padding: 50px 80px;
    margin-top: 100px;
}

.footer-container {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    gap: 60px;
    align-items: flex-start;
}

/* IZQUIERDA */
.footer-left h2 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: bold;
}

.footer-left a {
    display: block;
    color: #003a56;
    margin-bottom: 12px;
    font-size: 20px;
}

.footer-left p {
    font-size: 18px;
    margin-bottom: 18px;
    color: #222;
}

.footer-section {
    margin-bottom: 35px;
}

/* CENTRO */
.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-center label {
    width: 100%;
    max-width: 500px;
    font-size: 20px;
    margin-bottom: 8px;
}

.footer-center input {
    width: 100%;
    max-width: 500px;
    height: 50px;
    border: none;
    padding: 0 20px;
    font-size: 16px;
    background: #ececec;
    margin-bottom: 25px;
}

.footer-center button {
    border: none;
    background: #255B7D;
    color: white;
    padding: 18px 50px;
    border-radius: 40px;
    font-size: 22px;
    cursor: pointer;
}

.footer-company {
    text-align: center;
    margin-top: 50px;
}

.footer-company h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.footer-company p {
    font-size: 18px;
    font-weight: bold;
}

.footer-company a {
    color: #003a56;
}

/* DERECHA */
.footer-right h3 {
    font-size: 22px;
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    gap: 35px;
    margin-bottom: 50px;
}

.social-icons a {
    color: black;
    font-size: 38px;
}

.description {
    margin-top: 10px;
    font-size: 18px;
    line-height: 1.7;
    max-width: 320px;
}

/* ========================================================
   1️⃣7️⃣  WHATSAPP FLOTANTE
   ======================================================== */

.whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 20px 45px rgba(37, 211, 102, 0.35);
    transition: var(--transition);
}

.whatsapp img {
    width: 50px;
    height: 50px;
    display: block;
}

.construction-problems-section,
.catalog-promo-section,
.categories-grid {
    content-visibility: auto;
    contain-intrinsic-size: auto 620px;
}

/* ========================================================
   1️⃣8️⃣  PAGINACIÓN
   ======================================================== */

.paginacion {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    justify-content: center;
    margin-top: var(--space-lg);
}

.paginacion .pagina {
    padding: 8px 12px;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--color-borde);
    cursor: pointer;
}

.paginacion .pagina.actual {
    background: var(--color-principal);
    color: white;
    font-weight: 700;
    border-color: transparent;
}

/* ========================================================
   1️⃣9️⃣  UTILIDADES Y COMPONENTES PEQUEÑOS
   ======================================================== */

.estado-vacio {
    background: white;
    border: 1px dashed var(--color-borde);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    color: var(--color-subtexto);
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 999px;
    font-size: var(--fs-sm);
    background: #f3f6fb;
    color: var(--color-texto);
}

.tooltip {
    position: relative;
}

.tooltip[data-text]:hover::after {
    content: attr(data-text);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #111827;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.25);
}

/* FORMULARIOS */
.input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--color-borde);
    background: white;
    color: var(--color-texto);
    font-size: var(--fs-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input:focus {
    border-color: rgba(11, 95, 255, 0.18);
    box-shadow: 0 6px 18px rgba(11, 95, 255, 0.06);
    outline: none;
}

.checkbox-label {
    display: flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    font-size: var(--fs-sm);
    color: var(--color-subtexto);
}

.checkbox-label input {
    accent-color: var(--color-principal);
}

/* SKELETON LOADING */
.skeleton {
    background: linear-gradient(90deg, #f3f4f6 0%, #eef2ff 50%, #f3f4f6 100%);
    background-size: 200% 100%;
    animation: shimmer 1.6s linear infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* HELPERS Y ACCESIBILIDAD */
:focus {
    outline: none;
}

:focus-visible {
    outline: 3px solid rgba(11, 95, 255, 0.16);
    outline-offset: 3px;
    border-radius: 6px;
}

.text-muted {
    color: var(--color-subtexto);
    font-size: var(--fs-sm);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-center {
    display: grid;
    place-items: center;
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.p-sm {
    padding: var(--space-sm);
}

.rounded {
    border-radius: var(--radius-sm);
}

/* ========================================================
   2️⃣0️⃣  RESPONSIVE - MEDIA QUERIES Y ADAPTABILIDAD
   ======================================================== */

/* TABLET */
@media (max-width: 1024px) {
    .layout {
        display: flex;
        flex-direction: column;
    }
    .hero-panel {
        display: none !important;
    }
    .sidebar {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 10px;
        scrollbar-width: thin;
    }

    .sidebar::-webkit-scrollbar {
        height: 6px;
    }

    .sidebar::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }

    .filtro-bloque {
        min-width: 200px;
        flex: 0 0 auto;
        background: #fff;
        padding: 0.8rem;
        border-radius: 10px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    }

    .price-row,
    .price-btn {
        min-width: 200px;
        flex: 0 0 auto;
    }

    .categories-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .category-card,
    .categories-grid .category-card:nth-child(11):last-child {
        grid-column: auto;
    }

    .filter-list {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        max-height: 220px;
        overflow-y: auto;
        padding-right: 5px;
    }

    .filter-list::-webkit-scrollbar {
        width: 4px;
    }

    .filter-list::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }

    .sidebar > * {
        min-width: 220px;
        flex: 0 0 auto;
        background: #fff;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    }

    .filter-list li {
        list-style: none;
    }

    .filter-list label {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
    }

    .product-pdp-premium {
        flex-direction: column;
        padding: 20px 15px;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .product-gallery,
    .product-details {
        padding: 0;
        margin-bottom: 10px;
    }

    .product-title {
        font-size: 1.8em;
    }

    .product-price {
        font-size: 2.2em;
    }

    .purchase-box {
        position: sticky;
        bottom: 0;
        left: 0;
        width: 100vw;
        margin-left: -15px;
        padding: 15px 20px;
        background: white;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        box-sizing: border-box;
        border-top: none;
    }

    .cta-atc {
        font-size: 1.2em;
        padding: 12px 20px;
    }

    .trust-badges {
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
    }

    .carrusel-container {
        padding: 0 15px;
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .carrusel-wrapper {
        gap: 15px;
    }

    .carrusel-item {
        min-width: 180px;
    }

    .carrusel-nav {
        display: none;
    }

    .additional-info-section {
        padding: 0 15px;
    }

    .home-hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-hero-description {
        margin: auto auto 42px;
    }

    .home-hero-benefits {
        justify-content: center;
    }

    .home-hero-actions {
        justify-content: center;
    }
}

/* MÓVIL GRANDE (768px) */
@media (max-width: 768px) {
    .header-top {
        flex-wrap: wrap;
        gap: var(--space-sm);
    }

    .logo img {
        height: 45px;
    }

    .search-box {
        width: 100%;
        border-radius: 25px;
        background: #fff;
        box-shadow: var(--shadow-sm);
        padding: 2px;
    }

    .search-box input {
        font-size: 14px;
    }

    .search-box button {
        padding: 8px 12px;
        border-radius: 20px;
    }

    .actions {
        gap: var(--space-sm);
    }

    .actions i,
    .cart {
        background: var(--color-fondo);
        padding: 8px;
        border-radius: 50%;
        box-shadow: var(--shadow-sm);
    }

    .nav-bar {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        gap: var(--space-sm);
        padding: var(--space-sm);
    }

    .menu {
        display: flex;
        flex-wrap: nowrap;
        gap: var(--space-sm);
    }

    .menu a {
        background: var(--color-card-bg);
        padding: 8px 12px;
        border-radius: 20px;
        font-size: 14px;
    }

    .categories-btn {
        width: 100%;
        text-align: center;
        border-radius: var(--radius-md);
        font-size: 15px;
        box-shadow: var(--shadow-sm);
    }

    .categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.8rem;
    }

    .home-hero-section {
        padding: 100px 0;
    }

    .construction-problems-section {
        padding: 52px 0 44px;
    }

    .catalog-promo-section {
        margin-top: 34px;
    }

    .catalog-promo-card {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .catalog-promo-button {
        width: 100%;
        white-space: normal;
    }

    #lista-categorias {
        margin-top: 46px !important;
        margin-bottom: 14px !important;
    }

    .home-hero-actions {
        flex-direction: column;
    }

    .hero-primary-button,
    .hero-secondary-button {
        width: 100%;
    }
}

/* MÓVIL PEQUEÑO (468px) */
@media (max-width: 468px) {
    .header-top {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        padding: 10px;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .logo img {
        height: 102px !important;
        margin-bottom: 55px;
    }

    .hamburger-menu {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .actions {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .search-box {
        width: 100%;
        margin: 112px 0 8px 0;
    }

    .nav-bar {
        display: none;
    }

    .sidebar {
        position: relative;
        display: flex;
        align-items: center;
                        height: 112px;

    }
    #sidebar-filtro-movil{
        height:148px
    }

    .sidebar h3 {
        font-size: 1rem !important;
        position: absolute;
        box-shadow: none !important;
        top: 4px;
        left: 5px;
        background: none !important;
    }

    .home-hero-section {
        background:
            linear-gradient(
                90deg,
                rgba(7, 18, 33, 0.85) 0%,
                rgba(7, 18, 33, 0.72) 45%,
                rgba(7, 18, 33, 0.35) 100%
            ),
            url('../img/banner_movil.webp');
    }

    .filter-list {
        height: auto;
    }

    .filtro-bloque {
        width: 10% !important;
        margin-bottom: 1rem !important;
    }
    .filtro-bloque label{
        
    margin-bottom: -0.5rem !important;
    }

    .section-main-title {
        font-size: 2.0rem;
    }

    .seccion-main-descripcion {
        font-size: 14px;
    }

    #lista-categorias {
        margin-top: 36px !important;
        padding: 0 16px;
    }

    #lista-categorias + .seccion-main-descripcion {
        margin-bottom: 24px !important;
        padding: 0 16px;
        line-height: 1.6;
    }

    .catalog-promo-section {
        width: 100%;
        margin-top: 28px;
        padding: 0 14px;
    }

    .catalog-promo-card {
        padding: 22px;
        border-radius: 16px;
        text-align: left;
    }

    .catalog-promo-icon {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .catalog-promo-icon svg {
        width: 36px;
        height: 36px;
    }

    .catalog-promo-content h2 {
        font-size: 1.65rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
        padding: 0 10px;
    }

    .category-card {
        padding: 9px;
    }

    .category-image {
        height: auto;
    }

    .category-title {
        font-size: 0.86rem;
    }

    .category-btn {
        font-size: 0.82rem;
        padding: 10px;
    }

    .category-btn {
        width: 100%;
        padding: 8px 6px;
    }

    .home-hero-title {
        font-size: 2.7rem;
    }

    .problem-card-item {
        padding: 26px;
    }

    .whatsapp {
        width: 64px;
        height: 64px;
    }

    footer {
        padding: 40px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }

    .footer-center {
        align-items: flex-start;
    }

    .footer-company {
        text-align: left;
    }

    .footer-center input {
        max-width: 100%;
    }

    .social-icons {
        gap: 20px;
    }
    .breadcrumb ol{
        font-size: 14px;
        padding: 0 14px 0px;
    }
    .breadcrumb{
        margin-bottom: 10px !important;
    }

    .product-breadcrumb {
        margin-top: 12px;
        margin-bottom: 12px !important;
        padding: 0 14px;
    }

    .section-title{
        margin: 25px 10px;
        font-size: 28px;
    }
}

/* BREAKPOINTS ADICIONALES */
@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }
    .footer-container{
            grid-template-columns: 320px 1fr;
    }
}

@media (min-width: 640px) {
    .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 880px) {
    .products {
        grid-template-columns: repeat(3, 1fr);
    }

    .search-box {
        width: 45%;
    }
}

@media (min-width: 1024px) {
    .layout {
        grid-template-columns: 300px 1fr;
    }

    .products {
        grid-template-columns: repeat(4, 1fr);
    }

    .search-box {
        width: 50%;
        min-width: 380px;
    }

}

@media (max-width: 1024px) {
    .home-hero-section {
        min-height: auto;
        padding: 34px 0;
    }

    .home-hero-wrapper {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .home-hero-description {
        margin: 0 0 18px;
    }

    .home-hero-title {
        font-size: 3rem;
    }

    .home-hero-actions {
        justify-content: flex-start;
    }

    .hero-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .home-hero-section {
        padding: 28px 0;
    }

    .hero-buying-modes {
        grid-template-columns: 1fr;
    }

    .hero-trust-row {
        grid-template-columns: 1fr;
    }

    .hero-category-panel {
        padding: 12px;
    }

    .hero-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-category-card,
    .hero-category-card img {
        min-height: 112px;
    }
}

@media (max-width: 468px) {
    
    .home-hero-section {
        padding: 24px 0;
        background:
            linear-gradient(
                90deg,
                rgba(7, 18, 33, 0.9) 0%,
                rgba(7, 18, 33, 0.78) 100%
            ),
            url('../img/banner_movil.webp') center/cover no-repeat;
    }

    .home-hero-badge {
        font-size: 0.78rem;
    }

    .home-hero-title {
        font-size: 2.15rem;
    }

    .home-hero-actions {
        flex-direction: column;
    }

    .hero-search-form {
        grid-template-columns: 1fr;
    }

    .hero-search-form input {
        min-height: 42px;
    }

    .hero-primary-button,
    .hero-secondary-button {
        width: 100%;
    }

    .hero-category-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 1100px) {
    .hero-market {
        min-height: auto;
        padding: 30px 0;
    }

    .hero-panel-kicker {
        display: none;
    }

    .hero-carousel-controls {
        display: inline-flex;
    }

    .hero-market-wrap {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .hero-copy p {
        max-width: 760px;
    }

    .category-grid-alt {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hero-category-carousel .cat-alt:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-market {
        padding: 24px 0;
    }

    .hero-copy h1 {
        font-size: 2.45rem;
    }

    .hero-copy p {
        font-size: 0.96rem;
    }

    .hero-search-box {
        display: none;
    }

    .hero-benefits {
        display: none;
    }

    .buy-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-panel {
        display: none;
    }
}

@media (max-width: 520px) {
    .hero-market-wrap {
        width: min(92%, 100% - 24px);
        gap: 18px;
    }

    .hero-copy h1 {
        font-size: 2.05rem;
    }

    .hero-label,
    .hero-benefits div,
    .hero-panel-head span {
        font-size: 0.78rem;
    }

    .hero-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .btn-yellow,
    .btn-white {
        width: 100%;
        min-height: 40px;
        padding: 8px 10px;
        font-size: 0.78rem;
        line-height: 1.15;
        text-align: center;
    }

    .buy-options {
        grid-template-columns: 1fr;
    }
}

/* Header final responsive overrides */
.header {
    min-height: 112px;
    background: #fff;
}

.header-top {
    min-height: 68px;
    display: grid !important;
    grid-template-columns: minmax(140px, 180px) minmax(260px, 1fr) auto;
    gap: 16px;
    align-items: center;
    width: min(100%, var(--max-width));
    padding: 8px clamp(16px, 4vw, 48px);
}

.header .logo {
    position: static !important;
    display: inline-flex;
    align-items: center;
    transform: none !important;
}

.header .logo img {
    width: 140px !important;
    height: 56px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    object-fit: contain;
}

.header .hamburger-menu {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    border: 1px solid #dbe3e8;
    border-radius: 10px;
    background: #f4f8fa;
    color: #12384e;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    cursor: pointer;
    z-index: 1100;
}

.header .hamburger-menu .bar {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.header .hamburger-menu:hover,
.header .hamburger-menu:focus-visible {
    background: #e8f3f7;
    border-color: #b8d7e2;
    outline: none;
}

.header .hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.header .hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.header .hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.header .search-box {
    position: relative;
    width: 100% !important;
    max-width: 560px;
    min-width: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-self: center;
    margin: 0 !important;
    padding: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
}

.header .autocomplete-wrapper {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.header #searchGlobal {
    width: 100%;
    min-height: 44px;
    padding: 0 44px 0 14px;
    border: 1px solid #dbe3e8;
    border-radius: 10px;
    outline: 0;
    background: #fff;
    color: #111827;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    font: inherit;
    font-size: 0.92rem;
}

.header .search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    z-index: 20;
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #eef7fb;
    color: var(--color-principal);
    transform: translateY(-50%);
}

.header-action-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header .actions,
.header .session-actions {
    position: static !important;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    transform: none !important;
}

.header .session-link,
.header .cart-icon {
    position: relative;
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid #dbe3e8;
    border-radius: 8px;
    background: #fff;
    color: #12384e;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    cursor: pointer;
}

.header .register-link,
.header .profile-link {
    border-color: var(--color-principal);
    background: var(--color-principal);
    color: #fff;
}

.header .cart-icon {
    border: 0;
    background: #f4f8fa;
}

.header .cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 900;
    line-height: 1;
}

.header .profile-menu-toggle::after {
    display: none;
}

.header .profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 9px;
}

.header .nav-bar {
    min-height: 44px;
    width: min(100%, var(--max-width));
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 7px clamp(16px, 4vw, 48px);
}

.header .categories-btn {
    flex: 0 0 auto;
    width: auto;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 8px;
    text-align: left;
}

.header .categories-btn a {
    color: inherit;
    text-decoration: none;
}

.header .menu {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 24px);
    overflow: hidden;
}

.header .menu a {
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .header {
        min-height: 116px;
    }

    .header-top {
        grid-template-columns: minmax(118px, 150px) minmax(220px, 1fr) auto;
        gap: 14px;
        padding-inline: 16px;
    }

    .header .search-box {
        max-width: 460px;
    }

    .header .header-action-text {
        display: none;
    }

    .header .session-link,
    .header .cart-icon {
        width: 40px;
        height: 40px;
        padding: 0;
    }

    .header .nav-bar {
        gap: 12px;
        padding-inline: 16px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .header .nav-bar::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 768px) {
    .header {
        min-height: 114px;
    }

    .header-top {
        min-height: 114px;
        grid-template-columns: 44px minmax(96px, 1fr) auto;
        grid-template-areas:
            "menu logo actions"
            "search search search";
        gap: 8px 10px;
        padding: 8px 12px 10px;
    }

    .header .hamburger-menu {
        grid-area: menu;
        display: inline-flex;
        position: static !important;
        transform: none !important;
    }

    .header .logo {
        grid-area: logo;
        justify-content: center;
    }

    .header .logo img {
        width: 118px !important;
        height: 46px !important;
    }

    .header .actions {
        grid-area: actions;
        gap: 6px;
    }

    .header .session-actions {
        gap: 6px;
    }

    .header .search-box {
        grid-area: search;
        max-width: none;
    }

    .header #searchGlobal {
        min-height: 42px;
        font-size: 0.9rem;
    }

    .header .nav-bar {
        display: none;
    }

    .header .profile-dropdown {
        right: -46px;
    }
}

@media (max-width: 420px) {
    .hero-copy h1{
        font-size: 1.7rem !important;
    }
    .section-main-title{
        font-size: 1.7rem !important;
        font-weight: bold !important;
    }
    .header-top {
        grid-template-columns: 40px minmax(72px, 1fr) auto;
        gap: 7px;
    }

    .header .logo img {
        width: 104px !important;
        height: 42px !important;
    }

    .header .session-actions {
        max-width: 86px;
        overflow: hidden;
    }

    .header .session-link,
    .header .cart-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .header-action-icon {
        width: 19px;
        height: 19px;
        flex-basis: 19px;
    }
}

/* Product and subcategory filter layout fixes */
@media (max-width: 1024px) {
    .layout {
        width: min(100%, 100vw);
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
        overflow-x: hidden;
    }

    .layout > .sidebar {
        width: min(100%, calc(100vw - 24px));
        max-width: 100%;
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(160px, 200px);
        align-items: center;
        gap: 14px;
        margin: 0 auto;
        padding: 12px;
        overflow-x: auto;
        overflow-y: hidden;
        border-radius: 12px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .layout > .sidebar > * {
        min-width: 0;
        width: auto;
        flex: none;
        margin: 0 !important;
        min-height: 92px;
        padding: 12px;
        border: 1px solid #e5edf1;
        border-radius: 10px;
        background: #ffffff;
        box-shadow: none;
        scroll-snap-align: start;
    }

    .layout > #sidebar-filtro-movil > .price-filter-card {
        min-width: 240px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        align-content: center;
    }

    .layout > .sidebar h3 {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: #12384e;
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .layout > .sidebar .filter-list {
        max-height: 170px;
        display: grid;
        grid-auto-flow: row;
        gap: 6px;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0;
    }

    .layout > .sidebar .filter-list li {
        margin: 0;
    }

    .layout > .sidebar .filter-list label {
        min-height: 38px;
        padding: 7px 8px;
        gap: 10px;
        border: 1px solid #edf2f5;
        border-radius: 8px;
        background: #f8fafb;
    }

    .layout > .sidebar .filtro-bloque {
        min-width: 220px;
        display: grid;
        grid-template-columns: 1fr;
        align-content: center;
        gap: 10px;
    }

    .layout > .sidebar .filtro-bloque label {
        min-height: 0;
        margin: 0 !important;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        color: #12384e;
        font-size: 0.86rem;
        font-weight: 800;
        line-height: 1.25;
        text-align: left;
    }

    .layout > .sidebar .filtro-select {
        width: 100%;
        min-width: 0;
        height: 40px;
        margin: 0;
        box-sizing: border-box;
        font-size: 0.86rem;
    }

    .layout > .sidebar .price-row {
        min-width: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        margin: 0 !important;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .layout > .sidebar .price-box {
        width: 100%;
        min-width: 0;
        min-height: 40px;
        padding: 0 8px;
    }

    .layout > .sidebar .price-btn {
        min-width: 0;
        width: 100%;
        min-height: 40px;
        padding: 0 12px;
        border-radius: 8px;
        font-size: 0.85rem;
        font-weight: 800;
    }

    .layout > #sidebar-filtro-movil .price-filter-card > label {
        min-height: 0;
        margin: 0 !important;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        color: #12384e;
        font-size: 0.86rem;
        font-weight: 800;
    }

    .layout > .products {
        width: min(100%, calc(100vw - 24px));
        margin: 0 auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        min-height: 0;
    }

    .layout > .products .product-card,
    .layout > .products .subcategory-card {
        min-width: 0;
        padding: 12px;
        border-radius: 12px;
    }
}

@media (max-width: 640px) {
    .layout {
        gap: 14px;
    }

    .layout > .sidebar,
    .layout > #sidebar-filtro-movil {
        height: auto !important;
        min-height: 0;
        grid-auto-columns: minmax(156px, 70vw);
        align-items: center;
        padding: 12px;
        gap: 12px;
    }

    .layout > #sidebar-filtro-movil > .price-filter-card {
        min-width: min(280px, 74vw);
    }

    .layout > .sidebar .filtro-bloque {
        min-width: min(230px, 68vw);
    }

    .layout > .sidebar h3 {
        position: static !important;
        min-height: 0;
        left: auto;
        top: auto;
        background: #f4f8fa !important;
        box-shadow: none !important;
    }

    .layout > .sidebar > p {
        display: flex;
        align-items: center;
        min-height: 42px;
        font-size: 0.86rem;
        line-height: 1.35;
    }

    .layout > .sidebar > label {
        display: flex;
        align-items: center;
        min-height: 42px;
        color: #12384e;
        font-size: 0.88rem;
        font-weight: 800;
    }

    .layout > .sidebar .price-row {
        grid-auto-columns: initial;
    }

    .layout > .products {
        width: min(100%, calc(100vw - 18px));
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .layout > .products .product-card,
    .layout > .products .subcategory-card {
        padding: 10px;
        border-radius: 10px;
    }

    .layout > .products .product-image,
    .layout > .products .subcategory-card .product-image {
        padding: 8px;
        border-radius: 8px;
    }

    .layout > .products .product-title,
    .layout > .products .subcategory-card .product-title {
        min-height: 2.4em;
        font-size: 0.88rem;
        line-height: 1.2;
    }

    .layout > .products .product-category,
    .layout > .products .subcategory-card .product-category {
        margin-bottom: 10px;
        font-size: 0.78rem;
    }

    .layout > .products .product-actions {
        gap: 8px;
    }
}

@media (max-width: 420px) {
    .layout > .products {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .layout > .products .product-card,
    .layout > .products .subcategory-card {
        max-width: 360px;
        margin-inline: auto;
    }
}

