/* =====================================================
   TIENDA PROFESIONAL - ESTILOS
   Inspirado en MundoGeek y Alegio
   ===================================================== */

:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --secondary: #1d3557;
    --accent: #f4a261;
    --success: #2a9d8f;
    --warning: #e9c46a;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #212529;
    --text-gray: #6c757d;
    --text-light: #adb5bd;
    --border: #dee2e6;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background: var(--bg-light); color: var(--text-dark); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 15px; }

/* Top Bar */
.top-bar { background: var(--secondary); color: white; font-size: 13px; padding: 8px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.top-bar a { color: white; }
.top-bar a:hover { color: var(--accent); }
.top-bar-left, .top-bar-right { display: flex; gap: 20px; }
.top-bar i { margin-right: 5px; }

/* Header */
.header { background: var(--bg-white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; gap: 20px; }
.logo { font-size: 28px; font-weight: 700; color: var(--secondary); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.logo i { color: var(--primary); }

/* Search */
.search-form { flex: 1; max-width: 500px; display: flex; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.search-form:focus-within { border-color: var(--primary); }
.search-form input { flex: 1; padding: 12px 15px; border: none; font-size: 14px; outline: none; font-family: inherit; }
.search-form button { background: var(--primary); color: white; border: none; padding: 12px 20px; cursor: pointer; transition: var(--transition); }
.search-form button:hover { background: var(--primary-dark); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 15px; }
.header-action { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 12px; border-radius: var(--radius); transition: var(--transition); }
.header-action:hover { background: var(--bg-light); }
.header-action i { font-size: 22px; color: var(--secondary); }
.header-action-text { font-size: 13px; line-height: 1.3; }
.header-action-text small { color: var(--text-gray); display: block; }
.header-action-text strong { color: var(--text-dark); }

.cart-btn { position: relative; background: var(--primary); color: white; padding: 10px 20px; border-radius: var(--radius); display: flex; align-items: center; gap: 8px; cursor: pointer; transition: var(--transition); }
.cart-btn:hover { background: var(--primary-dark); }
.cart-badge { position: absolute; top: -8px; right: -8px; background: var(--secondary); color: white; font-size: 11px; font-weight: 600; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* Nav */
.nav { background: var(--secondary); }
.nav-list { display: flex; list-style: none; gap: 5px; overflow-x: auto; }
.nav-list > li > a { display: flex; align-items: center; gap: 6px; padding: 14px 18px; color: white; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav-list > li > a:hover, .nav-list > li > a.active { background: var(--primary); }

/* Banner */
.banner-section { padding: 20px 0; }
.banner-slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.banner-slide { display: none; background: linear-gradient(135deg, var(--secondary) 0%, #457b9d 100%); color: white; padding: 60px; min-height: 350px; align-items: center; }
.banner-slide.active { display: flex; }
.banner-content { max-width: 500px; }
.banner-content h2 { font-size: 36px; margin-bottom: 15px; line-height: 1.2; }
.banner-content p { font-size: 16px; opacity: 0.9; margin-bottom: 25px; }
.banner-buttons { display: flex; gap: 15px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius); font-weight: 600; font-size: 14px; cursor: pointer; transition: var(--transition); border: none; font-family: inherit; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: white; border: 2px solid white; }
.btn-outline:hover { background: white; color: var(--secondary); }

.banner-nav { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.banner-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: var(--transition); }
.banner-dot.active { background: white; transform: scale(1.2); }

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 0; }
.benefit-item { display: flex; align-items: center; gap: 15px; background: white; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.benefit-icon { width: 50px; height: 50px; background: var(--bg-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 20px; flex-shrink: 0; }
.benefit-text h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.benefit-text p { font-size: 12px; color: var(--text-gray); }

/* Section */
.section { padding: 40px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; flex-wrap: wrap; gap: 15px; }
.section-title { font-size: 24px; font-weight: 600; color: var(--secondary); display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ''; width: 4px; height: 24px; background: var(--primary); border-radius: 2px; }
.section-link { color: var(--primary); font-weight: 500; }
.section-link:hover { text-decoration: underline; }
.results-count { color: var(--text-gray); font-size: 14px; }

/* Categories Grid */
.categories-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; }
.category-card { background: white; border-radius: var(--radius); padding: 25px 15px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); cursor: pointer; display: block; }
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.category-card i { font-size: 32px; color: var(--primary); margin-bottom: 12px; display: block; }
.category-card h3 { font-size: 13px; font-weight: 500; color: var(--text-dark); margin-bottom: 5px; }
.category-count { font-size: 11px; color: var(--text-gray); }

/* Products Grid */
.products-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.product-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); position: relative; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 10; }
.badge { padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.badge-sale { background: var(--primary); color: white; }
.badge-new { background: var(--success); color: white; }
.badge-hot { background: var(--accent); color: white; }

.product-image { position: relative; padding-top: 100%; background: var(--bg-light); overflow: hidden; }
.product-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; padding: 15px; transition: transform 0.5s ease; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-placeholder { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 48px; color: #ddd; }

.product-actions { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; opacity: 0; transform: translateY(10px); transition: var(--transition); }
.product-card:hover .product-actions { opacity: 1; transform: translateY(0); }
.product-action-btn { width: 38px; height: 38px; border-radius: 50%; background: white; border: none; box-shadow: var(--shadow); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--text-dark); transition: var(--transition); }
.product-action-btn:hover { background: var(--primary); color: white; }

.product-info { padding: 15px; }
.product-category { font-size: 11px; color: var(--text-gray); text-transform: uppercase; margin-bottom: 5px; display: block; }
.product-name { font-size: 14px; font-weight: 500; color: var(--text-dark); margin-bottom: 10px; line-height: 1.4; height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-name:hover { color: var(--primary); }

.product-rating { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.product-rating i { color: var(--warning); font-size: 12px; }
.product-rating span { font-size: 12px; color: var(--text-gray); }

.product-price { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.price-current { font-size: 20px; font-weight: 700; color: var(--primary); }
.price-old { font-size: 14px; color: var(--text-light); text-decoration: line-through; }
.price-consult { font-size: 14px; color: var(--accent); font-weight: 500; }

.product-installments { font-size: 12px; color: var(--success); margin-bottom: 12px; }
.product-installments i { margin-right: 4px; }

.product-btn { width: 100%; padding: 10px; background: var(--secondary); color: white; border: none; border-radius: var(--radius); font-size: 13px; font-weight: 500; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; }
.product-btn:hover { background: var(--primary); }

/* Filters Bar */
.filters-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding: 15px; background: white; border-radius: var(--radius); box-shadow: var(--shadow); flex-wrap: wrap; gap: 15px; }
.filters-left { display: flex; align-items: center; gap: 10px; }
.filters-left span { font-size: 14px; color: var(--text-gray); }
.filters-left select { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit; font-size: 14px; cursor: pointer; }
.filters-right { font-size: 14px; color: var(--text-gray); }

/* Promo Grid */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0; }
.promo-card { background: linear-gradient(135deg, var(--secondary) 0%, #457b9d 100%); border-radius: var(--radius-lg); padding: 30px; color: white; position: relative; overflow: hidden; min-height: 180px; }
.promo-card::after { content: ''; position: absolute; right: -30px; bottom: -30px; width: 150px; height: 150px; background: rgba(255,255,255,0.1); border-radius: 50%; }
.promo-card h3 { font-size: 22px; margin-bottom: 8px; }
.promo-card p { font-size: 14px; opacity: 0.9; margin-bottom: 15px; }
.promo-card .btn { background: white; color: var(--secondary); padding: 10px 20px; font-size: 13px; }
.promo-card .btn:hover { background: var(--accent); color: white; }
.promo-red { background: linear-gradient(135deg, #e63946 0%, #c1121f 100%); }
.promo-green { background: linear-gradient(135deg, #2a9d8f 0%, #264653 100%); }

/* Testimonials */
.testimonials { background: white; padding: 50px 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.testimonial-card { background: var(--bg-light); padding: 25px; border-radius: var(--radius); position: relative; }
.testimonial-card::before { content: '"'; font-size: 60px; color: var(--primary); opacity: 0.2; position: absolute; top: 10px; left: 20px; font-family: serif; }
.testimonial-text { font-size: 14px; color: var(--text-gray); margin-bottom: 20px; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 45px; height: 45px; border-radius: 50%; background: var(--primary); color: white; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.testimonial-author h4 { font-size: 14px; font-weight: 600; }
.testimonial-author .stars { color: var(--warning); font-size: 12px; }

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; background: white; border-radius: var(--radius); }
.empty-state i { font-size: 60px; color: var(--text-light); margin-bottom: 20px; }
.empty-state h3 { font-size: 20px; margin-bottom: 10px; }
.empty-state p { color: var(--text-gray); margin-bottom: 20px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.pagination-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: white; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-dark); font-weight: 500; transition: var(--transition); }
.pagination-btn:hover, .pagination-btn.active { background: var(--primary); border-color: var(--primary); color: white; }

/* Footer */
.footer { background: var(--secondary); color: white; padding-top: 50px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-about p { font-size: 14px; opacity: 0.8; margin: 15px 0; line-height: 1.7; }
.logo-footer { color: white; font-size: 24px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); }
.footer-title { font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; opacity: 0.8; transition: var(--transition); }
.footer-links a:hover { opacity: 1; color: var(--accent); }
.footer-links i { margin-right: 8px; width: 16px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 25px 0; flex-wrap: wrap; gap: 15px; }
.footer-bottom p { font-size: 13px; opacity: 0.7; }
.payment-methods { display: flex; gap: 10px; align-items: center; }
.payment-methods > span { font-size: 12px; opacity: 0.7; margin-right: 10px; }
.payment-icon { width: 50px; height: 30px; background: white; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--secondary); font-weight: bold; }

/* WhatsApp Float */
.whatsapp-float { position: fixed; bottom: 25px; right: 25px; z-index: 999; }
.whatsapp-btn { width: 60px; height: 60px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 30px; box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4); transition: var(--transition); animation: pulse 2s infinite; }
.whatsapp-btn:hover { transform: scale(1.1); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); } 50% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } }

/* Cart Sidebar */
.cart-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 1998; opacity: 0; visibility: hidden; transition: var(--transition); }
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar { position: fixed; top: 0; right: -420px; width: 420px; max-width: 100%; height: 100vh; background: white; z-index: 1999; transition: right 0.3s ease; display: flex; flex-direction: column; }
.cart-sidebar.active { right: 0; }
.cart-header { padding: 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.cart-close { width: 36px; height: 36px; border: none; background: var(--bg-light); border-radius: 50%; cursor: pointer; font-size: 18px; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px; }
.cart-item { display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--border); }
.cart-item-image { width: 80px; height: 80px; background: var(--bg-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 24px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 14px; font-weight: 500; margin-bottom: 5px; }
.cart-item-price { color: var(--primary); font-weight: 600; }
.cart-item-qty { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.qty-btn { width: 28px; height: 28px; border: 1px solid var(--border); background: white; border-radius: 4px; cursor: pointer; font-size: 14px; }
.cart-item-remove { color: var(--text-light); cursor: pointer; }
.cart-item-remove:hover { color: var(--primary); }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--text-gray); }
.cart-empty i { font-size: 60px; opacity: 0.3; margin-bottom: 15px; display: block; }
.cart-footer { padding: 20px; border-top: 1px solid var(--border); background: var(--bg-light); }
.cart-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 600; margin-bottom: 15px; }
.cart-total span:last-child { color: var(--primary); }
.cart-checkout { width: 100%; padding: 14px; background: #25d366; color: white; border: none; border-radius: var(--radius); font-size: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: inherit; }
.cart-checkout:hover { background: #20ba5a; }

/* Responsive */
@media (max-width: 1200px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .categories-grid { grid-template-columns: repeat(4, 1fr); }
    .benefits { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .promo-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .top-bar { display: none; }
    .header-main { flex-wrap: wrap; }
    .search-form { order: 3; max-width: 100%; flex: 0 0 100%; margin-top: 10px; }
    .header-action-text { display: none; }
    .hide-mobile { display: none; }
    .nav-list { padding: 0 10px; }
    .nav-list > li > a { padding: 12px 14px; font-size: 13px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .benefits { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-social { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .banner-slide { padding: 30px; min-height: 250px; }
    .banner-content h2 { font-size: 24px; }
    .banner-content p { font-size: 14px; }
    .section-title { font-size: 20px; }
}
@media (max-width: 480px) {
    .logo { font-size: 22px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .product-info { padding: 10px; }
    .product-name { font-size: 13px; height: 36px; }
    .price-current { font-size: 16px; }
    .product-installments { font-size: 11px; }
    .cart-sidebar { width: 100%; }
}
