@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --primary-color: #2E3092;
    --primary-light: #5a6bc0;
    --primary-dark: #1a1c6b;
    --accent-color: #8DC63F;
    --accent-light: #a8d96f;
    --accent-dark: #6fa830;

    /* Neutral Colors */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Spacing Scale (4px base) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;

    /* Typography Scale */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 28px;

    /* Line Heights */
    --leading-tight: 1.2;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);

    /* Border Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;

    /* Legacy support */
    --white: #ffffff;
    --text-color: var(--text-primary);
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-color);
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

/* Navbar & Header Customization */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1a1c6b;
    border-color: #1a1c6b;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Nav Link Hover Animation */
.nav-link.hover-animate:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    transition: all 0.2s ease;
    color: var(--accent-color) !important;
}

/* Card Hover Effect */
.card.hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--accent-color) !important;
}

/* Hero Section */
.hero {
    /* Fondo imagen original sin filtro azul */
    background: url('../img/fondo_cabecera.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
    /* Sombra negra para leer texto sobre foto real */

    /* Margen superior reducido, margen inferior aumentado para corregir visualización */
    margin: 1rem 5% 3rem 5%;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

/* Overlay para mejorar legibilidad en inicio */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* Oscurece el fondo */
    z-index: 1;
}

.hero>* {
    position: relative;
    z-index: 2;
}

/* Parallax Hero for Subpages */
.hero-parallax {
    background: url('../img/fondo_cabecera.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;

    /* Override para secciones interiores: alineado con contenido abajo */
    margin: 0 0 2rem 0 !important;
    border-radius: 1rem;
}

.hero-parallax::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay Azul con transparencia */
    background: linear-gradient(135deg, rgba(46, 48, 146, 0.85) 0%, rgba(26, 28, 107, 0.9) 100%);
    z-index: 1;
}

.hero-parallax>.container {
    position: relative;
    z-index: 2;
    /* Ensure text is above overlay */
}

/* Compact Hero for Catalog */
.hero-compact {
    padding: 1.5rem 1rem !important;
    margin-bottom: 2rem !important;
}

.hero-compact h1 {
    font-size: 2rem !important;
}

/* Catalog Card Compact */
.card-img-container-compact {
    height: 160px !important;
}

@media (max-width: 768px) {
    .hero {
        margin: 1rem 3%;
        padding: 1.5rem;
    }

    .card-img-container-compact {
        height: 140px !important;
    }
}

/* Badge fix */
.badge {
    font-size: 0.75rem;
}

/* Form inputs overlap fix */
.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(141, 198, 63, 0.25);
}

/* Footer override */
.footer-bottom {
    background-color: #222;
    color: white;
    padding: 1rem 0;
    text-align: center;
    margin-top: auto;
}

/* Button Animations */
.hover-scale {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-scale:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.btn-success {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-success:hover {
    background-color: #7cb342;
    border-color: #7cb342;
}

/* =========================================
   PREMIUM NAVBAR STYLES
   ========================================= */
.navbar-premium {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a1c6b 100%);
    box-shadow: 0 4px 20px rgba(46, 48, 146, 0.15);
}

.nav-link-premium {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 10px 0 !important;
    margin: 0 15px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link-premium:hover,
.nav-link-premium.active {
    color: #fff !important;
}

/* Animated Underline */
/* Animated Underline */
.nav-link-premium::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0px;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link-premium:hover::before,
.nav-link-premium.active::before {
    width: 100%;
}

/* Action Buttons in Navbar */
.btn-nav-action {
    border-radius: 50px;
    padding: 8px 20px !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.btn-nav-contact {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white !important;
}

.btn-nav-contact:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-nav-account {
    background: var(--accent-color);
    border: none;
    color: white !important;
    box-shadow: 0 4px 15px rgba(141, 198, 63, 0.3);
}


/* =========================================
   PREMIUM HEADER STYLES (Top & Main)
   ========================================= */

/* Dark Top Bar */
.top-bar-premium {
    background-color: #1a1a1a;
    color: #b0b0b0;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar-premium i {
    color: var(--accent-color);
}

.top-bar-premium a {
    color: #e0e0e0;
    transition: color 0.2s ease;
}

.top-bar-premium a:hover {
    color: var(--white);
    text-decoration: none;
}

/* Premium Search Bar (Floating Pill) */
.search-group-premium {
    background: #f4f6f9;
    border-radius: 50px;
    padding: 4px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.search-group-premium:focus-within {
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(46, 48, 146, 0.1);
}

.search-input-premium {
    border: none;
    background: transparent;
    padding-left: 20px;
    font-size: 0.95rem;
    color: #444;
}

.search-input-premium:focus {
    background: transparent;
    box-shadow: none;
}

.search-input-premium::placeholder {
    color: #999;
}

.search-btn-premium {
    border-radius: 50px !important;
    padding: 8px 24px;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: bold;
    transition: all 0.2s ease;
}

.search-btn-premium:hover {
    background-color: var(--accent-color);
    /* Use accent color instead of dark blue */
    transform: scale(1.05);
}

/* Modern Cart Button */
.cart-btn-premium {
    width: 48px;
    height: 48px;
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
    position: relative;
    text-decoration: none;
}

.cart-btn-premium:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(46, 48, 146, 0.2);
}

/* --- Mobile Header Optimization --- */
@media (max-width: 991px) {

    /* Compact Top Bar */
    .top-bar-premium {
        text-align: center;
        padding: 5px 0;
    }

    .top-bar-premium .container {
        justify-content: center !important;
    }

    /* Hide specific elements on very small screens if needed, 
       but for now we center them. */

    /* Adjust Logo Size */
    .navbar-brand img,
    .navbar-brand span.h2 {
        font-size: 1.5rem !important;
        /* Scale down logo text */
    }

    .navbar-brand small {
        font-size: 0.6rem !important;
    }

    /* Compact Search Bar */
    .search-group-premium {
        padding: 2px;
        /* Smaller padding */
        margin-top: 10px;
        /* Space between logo and search */
    }

    .search-input-premium {
        font-size: 0.85rem;
        /* Smaller text */
        padding-left: 15px;
        height: 40px;
    }

    .search-btn-premium {
        padding: 6px 16px;
        height: 38px;
    }

    /* Cart Button Adjustment */
    .cart-btn-premium {
        width: 40px;
        height: 40px;
    }

    /* Ensure sticky works well */
    header.sticky-top {
        position: sticky;
        top: 0;
        width: 100%;
    }
}

.cart-badge-premium {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #dc3545;
    border: 2px solid #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
}

/* Marcas Grayscale Hover */
.grayscale-hover img {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.4s ease;
    max-height: 110px;
    object-fit: contain;
}

.grayscale-hover:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Search Suggestions */
.search-suggestions-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 2%;
    width: 96%;
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 10px;
}

.suggestion-item {
    transition: background 0.2s;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none !important;
}

/* =========================================
   NEW DROPDOWN STYLES (CATALOG HOVER)
   ========================================= */

/* Premium Dropdown Styling */
.dropdown-menu-premium {
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    /* Spacing */
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 260px;
    /* animation: fadeInUp 0.3s ease forwards; Removed to prevent glitch */
}

/* =========================================
   NESTED DROPDOWN STYLES (FLYOUT - DESKTOP ONLY)
   ========================================= */

@media (min-width: 992px) {

    /* 1. Ensure Parent Overflow is Visible */
    .dropdown-menu-premium {
        overflow: visible !important;
    }

    /* 2. Submenu Container Logic */
    .dropdown-submenu {
        position: relative;
    }

    /* 3. Flyout Positioning */
    .dropdown-submenu>.submenu-flyout {
        top: 0;
        left: 100%;
        /* Go right */
        margin-top: -5px;
        margin-left: 15px;
        /* SEPARATION ADDED */
        border-radius: 8px;
        display: none;
        position: absolute;
        /* Force out of flow */
        min-width: 240px;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
        background: #fff;
        z-index: 1000;
        list-style: none;
        /* Reset list style */
        padding: 0.5rem 0;
        /* Bootstrap default padding */
    }

    /* 4. Hover Trigger (Only on Desktop) */
    .dropdown-submenu:hover>.submenu-flyout {
        display: block;
    }

    /* 5. Safe Hover Bridge (prevents mouse gap closing) */
    .dropdown-submenu>.submenu-flyout::before {
        content: "";
        position: absolute;
        top: 0;
        right: 100%;
        /* Left side of submenu */
        width: 25px;
        /* Bridge width increased to cover gap */
        height: 100%;
        background: transparent;
    }

    /* Arrow Rotation */
    .dropdown-submenu:hover>a .fa-chevron-right {
        transform: rotate(-90deg);
        /* Point right */
        transition: transform 0.2s;
    }
}

/* Mobile Fallback (Simple Stack) */
@media (max-width: 991px) {
    .dropdown-submenu .submenu-flyout {
        position: static;
        margin-left: 1rem;
        box-shadow: none;
        border-left: 2px solid #eee;
        display: none;
        list-style: none;
        padding: 0;
    }

    .dropdown-submenu:hover>.submenu-flyout {
        display: block;
    }
}



/* Dropdown Items */
.dropdown-menu-premium .dropdown-item {
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 500;
    color: #555;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.dropdown-menu-premium .dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    transform: translateX(5px);
    font-weight: 600;
}

/* Hover Trigger for Desktop */
@media (min-width: 992px) {
    .dropdown-hover:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        /* Align correctly */
    }

    /* Arrow indicator - remove rotation */
    .dropdown-hover:hover .dropdown-toggle::after {
        transform: none;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}


/* =========================================
   REFINED NAVBAR STYLES (FIXED HOVER)
   ========================================= */

/* Use pseudo-element to bridge gap and prevent closing */
@media (min-width: 992px) {
    .dropdown-hover .dropdown-toggle::after {
        /* Reset default arrow first if needed, but here we just want the bridge */
    }

    .dropdown-hover::after {
        content: '';
        position: absolute;
        bottom: -20px;
        /* Extend well below to cover the gap */
        left: 0;
        width: 100%;
        height: 30px;
        /* Tall bridge to ensure mouse never loses focus */
        background: transparent;
        z-index: 10;
        display: none;
    }

    .dropdown-hover:hover::after {
        display: block;
    }

    /* Adjust placement to remove margin-top gap issue */
    .dropdown-hover:hover .dropdown-menu {
        margin-top: 10px !important;
        /* Visual spacing requested by user */
        display: block;
        left: 0;
        top: 100%;
        border-radius: 8px;
        /* Restore standard clean radius */
    }
}

/* Enhanced Item Styling */
.dropdown-menu-premium .dropdown-item {
    padding: 12px 18px;
    /* Bigger touch targets */
    font-size: 0.95rem;
    border-radius: 8px;
    margin-bottom: 2px;
}

.dropdown-menu-premium .dropdown-item:hover {
    background-color: #f0f4f8;
    /* Soft blue-grey */
    color: #0d6efd;
    /* Primary color */
    transform: translateX(6px);
    box-shadow: -2px 0 0 #0d6efd;
    /* Left border indicator effect */
}

.dropdown-menu-premium .dropdown-item i {
    width: 24px;
    /* Fixed width for icon alignment */
    text-align: center;
    transition: transform 0.2s;
}

.dropdown-menu-premium .dropdown-item:hover i {
    transform: scale(1.2);
}

/* --- Cart Page Styles --- */
.cart-item.last-no-border {
    border-bottom: 0 !important;
}

.cart-item:last-child {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.1);
}

.trust-badges i {
    width: 20px;
    text-align: center;
}

/* Hide arrows in number input */
.distributor-icon-box {
    width: 50px;
    height: 50px;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* --- Related Products --- */
.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.related-card .transition-scale {
    transition: transform 0.3s ease;
}

.related-card:hover .transition-scale {
    transform: scale(1.05);
}

/* =========================================
   MOBILE OPTIMIZATIONS (2-COLUMN GRID)
   ========================================= */
@media (max-width: 768px) {

    /* Global Container */
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Product Cards in Grid */
    .card-body {
        padding: 0.5rem !important;
    }

    /* Image Container Height Reduction */
    .position-relative.overflow-hidden.text-center.p-3 {
        height: 140px !important;
        /* Reduced from 220px */
        padding: 0.5rem !important;
    }

    /* Catalog Category Images */
    .card-img-container-compact {
        height: 100px !important;
    }

    .card-title {
        font-size: 0.85rem !important;
        min-height: 35px !important;
        line-height: 1.2;
        margin-bottom: 0.5rem !important;
    }
}


/* =========================================
   MOBILE DESIGN OVERHAUL (< 768px)
   ========================================= */
@media (max-width: 767.98px) {

    /* 1. HERO SECTION: Full Bleed & Centered */
    .hero {
        margin: 0 !important;
        border-radius: 0 !important;
        padding: 2rem 1.5rem !important;
        text-align: center !important;
        background-attachment: scroll !important;
        /* Mobile parallax fix */
    }

    .hero h1 {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }

    .hero p {
        font-size: 0.95rem !important;
    }

    .hero .d-flex {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem !important;
    }

    .hero .btn {
        width: 100%;
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }

    /* 2. HEADER: Compact Layout */
    .navbar-brand img {
        height: 35px;
    }

    .top-bar-premium {
        font-size: 0.75rem;
    }

    /* 2b. CONTACT PAGE HERO FIX */
    .hero-parallax.hero-compact {
        min-height: auto !important;
        padding: 1.5rem 1rem !important;
    }

    .hero-parallax.hero-compact h1 {
        font-size: 1.5rem !important;
    }

    .hero-parallax.hero-compact p {
        font-size: 0.9rem !important;
    }

    /* 2c. PRODUCT PAGE - COMPACT */
    .container.py-4 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    /* Product image container */
    .col-md-7 .border.rounded-3 {
        min-height: 250px !important;
        padding: 1rem !important;
    }

    .col-md-7 .border.rounded-3 img {
        max-height: 250px !important;
    }

    /* Product info */
    .col-md-5 h1 {
        font-size: 1.3rem !important;
    }

    .col-md-5 .btn {
        padding: 0.75rem !important;
        font-size: 0.95rem !important;
    }

    /* Breadcrumb */
    .breadcrumb {
        font-size: 0.75rem !important;
        margin-bottom: 1rem !important;
    }

    /* 2d. CONTACT/SOBRE-NOSOTROS/SERVICIOS PAGE FIXES */
    /* Hide decorative overflow elements */
    .position-absolute.top-0.end-0 {
        display: none !important;
    }

    /* Contact page row spacing */
    .row.g-5 {
        gap: 1.5rem !important;
    }

    /* Fix contact page sections - make columns full width */
    .row.g-5 .col-lg-5,
    .row.g-5 .col-lg-7 {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Contact info box - ensure all content is visible */
    .col-lg-5 .bg-primary.text-white {
        padding: 1.5rem !important;
        overflow: visible !important;
        height: auto !important;
        min-height: auto !important;
    }

    .col-lg-5 .bg-primary.text-white h3 {
        font-size: 1.4rem !important;
        margin-bottom: 1rem !important;
    }

    .col-lg-5 .bg-primary.text-white h6 {
        font-size: 0.9rem !important;
    }

    .col-lg-5 .bg-primary.text-white p {
        font-size: 0.85rem !important;
    }

    .col-lg-5 .bg-primary.text-white .small {
        font-size: 0.8rem !important;
    }

    /* Contact icons */
    .col-lg-5 .d-flex .flex-shrink-0 {
        width: 40px !important;
        height: 40px !important;
        font-size: 1rem !important;
    }

    /* Contact form box */
    .col-lg-7 .bg-white.p-5 {
        padding: 1.5rem !important;
    }

    .col-lg-7 .bg-white.p-5 h2 {
        font-size: 1.4rem !important;
    }

    /* Contact page hero fix - more specific */
    .container .hero-parallax.hero-compact {
        overflow: hidden !important;
    }

    /* CTA sections overflow fix */
    .bg-primary.rounded-4.overflow-hidden {
        overflow: hidden !important;
        padding: 2rem 1rem !important;
    }

    .bg-primary.rounded-4 h2 {
        font-size: 1.3rem !important;
    }

    .bg-primary.rounded-4 p {
        font-size: 0.9rem !important;
    }

    /* 3. TRUST BAR: Horizontal Scroll */
    .bg-primary .row.g-4 {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 20px;
        /* Added gap */
    }

    .distributor-icon-box {
        width: 75px !important;
        height: 75px !important;
    }

    .bg-primary .col-6 {
        flex: 0 0 70%;
        /* Reduced from 80% to give more space/context */
        /* Show 80% of item to encourage scroll */
        max-width: 70%;
        scroll-snap-align: center;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 10px;
        padding-right: 10px;
    }

    .bg-primary .col-6:last-child {
        border-right: none;
    }

    /* 4. PRODUCTS: 2-Column Tight Grid */
    .col-lg-4.col-md-6.mb-4 {
        /* If specific classes used */
        width: 50% !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    /* Override standard card for mobile fit */
    .card {
        border-radius: 1rem !important;
    }

    .card-img-container-compact,
    .position-relative.overflow-hidden {
        height: 120px !important;
        /* Smaller images */
    }

    .card-body {
        padding: 10px !important;
    }

    .btn-warning {
        font-size: 0.8rem;
        padding: 5px;
    }

    /* Brands Scroll - Start from first item (Knauf) */
    section.py-5.bg-light .row.g-4 {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 15px 10px !important;
        gap: 12px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    section.py-5.bg-light .col-6 {
        flex: 0 0 42%;
        max-width: 42%;
        min-width: 120px;
        scroll-snap-align: start;
    }

    /* FOOTER: 2x2 Grid Layout */
    footer .row.g-4 {
        row-gap: 1rem !important;
    }

    footer .col-lg-3,
    footer .col-lg-4,
    footer .col-lg-2 {
        width: 50% !important;
        padding: 0.5rem !important;
    }

    footer .p-3 {
        padding: 1rem !important;
    }

    footer h5,
    footer h6 {
        font-size: 0.9rem !important;
        margin-bottom: 0.75rem !important;
    }

    footer .small,
    footer p {
        font-size: 0.75rem !important;
    }

    /* REVIEWS/OPINIONES: Elite Horizontal Scroll on Mobile */
    .reviews-scroll-container {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 20px !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        margin-right: -10px !important; /* Pull to edge */
        margin-left: -10px !important;
    }

    .reviews-scroll-container .review-card {
        flex: 0 0 88% !important;
        max-width: 88% !important;
        scroll-snap-align: center;
    }

    .reviews-scroll-container::-webkit-scrollbar {
        display: none; /* Hide scrollbar for cleaner look */
    }

    /* RELATED PRODUCTS (Productos Relacionados): 2 columnas */
    .row-cols-lg-4.g-4>div {
        width: 50% !important;
        flex: 0 0 50%;
    }

    .row-cols-lg-4.g-4 .card {
        margin-bottom: 0.5rem;
    }

    .row-cols-lg-4.g-4 .card-body {
        padding: 0.75rem !important;
    }

    .row-cols-lg-4.g-4 .card-title {
        font-size: 0.85rem !important;
        min-height: auto !important;
    }
}


/* =========================================
   TABLET DESIGN OVERHAUL (768px - 1024px)
   ========================================= */
@media (min-width: 768px) and (max-width: 1024px) {

    /* 1. HERO: Balanced */
    .hero {
        margin: 1rem 2rem;
        padding: 2.5rem;
    }

    /* 2. GRID: Ensure 3 columns for better use of space */
    .row-cols-md-2>* {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    /* 3. Header adjustments */
    .navbar-collapse {
        background: white;
        padding: 20px;
        border-radius: 0 0 10px 10px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }
}

/* Helper Class for Index Product Images */
.product-img-container {
    height: 220px;
}

@media (max-width: 767.98px) {
    .product-img-container {
        height: 140px;
        /* Reduced for mobile */
    }

    /* List items (stock, etc) */
    .list-unstyled.small.mb-3 {
        font-size: 0.7rem !important;
        margin-bottom: 0.5rem !important;
    }

    .list-unstyled.small.mb-3 li i {
        font-size: 0.5rem !important;
    }

    /* Buttons */
    .btn-warning {
        font-size: 0.75rem !important;
        padding: 0.4rem !important;
    }

    .btn-warning i {
        display: inline-block;
    }

    /* Category Link Lists */
    .list-unstyled.mb-0 li a {
        font-size: 0.8rem;
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }

    /* Hero Title */
    .hero h1 {
        font-size: 1.5rem !important;
    }
}

/* =========================================
   HERO CAROUSEL BACKGROUND (HOME)
   ========================================= */
.hero-home {
    position: relative;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-home::before {
    display: none !important;
}

/* Dark overlay for text readability */
.hero-home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

.hero-carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-carousel-bg .carousel,
.hero-carousel-bg .carousel-inner,
.hero-carousel-bg .carousel-item {
    height: 100%;
}

.hero-carousel-bg .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Static Content Overlay */
.hero-home .container {
    position: relative;
    z-index: 5;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Fix spacing main home */
.home-page-main {
    padding-top: 0 !important;
}

/* Botones Hero PC */
.btn-premium-hero-secondary {
    background-color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(46, 48, 146, 0.4) !important;
}

.btn-premium-hero-secondary:hover {
    background-color: #1a1b5d !important;
    border-color: #1a1b5d !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 48, 146, 0.6) !important;
    color: #fff !important;
}

.btn-premium-hero-primary {
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3) !important;
    transition: all 0.3s ease !important;
}

.btn-premium-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.5) !important;
}

/* Hero Contact Card */
.hero-contact-card {
    background: rgba(0, 0, 0, 0.45); /* Darker background for PC */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s ease;
    color: #fff;
}

.contact-item:last-of-type {
    border-bottom: none;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-info h6 {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info p {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0;
}

.btn-whatsapp-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #fff !important;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    animation: pulse-whatsapp 2s infinite;
}

.btn-whatsapp-hero:hover {
    background: #1ebe5c;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: #fff;
}

@keyframes pulse-whatsapp {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Carousel Controls - Hidden on PC as per user request */
.hero-home .carousel-control-prev,
.hero-home .carousel-control-next {
    display: none !important;
}

.hero-home .carousel-control-prev-icon,
.hero-home .carousel-control-next-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.hero-home .carousel-control-prev-icon:hover,
.hero-home .carousel-control-next-icon:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Hero responsive for tablets */
@media (max-width: 991px) {
    .hero-home {
        min-height: auto;
    }
    .hero-home .container {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    .hero-home .carousel-control-prev,
    .hero-home .carousel-control-next {
        display: none;
    }
}

/* =========================================
   ONE PAGE & INTERACTIVE STYLES
   ========================================= */

.section-padding {
    padding: 6rem 0;
}

@media (max-width: 991px) {
    .section-padding {
        padding: 4rem 0;
    }
}

/* Image Zoom & Gallery */
.img-zoom-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.img-zoom-container img {
    transition: transform 0.5s ease;
}

.img-zoom-container:hover img {
    transform: scale(1.1);
}

.img-zoom-container::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(255, 191, 0, 0.9);
    color: #000;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.img-zoom-container:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* =========================================
   PREMIUM MOBILE MENU & NAV
   ========================================= */
@media (max-width: 991px) {
    /* Slide-down menu panel (not fullscreen) */
    .navbar-collapse {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        width: 100% !important;
        max-height: 0;
        overflow: hidden !important;
        background: #ffffff !important;
        box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
        z-index: 2000 !important;
        transition: max-height 0.4s ease, opacity 0.3s ease !important;
        opacity: 0;
        display: block !important;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    .navbar-collapse.show {
        max-height: 85vh !important;
        opacity: 1 !important;
        overflow-y: auto !important;
    }

    /* Dashboard Menu container */
    .dashboard-menu {
        max-width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        position: relative;
    }

    /* Nav Links - Premium Style */
    .nav-link-premium {
        color: #334155 !important;
        text-decoration: none !important;
        background: #f8fafc !important;
        border: 1px solid #f1f5f9 !important;
        transition: all 0.2s ease !important;
        font-weight: 600 !important;
        font-size: 0.95rem !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .nav-link-premium:hover {
        background: #f1f5f9 !important;
        transform: translateX(4px);
    }

    /* En dispositivos táctiles NO existe el hover real — desactivarlo evita
       el bug donde al pulsar un elemento el de arriba se queda blanco/resaltado */
    @media (hover: none) and (pointer: coarse) {
        .nav-link-premium:hover {
            background: #f8fafc !important;
            transform: none !important;
        }
    }

    /* Tap feedback oscuro visible en móvil */
    .nav-link-premium:active {
        background: rgba(46, 48, 146, 0.12) !important;
        color: var(--primary-color) !important;
        transform: scale(0.98) !important;
    }

    .nav-link-premium:active i {
        color: var(--primary-color) !important;
    }

    .nav-link-premium.active {
        background: rgba(46, 48, 146, 0.06) !important;
        color: var(--primary-color) !important;
        border-left: 4px solid var(--primary-color) !important;
        border-radius: 4px 12px 12px 4px !important;
    }

    .nav-link-premium.active i {
        color: var(--primary-color) !important;
    }

    .nav-link-premium i {
        width: 20px;
        text-align: center;
        font-size: 1rem;
        color: #94a3b8;
    }

    /* === FIX: Mobile header stays within viewport width === */
    header.d-lg-none {
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    /* Perfect logo centering at any screen size */
    header.d-lg-none > .container-fluid {
        position: relative !important;
    }

    header.d-lg-none > .container-fluid > a.text-decoration-none {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 1 !important;
    }

    /* === Responsive header scaling across ALL device sizes === */

    /* Tiny phones: < 380px (iPhone SE 1st gen, old Androids) */
    @media (max-width: 379px) {
        header.d-lg-none img {
            height: 24px !important;
        }
        header.d-lg-none .btn-link,
        header.d-lg-none a.btn-link {
            width: 36px !important;
            height: 36px !important;
        }
    }

    /* Normal phones: 380px–767px — default, ya está bien */

    /* Phablets / teléfonos grandes: 768px–849px (Galaxy Note, Pixel XL...) */
    @media (min-width: 768px) and (max-width: 849px) {
        header.d-lg-none .container-fluid {
            padding: 0.6rem 1.5rem !important;
        }
        header.d-lg-none img {
            height: 38px !important;
        }
        header.d-lg-none .btn-link,
        header.d-lg-none a.btn-link {
            width: 48px !important;
            height: 48px !important;
        }
        header.d-lg-none .btn-link i,
        header.d-lg-none a.btn-link i {
            font-size: 22px !important;
        }
    }

    /* Tablets y Z Fold desplegado: 850px–991px */
    @media (min-width: 850px) and (max-width: 991px) {
        header.d-lg-none .container-fluid {
            padding: 0.75rem 2rem !important;
        }
        header.d-lg-none img {
            height: 44px !important;
        }
        header.d-lg-none .btn-link,
        header.d-lg-none a.btn-link {
            width: 52px !important;
            height: 52px !important;
        }
        header.d-lg-none .btn-link i,
        header.d-lg-none a.btn-link i {
            font-size: 24px !important;
        }
        /* Barra de búsqueda más ancha en tablet */
        header.d-lg-none .px-3.pb-2 {
            padding-left: 2rem !important;
            padding-right: 2rem !important;
        }
    }

    /* Header icon buttons (Elite Circular Style) */
    .d-lg-none .btn-link {
        text-decoration: none !important;
        border: 1px solid #f1f5f9 !important;
        background: #ffffff !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .d-lg-none .btn-link:active,
    .d-lg-none .btn-link:focus {
        text-decoration: none !important;
        background: rgba(0, 0, 0, 0.1) !important;
        border-color: var(--primary-color) !important;
        box-shadow: 0 0 0 3px rgba(46, 48, 146, 0.15) !important;
        transform: scale(0.93) !important;
    }

    /* Search Pill */
    .search-pill-mobile {
        background: #f1f5f9 !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 50px !important;
        transition: all 0.3s ease;
    }

    .search-pill-mobile:focus-within {
        background: #ffffff !important;
        border-color: var(--primary-color) !important;
        box-shadow: 0 4px 12px rgba(46, 48, 146, 0.08) !important;
    }

    /* ===== FOOTER MOBILE ===== */
    footer .row > div {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    footer .row {
        gap: 0 !important;
    }

    footer .p-3 {
        padding: 0.75rem 1rem !important;
        margin-bottom: 0 !important;
        border: none !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    footer h5, footer h6 {
        font-size: 0.85rem !important;
        margin-bottom: 0.4rem !important;
    }

    footer .small, footer p, footer li, footer a {
        font-size: 0.8rem !important;
    }

    footer .btn-warning {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
    }

    footer .badge {
        font-size: 0.7rem !important;
    }

    /* CARRITO MOBILE REFINEMENT */
    .cart-item {
        padding: 1.25rem !important;
        position: relative;
    }

    .btn-remove-cart {
        position: absolute !important;
        top: 12px;
        right: 12px;
        font-size: 1.1rem;
        background: rgba(220, 53, 69, 0.08);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(220, 53, 69, 0.1);
        z-index: 5;
    }

    .cart-item img {
        width: 70px !important;
        height: 70px !important;
        object-fit: contain;
    }

    .cart-item h6 {
        font-size: 0.95rem !important;
        line-height: 1.4;
        padding-right: 25px; /* Leave space for trash icon */
    }
}

/* =========================================
   MOBILE HERO (within mobile media query)
   ========================================= */
@media (max-width: 991px) {
    /* Mobile Hero: same as PC with carousel + overlay */
    body.home-page .hero-home {
        min-height: auto !important;
        display: block !important;
        padding: 0 !important;
        margin: 0 !important;
        position: relative !important;
        overflow: hidden !important;
    }

    /* Keep carousel visible on mobile */
    .home-page .hero-carousel-bg {
        position: absolute !important;
        top: 0; left: 0;
        width: 100% !important;
        height: 100% !important;
        z-index: 1 !important;
        display: block !important;
    }

    .home-page .hero-carousel-bg .carousel-item img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
    }

    /* Dark overlay for readability on mobile */
    .home-page .hero-home::after {
        content: '' !important;
        display: block !important;
        position: absolute !important;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0, 0, 0, 0.55) !important;
        z-index: 2 !important;
    }

    .home-page .hero-home::before {
        display: none !important;
    }

    .home-page .hero-home .container {
        position: relative !important;
        z-index: 5 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 2rem 1rem !important;
    }

    .home-page .hero-home h1 {
        font-size: 1.5rem !important;
        color: #fff !important;
    }

    .home-page .hero-home .lead {
        color: rgba(255,255,255,0.85) !important;
        font-size: 0.95rem !important;
    }

    /* Hide carousel arrows on mobile */
    .home-page .hero-home .carousel-control-prev,
    .home-page .hero-home .carousel-control-next {
        display: none !important;
    }
}

/* Desktop schedule block */
@media (min-width: 992px) {
    .schedule-block {
        background: var(--primary-color) !important;
        border: none;
        padding: 1rem !important;
        margin-top: 1.5rem !important;
        border-radius: 12px;
    }

    .schedule-icon-circle {
        background: rgba(255,255,255,0.2);
        color: #fff;
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .schedule-block h6 {
        font-size: 0.8rem !important;
        color: #fff !important;
        margin-left: 0;
        opacity: 0.9;
    }

    .schedule-day-row {
        display: flex;
        align-items: center;
        gap: 12px;
        background: transparent;
        padding: 0;
        border: none;
        margin-top: 5px;
    }

    .day-label {
        font-weight: 700;
        color: #fff;
        min-width: auto;
        font-size: 0.85rem;
    }

    .time-range {
        font-weight: 700;
        color: #fff;
        background: rgba(255,255,255,0.1);
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 0.85rem;
    }

    .time-range::before {
        display: none;
    }
}

/* Fix Flechas Escritorio */
@media (min-width: 992px) {
    .hero-home .carousel-control-prev,
    .hero-home .carousel-control-next {
        z-index: 100 !important;
    }
}

/* Upgrade Badge Style */
.badge-premium-lg {
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    padding: 0.7rem 1.5rem !important;
    text-transform: uppercase;
    display: inline-block;
}

/* Botones de Servicios Premium */
.btn-service-premium {
    padding: 1.2rem 2.5rem !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 10px 25px rgba(46, 48, 146, 0.15) !important;
}

.btn-service-premium:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 15px 35px rgba(46, 48, 146, 0.25) !important;
}

.btn-service-premium:active {
    transform: scale(0.95) !important;
}

/* Ocultar iconos de los botones de servicios solo en móvil */
@media (max-width: 575px) {
    .btn-service-premium .fa-th-large,
    .btn-service-premium .fa-images {
        display: none !important;
    }
}

/* Compensación para páginas interiores */
.inner-page main {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

@media (max-width: 991px) {
    .inner-page main {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Refinado de Secciones Home */
.home-page .section-padding {
    padding: 100px 0;
}

@media (max-width: 991px) {
    .home-page .section-padding {
        padding: 60px 0;
    }
}

/* Transición suave entre secciones */
.home-page section:nth-child(even) {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
}

.home-page section:nth-child(odd) {
    background: #ffffff !important;
}

@media (max-width: 991px) {
    .home-page section {
        border-radius: 0 !important;
        margin-top: 0 !important;
        position: relative !important;
        z-index: 5 !important;
        box-shadow: none !important;
    }
}
/* =========================================
   GLOBAL ELITE TYPOGRAPHY & INTERACTIVE
   ========================================= */
:root {
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    font-family: var(--font-main) !important;
}

/* Global Card Hover Refinement */
.hover-effect {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    will-change: transform, box-shadow;
}

.hover-effect:hover {
    transform: translateY(-8px) scale(1.015) !important;
    box-shadow: 0 20px 40px rgba(46, 48, 146, 0.12) !important;
}

.animate__animated {
    --animate-duration: 0.8s;
}

/* Premium WhatsApp Pulse Animation */
.btn-pulse-premium {
    animation: pulse-green 2s infinite;
    position: relative;
    z-index: 10;
}

@keyframes pulse-green {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(74, 222, 128, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Bottom Sheet Modal for Mobile */
@media (max-width: 991px) {
    .modal-dialog-bottom-sheet {
        margin: 0;
        position: fixed;
        bottom: 0;
        width: 100%;
    }

    .modal-dialog-bottom-sheet .modal-content {
        border-radius: 20px 20px 0 0 !important;
        max-height: 80vh;
        overflow-y: auto;
    }

    /* Hero buttons refinement */
    .home-page-main .btn-lg {
        width: auto !important;
        min-width: 220px;
        align-self: center;
        padding: 0.8rem 1.5rem !important;
        font-size: 1rem !important;
    }
}

/* Smaller Bottom Sheet Refinement */
@media (max-width: 991px) {
    .modal-dialog-bottom-sheet {
        padding: 10px;
        max-width: 500px;
        margin: 0 auto;
    }

    .modal-dialog-bottom-sheet .modal-content {
        border-radius: 24px !important;
        margin-bottom: 10px;
    }

    .modal-dialog-bottom-sheet .modal-body {
        padding: 1.2rem !important;
    }

    .modal-dialog-bottom-sheet .contact-item-sheet {
        padding: 0.8rem 0 !important;
    }

    .modal-dialog-bottom-sheet .rounded-3 {
        width: 38px !important;
        height: 38px !important;
    }

    .modal-dialog-bottom-sheet h4 {
        font-size: 1.1rem !important;
    }
}

/* === CORRECCIONES FINALES UI M�VIL (Interiores) === */
@media (max-width: 991px) {
    /* Arreglo Hero Compacto (Opiniones, Contacto, Catalogo) */
    .inner-page .hero-compact {
        min-height: auto !important;
        padding: 2.5rem 1rem !important;
        margin-bottom: 2rem !important;
        border-radius: 15px !important;
        background-attachment: scroll !important;
    }
    
    .inner-page .hero-compact h1 {
        font-size: 1.6rem !important;
    }
    
    .inner-page .hero-compact p {
        font-size: 0.9rem !important;
        opacity: 0.9;
    }

    /* Arreglo de Contacto (P�gina espec�fica) */
    .row.g-5 .col-lg-5,
    .row.g-5 .col-lg-7 {
        width: 100% !important;
        margin-bottom: 1.5rem;
    }
    
    .bg-primary.text-white.p-5,
    .bg-white.p-5.rounded-4 {
        padding: 1.5rem !important;
    }
    
    .col-lg-5 .bg-primary h3 {
        font-size: 1.5rem !important;
    }
    
    /* Arreglo de Cat�logo (Im�genes) */
    .card-img-container-compact {
        height: 140px !important;
    }
    
    .card-title.h5 {
        font-size: 1rem !important;
    }
}

/* === ELITE COMPONENT REFINEMENTS (Opinions, Contact, etc) === */
.card-elite {
    background: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s ease !important;
    overflow: hidden !important;
}

.card-elite:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 40px rgba(46, 48, 146, 0.08) !important;
    border-color: rgba(46, 48, 146, 0.1) !important;
}

.form-control-elite {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 0.8rem 1.2rem !important;
    font-family: var(--font-main) !important;
    transition: all 0.2s ease !important;
    color: #1e293b !important;
}

.form-control-elite:focus {
    background-color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 4px rgba(46, 48, 146, 0.1) !important;
    outline: none !important;
}

.icon-circle-premium {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
