/* ============================================
   FERRETERÍA EL MAYORISTA - DISEÑO PROFESIONAL
   ============================================ */

/* Variables CSS */
:root {
    /* Colores Principales */
    --primary-color: #dc2626;
    --primary-dark: #991b1b;
    --primary-light: #ef4444;

    /* Colores Secundarios */
    --accent-color: #4b5563;
    --success-color: #10b981;
    --info-color: #4b5563;
    --warning-color: #f59e0b;
    --gray-dark: #374151;
    --gray-medium: #4b5563;
    --gray-light: #6b7280;

    /* Colores de Texto */
    --text-dark: #111827;
    --text-light: #6b7280;
    --text-muted: #9ca3af;

    /* Colores de Fondo */
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --bg-gray: #f3f4f6;

    /* Bordes */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;

    /* Sombras */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);

    /* Bordes Redondeados */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   NAVBAR - PROFESIONAL Y ORGANIZADO
   ============================================ */

.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
    backdrop-filter: blur(10px);
    min-height: 70px;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: white !important;
    letter-spacing: -0.02em;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 1.5rem;
    margin-left: -0.5rem;
}

.navbar-brand:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Logo Container con fondo blanco */
.logo-container {
    background: white;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar-brand:hover .logo-container {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Logo Image */
.navbar-logo {
    height: 35px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Brand Text */
.brand-text {
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

/* Navegación Principal */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 4px;
    padding: 10px 16px !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.navbar-nav .nav-link i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.nav-text {
    font-size: 0.9rem;
}

/* Enlaces especiales */
.nav-login {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: var(--radius-sm) !important;
}

.nav-login:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.nav-register {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--primary-color) !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    margin-left: 8px !important;
}

.nav-register:hover {
    background: white !important;
    color: var(--primary-dark) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.nav-logout {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: var(--radius-sm) !important;
}

.nav-logout:hover {
    background-color: rgba(255, 0, 0, 0.1) !important;
    border-color: rgba(255, 0, 0, 0.3) !important;
}

/* Badge del carrito */
.cart-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   NAVBAR SEARCH - BARRA DE BÚSQUEDA MEJORADA
   ============================================ */

.navbar-search-container {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.search-form {
    width: 100%;
}

.navbar-search {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar-search:focus-within {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.navbar-search .form-control {
    background: rgba(255, 255, 255, 0.98);
    border: none;
    color: var(--text-dark);
    font-size: 0.9rem;
    padding: 12px 16px;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    transition: var(--transition);
    font-weight: 500;
}

.navbar-search .form-control:focus {
    background: white;
    box-shadow: none;
    outline: none;
}

.navbar-search .form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
    font-weight: 400;
}

.btn-search {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: var(--primary-color);
    padding: 12px 18px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    transition: var(--transition);
    font-weight: 600;
}

.btn-search:hover {
    background: white;
    color: var(--primary-dark);
    transform: scale(1.05);
}

.btn-search:focus {
    box-shadow: none;
    outline: none;
}

/* Responsive para navbar */
@media (max-width: 1200px) {
    .navbar-search-container {
        max-width: 300px;
        margin: 0 1rem;
    }
    
    .brand-text {
        font-size: 0.95rem;
    }
}

@media (max-width: 992px) {
    .navbar-search-container {
        margin: 1rem 0;
        max-width: 100%;
        order: 3;
        flex-basis: 100%;
    }
    
    .navbar-nav {
        margin-top: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 16px !important;
        margin: 2px 0;
        border-radius: var(--radius-sm);
    }
    
    .nav-register {
        margin-left: 0 !important;
        margin-top: 8px !important;
    }
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 28px;
    }
    
    .brand-text {
        font-size: 0.9rem;
    }
    
    .logo-container {
        padding: 3px 6px;
    }
    
    .navbar-search .form-control {
        font-size: 0.85rem;
        padding: 10px 14px;
    }
    
    .btn-search {
        padding: 10px 16px;
    }
    
    .nav-text {
        font-size: 0.85rem;
    }
}

/* Animaciones para el navbar */
.navbar-nav .nav-item {
    animation: fadeInDown 0.5s ease-out;
}

.navbar-nav .nav-item:nth-child(1) { animation-delay: 0.1s; }
.navbar-nav .nav-item:nth-child(2) { animation-delay: 0.2s; }
.navbar-nav .nav-item:nth-child(3) { animation-delay: 0.3s; }
.navbar-nav .nav-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SEARCH SUGGESTIONS - SUGERENCIAS DE BÚSQUEDA
   ============================================ */

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 2px;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: var(--bg-light);
    transform: translateX(2px);
}

.suggestion-item i {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.suggestion-item span {
    flex: 1;
    font-weight: 500;
    color: var(--text-dark);
}

.suggestion-item small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ============================================
   HERO SECTION - ULTRA PROFESIONAL
   ============================================ */

.hero-section {
    padding: 90px 0 50px;
    min-height: 520px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Imagen de fondo con efecto blur intenso */
.hero-section::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: url('../images/estudio-de-competencia-ferreterias.jpg') center/cover no-repeat;
    filter: blur(15px);
    z-index: 0;
}

/* Overlay oscuro sobre la imagen borrosa para mejor contraste */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-section .lead {
    font-size: 1.15rem;
    font-weight: 400;
    opacity: 1;
    line-height: 1.7;
    max-width: 580px;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .btn {
    padding: 13px 30px;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.hero-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-section .btn-light {
    background: white;
    color: var(--primary-color);
    border: none;
}

.hero-section .btn-light:hover {
    background: #f9fafb;
    color: var(--primary-dark);
}

.hero-section .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
}

.hero-section .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

.hero-stats {
    margin-top: 3rem;
}

.hero-stats h3 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-stats small {
    font-size: 0.9rem;
    opacity: 1;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ============================================
   FEATURE BOXES - MODERNO
   ============================================ */

.feature-box {
    padding: 2rem 1.5rem;
    transition: var(--transition);
    border-radius: var(--radius-lg);
}

.feature-box:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--gray-medium), var(--gray-dark));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(75, 85, 99, 0.2);
}

.feature-box:hover .feature-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(75, 85, 99, 0.3);
}

.feature-box h5 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-box p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   CATEGORY CARDS - ELEGANTE
   ============================================ */

.category-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gray-medium), var(--gray-dark));
    transform: scaleX(0);
    transition: var(--transition);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gray-medium);
}

.category-card i {
    color: var(--gray-medium);
    transition: var(--transition);
    display: inline-block;
    font-size: 3rem;
    margin-bottom: 1.25rem;
}

.category-card:hover i {
    transform: scale(1.1);
}

.category-card h4 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.category-card .text-primary {
    color: var(--gray-medium) !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.category-card:hover .text-primary {
    transform: translateX(4px);
}

/* ============================================
   PRODUCT CARDS - PREMIUM
   ============================================ */

.product-card {
    border: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    background: white;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-xl);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card:hover::after {
    opacity: 1;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .badge {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    background: var(--bg-gray);
    color: var(--text-dark);
}

.product-card .card-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0.75rem 0;
    color: var(--text-dark);
    line-height: 1.4;
}

.product-card .card-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-light);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-dark);
    letter-spacing: -0.02em;
}

.product-card .btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 10px 20px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.product-card .btn i {
    margin-right: 6px;
}

/* ============================================
   BUTTONS - PROFESIONAL
   ============================================ */

.btn {
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gray-medium), var(--gray-dark));
    color: white;
    box-shadow: 0 2px 8px rgba(75, 85, 99, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gray-dark), var(--gray-medium));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 85, 99, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--gray-medium);
    color: var(--gray-medium);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gray-medium);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    border: 2px solid var(--border-color);
    color: var(--text-dark);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--bg-gray);
    border-color: var(--text-light);
}

/* ============================================
   FORMS - ELEGANTE
   ============================================ */

.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    transition: var(--transition);
    font-size: 0.95rem;
    background: white;
}

.form-control:focus {
    border-color: var(--gray-medium);
    box-shadow: 0 0 0 4px rgba(75, 85, 99, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.input-group-text {
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-muted);
}

/* ============================================
   CARDS - MODERNO
   ============================================ */

.card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: white;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    border: none;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
    padding: 1.25rem 1.5rem;
    font-weight: 700;
    background: white;
    border-bottom: 1px solid var(--border-light);
}

.card-body {
    padding: 1.5rem;
}

/* ============================================
   FOOTER - PROFESIONAL
   ============================================ */

footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    color: white;
    padding: 4rem 0 1.5rem;
    margin-top: 5rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

footer h5 {
    font-weight: 700;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    font-size: 0.9rem;
}

footer a:hover {
    color: white;
    transform: translateX(4px);
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer i {
    margin-right: 10px;
    color: var(--primary-color);
    width: 20px;
}

/* ============================================
   AUTH PAGES - ULTRA PROFESIONAL
   ============================================ */

.auth-mini-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: var(--shadow-sm);
}

.auth-logo {
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-logo:hover {
    color: white;
    opacity: 0.9;
}

.auth-logo i {
    margin-right: 8px;
}

.auth-logo .logo-container {
    background: white;
    padding: 6px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.auth-logo:hover .logo-container {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.auth-logo .navbar-logo {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

.auth-logo .brand-text {
    font-weight: 700;
    font-size: 1.15rem;
    color: white;
}

@media (max-width: 768px) {
    .auth-logo .navbar-logo {
        height: 30px;
    }

    .auth-logo .brand-text {
        font-size: 1rem;
    }

    .auth-logo .logo-container {
        padding: 5px 8px;
    }
}

.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    background: var(--bg-light);
    padding: 60px 20px;
}

.auth-card-modern {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
    position: relative;
}

.auth-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.auth-card-icon {
    width: 80px;
    height: 80px;
    margin: 40px auto 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.25);
}

.auth-card-modern h2 {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 1.75rem;
}

.auth-card-modern .form-control-lg {
    padding: 14px 18px;
    font-size: 1rem;
}

.auth-card-modern .btn-primary {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(75, 85, 99, 0.25);
}

.auth-card-modern a {
    color: var(--gray-medium);
    transition: var(--transition);
}

.auth-card-modern a:hover {
    color: var(--gray-dark);
}

/* ============================================
   UTILITIES
   ============================================ */

.text-primary {
    color: var(--gray-medium) !important;
}

.bg-primary {
    background-color: var(--gray-medium) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-md {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
        min-height: 450px;
    }

    .hero-section h1 {
        font-size: 2.25rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .hero-stats h3 {
        font-size: 1.75rem;
    }

    .category-card {
        margin-bottom: 1.5rem;
    }

    .feature-box {
        margin-bottom: 1.5rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card,
.product-card,
.feature-box {
    animation: fadeInUp 0.5s ease-out;
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
    background: var(--gray-medium);
    color: white;
}

::-moz-selection {
    background: var(--gray-medium);
    color: white;
}

/* =
===========================================
   FILTERS CARD - TARJETA DE FILTROS
   ============================================ */

.filters-card {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    background: white;
    border: 1px solid var(--border-light);
}

.filters-card .card-body {
    padding: 1.5rem;
}

/* ============================================
   EMPTY STATE - ESTADO VACÍO
   ============================================ */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: block;
}

.empty-state h3 {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.empty-state .btn {
    margin: 0.25rem;
}

/* =
===========================================
   CATALOG HEADER - OPTIMIZADO
   ============================================ */

.catalog-header {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-bottom: 2px solid var(--primary-color);
    padding: 1.5rem 0 !important;
}

.catalog-header h1 {
    color: var(--text-dark);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem !important;
}

.catalog-header p {
    color: var(--gray-dark);
    font-size: 0.9rem;
    margin-bottom: 0 !important;
}

/* ============================================
   CATALOG OPTIMIZATIONS - ESPACIOS REDUCIDOS
   ============================================ */

.catalog-container {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.filters-card {
    margin-bottom: 1rem !important;
}

.filters-card .card-body {
    padding: 1rem !important;
}

.catalog-products .row {
    margin-top: 0.5rem;
}

/* Optimización de tarjetas de producto */
.product-card {
    margin-bottom: 1rem;
}

.product-card .card-body {
    padding: 0.75rem !important;
}

.product-card .card-title {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.5rem !important;
}

.product-card .card-text {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.5rem !important;
}

.product-card .badge {
    font-size: 0.7rem !important;
    padding: 0.25rem 0.5rem !important;
}

.product-card .btn-sm {
    padding: 0.375rem 0.75rem !important;
    font-size: 0.8rem !important;
}

.product-card img {
    height: 180px !important;
    object-fit: cover !important;
}

/* Responsive para catálogo optimizado */
@media (max-width: 768px) {
    .catalog-header {
        padding: 1rem 0 !important;
    }
    
    .catalog-header h1 {
        font-size: 1.5rem;
    }
    
    .filters-card .card-body {
        padding: 0.75rem !important;
    }
    
    .product-card img {
        height: 160px !important;
    }
    
    .product-card .card-body {
        padding: 0.5rem !important;
    }
}

/* ============================================
   CTA BOX - RECUADRO DESTACADO
   ============================================ */

.cta-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem 3rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.cta-box h2 {
    color: var(--text-dark);
    font-size: 2rem;
}

.cta-box p {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
}

.cta-box .btn {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    background: var(--primary-color);
    color: white;
    border: none;
}

.cta-box .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

@media (max-width: 768px) {
    .cta-box {
        padding: 1.5rem;
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }

    .cta-box p {
        font-size: 1rem;
    }
}