:root {
--color-primary: #0ea5e9;
--color-primary-light: #38bdf8;
--color-primary-dark: #0284c7;
--color-secondary: #f97316;
--color-secondary-light: #fb923c;
--color-secondary-dark: #ea580c;
--color-accent: #22c55e;
--color-accent-light: #4ade80;
--color-accent-dark: #16a34a;

--color-success: #22c55e;
--color-warning: #eab308;
--color-error: #dc2626;
--color-info: #06b6d4;

--bg-primary: #fefcf9;
--bg-secondary: #faf7f2;
--bg-tertiary: #f5f1e8;
--bg-elevated: #ffffff;
--bg-overlay: rgba(17, 24, 39, 0.6);

--surface-primary: #ffffff;
--surface-secondary: #faf8f5;
--surface-hover: #f0ebe3;

--text-primary: #1c1917;
--text-secondary: #57534e;
--text-tertiary: #a8a29e;
--text-disabled: #d6d3d1;
--text-inverse: #fafaf9;

--border-light: #f5f5f4;
--border-medium: #e7e5e4;
--border-strong: #d6d3d1;
--border-focus: var(--color-primary);

--radius-sm: 0.5rem;
--radius-md: 0.75rem;
--radius-lg: 1rem;
--radius-xl: 1.5rem;
--radius-full: 9999px;

--space-xs: 0.5rem;
--space-sm: 0.75rem;
--space-md: 1.25rem;
--space-lg: 2rem;
--space-xl: 2.5rem;
--space-2xl: 4rem;

--shadow-xs: 0 1px 3px 0 rgba(120, 53, 15, 0.08);
--shadow-sm: 0 2px 4px 0 rgba(120, 53, 15, 0.1), 0 1px 2px -1px rgba(120, 53, 15, 0.08);
--shadow-md: 0 6px 12px -2px rgba(120, 53, 15, 0.12), 0 3px 6px -3px rgba(120, 53, 15, 0.1);
--shadow-lg: 0 12px 24px -4px rgba(120, 53, 15, 0.14), 0 6px 12px -6px rgba(120, 53, 15, 0.12);
--shadow-xl: 0 24px 48px -8px rgba(120, 53, 15, 0.16), 0 12px 24px -12px rgba(120, 53, 15, 0.14);
--shadow-inner: inset 0 2px 6px 0 rgba(120, 53, 15, 0.08);

--elevation-1: var(--shadow-sm);
--elevation-2: var(--shadow-md);
--elevation-3: var(--shadow-lg);

--transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
--transition-normal: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
--transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 
    'Helvetica Neue', Arial, sans-serif;
--font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
--font-display: 'Playfair Display', Georgia, serif;

--font-size-xs: 0.8125rem;
--font-size-sm: 0.9375rem;
--font-size-base: 1.0625rem;
--font-size-lg: 1.1875rem;
--font-size-xl: 1.375rem;
--font-size-2xl: 1.625rem;
--font-size-3xl: 2rem;
--font-size-4xl: 2.5rem;

--font-weight-light: 300;
--font-weight-normal: 400;
--font-weight-medium: 500;
--font-weight-semibold: 600;
--font-weight-bold: 700;
--font-weight-extrabold: 800;

--line-height-tight: 1.3;
--line-height-normal: 1.6;
--line-height-relaxed: 1.8;

--z-base: 1;
--z-dropdown: 100;
--z-sticky: 200;
--z-modal: 300;
--z-popover: 400;
--z-tooltip: 500;
--z-notification: 600;

--opacity-disabled: 0.4;
--opacity-hover: 0.8;
--opacity-overlay: 0.6;
}

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;
text-rendering: optimizeLegibility;

background-color: var(--bg-primary);
color: var(--text-primary);
transition: var(--transition-normal);
letter-spacing: -0.011em;
}

body.dark {
--color-primary: #38bdf8;
--color-primary-light: #7dd3fc;
--color-primary-dark: #0ea5e9;
--color-secondary: #fbbf24;
--color-secondary-light: #fcd34d;
--color-secondary-dark: #f59e0b;
--color-accent: #4ade80;
--color-accent-light: #86efac;
--color-accent-dark: #22c55e;

--color-success: #4ade80;
--color-warning: #facc15;
--color-error: #f87171;
--color-info: #22d3ee;

--bg-primary: #0c1222;
--bg-secondary: #131b2e;
--bg-tertiary: #1a2332;
--bg-elevated: #1f2937;
--bg-overlay: rgba(3, 7, 18, 0.85);

--surface-primary: #131b2e;
--surface-secondary: #1a2332;
--surface-hover: #252f3f;

--text-primary: #f0f9ff;
--text-secondary: #bfdbfe;
--text-tertiary: #7dd3fc;
--text-disabled: #475569;
--text-inverse: #0c1222;

--border-light: #1e293b;
--border-medium: #334155;
--border-strong: #475569;
--border-focus: var(--color-primary);

--shadow-xs: 0 1px 3px 0 rgba(3, 7, 18, 0.5);
--shadow-sm: 0 2px 4px 0 rgba(3, 7, 18, 0.6), 0 1px 2px -1px rgba(3, 7, 18, 0.5);
--shadow-md: 0 6px 12px -2px rgba(3, 7, 18, 0.7), 0 3px 6px -3px rgba(3, 7, 18, 0.6);
--shadow-lg: 0 12px 24px -4px rgba(3, 7, 18, 0.8), 0 6px 12px -6px rgba(3, 7, 18, 0.7);
--shadow-xl: 0 24px 48px -8px rgba(3, 7, 18, 0.9), 0 12px 24px -12px rgba(3, 7, 18, 0.8);
--shadow-inner: inset 0 2px 6px 0 rgba(3, 7, 18, 0.5);

--glow-primary: 0 0 20px rgba(56, 189, 248, 0.3);
--glow-secondary: 0 0 20px rgba(251, 191, 36, 0.3);
--glow-accent: 0 0 20px rgba(74, 222, 128, 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,
    .header:hover {
        transform: none;
    }

    .footer > a[href^="tel"]::before,
    .footer h4::before,
    .main-section-p h2::before {
        animation: none;
    }

    .main-section-Pri::before,
    .main-section-Pri::after {
        animation: none;
    }
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.Producto,
.hd-bn-modos,
.hd-bn-hamburguesa,
.footer > ul:first-of-type a,
.main-section-Pri p,
.footer iframe,
.footer-a-Direccion,
.footer > a[href^="tel"],
.footer-ul-horario li {
    will-change: transform;
}

.hd-nav.nav-abierto {
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) var(--surface-hover);
}

.hd-nav.nav-abierto::-webkit-scrollbar {
    width: 0.5rem;
}

.hd-nav.nav-abierto::-webkit-scrollbar-track {
    background: var(--surface-hover);
    border-radius: var(--radius-full);
}

.hd-nav.nav-abierto::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

.hd-nav.nav-abierto::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

body.dark .hd-nav.nav-abierto::-webkit-scrollbar-thumb {
    box-shadow: var(--glow-primary);
}

.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.375rem;
}

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-secondary);
    box-shadow: 0 0 0 0.375rem rgba(251, 191, 36, 0.2);
}

@keyframes skeleton-loading {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.Producto.loading {
    background: linear-gradient(
        90deg,
        var(--surface-primary) 0%,
        var(--surface-hover) 50%,
        var(--surface-primary) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

body.dark .Producto.loading {
    background: linear-gradient(
        90deg,
        var(--surface-secondary) 0%,
        var(--surface-hover) 50%,
        var(--surface-secondary) 100%
    );
}

.text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@keyframes ripple-effect {
    from {
        opacity: 1;
        transform: scale(0);
    }
    to {
        opacity: 0;
        transform: scale(2.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, currentColor 0%, transparent 70%);
    opacity: 0.3;
    animation: ripple-effect 0.6s ease-out;
    pointer-events: none;
}

@keyframes breathe {
    0%, 100% {
        box-shadow: var(--shadow-lg);
    }
    50% {
        box-shadow: var(--shadow-xl), 0 0 2rem rgba(14, 165, 233, 0.2);
    }
}

body.dark .footer > a[href^="tel"] {
    animation: breathe 3s ease-in-out infinite;
}

@media (min-width: 64rem) {
    .main-section-Pri::after {
        animation: float 20s ease-in-out infinite, parallax 15s ease-in-out infinite;
    }

    @keyframes parallax {
        0%, 100% {
            transform: translate(0, 0);
        }
        25% {
            transform: translate(-2rem, 2rem);
        }
        50% {
            transform: translate(2rem, -2rem);
        }
        75% {
            transform: translate(-1rem, -1rem);
        }
    }
}

.footer > * {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation-fill-mode: both;
}

.footer > *:nth-child(1) { animation-delay: 0.1s; }
.footer > *:nth-child(2) { animation-delay: 0.2s; }
.footer > *:nth-child(3) { animation-delay: 0.3s; }
.footer > *:nth-child(4) { animation-delay: 0.4s; }
.footer > *:nth-child(5) { animation-delay: 0.5s; }
.footer > *:nth-child(6) { animation-delay: 0.6s; }
.footer > *:nth-child(7) { animation-delay: 0.7s; }
.footer > *:nth-child(8) { animation-delay: 0.8s; }

.hd-p-logo {
    position: relative;
    overflow: hidden;
}

.hd-p-logo::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.6s ease;
}

.hd-p-logo:hover::before {
    left: 100%;
}

.Producto::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        -45deg,
        transparent 0%,
        transparent 45%,
        rgba(255, 255, 255, 0.1) 48%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 52%,
        transparent 55%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.Producto:hover::after {
    transform: translateX(100%);
}

@media (prefers-contrast: high) {
    .header,
    .Producto,
    .footer,
    .main-section-Pri p {
        border-width: 0.1875rem;
    }

    .hd-bn-modos,
    .hd-bn-hamburguesa {
        border-width: 0.1875rem;
    }

    .footer > ul:first-of-type a {
        border-width: 0.1875rem;
    }

    body.dark {
        --text-primary: #ffffff;
        --text-secondary: #e5e5e5;
    }
}

@media print {
    .header,
    .hd-bn-modos,
    .hd-bn-hamburguesa,
    .hd-nav,
    .footer > ul:first-of-type,
    .footer > a[href^="tel"],
    .main-section-Pri::before,
    .main-section-Pri::after,
    #menu-container::before {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .Producto,
    .footer-ul-horario li {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .main-section-Pri {
        background: white;
        min-height: auto;
        padding: 2rem;
    }

    .footer {
        background: white;
        border-top: 0.125rem solid black;
    }

    .main-section-Pri h1,
    .main-section-p h2,
    .footer h3,
    .footer h4 {
        color: black;
    }

    .Producto strong {
        position: static;
        display: block;
        margin: 1rem 0;
    }
}

body.dark {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.dark .main-section-Pri h1 {
    text-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.3);
}

body.dark .Producto {
    box-shadow: var(--shadow-md), inset 0 0.0625rem 0.125rem rgba(56, 189, 248, 0.05);
}

body.dark .footer {
    box-shadow: inset 0 0.125rem 0.25rem rgba(56, 189, 248, 0.1);
}

body,
.header,
.hd-nav,
.main-section-Pri,
#menu-container,
.Producto,
.footer,
.hd-bn-modos,
.hd-bn-hamburguesa,
.hd-nav-ul-li-a,
.submenu,
.footer > ul:first-of-type a,
.footer-a-Direccion,
.footer > a[href^="tel"],
.footer-ul-horario li {
    transition: 
        background-color var(--transition-normal),
        border-color var(--transition-normal),
        color var(--transition-normal),
        box-shadow var(--transition-normal),
        transform var(--transition-fast);
}

.Producto img,
.footer iframe,
.main-section-Pri::before,
.main-section-Pri::after,
.hd-p-logo::before {
    transform: translateZ(0);
    backface-visibility: hidden;
}

.Producto:hover,
.footer > ul:first-of-type a:hover,
.footer-a-Direccion:hover,
.footer > a[href^="tel"]:hover {
    will-change: transform, box-shadow;
}

@media (min-width: 64rem) {
    .main-section-Pri {
        overflow: visible;
    }

    .main-section-Pri::before {
        z-index: 0;
    }
}

.hd-bn-modos,
.hd-bn-hamburguesa,
.hd-nav-ul-li-a,
.submenu a,
.footer > ul:first-of-type a,
.footer-a-Direccion,
.footer > a[href^="tel"],
.Producto {
    cursor: pointer;
}

@media (hover: none) and (pointer: coarse) {
    .hd-bn-modos,
    .hd-bn-hamburguesa,
    .hd-nav-ul-li-a,
    .submenu a,
    .footer > ul:first-of-type a {
        min-height: 2.75rem;
        min-width: 2.75rem;
    }
}

.hd-bn-modos:active,
.hd-bn-hamburguesa:active,
.footer > ul:first-of-type a:active,
.footer-a-Direccion:active,
.footer > a[href^="tel"]:active {
    transition-duration: 0.05s;
}