/*
Theme Name: Adendorf Theme
Theme URI: https://adendorf.net
Author: Adendorf Development Team
Author URI: https://adendorf.net
Description: Tema personalizado para Adendorf - Equipos industriales y control de calidad. Diseño moderno estilo editorial blocks con integración WooCommerce en modo catálogo y sistema de cotización por WhatsApp.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adendorf-theme
Tags: e-commerce, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, woocommerce

Este tema está diseñado específicamente para Representaciones Adendorf,
especialistas en equipos industriales y control de calidad.
*/

/* ==========================================================================
   CSS Variables - Design Tokens
   ========================================================================== */
:root {
    /* Colores principales */
    --color-primary: #007BFF;
    --color-primary-dark: #0056b3;
    --color-secondary: #F39C12;
    --color-secondary-dark: #d68910;
    
    /* Colores de fondo */
    --color-bg-dark: #000000;
    --color-bg-darker: #1A1A1A;
    --color-bg-gray: #121212;
    --color-bg-light: #F8F8F8;
    --color-bg-white: #FFFFFF;
    
    /* Colores de texto */
    --color-text-white: #FFFFFF;
    --color-text-light: #B0B0B0;
    --color-text-dark: #1A1A1A;
    --color-text-muted: #6c757d;
    
    /* Tipografía */
    --font-primary: 'Inter', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-regular: 400;
    --font-weight-bold: 700;
    --font-weight-black: 900;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
    
    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Bordes */
    --border-radius: 0px;
    --border-radius-sm: 4px;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    
    /* Contenedores */
    --container-max: 1400px;
    --container-narrow: 1200px;
}

/* ==========================================================================
   Reset y Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* ==========================================================================
   Tipografía
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
}

.text-white { color: var(--color-text-white); }
.text-light { color: var(--color-text-light); }
.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }

/* ==========================================================================
   Contenedores
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--spacing-md);
}

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-white);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-white);
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-white);
    border-color: var(--color-text-white);
}

.btn-outline:hover {
    background-color: var(--color-text-white);
    color: var(--color-bg-dark);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--color-text-dark);
    border-color: var(--color-text-dark);
}

.btn-outline-dark:hover {
    background-color: var(--color-text-dark);
    color: var(--color-text-white);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--color-text-white);
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.75rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--color-bg-white);
    transition: var(--transition-normal);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Cinta superior con contactos */
.top-bar {
    background-color: #2a2a2a;
    color: var(--color-text-white);
    padding: 0.4rem 0;
    font-size: 0.8rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-nav {
    display: flex;
    gap: var(--spacing-md);
}

.top-bar-nav a {
    color: rgba(255,255,255,0.8);
    font-weight: var(--font-weight-semibold);
    transition: var(--transition-fast);
}

.top-bar-nav a:hover {
    color: var(--color-primary);
}

.top-bar-links {
    display: flex;
    gap: var(--spacing-lg);
}

.top-bar-links a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition-fast);
}

.top-bar-links a:hover {
    color: #fff;
}

.top-bar-links i {
    margin-right: 0.35rem;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
}

/* Header principal */
.header-main {
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-logo-text {
    font-size: 1.75rem;
    font-weight: var(--font-weight-black);
    color: var(--color-text-dark);
    letter-spacing: -1px;
}

/* Navegación */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--color-text-dark);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-normal);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item a::after {
    width: 100%;
}

/* Submenu dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 250px;
    background-color: var(--color-bg-darker);
    padding: var(--spacing-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.nav-menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a {
    display: block;
    padding: 0.75rem var(--spacing-md);
    text-transform: none;
    font-weight: var(--font-weight-regular);
}

.nav-menu .sub-menu a:hover {
    background-color: var(--color-primary);
}

.nav-menu .sub-menu a::after {
    display: none;
}

/* Header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-search-toggle,
.header-quote-toggle {
    color: var(--color-text-dark);
    font-size: 1.25rem;
    padding: 0.5rem;
    position: relative;
}

.header-quote-toggle:hover,
.header-search-toggle:hover {
    color: var(--color-primary);
}

.quote-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--color-secondary);
    color: var(--color-text-white);
    font-size: 0.625rem;
    font-weight: var(--font-weight-bold);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header Search - Siempre visible */
.header-search-form {
    position: relative;
    width: 400px;
    max-width: 40vw;
    flex: 1;
    max-width: 500px;
    margin: 0 var(--spacing-lg);
}

.header-search-form input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid var(--color-primary);
    border-radius: 30px;
    font-size: 1rem;
    background: var(--color-bg-white);
    color: var(--color-text-dark);
    outline: none;
}

.header-search-form input::placeholder {
    color: var(--color-text-muted);
}

.header-search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-primary);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.header-search-form button:hover {
    background: var(--color-primary-dark);
}

/* ==========================================================================
   Barra de Categorías
   ========================================================================== */
.categories-bar {
    background-color: #3a3a3a;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.categories-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.categories-arrow {
    background: #3a3a3a;
    border: none;
    color: #fff;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    z-index: 5;
    flex-shrink: 0;
}

.categories-arrow:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.categories-arrow-left {
    border-right: 1px solid rgba(255,255,255,0.1);
}

.categories-arrow-right {
    border-left: 1px solid rgba(255,255,255,0.1);
}

.categories-nav {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    scroll-behavior: smooth;
}

.categories-nav::-webkit-scrollbar {
    display: none;
}

.categories-list {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    padding: 0;
    margin: 0;
    list-style: none;
}

.category-item {
    position: relative;
}

.category-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background-color: rgba(255,255,255,0.2);
}

.category-item:last-child::after {
    display: none;
}

.category-item a {
    display: block;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.category-item a:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* Responsive - Ocultar en móvil o hacer scroll */
@media (max-width: 1200px) {
    .category-item a {
        padding: 0.65rem 0.75rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .categories-bar {
        display: none; /* Ocultar en móvil - se muestra en menú móvil */
    }
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text-dark);
    transition: var(--transition-normal);
}

/* ==========================================================================
   Mobile Navigation Overlay
   ========================================================================== */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background-color: #1a1a1a;
    z-index: 9999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-nav-overlay.active {
    left: 0;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #1a1a1a;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background-color: #111111;
}

.mobile-nav-logo {
    font-size: 1.25rem;
    font-weight: var(--font-weight-black);
    color: var(--color-text-white);
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-white);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-menu-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md) 0;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu > li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.mobile-nav-menu > li > a:hover {
    background-color: rgba(255,255,255,0.1);
}

.mobile-nav-menu > li > a i {
    font-size: 0.75rem;
    color: #ffffff;
    transition: transform 0.3s;
}

.mobile-nav-menu > li.has-submenu.open > a i {
    transform: rotate(180deg);
}

/* Submenú móvil */
.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: rgba(255,255,255,0.05);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-nav-menu > li.has-submenu.open .mobile-submenu {
    max-height: 500px;
}

.mobile-submenu li a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-lg);
    padding-left: calc(var(--spacing-lg) + var(--spacing-md));
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-submenu li a:hover {
    color: #ffffff;
    background-color: rgba(255,255,255,0.1);
}



/* Overlay de fondo */
.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 320px;
    width: calc(100% - 320px);
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-nav-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Hero Section - Editorial Blocks Style
   ========================================================================== */
.hero-section {
    padding-top: 155px; /* Compensar header fijo + top-bar + barra categorías */
    background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-darker) 100%);
    color: var(--color-text-white);
}

@media (max-width: 768px) {
    .hero-section {
        padding-top: 90px; /* Sin barra de categorías ni top-bar en móvil */
    }
}

/* Cinta de texto superior del hero */
.hero-ribbon {
    background-color: var(--color-secondary);
    padding: 0.75rem 0;
    text-align: center;
}

.hero-ribbon-text {
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
}

/* Hero principal con carrusel */
.hero-main {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-carousel {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: var(--spacing-xxl);
}

.hero-slide-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: var(--font-weight-black);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
}

.hero-slide-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
}

/* Carousel navigation */
.hero-carousel-nav {
    position: absolute;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--spacing-sm);
    z-index: 10;
}

.hero-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition-normal);
}

.hero-carousel-dot.active,
.hero-carousel-dot:hover {
    background-color: var(--color-primary);
}

.hero-carousel-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 var(--spacing-md);
    z-index: 10;
    pointer-events: none;
}

.hero-arrow {
    width: 50px;
    height: 50px;
    background-color: rgba(0,0,0,0.5);
    color: var(--color-text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    pointer-events: auto;
    transition: var(--transition-normal);
}

.hero-arrow:hover {
    background-color: var(--color-primary);
}

/* Editorial blocks (2 bloques inferiores) */
.hero-editorial-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background-color: var(--color-bg-dark);
}

.editorial-block {
    position: relative;
    height: 300px;
    overflow: hidden;
    cursor: pointer;
}

.editorial-block-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: var(--transition-slow);
}

.editorial-block:hover .editorial-block-bg {
    transform: scale(1.05);
}

.editorial-block-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
}

.editorial-block-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg);
    z-index: 2;
}

.editorial-block-label {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-text-white);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
}

.editorial-block-title {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-xs);
}

.editorial-block-cta {
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: var(--font-weight-bold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.editorial-block-cta:hover {
    gap: 1rem;
}

/* ==========================================================================
   Sección Más Vendidos
   ========================================================================== */
.section {
    padding: var(--spacing-xxl) 0;
}

.section-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
}

.section-light {
    background-color: var(--color-bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-black);
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section-dark .section-subtitle {
    color: var(--color-text-light);
}

/* Products Grid - Para secciones del Home */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

/* Product Card */
.product-card {
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-normal);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    position: relative;
    padding-top: 100%;
    background-color: var(--color-bg-light);
    overflow: hidden;
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    background-color: var(--color-secondary);
    color: var(--color-text-white);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
}

.product-card-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: var(--transition-normal);
}

.product-card:hover .product-card-actions {
    opacity: 1;
}

.product-card-content {
    padding: var(--spacing-md);
}

.product-card-category {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.product-card-title {
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-sku {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
}

.product-card-price {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.product-card-price-old {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

/* ==========================================================================
   Sección Categorías
   ========================================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-md);
}

.category-card {
    position: relative;
    padding-top: 120%;
    overflow: hidden;
    cursor: pointer;
}

.category-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: var(--transition-slow);
}

.category-card:hover .category-card-bg {
    transform: scale(1.1);
}

.category-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 100%);
}

.category-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    text-align: center;
    z-index: 2;
}

.category-card-title {
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-card-count {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

/* ==========================================================================
   Sección Oferta Destacada (2 columnas)
   ========================================================================== */
.featured-offer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background-color: var(--color-bg-darker);
    min-height: 500px;
}

.featured-offer-image {
    position: relative;
    overflow: hidden;
}

.featured-offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-offer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-xxl);
    color: var(--color-text-white);
}

.featured-offer-label {
    display: inline-block;
    background-color: var(--color-secondary);
    color: var(--color-text-white);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
    width: fit-content;
}

.featured-offer-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-black);
    margin-bottom: var(--spacing-sm);
}

.featured-offer-description {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
}

.featured-offer-price {
    font-size: 2.5rem;
    font-weight: var(--font-weight-black);
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
}

.featured-offer-price-old {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
    margin-right: var(--spacing-sm);
}

/* ==========================================================================
   Sección Productos en Oferta
   ========================================================================== */
.section-footer {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* ==========================================================================
   Sección Descuento (2 columnas invertidas)
   ========================================================================== */
.discount-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 450px;
}

.discount-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-xxl);
    background-color: var(--color-primary);
    color: var(--color-text-white);
}

.discount-percentage {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: var(--font-weight-black);
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.discount-percentage span {
    font-size: 0.4em;
    vertical-align: super;
}

.discount-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
}

.discount-text {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
}

.discount-image {
    position: relative;
    overflow: hidden;
}

.discount-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Sección Marcas
   ========================================================================== */
.brands-section {
    background-color: var(--color-bg-light);
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.brands-carousel {
    display: flex;
    gap: var(--spacing-xxl);
    animation: brands-scroll 30s linear infinite;
}

.brands-carousel:hover {
    animation-play-state: paused;
}

@keyframes brands-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.brand-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    padding: 0 var(--spacing-lg);
    filter: grayscale(100%);
    opacity: 0.5;
    transition: var(--transition-normal);
}

.brand-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-item img {
    max-height: 60px;
    width: auto;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
}

.footer-main {
    padding: var(--spacing-xxl) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    margin-bottom: var(--spacing-md);
}

.footer-logo img {
    max-height: 50px;
}

.footer-description {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    font-size: 0.875rem;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: var(--color-bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background-color: var(--color-primary);
}

.footer-title {
    font-size: 1rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-white);
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--color-text-light);
    font-size: 0.875rem;
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-light);
    font-size: 0.875rem;
}

.footer-contact-item i {
    color: var(--color-primary);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid var(--color-bg-darker);
    padding: var(--spacing-md) 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.footer-bottom-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-bottom-links a:hover {
    color: var(--color-primary);
}

.footer-developer-credit {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-light);
    opacity: 0.7;
}

.footer-developer-credit a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.footer-developer-credit a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Página de Catálogo / Archivo de Productos
   ========================================================================== */
.page-header {
    background-color: var(--color-bg-dark);
    padding: 150px 0 var(--spacing-xxl);
    color: var(--color-text-white);
}

.page-header.page-header-light {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

.page-header.page-header-light .page-title {
    color: var(--color-text-dark);
}

.page-header.page-header-light .breadcrumbs,
.page-header.page-header-light .breadcrumbs a,
.page-header.page-header-light .breadcrumbs span {
    color: var(--color-text-muted);
}

.page-header.page-header-light .breadcrumbs a:hover {
    color: var(--color-primary);
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-black);
    text-transform: uppercase;
}

.breadcrumbs {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: var(--spacing-sm);
}

.breadcrumbs a:hover {
    color: var(--color-primary);
}

.breadcrumbs span {
    color: var(--color-text-muted);
}

/* Sidebar de filtros */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--spacing-xl);
    padding: var(--spacing-xxl) 0;
}

.shop-sidebar {
    background-color: var(--color-bg-light);
    padding: var(--spacing-lg);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: var(--spacing-lg);
}

.filter-title {
    font-size: 0.875rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-bg-dark);
}

.filter-list li {
    margin-bottom: 0.5rem;
}

.filter-list label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.filter-list input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

/* Shop toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-bg-light);
}

.shop-result-count {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.shop-sort select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--color-bg-light);
    font-family: inherit;
    font-size: 0.875rem;
}

/* ==========================================================================
   Página de Producto Individual
   ========================================================================== */
.single-product-section {
    padding: 150px 0 var(--spacing-xxl);
}

.single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
}

/* Galería de producto */
.product-gallery {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--spacing-md);
}

.product-thumbnails {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.product-thumbnail {
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-normal);
}

.product-thumbnail.active,
.product-thumbnail:hover {
    border-color: var(--color-primary);
}

.product-main-image {
    background-color: var(--color-bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
}

/* Info del producto */
.product-info {
    padding: var(--spacing-lg) 0;
}

.product-category-link {
    font-size: 0.875rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
}

.product-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: var(--font-weight-black);
    margin-bottom: var(--spacing-sm);
}

.product-sku {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
}

.product-short-description {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.product-price-wrapper {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: var(--color-bg-light);
}

.product-price {
    font-size: 2rem;
    font-weight: var(--font-weight-black);
    color: var(--color-primary);
}

.product-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.product-meta {
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-bg-light);
}

.product-meta-item {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.product-meta-label {
    font-weight: var(--font-weight-bold);
    min-width: 100px;
}

/* Especificaciones técnicas */
.product-specs {
    margin-top: var(--spacing-xxl);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr:nth-child(even) {
    background-color: var(--color-bg-light);
}

.specs-table th,
.specs-table td {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--color-bg-light);
}

.specs-table th {
    font-weight: var(--font-weight-bold);
    width: 35%;
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
}

/* ==========================================================================
   Mini Cotización (Side Cart)
   ========================================================================== */
.quote-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: var(--color-bg-white);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.quote-sidebar.active {
    right: 0;
}

.quote-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.quote-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-bg-light);
    background-color: var(--color-bg-dark);
    color: var(--color-text-white);
}

.quote-header-title {
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quote-close {
    font-size: 1.5rem;
    color: var(--color-text-white);
}

.quote-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.quote-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-bg-light);
}

.quote-item-image {
    background-color: var(--color-bg-light);
}

.quote-item-image img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.quote-item-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-item-title {
    font-size: 0.875rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.25rem;
}

.quote-item-sku {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.quote-item-remove {
    color: var(--color-text-muted);
    font-size: 1.25rem;
    align-self: center;
}

.quote-item-remove:hover {
    color: #e74c3c;
}

.quote-empty {
    text-align: center;
    padding: var(--spacing-xxl) var(--spacing-md);
    color: var(--color-text-muted);
}

.quote-empty-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.3;
}

.quote-footer {
    padding: var(--spacing-md);
    border-top: 1px solid var(--color-bg-light);
}

.quote-total {
    display: flex;
    justify-content: space-between;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
}

.quote-footer .btn {
    width: 100%;
}

.quote-footer .btn + .btn {
    margin-left: var(--spacing-sm);
}

.quote-footer:has(.btn + .btn) {
    display: flex;
    gap: var(--spacing-sm);
}

/* Indicador de pasos */
.quote-steps {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-md);
    background-color: var(--color-bg-light);
    border-bottom: 1px solid #e0e0e0;
}

.quote-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.quote-step.active,
.quote-step.completed {
    opacity: 1;
}

.quote-step .step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--color-bg-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.quote-step.completed .step-number {
    background-color: #27ae60;
}

.quote-step.active .step-number {
    background-color: var(--color-primary);
}

.quote-step .step-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Contenido de pasos */
.quote-content {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.quote-content.active {
    display: flex;
}

/* Formulario de cotización */
.quote-form-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.quote-form-intro {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    font-size: 0.9rem;
}

.quote-form .form-group {
    margin-bottom: var(--spacing-md);
}

.quote-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    color: var(--color-text-dark);
}

.quote-form input,
.quote-form textarea,
.quote-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
    background-color: #fff;
}

.quote-form input:focus,
.quote-form textarea:focus,
.quote-form select:focus {
    border-color: var(--color-primary);
    outline: none;
}

.quote-form input.error,
.quote-form textarea.error,
.quote-form select.error {
    border-color: #e74c3c;
}

/* Confirmación */
.quote-confirm-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: var(--spacing-md);
}

.quote-privacy-notice {
    background-color: #f8f9fa;
    border-left: 4px solid var(--color-primary);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-radius: 4px;
}

.quote-privacy-notice i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.quote-privacy-notice h4 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.quote-privacy-notice p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.5;
}

.quote-privacy-notice a {
    color: var(--color-primary);
    text-decoration: underline;
}

.quote-summary {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: var(--spacing-md);
}

.quote-summary-section {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid #eee;
}

.quote-summary-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.quote-summary-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quote-summary-content {
    font-size: 0.9rem;
}

.quote-summary-products li {
    padding: 0.25rem 0;
    display: flex;
    justify-content: space-between;
}

/* Éxito */
.quote-success-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    text-align: center;
}

.quote-success-icon {
    font-size: 4rem;
    color: #27ae60;
    margin-bottom: var(--spacing-md);
}

.quote-success-wrapper h4 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.quote-success-wrapper p {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

/* Botón success */
.btn-success {
    background-color: #27ae60;
    color: #fff;
    border-color: #27ae60;
}

.btn-success:hover {
    background-color: #219a52;
    border-color: #219a52;
}

/* ==========================================================================
   Buscador Overlay
   ========================================================================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    width: 100%;
    max-width: 800px;
    padding: var(--spacing-lg);
}

.search-overlay-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    font-size: 2rem;
    color: var(--color-text-white);
}

.search-overlay-form {
    position: relative;
}

.search-overlay-input {
    width: 100%;
    padding: var(--spacing-md);
    font-size: 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--color-text-white);
    color: var(--color-text-white);
    outline: none;
}

.search-overlay-input::placeholder {
    color: var(--color-text-light);
}

/* ==========================================================================
   Páginas Estáticas (Empresa, Contacto)
   ========================================================================== */
.static-page-content {
    padding: var(--spacing-xxl) 0;
}

.content-block {
    margin-bottom: var(--spacing-xxl);
}

.content-block h2 {
    margin-bottom: var(--spacing-md);
}

.content-block p {
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Formulario de contacto */
.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem var(--spacing-sm);
    border: 1px solid var(--color-bg-light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    body.woocommerce-shop ul.products,
    body.post-type-archive-product ul.products,
    body.tax-product_cat ul.products,
    #products-grid ul.products,
    html body.woocommerce #products-grid ul.products[class] {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Ocultar barra de categorías en móvil */
    .categories-bar {
        display: none;
    }
    
    /* Ocultar botón contactar del header en móvil (está en menú móvil) */
    .header-whatsapp {
        display: none;
    }
    
    /* Ajustar buscador en móvil */
    .header-search-form {
        max-width: 150px;
        margin: 0 var(--spacing-sm);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    body.woocommerce-shop ul.products,
    body.post-type-archive-product ul.products,
    body.tax-product_cat ul.products,
    #products-grid ul.products,
    html body.woocommerce #products-grid ul.products[class] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .featured-offer {
        grid-template-columns: 1fr;
    }
    
    .featured-offer-image {
        height: 300px;
    }
    
    .discount-section {
        grid-template-columns: 1fr;
    }
    
    .discount-image {
        height: 300px;
        order: -1;
    }
    
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        position: static;
    }
    
    .single-product-layout {
        grid-template-columns: 1fr;
    }
    
    .product-gallery {
        grid-template-columns: 1fr;
    }
    
    .product-thumbnails {
        flex-direction: row;
        order: 1;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-main {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-slide-content {
        padding: var(--spacing-lg);
    }
    
    .hero-editorial-blocks {
        grid-template-columns: 1fr;
    }
    
    .editorial-block {
        height: 250px;
    }
    
    body.woocommerce-shop ul.products,
    body.post-type-archive-product ul.products,
    body.tax-product_cat ul.products,
    #products-grid ul.products,
    html body.woocommerce #products-grid ul.products[class] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: var(--spacing-md) !important;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .header-search-form {
        max-width: 200px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    .quote-sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    body.woocommerce-shop ul.products,
    body.post-type-archive-product ul.products,
    body.tax-product_cat ul.products,
    #products-grid ul.products,
    html body.woocommerce #products-grid ul.products[class] {
        grid-template-columns: 1fr !important;
    }
    
    .header-search-form {
        max-width: 120px;
        margin: 0 var(--spacing-sm);
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Utilidades
   ========================================================================== */
.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;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slideUp {
    animation: slideUp 0.5s ease forwards;
}

.animate-slideDown {
    animation: slideDown 0.5s ease forwards;
}

/* Loading spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-bg-light);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   Transiciones de Página
   ========================================================================== */
.page-transition {
    opacity: 0;
    animation: pageEnter 0.4s ease forwards;
}

@keyframes pageEnter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-exit {
    animation: pageExit 0.3s ease forwards;
}

@keyframes pageExit {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* ==========================================================================
   Página Nosotros - Tema Blanco
   ========================================================================== */
.page-template-page-nosotros .site-main,
.page-template-page-nosotros {
    background-color: var(--color-bg-white);
}

.page-template-page-nosotros .page-header {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

.page-template-page-nosotros .page-title {
    color: var(--color-text-dark);
}

.page-template-page-nosotros .breadcrumbs,
.page-template-page-nosotros .breadcrumbs a {
    color: var(--color-text-muted);
}

.page-template-page-nosotros .breadcrumbs a:hover {
    color: var(--color-primary);
}

.page-template-page-nosotros .about-intro,
.page-template-page-nosotros .about-values,
.page-template-page-nosotros .about-countries,
.page-template-page-nosotros .about-sectors,
.page-template-page-nosotros .about-cta {
    background-color: var(--color-bg-white);
}

.page-template-page-nosotros .about-intro-text h2,
.page-template-page-nosotros .about-intro-text p,
.page-template-page-nosotros .section-title,
.page-template-page-nosotros .section-subtitle {
    color: var(--color-text-dark);
}

.page-template-page-nosotros .about-stat {
    background: var(--color-bg-light);
    border: 1px solid #e0e0e0;
}

.page-template-page-nosotros .about-stat-number {
    color: var(--color-primary);
}

.page-template-page-nosotros .about-stat-label {
    color: var(--color-text-dark);
}

.page-template-page-nosotros .value-card {
    background: var(--color-bg-light);
    border: 1px solid #e0e0e0;
}

.page-template-page-nosotros .value-card h3,
.page-template-page-nosotros .value-card p {
    color: var(--color-text-dark);
}

.page-template-page-nosotros .country-item span {
    color: var(--color-text-dark);
}

.page-template-page-nosotros .sector-card {
    background: var(--color-bg-light);
    border: 1px solid #e0e0e0;
}

.page-template-page-nosotros .sector-card i {
    color: var(--color-primary);
}

.page-template-page-nosotros .sector-card span {
    color: var(--color-text-dark);
}

.page-template-page-nosotros .about-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

/* ==========================================================================
   FIX TIENDA - Grid de productos (SUPER máxima especificidad)
   ========================================================================== */

/* Reset completo de estilos de WooCommerce para productos */
html body.woocommerce #products-grid ul.products[class],
html body.woocommerce .shop-content ul.products[class],
html body.woocommerce.archive ul.products[class] {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
}

html body.woocommerce #products-grid ul.products[class]::before,
html body.woocommerce #products-grid ul.products[class]::after,
html body.woocommerce .shop-content ul.products[class]::before,
html body.woocommerce .shop-content ul.products[class]::after {
    display: none !important;
    content: none !important;
}

html body.woocommerce #products-grid ul.products > li[class],
html body.woocommerce .shop-content ul.products > li[class],
html body.woocommerce.archive ul.products > li[class] {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    clear: none !important;
    display: block !important;
    flex: unset !important;
}

