/* ===== VM MODULARES - CUSTOM STYLES FOR BOOTSTRAP ===== */

/* ===== CUSTOM VARIABLES ===== */
:root {
    /* Modern furniture color palette */
    --vm-primary: #2C3E50;        /* Deep navy blue - Professional, trustworthy */
    --vm-secondary: #34495E;      /* Charcoal gray - Neutral, sophisticated */
    --vm-accent: #16A085;         /* Teal green - Natural, calming accent */
    --vm-warning: #E8F4F8;        /* Soft ice blue - Elegant light tone */
    --vm-success: #27AE60;        /* Natural green - Fresh, organic feel */
    --vm-light-bg: #ECF0F1;       /* Light gray - Clean, modern background */

    /* SISTEMA TIPOGRÁFICO UNIFICADO Y PROFESIONAL */
    --font-primary: 'Montserrat', sans-serif;     /* Encabezados - Moderna y legible */
    --font-secondary: 'Open Sans', sans-serif;    /* Texto cuerpo - Clara y profesional */
    --font-accent: 'Playfair Display', serif;     /* Elementos premium - Elegante */

    /* PALETA DE COLORES PARA TEXTO PROFESIONAL */
    --text-primary: #2C5530;      /* Verde oscuro maderoso - Principal */
    --text-secondary: #5D4037;    /* Marrón madera - Secundario */
    --text-light: #8D6E63;        /* Madera clara - Textos complementarios */
    --text-dark: #1B2A1F;         /* Verde muy oscuro - Hero section */
    --text-white: #FFFFFF;        /* Texto sobre fondos oscuros */

    /* Enhanced shadows for modern luxury feel */
    --shadow-custom: 0 4px 20px rgba(44, 62, 80, 0.15);
    --shadow-hover: 0 8px 30px rgba(44, 62, 80, 0.25);
    --shadow-soft: 0 2px 10px rgba(44, 62, 80, 0.1);
}

/* ===== GLOBAL OVERRIDES ===== */
body {
    font-family: var(--font-primary);
    line-height: 1.7;
    font-size: 1.1rem;
    color: #2d3748;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== SISTEMA TIPOGRÁFICO PROFESIONAL UNIFICADO ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-wrap: balance;
    color: var(--text-primary);
}

/* ESCALA TIPOGRÁFICA JERÁRQUICA PROFESIONAL */
h1 {
    font-size: 3.5rem;        /* Título principal hero */
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text-dark);
}

h2 {
    font-size: 2.5rem;        /* Títulos de sección */
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

h3 {
    font-size: 2rem;          /* Subtítulos */
    font-weight: 600;
    letter-spacing: -0.3px;
    color: var(--text-secondary);
}

h4 {
    font-size: 1.5rem;        /* Encabezados menores */
    font-weight: 500;
    letter-spacing: -0.2px;
    color: var(--text-secondary);
}

h5 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-secondary);
}

h6 {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-light);
}

/* DISPLAY HEADINGS PROFESIONALES */
.display-1 {
    font-size: 4.5rem;        /* Título hero principal */
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    color: var(--text-dark);
    font-family: var(--font-accent);
}

.display-2 {
    font-size: 3.5rem;        /* Títulos hero secundarios */
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: var(--text-primary);
    font-family: var(--font-primary);
}

.display-3 {
    font-size: 3rem;          /* Títulos principales secciones */
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
    color: var(--text-primary);
    font-family: var(--font-primary);
}

.display-4 {
    font-size: 2.5rem;        /* Subtítulos importantes */
    font-weight: 600;
    letter-spacing: -0.8px;
    line-height: 1.2;
    color: var(--text-secondary);
    font-family: var(--font-primary);
}

.display-5 {
    font-size: 2rem;          /* Títulos medianos */
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.3;
    color: var(--text-secondary);
    font-family: var(--font-primary);
}

.display-6 {
    font-size: 1.75rem;       /* Títulos pequeños */
    font-weight: 500;
    letter-spacing: -0.3px;
    line-height: 1.3;
    color: var(--text-light);
    font-family: var(--font-primary);
}

/* TEXTO CUERPO PROFESIONAL */
.lead {
    font-size: 1.25rem;       /* Texto destacado */
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    font-family: var(--font-secondary);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;      /* Texto normal */
    line-height: 1.7;
    color: var(--text-secondary);
    font-family: var(--font-secondary);
    font-weight: 400;
}

small {
    font-size: 0.875rem;      /* Texto secundario */
    color: var(--text-light);
    font-family: var(--font-secondary);
}

.text-muted {
    color: var(--text-light) !important;
    font-weight: 400;
    font-family: var(--font-secondary);
}

/* FUENTE DISPLAY PARA ELEMENTOS ESPECIALES */
.font-display {
    font-family: var(--font-accent);
}

.font-primary {
    font-family: var(--font-primary);
}

.font-secondary {
    font-family: var(--font-secondary);
}


/* ===== HERO SECTION - CONTRASTE ÓPTIMO ===== */
.hero h1,
.hero .display-1 {
    color: #FFFFFF !important;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 0, 0, 0.4);
    font-weight: 800;
}

.hero .lead {
    color: #FFFFFF !important;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
}

.hero .display-4 {
    color: #FFFFFF !important;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.6);
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
    border-radius: 4px;
    display: inline-block;
}

.hero small {
    color: #FFFFFF !important;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

/* ===== PROFESIONAL TEXT COLORS ===== */
.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-light {
    color: var(--text-light) !important;
}

.text-dark {
    color: var(--text-dark) !important;
}

.text-white {
    color: var(--text-white) !important;
}

/* ===== CUSTOM BOOTSTRAP THEME ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--vm-primary) 0%, var(--vm-secondary) 100%);
    border-color: var(--vm-primary);
    font-weight: 500;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--vm-secondary) 0%, var(--vm-primary) 100%);
    border-color: var(--vm-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.text-primary {
    color: var(--vm-primary) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--vm-primary) 0%, var(--vm-secondary) 100%) !important;
}

.text-warning {
    color: var(--vm-accent) !important;
}

.text-danger {
    color: var(--vm-accent) !important;
}

/* ===== HERO SECTION CUSTOM STYLES ===== */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-background {
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.6);
}

/* ===== HERO FEATURES - MEJOR CONTRASTE ===== */
.hero .text-center small {
    color: #FFFFFF !important;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: inline-block;
    min-width: 120px;
    font-family: 'Open Sans', sans-serif;
}

.hero .text-center i {
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.5);
}

/* ===== PRODUCT CARDS CUSTOM STYLES PROFESIONALES ===== */
.product-card .card {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(44, 85, 48, 0.1);
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.product-card .card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 15px 40px rgba(44, 85, 48, 0.2);
    border-color: rgba(27, 42, 31, 0.3);
}

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

.product-overlay {
    transition: opacity 0.3s ease;
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.9), rgba(27, 42, 31, 0.9)) !important;
    backdrop-filter: blur(5px);
}

.product-card:hover .product-overlay {
    opacity: 1 !important;
}

.product-card .card-title {
    color: var(--text-primary) !important;
    font-family: var(--font-primary);
    font-weight: 600;
}

.product-card .card-text {
    color: var(--text-secondary) !important;
    font-family: var(--font-secondary);
}

.product-overlay .btn {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.product-overlay .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: var(--vm-warning) !important;
    border-color: var(--vm-warning) !important;
    color: var(--vm-primary) !important;
}

/* ===== PRODUCT CARD FEATURE BUTTONS ===== */
.product-card .feature-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.product-card .feature-btn i {
    font-size: 0.8rem;
}

/* Ajuste del espaciado para características */
.product-card .d-flex.align-items-center {
    padding: 0.25rem 0.5rem !important;
}

.product-card .d-flex.align-items-center i {
    font-size: 0.8rem !important;
}

/* ===== CATEGORY FILTER BUTTONS ===== */
.category-filter-btn.active {
    background: linear-gradient(135deg, var(--vm-primary), var(--vm-secondary)) !important;
    border-color: var(--vm-primary) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.subcategory-tab.btn-primary {
    background: var(--vm-primary) !important;
    border-color: var(--vm-primary) !important;
}

/* ===== MODAL CUSTOM STYLES ===== */
.modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--vm-primary), var(--vm-secondary)) !important;
    border-bottom: none;
}

.modal-title,
.modal-header h5 {
    color: white !important;
    font-family: var(--font-primary);
    font-weight: 600;
}

/* ===== FORM CUSTOM STYLES PROFESIONALES ===== */
.form-control:focus,
.form-select:focus {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(44, 85, 48, 0.25);
}

.form-label {
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-weight: 600;
}

.form-control,
.form-select {
    font-family: var(--font-secondary);
    color: var(--text-secondary);
}

.form-control::placeholder {
    color: var(--text-light);
    font-family: var(--font-secondary);
}

/* ===== FAQ ACCORDION ENHANCED STYLES PROFESIONALES ===== */
.accordion-button {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%) !important;
    border: 1px solid rgba(44, 85, 48, 0.1) !important;
    transition: all 0.3s ease;
    color: var(--text-primary) !important;
    font-family: var(--font-primary);
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-dark) 100%) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(44, 85, 48, 0.2);
}

.accordion-button:focus {
    border-color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(44, 85, 48, 0.25);
}

.accordion-body {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 1px solid rgba(44, 85, 48, 0.1);
    border-top: none;
    color: var(--text-secondary);
    font-family: var(--font-secondary);
}

/* ===== CONTEXTUAL CONTACT CARDS PROFESIONALES ===== */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-dark) 100%) !important;
}

.card.bg-primary h6,
.card.bg-primary .text-primary {
    color: white !important;
}

.card.bg-success h6,
.card.bg-success .text-success {
    color: white !important;
}

.card.bg-warning h6,
.card.bg-warning .text-warning {
    color: var(--text-primary) !important;
}

.card.bg-info h6,
.card.bg-info .text-info {
    color: white !important;
}

/* ===== VENTAJAS SECTION PROFESIONAL ===== */
#ventajas .card-title {
    color: var(--text-primary) !important;
    font-family: var(--font-primary);
    font-weight: 600;
}

#ventajas .card-text {
    color: var(--text-secondary) !important;
    font-family: var(--font-secondary);
}

/* ===== ENHANCED BUTTON STYLES PROFESIONALES ===== */
.btn-warning {
    background: linear-gradient(135deg, var(--vm-warning) 0%, #e67e22 100%);
    border-color: var(--vm-warning);
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22 0%, var(--vm-warning) 100%);
    border-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.hero .btn {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero .btn-outline-light {
    color: #FFFFFF;
    border-color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero .btn-outline-light:hover {
    color: #2C3E50;
    background: #FFFFFF;
    border-color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* ===== ABOUT/NOSOTROS SECTION PROFESIONAL ===== */
#nosotros .display-5 {
    color: var(--text-primary) !important;
    font-family: var(--font-primary);
}

#nosotros .lead {
    color: var(--text-secondary) !important;
    font-family: var(--font-secondary);
}

#nosotros .text-muted {
    color: var(--text-light) !important;
    font-family: var(--font-secondary);
}

#nosotros .card-title {
    color: var(--text-dark) !important;
    font-family: var(--font-primary);
    font-weight: 600;
}

#nosotros .text-muted {
    color: var(--text-light) !important;
    font-family: var(--font-secondary);
}

/* ===== PRODUCTS SECTION PROFESIONAL ===== */
#productos .display-5 {
    color: var(--text-primary) !important;
    font-family: var(--font-primary);
}

#productos .lead {
    color: var(--text-secondary) !important;
    font-family: var(--font-secondary);
}

#productos .text-muted {
    color: var(--text-light) !important;
    font-family: var(--font-secondary);
}

#productos .h2 {
    color: var(--text-primary) !important;
    font-family: var(--font-primary);
}

/* ===== FAQ SECTION PROFESIONAL ===== */
#faq .display-5 {
    color: var(--text-primary) !important;
    font-family: var(--font-primary);
}

#faq .lead {
    color: var(--text-secondary) !important;
    font-family: var(--font-secondary);
}

/* ===== CONTEXTUAL CONTACT FORM STYLES ===== */
.contextual-contact-form .form-control:focus {
    border-color: var(--vm-secondary);
    box-shadow: 0 0 0 0.2rem rgba(52, 73, 94, 0.25);
}

.contextual-contact-form .btn-primary {
    background: linear-gradient(135deg, var(--vm-primary) 0%, var(--vm-secondary) 100%);
    border-color: var(--vm-primary);
}

.contextual-contact-form .btn-primary:hover {
    background: linear-gradient(135deg, var(--vm-secondary) 0%, var(--vm-primary) 100%);
    border-color: var(--vm-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(92, 75, 55, 0.3);
}

.btn-loading .btn-text {
    display: none;
}

.btn-loading .btn-loading {
    display: inline-flex !important;
}

/* ===== NAVBAR CUSTOM STYLES PROFESIONALES ===== */
.navbar {
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(44, 85, 48, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.15);
}

.navbar-brand h1 {
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1rem;
    letter-spacing: 0.2px;
    color: var(--text-primary) !important;
    padding: 0.5rem 1rem !important;
    font-family: var(--font-secondary);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-dark) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--vm-accent), var(--vm-primary));
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(44, 85, 48, 0.25);
}

/* ===== OFFCANVAS PROFESIONAL ===== */
.offcanvas-title {
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-weight: 600;
}

.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.98);
}

.dropdown-item {
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    font-family: var(--font-secondary);
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.1), rgba(27, 42, 31, 0.05));
    transform: translateX(5px);
    color: var(--text-dark);
}

.dropdown-header {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    font-family: var(--font-primary);
}

/* ===== FOOTER CUSTOM STYLES PROFESIONALES ===== */
.footer a:hover {
    color: white !important;
    transform: translateX(3px);
    transition: all 0.3s ease;
}

#footer h5 {
    color: white !important;
    font-family: var(--font-primary);
    font-weight: 600;
}

#footer .text-white-50 {
    color: rgba(255, 255, 255, 0.8) !important;
    font-family: var(--font-secondary);
}

/* ===== CONTACT SECTION PROFESIONAL ===== */
#contacto .card-title {
    color: var(--text-primary) !important;
    font-family: var(--font-primary);
    font-weight: 600;
}

#contacto .text-muted {
    color: var(--text-secondary) !important;
    font-family: var(--font-secondary);
}

/* ===== FLOATING BUTTONS ===== */
#whatsapp-float {
    animation: pulse 2s infinite;
}

#back-to-top.show {
    opacity: 1 !important;
    visibility: visible !important;
}

#back-to-top:hover {
    transform: translateY(-3px);
    background: var(--vm-secondary) !important;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1200px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.5rem; }
    h3 { font-size: 2rem; }

    .display-1 { font-size: 4.5rem; }
    .display-2 { font-size: 4rem; }
    .display-3 { font-size: 3.5rem; }
    .display-4 { font-size: 3rem; }
    .display-5 { font-size: 2.5rem; }
    .display-6 { font-size: 2.2rem; }

    .hero-logo img {
        max-height: 160px !important;
    }

    .product-card .card img {
        height: 240px !important;
    }

    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 992px) {
    .navbar-brand h1 {
        font-size: 1.6rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
        padding: 0.4rem 0.8rem !important;
    }
    
    .dropdown-menu {
        backdrop-filter: blur(15px);
    }
}

@media (max-width: 768px) {
    /* Hero Section Mobile Optimization */
    .hero {
        min-height: 85vh;
        padding: 2rem 0;
    }

    .hero h1,
    .hero .display-1,
    .hero .display-3 {
        font-size: 2rem !important;
        line-height: 1.3;
        text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9), 0 6px 20px rgba(0, 0, 0, 0.7);
    }

    .hero .lead {
        font-size: 1.1rem !important;
        background: rgba(0, 0, 0, 0.5);
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin-bottom: 1.5rem !important;
    }

    .hero small {
        font-size: 0.95rem !important;
        background: rgba(0, 0, 0, 0.5);
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
    }

    .hero-logo img {
        max-height: 120px !important;
        margin-bottom: 2rem !important;
    }

    /* Hero Features Grid - Better Mobile Layout */
    .hero .row.g-3 {
        gap: 0.75rem !important;
    }

    .hero .text-center small {
        font-size: 0.75rem !important;
        background: rgba(0, 0, 0, 0.65);
        padding: 0.6rem 0.5rem;
        border-radius: 8px;
        min-width: auto;
        display: block;
    }

    .hero .text-center i {
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem;
    }

    /* Hero Buttons Mobile */
    .hero .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Typography Mobile */
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.4rem; }
    h5 { font-size: 1.2rem; }

    .display-5 { font-size: 2rem; }
    .display-6 { font-size: 1.75rem; }

    .lead {
        font-size: 1.15rem;
    }

    p {
        font-size: 1rem;
    }
    
    /* Navbar Mobile */
    .navbar {
        backdrop-filter: blur(10px) !important;
        padding: 0.5rem 0;
    }
    
    .navbar-brand h1 {
        font-size: 1.3rem;
    }
    
    .nav-link::after {
        display: none;
    }

    /* Offcanvas Mobile Improvements */
    .offcanvas {
        width: 85% !important;
        max-width: 320px;
    }

    .offcanvas-body .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 1rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .offcanvas-body .dropdown-menu {
        border: none;
        box-shadow: none;
        background: transparent;
        padding-left: 1rem;
    }

    .offcanvas-body .dropdown-item {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Product Cards Mobile */
    .product-card .card {
        margin-bottom: 1.5rem;
    }

    .product-card .card:hover {
        transform: translateY(-4px) !important;
    }

    .product-card .card img {
        height: 200px !important;
    }

    .product-card .card-body {
        padding: 1rem !important;
    }

    .product-card .card-title {
        font-size: 1.1rem !important;
    }

    .product-card .card-text {
        font-size: 0.9rem !important;
    }

    /* Product Overlay Mobile */
    .product-overlay .btn-lg {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.9rem !important;
    }

    /* Category Filter Mobile */
    .category-filter-btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .subcategory-tab {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    /* FAQ Mobile Optimization */
    .accordion-button {
        font-size: 0.95rem;
        padding: 1rem;
    }

    .accordion-button i {
        font-size: 1rem;
    }

    .accordion-body {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .accordion-body .col-lg-8,
    .accordion-body .col-lg-4 {
        width: 100%;
        margin-bottom: 1rem;
    }

    .accordion-body .card {
        margin-top: 1rem;
    }

    /* Contact Form Mobile */
    #contacto .card-body {
        padding: 1.5rem !important;
    }

    #contacto .form-label {
        font-size: 0.9rem;
    }

    #contacto .form-control,
    #contacto .form-select {
        font-size: 0.95rem;
    }

    /* About Section Mobile */
    #nosotros .display-5 {
        font-size: 1.75rem !important;
    }

    #nosotros .lead {
        font-size: 1.05rem !important;
    }

    #nosotros .fs-5 {
        font-size: 1rem !important;
    }

    #nosotros .col-md-4 {
        margin-bottom: 1rem;
    }

    /* Ventajas Section Mobile */
    #ventajas .card-body {
        padding: 1.5rem !important;
    }

    #ventajas .card-title {
        font-size: 1.1rem !important;
    }

    #ventajas .card-text {
        font-size: 0.9rem !important;
    }

    #ventajas .fs-1 {
        font-size: 2rem !important;
    }

    /* WhatsApp Float Mobile */
    #whatsapp-float {
        padding: 0.75rem !important;
    }

    #whatsapp-float span {
        display: none !important;
    }

    #whatsapp-float i {
        font-size: 1.5rem !important;
    }

    /* Back to Top Mobile */
    #back-to-top {
        width: 45px !important;
        height: 45px !important;
        bottom: 70px !important;
        right: 15px !important;
    }

    /* Footer Mobile */
    footer .col-lg-2,
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }

    footer h5 {
        font-size: 1.1rem;
    }

    footer .list-unstyled li {
        margin-bottom: 0.75rem;
    }

    /* Container Mobile */
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 576px) {
    /* Hero Extra Small Mobile */
    .hero {
        min-height: 100vh;
        padding: 1.5rem 0;
    }

    .hero h1,
    .hero .display-3 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }

    .hero .lead {
        font-size: 1rem !important;
        padding: 0.65rem 0.85rem;
        margin-bottom: 1rem !important;
    }

    .hero small {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.6rem;
    }

    .hero-logo img {
        max-height: 100px !important;
        margin-bottom: 1.5rem !important;
    }

    .hero .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .hero .text-center small {
        font-size: 0.7rem !important;
        padding: 0.5rem 0.35rem;
    }

    .hero .text-center i {
        font-size: 1.1rem !important;
    }

    .hero .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Typography Extra Small */
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.65rem; }
    h3 { font-size: 1.45rem; }
    h4 { font-size: 1.25rem; }

    .display-5 { font-size: 1.75rem; }
    .display-6 { font-size: 1.5rem; }

    .lead {
        font-size: 1.05rem;
    }

    body {
        font-size: 0.95rem;
    }
    
    /* Navbar Extra Small */
    .navbar-brand h1 {
        font-size: 1.15rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem !important;
    }

    /* Product Cards Extra Small */
    .product-card .card img {
        height: 180px !important;
    }

    .product-card .card-body {
        padding: 0.875rem !important;
    }

    .product-card .card-title {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }

    .product-card .card-text {
        font-size: 0.85rem !important;
        margin-bottom: 0.75rem !important;
    }

    .product-card .btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    /* Category Buttons Extra Small */
    .category-filter-btn,
    .subcategory-tab {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }

    /* FAQ Extra Small */
    .accordion-button {
        font-size: 0.9rem;
        padding: 0.875rem;
    }

    .accordion-body {
        padding: 0.875rem;
        font-size: 0.85rem;
    }

    /* Contact Extra Small */
    #contacto .card-body {
        padding: 1.25rem !important;
    }

    #contacto .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    /* About Section Extra Small */
    #nosotros .display-5 {
        font-size: 1.5rem !important;
    }

    #nosotros .card-body {
        padding: 1rem !important;
    }

    #nosotros .display-6 {
        font-size: 1.75rem !important;
    }

    /* Ventajas Extra Small */
    #ventajas .card-body {
        padding: 1.25rem !important;
    }

    /* Spacing Adjustments */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }

    .mb-5 {
        margin-bottom: 2rem !important;
    }

    .gap-3 {
        gap: 0.75rem !important;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .product-card .card:hover {
        transform: none;
    }
    
    #whatsapp-float {
        animation: none;
    }
}

/* ===== FOCUS STATES FOR ACCESSIBILITY PROFESIONAL ===== */
.btn:focus,
.nav-link:focus,
.form-control:focus,
.form-select:focus {
    outline: 3px solid rgba(44, 85, 48, 0.5);
    outline-offset: 2px;
}

/* ===== BADGES PROFESIONALES ===== */
.badge {
    font-family: var(--font-primary);
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* ===== CATEGORY BADGES MEJOR CONTRASTE ===== */
.category-section h3 {
    color: var(--text-primary) !important;
    font-family: var(--font-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.category-section .text-muted {
    color: var(--text-secondary) !important;
    font-family: var(--font-secondary);
}

/* ===== LOADING STATES ===== */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.spinner-border-custom {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* ===== UTILITY CLASSES ===== */
.shadow-custom {
    box-shadow: var(--shadow-custom) !important;
}

.shadow-hover {
    box-shadow: var(--shadow-hover) !important;
}

.transition-all {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
}

.text-gradient {
    background: linear-gradient(135deg, var(--vm-primary), var(--vm-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--vm-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--vm-secondary);
}

/* ===== LIGHTBOX GALLERY STYLES ===== */
.lightbox-gallery {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.3s ease;
}

.lightbox-gallery img {
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-gallery .btn {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.lightbox-gallery .btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.05);
}

.lightbox-gallery .btn:active {
    transform: scale(0.95);
}

.lightbox-description {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.lightbox-counter {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== TEMPORARY LOADER STYLES ===== */
.temp-loader {
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(5px) !important;
    transition: all 0.3s ease;
}

.temp-loader .spinner-border {
    border-width: 3px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== PRODUCT OVERLAY IMPROVEMENTS ===== */
.product-overlay {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 73, 94, 0.9)) !important;
    backdrop-filter: blur(5px);
}

.product-overlay .btn {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.product-overlay .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ===== RESPONSIVE LIGHTBOX STYLES ===== */
@media (max-width: 768px) {
    .lightbox-gallery .btn {
        width: 45px !important;
        height: 45px !important;
        font-size: 0.9rem;
    }
    
    .lightbox-gallery .btn[style*="left: 30px"] {
        left: 15px !important;
    }
    
    .lightbox-gallery .btn[style*="right: 30px"] {
        right: 15px !important;
    }
    
    .lightbox-gallery .btn[style*="top: 20px"] {
        top: 15px !important;
        right: 15px !important;
    }
    
    .lightbox-gallery img {
        max-height: 75vh !important;
        max-width: 95vw !important;
    }
    
    .lightbox-description {
        font-size: 0.9rem;
        padding: 0.5rem 1rem !important;
    }
    
    .temp-loader .spinner-border {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }
}

@media (max-width: 576px) {
    .lightbox-gallery .btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.8rem;
    }
    
    .lightbox-gallery .btn[style*="left: 30px"] {
        left: 10px !important;
    }
    
    .lightbox-gallery .btn[style*="right: 30px"] {
        right: 10px !important;
    }
    
    .lightbox-gallery .btn[style*="top: 20px"] {
        top: 10px !important;
        right: 10px !important;
    }
    
    .lightbox-gallery img {
        max-height: 70vh !important;
        max-width: 98vw !important;
    }
    
    .lightbox-description {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem !important;
        margin-top: 1rem !important;
    }
    
    .lightbox-counter {
        font-size: 0.75rem !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    .footer,
    #whatsapp-float,
    #back-to-top {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        page-break-after: always;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}