:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #e0f2fe;
    --ofert: #10b981;
    --accent: #f97316;
    --accent-dark: #ea580c;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg: #f8fafc;
    --bg-card: #ffffff;
    --bg-dark: #0f172a;
    --bg-dark-card: #1e293b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s ease;
    --max-width: 1280px;
    --header-height: 72px;
    --sidebar-width: 280px;
    --sidebar-collapsed: 60px;
    --product-min: 220px;
    --gap: 1.25rem;
    --detail-gap: 3rem;
    --gallery-height: 500px;
    --thumb-size: 72px;
    --price-bg: #f0f9ff;
    --spec-border: #e2e8f0;
}

[data-theme="dark"] {
    --text: #f1f5f9;
    --text-light: #94a3b8;
    --text-muted: #64748b;
    --bg: #0f172a;
    --bg-card: #1e293b;
    --bg-dark: #020617;
    --bg-dark-card: #1e293b;
    --border: #334155;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    --filter-bg: rgba(30, 41, 59, 0.8);
    --filter-border: rgba(51, 65, 85, 0.6);
    --price-bg: rgba(14, 165, 233, 0.08);
    --spec-border: #334155;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    height: var(--header-height);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-lg); transition: var(--transition);
}
.header.scrolled { background: rgba(14,165,233,0.95); backdrop-filter: blur(12px); }

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem;
}

.logo { display: flex; align-items: center; gap: 0.75rem; transition: transform 0.3s ease; margin-top: 1rem; }
.logo:hover { transform: scale(1.02); }
.logo svg { width: 70px; height: 70px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.logo-text { width: 120px; height: auto; }

/* Nav Desktop */
.nav-desktop { display: none; align-items: center; gap: 0.5rem; }
@media (min-width: 768px) { .nav-desktop { display: flex; } }

.nav-link {
    padding: 0.5rem 1rem; font-weight: 600; font-size: 0.95rem;
    color: rgba(255,255,255,0.9); border-radius: 8px;
    transition: var(--transition); position: relative;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px;
    background: white; transition: all 0.3s ease; transform: translateX(-50%);
}
.nav-link:hover { color: white; background: rgba(255,255,255,0.1); }
.nav-link:hover::after { width: 60%; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px; color: white;
    background: rgba(255,255,255,0.1); transition: var(--transition);
}
.icon-btn:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

.cart-badge {
    position: absolute; top: -4px; right: -4px; width: 20px; height: 20px;
    background: #ef4444; color: white; font-size: 0.7rem; font-weight: 700;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    animation: bounce 0.5s ease;
}
@keyframes bounce { 0%,100% { transform: scale(1); } 50% { transform: scale(1.3); } }

/* Mobile Menu */
.menu-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; color: white; border-radius: 8px; transition: var(--transition);
}
.menu-toggle:hover { background: rgba(255,255,255,0.15); }
@media (min-width: 768px) { .menu-toggle { display: none; } }

.mobile-menu {
    position: fixed; inset: 0; z-index: 50;
    background: rgba(15,23,42,0.95); backdrop-filter: blur(16px);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 1.5rem; opacity: 0; visibility: hidden; transition: var(--transition);
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu a {
    font-size: 1.5rem; font-weight: 700; color: white;
    padding: 0.75rem 1.5rem; border-radius: 12px; transition: var(--transition);
}
.mobile-menu a:hover { background: rgba(255,255,255,0.1); color: var(--primary-light); }
.mobile-menu .close-btn {
    position: absolute; top: 1rem; right: 1rem; width: 48px; height: 48px;
    color: white; display: flex; align-items: center; justify-content: center;
    border-radius: 12px; transition: var(--transition);
}
.mobile-menu .close-btn:hover { background: rgba(255,255,255,0.1); transform: rotate(90deg); }


/* Hero Slider */
.hero {
    margin-top: var(--header-height); position: relative;
    height: 50vh;
    background: linear-gradient(135deg, #0369a1 0%, #0ea5e9 50%, #38bdf8 100%);
}
.slider-container { position: relative; width: 100%; height: 100%; }
.slide {
    position: absolute; inset: 0; opacity: 0;
    transition: opacity 1s ease-in-out; display: flex; align-items: center;
}
.slide.active { opacity: 1; }
.slide-bg {
    position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
}
.slide-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative; z-index: 10; max-width: var(--max-width);
    margin: 0 auto; padding: 0 2rem; width: 100%;
}
.slide-title {
    font-size: clamp(1.8rem, 4vw, 3.5rem); font-weight: 800; color: white;
    line-height: 1.1; text-shadow: 0 4px 12px rgba(0,0,0,0.3);
    max-width: 600px; animation: slideInLeft 0.8s ease-out;margin-top: 1rem;
}
.slide-cta {
    margin: 1rem 0; display: inline-flex; align-items: center;
    gap: 0.5rem; padding: 1rem 2rem;
    background: rgba(255,255,255,0.15);
    border: 3px solid white; border-radius: var(--radius-xl);
    color: white; transition: var(--transition);
    animation: slideInUp 0.8s ease-out 0.3s both;
    font-size: 1.25rem; font-weight: 700;
    transition: var(--transition-slow);
}

.slide-cta:hover {
    background: rgba(255,255,255,5);
    color: var(--primary-dark);
}

@keyframes slideInLeft { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

.slider-arrows {
    position: absolute; bottom: 2rem; right: 2rem;
    display: flex; gap: 0.75rem; z-index: 20;
}
.slider-btn {
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.2); backdrop-filter: blur(8px);
    color: white; font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
    transition: var(--transition); border: 1px solid rgba(255,255,255,0.3);
}
.slider-btn:hover { background: rgba(255,255,255,0.35); transform: scale(1.1); }

.slider-dots {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: 0.75rem; z-index: 20;
}
.dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.4); cursor: pointer;
    transition: var(--transition); border: 2px solid transparent;
}
.dot.active { background: white; transform: scale(1.2); box-shadow: 0 0 0 4px rgba(255,255,255,0.2); }
.dot:hover { background: rgba(255,255,255,0.7); }

/* Sections */
.section { padding: 5rem 0; }
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800;
    text-align: center; margin-bottom: 3rem; color: var(--primary); position: relative;
}
.section-title::after {
    content: ''; display: block; width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px; margin: 1rem auto 0;
}

/* Brands */
.brands-section {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.brands-carousel { position: relative; overflow: hidden; padding: 1rem 0; }
.brands-track {
    display: flex; gap: 3rem; animation: scroll 30s linear infinite; width: max-content;
}
.brands-carousel:hover .brands-track { animation-play-state: paused; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.brand-item {
    flex-shrink: 0; height: 60px; display: flex; align-items: center; justify-content: center;
    padding: 0 1rem; filter: grayscale(100%) opacity(0.6); transition: var(--transition);
}
.brand-item:hover { filter: grayscale(0%) opacity(1); transform: scale(1.1); }
.brand-item img { max-height: 100%; width: auto; object-fit: contain; }

.brands-info {
    max-width: 800px; margin: 2rem auto 0; padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(14,165,233,0.05) 100%);
    border: 1px solid var(--primary); border-radius: var(--radius-lg);
    text-align: center; color: var(--text); font-size: 1.05rem; line-height: 1.7;
}
[data-theme="dark"] .brands-info {
    background: linear-gradient(135deg, rgba(14,165,233,0.1) 0%, rgba(14,165,233,0.05) 100%);
}

/* Products Grid */
.products-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem;
}
.product-card {
    background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition-slow);
    border: 1px solid var(--border); position: relative;
    /* z-index: 41; */
}
.product-card:hover {
    transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: var(--primary);
}
.product-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0; transition: opacity 0.3s ease;
}
.product-card:hover::before { opacity: 1; }

.product-image {
    position: relative; height: 220px; overflow: hidden;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; transition: transform 0.5s ease; }
.product-card:hover .product-image img { transform: scale(1.08); }

.product-badge {
    position: absolute; top: 1rem; left: 1rem;
    background: var(--accent); color: white; padding: 0.35rem 0.75rem;
    border-radius: 20px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
}

.ofert{
    position: absolute; top: 0.25rem; left: 0.25rem;
    background: var(--ofert); color: white; padding: 0.35rem 0.75rem;
    border-radius: 10px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em; z-index: 100;
}
.product-info {
    padding: 1.25rem;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg-card) 100%);
}
[data-theme="dark"] .product-info {
    background: linear-gradient(180deg, rgba(14,165,233,0.1) 0%, var(--bg-card) 100%);
}
.product-category {
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.5rem;
}
.product-title {
    font-size: 1.1rem; font-weight: 700; color: var(--text);
    margin-bottom: 0.75rem; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-clamp: 2;
}
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; }
.product-price { font-size: 1.35rem; font-weight: 800; color: var(--accent); }
.add-to-cart {
    width: 44px; height: 44px; border-radius: 12px; background: var(--primary);
    color: white; display: flex; align-items: center; justify-content: center;
    transition: var(--transition); box-shadow: 0 4px 12px rgba(14,165,233,0.3);
}
.add-to-cart:hover { background: var(--primary-dark); transform: scale(1.1) rotate(-8deg); box-shadow: 0 6px 20px rgba(14,165,233,0.4); }
.add-to-cart:active { transform: scale(0.95); }

/* CTA Banner */
.cta-banner {
    position: relative; height: 300px; margin: 3rem auto;
    max-width: var(--max-width); border-radius: var(--radius-xl);
    overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.cta-banner::before {
    content: ''; position: absolute; inset: 0;
    background: url('https://hambaterias.com.ar/public/logos/battery.jpg') center/cover;
    filter: brightness(0.4);
}
.cta-banner::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(14,165,233,0.6) 0%, rgba(249,115,22,0.4) 100%);
}
.cta-content { position: relative; z-index: 10; text-align: center; }
.cta-button {
    display: inline-block; padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white; font-size: 1.25rem; font-weight: 700;
    border-radius: var(--radius-xl); box-shadow: 0 10px 30px rgba(249,115,22,0.3);
    transition: var(--transition); position: relative; overflow: hidden;
}
.cta-button::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}
.cta-button:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(249,115,22,0.4); }
.cta-button:hover::before { left: 100%; }

/* Services */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem;
}
.service-card {
    position: relative; height: 280px; border-radius: var(--radius-lg);
    overflow: hidden; cursor: pointer; box-shadow: var(--shadow); transition: var(--transition-slow);
}
.service-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-xl); }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-card:hover img { transform: scale(1.1); }
.service-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.3) 50%, transparent 100%);
    display: flex; flex-direction: column; justify-content:space-between; align-items: center; padding: 2rem;
    transition: var(--transition);
}
.service-card:hover .service-overlay {
    background: linear-gradient(to top, rgba(14,165,233,0.9) 0%, rgba(14,165,233,0.4) 60%, transparent 100%);
}
.service-title { font-size: 1.5rem; font-weight: 900; color: white; text-shadow: 0 2px 8px rgba(0,0,0,0.3); position: relative; z-index: 10; vertical-align: top; }
.service-desc { color: rgba(255,255,255,0.8); margin-top: 0.5rem; font-size: .95rem; font-weight: 500; opacity: 0; transform: translateY(10px); transition: all 0.3s ease 0.1s; }
.service-card:hover .service-desc { opacity: 1; transform: translateY(0); }

/* Contact */
.contact-section { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-card) 100%); }
.contact-grid {
    display: grid; grid-template-columns: 1fr; gap: 3rem;
    max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.form-container {
    background: var(--bg-card); padding: 2rem; border-radius: var(--radius-lg);
    box-shadow: var(--shadow); border: 1px solid var(--border);
}
.form-title {
    font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem;
    color: var(--text); text-transform: uppercase; letter-spacing: 0.05em;
}
.form-group { margin-bottom: 1rem; }
.form-input {
    width: 100%; padding: 0.875rem 1rem; border: 2px solid var(--border);
    border-radius: var(--radius); background: var(--bg); color: var(--text);
    font-size: 1rem; transition: var(--transition);
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(14,165,233,0.1); }
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { min-height: 120px; resize: vertical; }

.btn-submit {
    width: 100%; padding: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white; font-size: 1rem; font-weight: 700;
    border-radius: var(--radius); transition: var(--transition);
    box-shadow: 0 4px 12px rgba(14,165,233,0.3);
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(14,165,233,0.4); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.info-container { padding: 1rem; }
.info-title {
    font-size: 1.25rem; font-weight: 700; margin-bottom: 2rem;
    color: var(--text); text-transform: uppercase; letter-spacing: 0.05em;
}
.info-item {
    margin-bottom: 1.5rem; padding: 1rem; background: var(--bg-card);
    border-radius: var(--radius); border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-sm); transition: var(--transition);
}
.info-item:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.info-label {
    font-size: 0.875rem; font-weight: 600; color: var(--accent);
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem;
}
.info-value { color: var(--text); font-size: 1rem; line-height: 1.6; }
.info-value a { color: var(--primary); transition: color 0.2s ease; }
.info-value a:hover { color: var(--accent); text-decoration: underline; }

/* Map */
.map-container { margin: 2rem auto 0; max-width: var(--max-width); padding: 0 1.5rem; }
.map-link {
    display: block; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--transition); position: relative;
}
.map-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.map-link img { width: 100%; height: auto;
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
    transition: transform 0.5s ease;
}
.map-link:hover img { transform: scale(1.03); }
.map-overlay {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem;
    background: linear-gradient(to top, rgba(15,23,42,0.9), transparent);
    color: white; text-align: center;
}
.map-overlay p { font-size: 1.1rem; font-weight: 600; }

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white; padding: 3rem 0 1rem; position: relative;
}
.footer-grid {
    display: grid; grid-template-columns: 1fr; gap: 2rem;
    max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; align-items: start;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: auto 1fr 1fr; } }

.footer-brand { display: flex; flex-direction: column; gap: 1rem; width: 100%; height: 100%; }
.footer-brand svg { width: 80px; height: auto; }
.footer-social { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.social-link {
    width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; color: white;
    transition: var(--transition); border: 1px solid rgba(255,255,255,0.1);
}
.social-link:hover { background: var(--primary); transform: translateY(-4px); border-color: var(--primary); }
.footer-info { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-info p, .footer-info a { color: rgba(255,255,255,0.7); font-size: 0.95rem; transition: color 0.2s ease; }
.footer-info a:hover { color: white; }
.footer-bottom {
    margin-top: 2rem; padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center; color: rgba(255,255,255,0.5); font-size: 0.875rem;
}
.footer-bottom a { color: var(--primary-light); transition: color 0.2s ease; }
.footer-bottom a:hover { color: white; }

/* WhatsApp Float */
.wsp-float {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 45;
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: white; font-size: 1.75rem;
    box-shadow: 0 8px 20px rgba(37,211,102,0.4);
    transition: var(--transition); animation: pulse 2s infinite;
}
.wsp-float:hover { transform: scale(1.1) rotate(-8deg); box-shadow: 0 12px 30px rgba(37,211,102,0.5); }
@keyframes pulse {
    0%,100% { box-shadow: 0 8px 20px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 8px 30px rgba(37,211,102,0.6); }
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed; inset: 0; z-index: 60;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden; transition: var(--transition);
}
.cart-overlay.active { opacity: 1; visibility: visible; }
.cart-sidebar {
    position: fixed; top: 0; right: 0; bottom: 0; width: 100%; max-width: 420px; z-index: 61;
    background: var(--bg-card); box-shadow: var(--shadow-xl);
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; flex-direction: column;
}
.cart-sidebar.active { transform: translateX(0); }
.cart-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}
.cart-header h3 { font-size: 1.25rem; font-weight: 700; }
.cart-close {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; color: white;
    background: rgba(255,255,255,0.2); transition: var(--transition);
}
.cart-close:hover { background: rgba(255,255,255,0.3); transform: rotate(90deg); }
.cart-body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.cart-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 3rem 1rem; text-align: center;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--radius-lg);
}
[data-theme="dark"] .cart-empty {
    background: linear-gradient(135deg, rgba(251,191,36,0.1) 0%, rgba(251,191,36,0.05) 100%);
}
.cart-empty svg { width: 64px; height: 64px; color: var(--accent); margin-bottom: 1rem; }
.cart-empty p { color: var(--accent-dark); font-weight: 600; margin-bottom: 1rem; }
.cart-empty button {
    padding: 0.75rem 1.5rem; background: var(--accent); color: white;
    border-radius: var(--radius); font-weight: 600; transition: var(--transition);
}
.cart-empty button:hover { background: var(--accent-dark); transform: translateY(-2px); }

.cart-item {
    display: flex; gap: 1rem; padding: 1rem; background: var(--bg);
    border-radius: var(--radius); margin-bottom: 1rem;
    border: 1px solid var(--border); transition: var(--transition); position: relative;
}
.cart-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-weight: 600; color: var(--text); margin-bottom: 0.5rem; font-size: 0.95rem; }
.cart-item-controls { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.qty-btn {
    width: 28px; height: 28px; border-radius: 6px; background: var(--bg-card);
    border: 1px solid var(--border); color: var(--text);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; transition: var(--transition);
}
.qty-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.qty-input {
    width: 50px; height: 28px; text-align: center;
    border: 1px solid var(--border); border-radius: 6px;
    background: var(--bg-card); color: var(--text); font-weight: 600;
}
.cart-item-prices { display: flex; gap: 1rem; font-size: 0.85rem; }
.price-transfer { color: var(--accent); font-weight: 700; }
.price-card { color: var(--primary); font-weight: 700; }
.cart-item-remove {
    position: absolute; top: 0.5rem; right: 0.5rem;
    width: 28px; height: 28px; border-radius: 6px;
    color: var(--text-muted); display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.cart-item-remove:hover { background: #fee2e2; color: #ef4444; }

.cart-footer { padding: 1.5rem; border-top: 1px solid var(--border); background: var(--bg); }
.cart-totals { margin-bottom: 1rem; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; }
.cart-total-row.total { border-top: 2px solid var(--border); margin-top: 0.5rem; padding-top: 1rem; font-size: 1.1rem; font-weight: 700; }
.cart-btn-wsp {
    width: 100%; padding: 1rem;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white; font-weight: 700; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    transition: var(--transition); margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(37,211,102,0.3);
}
.cart-btn-wsp:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,211,102,0.4); }
.cart-btn-clear {
    width: 100%; padding: 0.875rem; background: transparent;
    color: var(--text-muted); font-weight: 600; border-radius: var(--radius);
    border: 2px solid var(--border); transition: var(--transition);
}
.cart-btn-clear:hover { border-color: #ef4444; color: #ef4444; background: #fee2e2; }

/* Fade In Animation */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Toast */
.toast-container {
    position: fixed; top: calc(var(--header-height) + 1rem); right: 1rem; z-index: 100;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
    padding: 1rem 1.5rem; border-radius: var(--radius); background: var(--bg-card);
    box-shadow: var(--shadow-xl); border-left: 4px solid var(--primary);
    display: flex; align-items: center; gap: 0.75rem;
    animation: toastIn 0.4s ease, toastOut 0.4s ease 2.6s forwards;
    max-width: 320px;
}
.toast.success { border-left-color: #22c55e; }
.toast.error { border-left-color: #ef4444; }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }

/* Responsive */
@media (max-width: 640px) {
    .container { padding: 0 1rem; }
    .section { padding: 3rem 0; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 0 1rem; }
    .product-image { height: 160px; }
    .services-grid { grid-template-columns: 1fr; }
    .cta-banner { height: 200px; margin: 2rem 1rem; }
    .cart-sidebar { max-width: 100%; }
}
@media (max-width: 480px) {
    .slide-content {flex-direction: column; align-items: start;}
    .products-grid { grid-template-columns: 1fr; }
    .slide-cta { padding: 1rem; font-size: 1rem; }
    .slider-arrows { bottom: 1rem; right: 1rem; }
    .slider-dots { bottom: 1rem; }
}

.no-results-message {
    grid-column: span 5;
    width: 100%; padding: 2rem; background: var(--bg-card);
    display: block;
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 1.25rem;
}

.no-results {
    width: 100%; padding: 2rem; background: var(--bg-card);
    display: block;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-top: 2rem !important;
    margin-left: auto;
}

/* productos pages */

/* ─── Layout Principal ─── */
.gallery-layout {
    display: flex;
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(var(--header-height) + 2rem) 1.5rem 3rem;
    min-height: 100vh;
}

/* ─── Sidebar Filtros ─── */
.filters-sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    height: fit-content;
    max-height: calc(100vh - var(--header-height) - 2rem);
    overflow-y: auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
}

.filters-sidebar::-webkit-scrollbar {
    width: 4px;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.filters-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filters-title i {
    color: var(--primary);
}

/* Grupo de filtros */
.filter-group {
    margin-bottom: 1.75rem;
}

.filter-group-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.8rem;
}

.filter-group-title i {
    color: var(--accent);
    font-size: 0.85rem;
}

/* Buscador */
.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box i {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Radio buttons custom */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.filter-options::-webkit-scrollbar {
    width: 4px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.625rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.filter-option:hover {
    background: var(--bg);
    border-color: var(--border);
}

.filter-option:has(input:checked) {
    background: var(--primary-light);
    border-color: var(--primary);
}

[data-theme="dark"] .filter-option:has(input:checked) {
    background: rgba(14, 165, 233, 0.15);
}

.filter-option input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.filter-option input[type="radio"]:checked {
    border-color: var(--primary);
    background: var(--primary);
}

.filter-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.filter-option span {
    font-size: 0.9rem;
    color: var(--text-light);
    transition: color 0.2s ease;
}

.filter-option:hover span,
.filter-option:has(input:checked) span {
    color: var(--text);
    font-weight: 500;
}

/* Botón limpiar */
.btn-clear-filters {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: var(--accent-dark);
    font-weight: 700;
    border-radius: var(--radius);
    border: 2px solid var(--accent);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-clear-filters:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

[data-theme="dark"] .btn-clear-filters {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.4);
}

[data-theme="dark"] .btn-clear-filters:hover {
    background: var(--accent);
}

/* ─── Toggle mobile filters ─── */
.filters-toggle {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 43;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.filters-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.filters-toggle.active {
    background: var(--accent);
}

.filters-toggle .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    background: #c90505;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Overlay mobile ─── */
.filters-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 42;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filters-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* ─── Product Grid Area ─── */
.products-area {
    flex: 1;
    min-width: 0;
}

.products-header {
    text-align: center;
    margin-bottom: 2rem;
}

.products-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.products-header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

.products-count {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Grid de productos */
.products-grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--product-min), 1fr));
    gap: var(--gap);
}

/* ─── Product Card (versión galería mejorada) ─── */
.product-card-gallery {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition-slow);
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card-gallery:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.product-card-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.product-card-gallery:hover::before {
    opacity: 1;
}

/* Badge oferta */
.product-badge-offer {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px rgba(34, 197, 94, 0.5);
    }
}

/* Imagen */
.product-img-wrap {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    flex-shrink: 0;
}

.product-img-wrap a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.5s ease;
}

.product-card-gallery:hover .product-img-wrap img {
    transform: scale(1.08);
}

/* Info producto */
.product-info-gallery {
    padding: 1rem 1.25rem 1.25rem;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg-card) 100%);
    flex: 1;
    display: flex;
    flex-direction: column;
}

[data-theme="dark"] .product-info-gallery {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.08) 0%, var(--bg-card) 100%);
}

.product-cat-gallery {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.product-name-gallery {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.product-name-gallery a {
    transition: color 0.2s ease;
}

.product-name-gallery a:hover {
    color: var(--primary);
}

/* Precio y acción */
.product-action-gallery {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border);
}

.product-price-gallery {
    display: flex;
    flex-direction: column;
}

.product-price-main {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.product-price-old {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-top: 0.25rem;
}

.btn-add-cart {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
    border: none;
    flex-shrink: 0;
}

.btn-add-cart:hover {
    transform: scale(1.1) rotate(-8deg);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-add-cart:active {
    transform: scale(0.95);
}

.btn-add-cart svg {
    width: 20px;
    height: 20px;
}

/* ─── Loader ─── */
.loader-wrap {
    display: none;
    padding: 2rem;
    text-align: center;
}

.loader-wrap.active {
    display: block;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── Load More ─── */
.load-more-wrap {
    text-align: center;
    margin-top: 2.5rem;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 700;
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-load-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

.btn-load-more i {
    font-size: 0.9rem;
}

/* ─── Empty State ─── */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
}

.empty-state svg {
    width: 80px;
    height: 80px;
    color: var(--text-muted);
    margin: 0 auto 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .gallery-layout {
        gap: 1.5rem;
        padding-top: calc(var(--header-height) + 1.5rem);
    }

    .filters-sidebar {
        width: 240px;
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .gallery-layout {
        flex-direction: column;
        padding: calc(var(--header-height) + 1rem) 1rem 2rem;
    }

    .filters-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 85%;
        max-width: 320px;
        z-index: 43;
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 1.5rem;
        padding-top: calc(var(--header-height) + 1rem);
    }

    .filters-sidebar.active {
        transform: translateX(0);
    }

    .filters-toggle {
        display: flex;
        z-index: 44;
    }

    .filters-overlay {
        display: block;
    }

    .filters-overlay.active {
        opacity: 1;
    }

    .products-grid-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-img-wrap {
        height: 160px;
    }

    .product-name-gallery {
        font-size: 0.9rem;
        min-height: auto;
    }

    .product-price-main {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .products-grid-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .product-img-wrap {
        height: 140px;
    }

    .product-info-gallery {
        padding: 0.75rem;
    }

    .btn-add-cart {
        width: 36px;
        height: 36px;
    }
}

/* Show product */

/* ─── Layout Principal ─── */
.product-detail-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: calc(var(--header-height) + 2rem) 1.5rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--detail-gap);
    align-items: start;
}

/* ─── Galería ─── */
.gallery-section {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.gallery-main {
    width: 100%;
    height: var(--gallery-height, 500px);
    position: relative;
    overflow: hidden;
}

/* Swiper Custom */
.swiper-gallery-main {
    width: 100%;
    height: var(--gallery-height);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.swiper-gallery-main .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    position: relative;
}

.swiper-gallery-main .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    transition: transform 0.4s ease;
}

.swiper-gallery-main .swiper-slide:hover img {
    transform: scale(1.03);
}

/* Loading spinner */
.img-loading-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.loading-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: var(--bg-card);
}

.loading-spinner::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.img-loaded .loading-spinner {
    display: none;
}

/* Thumbnails */
.gallery-thumbs-wrap {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.gallery-thumbs-wrap::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbs-wrap::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

.thumb-item {
    width: var(--thumb-size);
    height: var(--thumb-size);
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    background: var(--bg);
}

.thumb-item:hover,
.thumb-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.25rem;
}

/* Swiper nav buttons custom */
.swiper-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    cursor: pointer;
}

.swiper-nav-btn:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.swiper-nav-btn.prev {
    left: 1rem;
}

.swiper-nav-btn.next {
    right: 1rem;
}

/* ─── Info Producto ─── */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--primary);
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Título */
.product-title-detail {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

/* Specs grid */
.specs-grid {
    display: grid;
    gap: 0.75rem;
}

.spec-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--spec-border);
    transition: var(--transition);
}

.spec-row:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.spec-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

[data-theme="dark"] .spec-icon {
    background: rgba(14, 165, 233, 0.15);
}

.spec-content {
    flex: 1;
    min-width: 0;
}

.spec-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.15rem;
}

.spec-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

/* Descripción */
.description-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.description-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.description-title i {
    color: var(--accent);
}

.description-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-line;
}

/* Precios */
.prices-box {
    display: grid;
    gap: 1rem;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: var(--price-bg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--primary-light);
    transition: var(--transition);
}

.price-row:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .price-row {
    border-color: rgba(14, 165, 233, 0.2);
}

.price-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-label i {
    color: var(--primary);
    font-size: 1rem;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.price-value.transfer {
    color: var(--accent);
}

/* Acciones */
.actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-add-cart-detail {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
    border: none;
    cursor: pointer;
}

.btn-add-cart-detail:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
}

.btn-add-cart-detail:active {
    transform: translateY(0);
}

.btn-add-cart-detail svg {
    width: 24px;
    height: 24px;
}

/* Compartir */
.share-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.share-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.share-btn.wsp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.share-btn.wsp:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Botón volver */
.back-section {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    color: var(--text);
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-back:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ─── Zoom Modal ─── */
.zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 2rem;
}

.zoom-modal.active {
    opacity: 1;
    visibility: visible;
}

.zoom-modal img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.zoom-modal.active img {
    transform: scale(1);
}

.zoom-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 101;
}

.zoom-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .product-detail-layout {
        gap: 2rem;
    }

    .swiper-gallery-main {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        padding: calc(var(--header-height) + 1rem) 1rem 2rem;
        gap: 1.5rem;
    }

    .gallery-section {
        position: relative;
        top: 0;
    }

    .swiper-gallery-main {
        height: 350px;
    }

    .product-title-detail {
        font-size: 1.5rem;
    }

    .price-value {
        font-size: 1.25rem;
    }

    .actions-row {
        flex-direction: column;
    }

    .btn-add-cart-detail {
        width: 100%;
    }

    .share-box {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .swiper-gallery-main {
        height: 280px;
    }

    .spec-row {
        padding: 0.75rem;
    }

    .price-row {
        padding: 0.875rem 1rem;
    }

    .description-box {
        padding: 1rem;
    }
}