:root {
--color-primary: #6366f1;
--color-primary-light: #818cf8;
--color-primary-dark: #4f46e5;
--color-secondary: #ec4899;
--color-secondary-light: #f472b6;
--color-secondary-dark: #db2777;
--color-accent: #14b8a6;
--color-accent-light: #2dd4bf;
--color-accent-dark: #0d9488;

--color-success: #10b981;
--color-warning: #f59e0b;
--color-error: #ef4444;
--color-info: #3b82f6;

--bg-primary: #f7f4f4;
--bg-secondary: #fafafa;
--bg-tertiary: #f5f5f5;
--bg-elevated: #f6f4f4;
--bg-overlay: rgba(0, 0, 0, 0.5);

--surface-primary: #ffffff;
--surface-secondary: #f9fafb;
--surface-hover: #f3f4f6;

--text-primary: #111827;
--text-secondary: #4b5563;
--text-tertiary: #9ca3af;
--text-disabled: #d1d5db;
--text-inverse: #ffffff;

--border-light: #f3f4f6;
--border-medium: #e5e7eb;
--border-strong: #d1d5db;
--border-focus: var(--color-primary);

--radius-sm: 0.375rem;
--radius-md: 0.5rem;
--radius-lg: 0.75rem;
--radius-xl: 1rem;
--radius-full: 9999px;

--space-xs: 0.25rem;
--space-sm: 0.5rem;
--space-md: 1rem;
--space-lg: 1.5rem;
--space-xl: 2rem;
--space-2xl: 3rem;

--shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
--shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

--elevation-1: var(--shadow-sm);
--elevation-2: var(--shadow-md);
--elevation-3: var(--shadow-lg);

--transition-fast: all 0.15s ease;
--transition-normal: all 0.3s ease;
--transition-slow: all 0.5s ease;

--font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
--font-mono: 'Fira Code', 'Courier New', monospace;

--font-size-xs: 0.75rem;
--font-size-sm: 0.875rem;
--font-size-base: 1rem;
--font-size-lg: 1.125rem;
--font-size-xl: 1.25rem;
--font-size-2xl: 1.5rem;
--font-size-3xl: 1.875rem;
--font-size-4xl: 2.25rem;

--font-weight-light: 300;
--font-weight-normal: 400;
--font-weight-medium: 500;
--font-weight-semibold: 600;
--font-weight-bold: 700;

--line-height-tight: 1.25;
--line-height-normal: 1.5;
--line-height-relaxed: 1.75;

--z-dropdown: 1000;
--z-modal: 1050;
--z-tooltip: 1100;
--z-notification: 1150;
}

body {
margin: 0;
padding: 0;
font-family: var(--font-sans);
font-size: var(--font-size-base);
font-weight: var(--font-weight-normal);
line-height: var(--line-height-normal);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

background-color: var(--bg-primary);
color: var(--text-primary);
transition: var(--transition-normal);
}

body.dark {
--color-primary: #818cf8;
--color-primary-light: #a5b4fc;
--color-primary-dark: #6366f1;
--color-secondary: #f472b6;
--color-secondary-light: #f9a8d4;
--color-secondary-dark: #ec4899;
--color-accent: #2dd4bf;
--color-accent-light: #5eead4;
--color-accent-dark: #14b8a6;

--color-success: #34d399;
--color-warning: #fbbf24;
--color-error: #f87171;
--color-info: #60a5fa;

--bg-primary: #0a0a0a;
--bg-secondary: #141414;
--bg-tertiary: #1f1f1f;
--bg-elevated: #1f1f1f;
--bg-overlay: rgba(0, 0, 0, 0.7);

--surface-primary: #141414;
--surface-secondary: #1f1f1f;
--surface-hover: #2a2a2a;

--text-primary: #fafafa;
--text-secondary: #d4d4d4;
--text-tertiary: #737373;
--text-disabled: #525252;
--text-inverse: #0a0a0a;

--border-light: #262626;
--border-medium: #404040;
--border-strong: #525252;
--border-focus: var(--color-primary);

--shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
--shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.4);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.6);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 8px 10px -6px rgba(0, 0, 0, 0.7);
--shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.3);
}


@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .footer iframe:hover,
    .footer > ul:first-of-type a:hover,
    .footer-a-Direccion:hover,
    .footer > a[href^="tel"]:hover,
    .footer-ul-horario li:hover,
    .Producto:hover,
    .hd-bn-modos:hover,
    .hd-bn-hamburguesa:hover,
    .main-section-Pri p:hover {
        transform: none;
    }

    .footer > a[href^="tel"]::before {
        animation: none;
    }

    .main-section-Pri::before,
    .main-section-Pri::after {
        animation: none;
    }

    #menu-container::before {
        animation: none;
    }
}

html {
    scroll-behavior: smooth;
}

.Producto,
.hd-bn-modos,
.hd-bn-hamburguesa,
.footer > ul:first-of-type a,
.main-section-Pri p {
    will-change: transform;
}

.hd-nav.nav-abierto {
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}

.hd-nav.nav-abierto::-webkit-scrollbar {
    width: 0.375rem;
}

.hd-nav.nav-abierto::-webkit-scrollbar-track {
    background: transparent;
}

.hd-nav.nav-abierto::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--radius-full);
}

.hd-nav.nav-abierto::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

@keyframes skeleton {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.Producto.loading {
    background: linear-gradient(
        90deg,
        var(--surface-primary) 25%,
        var(--surface-hover) 50%,
        var(--surface-primary) 75%
    );
    background-size: 200% 100%;
    animation: skeleton 1.5s ease-in-out infinite;
}

.hd-bn-modos:focus-visible,
.hd-bn-hamburguesa:focus-visible,
.hd-nav-ul-li-a:focus-visible,
.submenu a:focus-visible,
.footer > ul:first-of-type a:focus-visible,
.footer-a-Direccion:focus-visible,
.footer > a[href^="tel"]:focus-visible {
    outline: 0.1875rem solid var(--color-primary);
    outline-offset: 0.25rem;
    border-radius: var(--radius-md);
}

body.dark .hd-bn-modos:focus-visible,
body.dark .hd-bn-hamburguesa:focus-visible,
body.dark .hd-nav-ul-li-a:focus-visible,
body.dark .submenu a:focus-visible,
body.dark .footer > ul:first-of-type a:focus-visible,
body.dark .footer-a-Direccion:focus-visible,
body.dark .footer > a[href^="tel"]:focus-visible {
    outline-color: var(--color-primary-light);
}

@media (min-width: 64rem) {
    .main-section-Pri::before {
        animation: gridMove 20s linear infinite, parallaxGrid 10s ease-in-out infinite;
    }

    @keyframes parallaxGrid {
        0%, 100% {
            transform: translate(0, 0) scale(1);
        }
        50% {
            transform: translate(3.125rem, 3.125rem) scale(1.05);
        }
    }
}

.main-section-p h2 {
    overflow: hidden;
    white-space: nowrap;
    animation: typing 1.5s steps(30) forwards, 
                fadeInScale 0.8s ease-out;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: var(--shadow-xl), 0 0 2.5rem rgba(99, 102, 241, 0.2);
    }
    50% {
        box-shadow: var(--shadow-xl), 0 0 3.75rem rgba(99, 102, 241, 0.4);
    }
}


@keyframes glowDark {
    0%, 100% {
        box-shadow: var(--shadow-xl), 0 0 2.5rem rgba(129, 140, 248, 0.3);
    }
    50% {
        box-shadow: var(--shadow-xl), 0 0 3.75rem rgba(129, 140, 248, 0.5);
    }
}

.hd-bn-modos:active::after,
.hd-bn-hamburguesa:active::after,
.footer > ul:first-of-type a:active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

.footer > a[href^="tel"]:hover::after {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, var(--color-accent) 0.125rem, transparent 0.125rem);
    background-size: 1.875rem 1.875rem;
    opacity: 0.3;
    animation: particles 2s linear infinite;
}

@keyframes particles {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-3.125rem);
    }
}

.hd-p-logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: logoShine 3s ease-in-out infinite;
}

@keyframes logoShine {
    0%, 100% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media print {
    .header,
    .hd-bn-modos,
    .hd-bn-hamburguesa,
    .footer > ul:first-of-type,
    .footer > a[href^="tel"] {
        display: none;
    }

    .Producto {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body {
        background: white;
        color: black;
    }

    .main-section-Pri {
        background: white;
        min-height: auto;
    }

    .main-section-Pri::before,
    .main-section-Pri::after,
    #menu-container::before {
        display: none;
    }
}

@media (prefers-contrast: high) {
    .header,
    .Producto,
    .footer {
        border-width: 0.1875rem;
    }

    .hd-bn-modos,
    .hd-bn-hamburguesa {
        border-width: 0.1875rem;
    }

    .main-section-Pri h1,
    .main-section-p h2,
    .footer h4,
    .footer h3 {
        -webkit-text-fill-color: var(--text-primary);
        text-shadow: none;
    }
}


body.dark {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.dark .main-section-Pri h1 {
    filter: drop-shadow(0 0 1.875rem rgba(129, 140, 248, 0.6));
}

body.dark .Producto img {
    filter: brightness(0.9) contrast(1.1);
}

body.dark .footer iframe {
    filter: brightness(0.85) contrast(1.1);
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 0.25rem solid var(--border-light);
    border-top-color: var(--color-primary);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}