* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --danger-color: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.top-bar {
    background: var(--text-dark);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.contact-info i {
    margin-right: 5px;
}

.social-links a {
    color: white;
    margin-left: 15px;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
}

.main-header {
    background: var(--text-dark);
    padding: 5px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
    cursor: pointer;
}

.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.95);
}

.search-bar input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
    border-color: var(--primary-color);
    background: white;
}

.search-bar input::placeholder {
    color: #9ca3af;
}

.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px 18px;
    font-size: 1.1rem;
    border-radius: 20px;
    transition: all 0.3s;
}

.search-bar button:hover {
    background: var(--secondary-color);
    transform: translateY(-50%) scale(1.05);
}

.search-bar button:active {
    transform: translateY(-50%) scale(0.95);
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.search-dropdown.active {
    display: block;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f3f4f6;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover {
    background: #f9fafb;
}

.search-dropdown-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.search-dropdown-info {
    flex: 1;
    min-width: 0;
}

.search-dropdown-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-dropdown-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 2px;
}

.search-dropdown-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
}

.search-dropdown-empty i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.3;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    font-size: 1.4rem;
    transition: all 0.3s;
    position: relative;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    font-weight: 600;
}

/* Navbar */
.navbar {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 0;
    margin: 0;
}

.nav-menu li a {
    display: block;
    padding: 15px 25px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: var(--primary-color);
    color: white;
}

.nav-menu li a.sale-link {
    color: var(--danger-color);
    font-weight: 700;
}

/* Dropdown Menu */
.nav-item-dropdown {
    position: relative;
}

.nav-link-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 25px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.nav-link-dropdown:hover {
    background: var(--primary-color);
    color: white;
}

.nav-link-dropdown i {
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.nav-item-dropdown.active .nav-link-dropdown i {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-item-dropdown.active .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.submenu li a:hover,
.submenu li a.active {
    background: var(--primary-color);
    color: white;
}

/* Fallback si no hay imagen */
.logo h1 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0;
}

.logo p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}


/* Navbar */
.navbar {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.navbar .container {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Botón hamburguesa (oculto en desktop) */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Menú lateral móvil */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1999;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--primary-color);
    color: white;
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-menu-content {
    padding: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: var(--bg-light);
    color: var(--primary-color);
}

.mobile-menu-link.sale-link {
    color: var(--danger-color);
    font-weight: 700;
}

.mobile-submenu {
    background: var(--bg-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu-item.expanded .mobile-submenu {
    max-height: 500px;
}

.mobile-submenu-link {
    display: block;
    padding: 12px 20px 12px 40px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.3s;
}

.mobile-submenu-link:hover,
.mobile-submenu-link.active {
    background: white;
    color: var(--primary-color);
}

.mobile-menu-arrow {
    transition: transform 0.3s;
}

.mobile-menu-item.expanded .mobile-menu-arrow {
    transform: rotate(180deg);
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 0;
    margin: 0;
    flex: 1;
}

.nav-menu li a {
    display: block;
    padding: 15px 25px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: var(--primary-color);
    color: white;
}

.nav-menu li a.sale-link {
    color: var(--danger-color);
    font-weight: 700;
}

/* Banner Promocional */
.promo-banner {
    background: var(--primary-color);
    color: white;
    padding: 12px 0;
    overflow: hidden;
}

.promo-slider {
    display: flex;
    animation: slide 15s linear infinite;
}

.promo-item {
    min-width: 33.333%;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

@keyframes slide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Hero Banner Slider */
.hero-banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slider-container {
    position: relative;
    width: 100%;
    height: 500px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide .hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: slideInDown 0.8s ease-out;
}

.hero-slide .hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero-slide .hero-content .btn-primary {
    animation: fadeIn 0.8s ease-out 0.4s both;
}

/* Botones de navegación del slider */
.hero-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    z-index: 10;
}

.hero-slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.hero-slider-prev {
    left: 20px;
}

.hero-slider-next {
    right: 20px;
}

/* Indicadores (dots) */
.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.hero-slider-dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Animaciones */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Botón primario */
.btn-primary {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 15px 40px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

/* Benefits Section */
.benefits-section {
    background: white;
    padding: 40px 20px;
    border-bottom: 1px solid var(--border-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 20px;
}

.benefit-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.benefit-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.benefit-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Featured Products Section */
.featured-products-section {
    padding: 60px 20px;
    background: var(--bg-light);
}

.featured-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.featured-product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.featured-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.featured-product-image {
    position: relative;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.featured-product-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.featured-product-card:hover .featured-product-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.featured-badge.discount {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 99, 235, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.featured-product-card:hover .featured-overlay {
    opacity: 1;
}

.featured-overlay i {
    font-size: 2.5rem;
}

.featured-overlay span {
    font-size: 1.1rem;
    font-weight: 600;
}

.featured-product-info {
    padding: 25px;
}

.featured-product-category {
    color: var(--primary-color);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.featured-product-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
    min-height: 50px;
    cursor: pointer;
    transition: color 0.3s;
}

.featured-product-name:hover {
    color: var(--primary-color);
}

.featured-product-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}

.featured-price-old {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
}

.featured-price-current {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.btn-featured-cart {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-featured-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

/* Promo Section */
.promo-section {
    background: linear-gradient(135deg, var(--accent-color) 0%, #f97316 100%);
    padding: 80px 20px;
    text-align: center;
    color: white;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-content h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.promo-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-promo {
    display: inline-block;
    background: white;
    color: var(--accent-color);
    padding: 15px 40px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s;
}

.btn-promo:hover {
    transform: scale(1.05);
}

/* Brands Section */
.brands-section {
    padding: 60px 20px;
    background: white;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.brand-item {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: all 0.3s;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.brand-item img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
}

.brand-item:hover {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.brand-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-item span {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-dark);
}


/* Products Section */
.products-section {
    padding: 60px 20px;
    background: white;
}

.products-section:nth-child(even) {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    width: 100%;
    height: 280px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.product-badge.envio-gratis {
    background: var(--success-color);
    top: 45px;
}

.product-badge.oferta {
    background: var(--danger-color);
    top: 10px;
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-dark);
    min-height: 50px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-current {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-old {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-installments {
    color: var(--success-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.btn-add-cart {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-add-cart:hover {
    background: var(--secondary-color);
}


/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    font-size: 1.5rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    border-radius: 5px;
    font-weight: 600;
}

.qty-btn:hover {
    background: var(--bg-light);
}

.remove-item {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.btn-checkout,
.btn-whatsapp {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    transition: transform 0.3s;
}

.btn-checkout {
    background: var(--primary-color);
    color: white;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-checkout:hover,
.btn-whatsapp:hover {
    transform: translateY(-2px);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 1000;
}

.overlay.active {
    display: block;
}


/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.footer-col ul li i {
    margin-right: 10px;
    color: var(--accent-color);
}

.payment-methods {
    display: flex;
    gap: 15px;
    font-size: 2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* Responsive */
@media (max-width: 768px) {
    /* Hero Slider Responsive */
    .hero-slider-container {
        height: 400px;
    }
    
    .hero-slide {
        padding: 60px 20px;
        /* Ajustar solo la imagen de fondo para que se vea completa */
        background-size: cover !important;
        background-position: center 70% !important;
    }
    
    .hero-slide .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-slide .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .hero-slider-prev {
        left: 10px;
    }
    
    .hero-slider-next {
        right: 10px;
    }
    
    .hero-slider-dots {
        bottom: 20px;
        gap: 8px;
    }
    
    .hero-slider-dot {
        width: 10px;
        height: 10px;
    }
    
    .hero-slider-dot.active {
        width: 24px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-bar {
        max-width: 100%;
    }
    
    /* Menú hamburguesa visible en móvil */
    .hamburger-btn {
        display: flex;
    }
    
    /* Ocultar menú horizontal en móvil */
    .nav-menu {
        display: none;
    }
    
    .navbar .container {
        justify-content: flex-start;
    }
    
    /* Dropdown en móvil */
    .submenu {
        position: static;
        box-shadow: none;
        border-radius: 0;
        background: #f8fafc;
        margin-top: 5px;
    }
    
    .nav-item-dropdown.active .submenu {
        transform: translateY(0);
    }
    
    /* Search dropdown en móvil */
    .search-dropdown {
        max-height: 300px;
    }
    
    .search-dropdown-item {
        padding: 10px;
    }
    
    .search-dropdown-img {
        width: 40px;
        height: 40px;
    }
    
    .search-dropdown-name {
        font-size: 0.85rem;
    }
    
    .search-dropdown-price {
        font-size: 0.8rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .featured-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .featured-product-image {
        height: 250px;
    }
    
    .featured-product-info {
        padding: 20px;
    }
    
    .featured-product-name {
        font-size: 1.1rem;
        min-height: 45px;
    }
    
    .featured-price-current {
        font-size: 1.6rem;
    }
    
    .promo-content h2 {
        font-size: 2rem;
    }
    
    .promo-content p {
        font-size: 1.1rem;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* User Menu Styles */
.user-menu {
    display: flex;
    align-items: center;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

#userActionsLogged {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 15px 20px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.user-dropdown-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.3s;
    font-size: 0.95rem;
}

.user-dropdown a:hover {
    background: var(--bg-light);
}

.user-dropdown a i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    font-size: 1rem;
}

.user-dropdown a:last-child {
    border-top: 1px solid var(--border-color);
    color: var(--danger-color);
}

.user-dropdown a:last-child i {
    color: var(--danger-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .header-content {
        gap: 15px;
    }
    
    .logo-img {
        height: 80px;
    }
    
    .search-bar {
        max-width: 100%;
    }
    
    .search-bar input {
        font-size: 0.9rem;
        padding: 10px 45px 10px 15px;
    }
    
    .icon-btn {
        font-size: 1.2rem;
        width: 40px;
        height: 40px;
    }
    
    .nav-menu {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu::-webkit-scrollbar {
        display: none;
    }
    
    .nav-menu li a {
        padding: 12px 18px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

/* Paginación */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
}

.pagination-number {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-number:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.pagination-number.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination-ellipsis {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .pagination-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .pagination-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}


/* ============================================
   MODAL DE DETALLE DEL PRODUCTO
   ============================================ */

.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.product-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.product-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 1000px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.product-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    transition: all 0.3s;
    z-index: 10;
}

.product-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.product-modal-image {
    position: relative;
}

.product-modal-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-modal-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-modal-badges .badge {
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-modal-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-modal-info h2 {
    font-size: 28px;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
}

.product-modal-category {
    color: var(--primary-color);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.product-modal-price {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 2px solid #f3f4f6;
    border-bottom: 2px solid #f3f4f6;
}

.product-modal-price .price-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-modal-price .old-price {
    font-size: 18px;
    color: #9ca3af;
    text-decoration: line-through;
}

.product-modal-price .current-price {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
}

.product-modal-price .discount-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
}

.product-modal-description h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.product-modal-description p {
    color: #6b7280;
    line-height: 1.8;
    font-size: 15px;
}

.product-modal-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #4b5563;
    font-size: 14px;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 18px;
    width: 24px;
}

.product-modal-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.quantity-selector button {
    width: 45px;
    height: 45px;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    transition: all 0.3s;
}

.quantity-selector button:hover {
    background: var(--primary-color);
    color: white;
}

.quantity-selector input {
    width: 60px;
    height: 45px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.btn-add-to-cart-modal {
    flex: 1;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-add-to-cart-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.product-modal-contact {
    padding: 20px;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 12px;
    text-align: center;
}

.product-modal-contact p {
    color: #166534;
    font-size: 14px;
    margin-bottom: 12px;
}

.btn-whatsapp-modal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-whatsapp-modal:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .product-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .product-modal-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .product-modal-info h2 {
        font-size: 22px;
    }
    
    .product-modal-price .current-price {
        font-size: 28px;
    }
    
    .product-modal-actions {
        flex-direction: column;
    }
    
    .quantity-selector {
        width: 100%;
        justify-content: center;
    }
    
    .btn-add-to-cart-modal {
        width: 100%;
    }
}
