/* Variables y Configuración Base */
:root {
    --bg-dark: #0f1115;
    --bg-surface: #1a1d24;
    --bg-surface-light: #252933;
    --bg-header: rgba(15, 17, 21, 0.8);
    --accent-yellow: #E66211;
    --accent-yellow-glow: rgba(230, 98, 17, 0.4);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --danger: #ef4444;

    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-theme: 0.3s ease;
}

[data-theme="light"] {
    --bg-dark: #f5f5f5;
    --bg-surface: #ffffff;
    --bg-surface-light: #e2e8f0;
    --bg-header: rgba(255, 255, 255, 0.8);
    --text-main: #1a1a1a;
    --text-muted: #475569;
    --border-color: rgba(0, 0, 0, 0.1);
}

html {
    transition: background-color var(--transition-theme), color var(--transition-theme);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

img, video {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
    transition: background-color var(--transition-theme), color var(--transition-theme), background var(--transition-theme);
}

/* Transiciones Globales para Modo Claro/Oscuro y Optimización Touch */
.header, .product-card, .cart-offcanvas, .cart-item, .main-footer, .cart-trigger, .filter-btn, .backdrop, .processing-overlay, .toast, button, input, select, textarea, a, .nav-link {
    transition: background-color var(--transition-theme), border-color var(--transition-theme), color var(--transition-theme), box-shadow var(--transition-theme), transform var(--transition-smooth);
}

button, a, .hero-dot, .sector-dot, .filter-btn, .product-card, .sector-card, .cart-trigger, .nav-link, .hero-nav-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Background Animado Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.85;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

[data-theme="light"] body {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    background-attachment: fixed;
}

[data-theme="light"] #bg-canvas {
    opacity: 0.8;
}

/* Tipografía Útil */
.text-accent {
    color: var(--accent-yellow);
}

/* Header Pro Sticky */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 70px;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 100;
    transition: background-color var(--transition-smooth), border-color var(--transition-smooth), transform var(--transition-smooth);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.icon-gear {
    width: 28px;
    height: 28px;
    color: var(--accent-yellow);
    animation: spinGear 15s linear infinite;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-yellow);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent-yellow);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.cart-trigger {
    position: relative;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.cart-trigger:hover {
    background: rgba(230, 98, 17, 0.15);
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
    box-shadow: 0 0 15px var(--accent-yellow-glow);
    transform: translateY(-2px);
}

.cart-trigger svg {
    width: 22px;
    height: 22px;
    pointer-events: none;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-yellow);
    color: var(--bg-dark);
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-bounce);
}

/* Hero Carrusel */
.hero {
    position: relative;
    height: 65vh;
    min-height: 480px;
    overflow: hidden;
    margin-bottom: 3.5rem;
    border-bottom: 1px solid var(--border-color);
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 17, 21, 0.88) 0%, rgba(15, 17, 21, 0.65) 50%, rgba(15, 17, 21, 0.3) 100%);
    pointer-events: none;
    z-index: 2;
}

.slide.active {
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
    opacity: 0.95;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    max-width: 650px;
    opacity: 0;
    z-index: 12;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide.active .slide-content {
    opacity: 1;
    transform: translateY(-50%) translateX(10px);
}

.slide-content h2 {
    font-size: 3rem;
    margin-bottom: 1.1rem;
    line-height: 1.15;
    color: #ffffff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.7);
    font-weight: 800;
}

.slide-content p {
    font-size: 1.18rem;
    color: #e2e8f0;
    margin-bottom: 2.2rem;
    font-weight: 500;
    line-height: 1.65;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .slide-content h2 {
    color: #ffffff;
}

[data-theme="light"] .slide-content p {
    color: #f1f5f9;
}

/* Hero Controls */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(15, 17, 21, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all var(--transition-fast);
}

.hero-nav-btn:hover {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: #ffffff;
    box-shadow: 0 0 16px var(--accent-yellow-glow);
    transform: translateY(-50%) scale(1.08);
}

.hero-nav-btn.prev {
    left: 2rem;
}

.hero-nav-btn.next {
    right: 2rem;
}

.hero-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 20;
}

.hero-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot.active {
    width: 32px;
    border-radius: 12px;
    background: var(--accent-yellow);
    box-shadow: 0 0 12px var(--accent-yellow-glow);
}

@media (max-width: 768px) {
    .hero-nav-btn {
        display: none;
    }
    .hero {
        height: 68vh;
        min-height: 430px;
    }
}

/* Botones y CTA */
.btn-primary {
    background: var(--accent-yellow);
    color: var(--bg-dark);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    /* Default */
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
    z-index: 1;
}

.btn-primary:hover {
    border-radius: 12px;
    /* Morphing dynamic border radius */
    box-shadow: 0 0 20px var(--accent-yellow-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Promociones y Ofertas (Glassmorphism) */
.promotions-section {
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto 4rem auto;
    position: relative;
    z-index: 10;
}

.promo-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.promo-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

[data-theme="light"] .promo-card {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

.promo-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-yellow);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 0 20px var(--accent-yellow-glow);
}

.promo-badge {
    background: var(--bg-surface-light);
    color: var(--text-main);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.promo-badge.highlight {
    background: var(--accent-yellow);
    color: var(--bg-dark);
    border: none;
}

.promo-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.promo-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
    flex-grow: 1;
}

.btn-outline {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--accent-yellow);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all var(--transition-fast);
}

.btn-outline:hover {
    background: var(--accent-yellow);
    color: var(--bg-dark);
}

/* Sección Catálogo */
.catalog-section {
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--bg-surface-light);
    color: var(--accent-yellow);
    border-color: var(--accent-yellow);
}

/* Productos Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.catalog-brand-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.catalog-brand-header:first-child {
    margin-top: 0;
}

.catalog-brand-accent {
    width: 5px;
    height: 24px;
    border-radius: 4px;
    background: var(--accent-yellow);
    box-shadow: 0 0 10px var(--accent-yellow-glow);
    flex-shrink: 0;
}

.catalog-brand-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.4px;
    margin: 0;
}

@media (max-width: 1100px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

.product-card {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-radius var(--transition-smooth);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    animation: cardEnter 0.5s forwards ease-out;
}

.product-brand {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-surface-light);
    color: var(--text-main);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 10;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(4px);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-yellow);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-yellow-glow);
    border-radius: 16px;
    /* Dynamic morph */
}

.product-img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    padding: 1rem;
    background: transparent;
    border-bottom: 1px solid var(--border-color);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.8rem;
    color: var(--accent-yellow);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.product-info .btn-details {
    margin-top: auto;
    width: 100%;
}

@media (max-width: 600px) {
    .catalog-section {
        padding: 1.5rem 3.5%;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .catalog-brand-header {
        margin-top: 1.25rem;
        padding-bottom: 0.5rem;
        gap: 0.6rem;
    }

    .catalog-brand-accent {
        width: 4px;
        height: 20px;
    }

    .catalog-brand-title {
        font-size: 1.15rem;
    }

    .product-brand {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.15rem 0.45rem;
        font-size: 0.55rem;
    }

    .product-img {
        height: 145px;
        padding: 0.65rem;
    }

    .product-info {
        padding: 0.85rem;
    }

    .product-category {
        font-size: 0.65rem;
        letter-spacing: 0.5px;
        margin-bottom: 0.25rem;
    }

    .product-name {
        font-size: 0.92rem;
        line-height: 1.25;
        margin-bottom: 0.65rem;
    }

    .product-info .btn-details {
        padding: 0.55rem 0.6rem;
        font-size: 0.82rem;
    }
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    margin-top: auto;
}

.btn-add {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Off-Canvas Cart */
.backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
    z-index: 999;
}

.backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.cart-offcanvas {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition-bounce);
}

.cart-offcanvas.active {
    transform: translateX(0);
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    width: 30px;
    height: 30px;
    transition: color var(--transition-fast);
}

.close-btn:hover {
    color: var(--text-main);
    transform: rotate(90deg);
}

.cart-body {
    padding: 1.5rem;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empty-cart {
    text-align: center;
    color: var(--text-muted);
    margin-top: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    background: var(--bg-dark);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.3s ease;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.item-details {
    flex-grow: 1;
}

.item-name {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-surface);
    padding: 0.2rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.qty-btn {
    background: none;
    border: none;
    color: var(--text-main);
    width: 20px;
    cursor: pointer;
}

.qty-btn:hover {
    color: var(--accent-yellow);
}

.item-remove {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 0.8rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.cta-btn {
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1100;
}

.toast {
    background: var(--bg-surface-light);
    border-left: 4px solid var(--accent-yellow);
    color: var(--text-main);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateX(120%);
    transition: transform var(--transition-bounce), opacity var(--transition-fast);
}

.toast.show {
    transform: translateX(0);
}

/* Overlay de Procesamiento */
.processing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.processing-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.loader-gear {
    width: 80px;
    height: 80px;
    animation: spinGear 2s linear infinite;
}

.progress-bar {
    width: 200px;
    height: 4px;
    background: var(--bg-surface);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-yellow);
    transition: width 0.3s;
}

/* Keyframes */
@keyframes spinGear {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes shakeCart {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg);
    }

    50% {
        transform: rotate(15deg);
    }

    75% {
        transform: rotate(-15deg);
    }
}

.shake {
    animation: shakeCart 0.4s ease;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Detail Page */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
    }
}

.product-detail-image-wrapper {
    position: relative;
    padding: 3rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: transparent;
    border-right: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .product-detail-image-wrapper {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

.product-detail-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

.product-detail-info {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .product-detail-info {
        padding: 2rem;
    }
}

.product-description h3 {
    color: var(--text-main);
    margin: 2rem 0 1rem 0;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.product-description ul {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-description li {
    margin-bottom: 0.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.data-table th, .data-table td {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.data-table th {
    background: var(--bg-surface-light);
    color: var(--text-main);
    font-weight: bold;
}

.data-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .data-table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* PDF Viewer Defaults */
#pdf-desktop {
    display: block;
}
#pdf-mobile {
    display: none;
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .header {
        padding: 0 1rem;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--bg-surface);
    }

    .logo {
        font-size: 1.2rem;
    }

    .main-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--bg-header);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 0.85rem 0 calc(0.85rem + env(safe-area-inset-bottom, 0px));
        justify-content: space-evenly;
        gap: 0;
        border-top: 1px solid var(--border-color);
        z-index: 900;
        box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .nav-link::after {
        display: none;
    }

    #pdf-desktop {
        display: none !important;
    }

    #pdf-mobile {
        display: block !important;
    }

    .toast-container {
        bottom: 180px;
    }

    .main-footer {
        padding: 1.5rem 1rem 85px !important;
    }

    .footer-content {
        display: block !important;
        margin: 0 0 1.5rem 0 !important;
        max-width: 100% !important;
        grid-template-columns: none !important;
        gap: 0 !important;
    }

    .footer-section {
        display: block !important;
        padding: 0 !important;
        width: 100% !important;
        text-align: left;
        margin-bottom: 1.5rem;
        align-items: flex-start !important;
    }

    .footer-section:first-child {
        padding-right: 0 !important;
    }

    .footer-section:first-child p {
        display: block;
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }

    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.6rem;
        font-weight: 700;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.25rem;
        display: block !important;
    }

    .footer-bottom {
        padding-top: 1rem;
        font-size: 0.8rem;
    }

    /* Carousel / Slides Responsivos */
    .slide-content {
        left: 50% !important;
        right: auto !important;
        width: 90% !important;
        max-width: 500px !important;
        text-align: center !important;
        transform: translate(-50%, -50%) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .slide.active .slide-content {
        transform: translate(-50%, -50%) !important;
    }

    .slide-content h2 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }

    .slide-content p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .page-header h1 {
        font-size: 1.8rem !important;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Detalle de Producto Responsivo */
    .product-detail-image-wrapper {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem !important;
    }

    .product-detail-info {
        padding: 1.5rem !important;
    }

    .product-detail-info .product-name {
        font-size: clamp(1.5rem, 5.5vw, 2.2rem) !important;
        line-height: 1.25 !important;
        margin-bottom: 1rem !important;
    }

    .product-detail-img {
        max-width: 280px !important;
    }

    /* Tablas Técnicas Responsivas */
    .data-table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .cart-offcanvas {
        max-width: 100%;
    }
}

/* Footer */
.main-footer {
    background: var(--bg-surface-light);
    border-top: 2px solid rgba(148, 163, 184, 0.3);
    padding: 4rem 2rem 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 4rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.5rem;
}

.footer-section:first-child {
    padding-right: 2rem;
}

.footer-section h4 {
    color: var(--accent-yellow);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-section p {
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.6;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.6;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--accent-yellow);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}


/* =======================================================
   SECCIÓN NOSOTROS (Página Nosotros)
   ======================================================= */
.about-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}
.about-text p:last-child {
  margin-bottom: 0;
}
.page-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-yellow);
  margin-bottom: 0.75rem;
  display: block;
}
.content-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
[data-theme="light"] .content-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
}
.content-card h2 {
  color: var(--text-main);
}
.content-card .section-text h2 {
  color: var(--accent-yellow) !important;
}
.content-card p,
.content-card li,
.content-card .section-intro {
  color: var(--text-muted);
}
.content-card li span {
  background: var(--accent-yellow) !important;
}
[data-theme="light"] .content-card h2 {
  color: #000000;
}
[data-theme="light"] .content-card .section-text h2 {
  color: var(--accent-yellow) !important;
}

/* =======================================================
   SECCIÓN MARCAS Y EQUIVALENCIAS (Página Marcas)
   ======================================================= */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}
.brand-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.brand-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-yellow);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 15px var(--accent-yellow-glow);
}
.brand-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  margin: 0;
}
.brand-tag {
  background: var(--bg-surface-light);
  border: 1px solid var(--border-color);
  color: var(--accent-yellow);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.brand-tag:hover {
  background: var(--accent-yellow);
  color: #ffffff;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 12px var(--accent-yellow-glow);
}
.section-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 3.5rem 0;
}
.equiv-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.equiv-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--bg-surface-light);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- SECCIÓN DESCRIPCIÓN & PROPUESTA DE VALOR --- */
.home-features {
    padding: 3.5rem 5% 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.features-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.features-intro .features-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-yellow);
    margin-bottom: 0.8rem;
}

.features-intro h2 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.features-intro p {
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.75;
    margin-bottom: 2.2rem;
}

.features-actions {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.35rem 1.6rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-item:hover {
    transform: translateX(8px);
    border-color: var(--accent-yellow);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(230, 98, 17, 0.12);
    border: 1px solid rgba(230, 98, 17, 0.3);
    color: var(--accent-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-info h4 {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-main);
}

.feature-info p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* --- SECTORES PRODUCTIVOS CARRUSEL --- */
.sectors-section {
    padding: 3rem 5% 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.sectors-container {
    position: relative;
}

.sectors-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.sectors-header-text {
    max-width: 720px;
}

.sectors-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-yellow);
    margin-bottom: 0.5rem;
}

.sectors-title {
    font-size: 2.35rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
}

.sectors-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
    line-height: 1.6;
}

.sectors-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.sector-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.sector-nav-btn:hover {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--accent-yellow-glow);
    transform: translateY(-2px);
}

.sectors-carousel-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 0.75rem 0 1rem;
    border-radius: 20px;
    touch-action: pan-y;
    user-select: none;
}

.sectors-carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.sector-card {
    flex: 0 0 calc((100% - 3rem) / 3);
    position: relative;
    height: 440px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.28s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.28s ease, border-color 0.28s ease;
    cursor: pointer;
}

.sector-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-yellow);
}

.sector-card-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.sector-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease-out;
}

.sector-card:hover .sector-card-media img {
    transform: scale(1.05);
}

.sector-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 17, 21, 0.1) 0%, rgba(15, 17, 21, 0.5) 45%, rgba(15, 17, 21, 0.95) 100%);
    transition: background 0.3s ease;
}

.sector-card:hover .sector-card-overlay {
    background: linear-gradient(180deg, rgba(15, 17, 21, 0.05) 0%, rgba(15, 17, 21, 0.45) 40%, rgba(15, 17, 21, 0.98) 100%);
}

.sector-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.85rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.sector-card-tag {
    display: inline-block;
    align-self: flex-start;
    padding: 0.25rem 0.8rem;
    background: rgba(230, 98, 17, 0.25);
    border: 1px solid rgba(230, 98, 17, 0.55);
    color: #ffb076;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
}

.sector-card-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.sector-card-desc {
    font-size: 0.92rem;
    color: #e2e8f0;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.sector-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-yellow);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: 0.35rem;
    transition: gap 0.2s ease, color 0.2s ease;
}

.sector-card:hover .sector-card-link {
    gap: 0.8rem;
    color: #ff914d;
}

.sectors-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    margin-top: 2rem;
}

.sector-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.sector-dot.active {
    width: 32px;
    border-radius: 12px;
    background: var(--accent-yellow);
    box-shadow: 0 0 10px var(--accent-yellow-glow);
}

/* Responsividad Features & Sectores */
@media (max-width: 1024px) {
    .features-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .sector-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        height: 410px;
    }
    .sectors-title {
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .home-features {
        padding: 2.5rem 5% 3rem;
    }
    .features-intro h2 {
        font-size: 1.75rem;
    }
    .features-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .features-actions a {
        text-align: center;
    }
    .sector-card {
        flex: 0 0 100%;
        height: 390px;
    }
    .sectors-section {
        padding: 2.5rem 5% 3.5rem;
    }
    .sectors-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .sectors-controls {
        align-self: flex-end;
    }
    .sectors-title {
        font-size: 1.75rem;
    }
}
