:root {
    --primary-color: #FFB300;
    /* Vibrant Yellow */
    --primary-hover: #FFA000;
    --secondary-color: #E63946;
    /* Accent Red */
    --bg-dark: #121212;
    --bg-card: #1E1E1E;
    --text-light: #F8F9FA;
    --text-muted: #ADB5BD;
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    -webkit-tap-highlight-color: transparent;
}

/* Touch y foco optimizado para Consolas (PS), Móviles y PC */
button, a, input, select, textarea {
    touch-action: manipulation;
}

:focus-visible {
    outline: 3px solid var(--primary-color) !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 20px rgba(255, 179, 0, 0.7) !important;
    border-radius: 6px;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
}

span {
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Glass Header */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.glass-header.scrolled {
    padding: 1rem 5%;
    background: rgba(18, 18, 18, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo h1 {
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-main);
    font-weight: 800;
}

.logo i {
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

/* ==========================================================================
   BOTONES ESTILO QUESO DERRETIDO (Melted Cheese Buttons)
   ========================================================================== */

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: 
        radial-gradient(circle at 20% 32%, rgba(216, 67, 21, 0.18) 0%, transparent 5px),
        radial-gradient(circle at 80% 62%, rgba(216, 67, 21, 0.22) 0%, transparent 7px),
        radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.45) 0%, transparent 6px),
        linear-gradient(180deg, #FFF176 0%, #FFCA28 18%, #FFB300 52%, #FB8C00 82%, #E65100 100%);
    color: #381801 !important;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.02em;
    padding: 0.85rem 1.65rem;
    /* Forma orgánica de masa de queso fundido */
    border-radius: 24px 28px 20px 26px / 26px 20px 28px 22px;
    border-top: 2px solid #FFFDE7;
    border-left: 2px solid #FFE082;
    border-right: 2px solid #FFA000;
    border-bottom: 3.5px solid #C43E00;
    cursor: pointer;
    text-decoration: none;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
    box-shadow: 
        inset 0 3px 6px rgba(255, 255, 255, 0.85),
        inset 0 -3px 6px rgba(183, 28, 28, 0.35),
        0 6px 18px rgba(230, 81, 0, 0.45),
        0 3px 6px rgba(0, 0, 0, 0.28);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    overflow: visible;
    margin-bottom: 4px;
}

/* Gotitas de queso derretido goteando por el borde inferior */
.btn-primary::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 10px;
    right: 10px;
    height: 9px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 16' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L70,0 C66,2 64,8 60,8 C56,8 55,2 52,0 L46,0 C42,0 40,14 34,14 C28,14 27,0 22,0 L18,0 C15,0 14,7 10,7 C7,7 6,0 0,0 Z' fill='%23C43E00'/%3E%3Cpath d='M0,0 L70,0 C66,2 64,7 60,7 C56,7 55,2 52,0 L46,0 C42,0 40,12 34,12 C28,12 27,0 22,0 L18,0 C15,0 14,6 10,6 C7,6 6,0 0,0 Z' fill='%23FB8C00'/%3E%3Cpath d='M0,0 L70,0 C66,1.5 64,5.5 60,5.5 C56,5.5 55,1.5 52,0 L46,0 C42,0 40,10 34,10 C28,10 27,0 22,0 L18,0 C15,0 14,4.5 10,4.5 C7,4.5 6,0 0,0 Z' fill='%23FFB300'/%3E%3C/svg%3E");
    background-size: 50px 9px;
    background-repeat: repeat-x;
    pointer-events: none;
    z-index: 2;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}

.btn-primary:hover {
    background: 
        radial-gradient(circle at 20% 32%, rgba(216, 67, 21, 0.15) 0%, transparent 5px),
        radial-gradient(circle at 80% 62%, rgba(216, 67, 21, 0.2) 0%, transparent 7px),
        radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.55) 0%, transparent 6px),
        linear-gradient(180deg, #FFF9C4 0%, #FFD54F 18%, #FFB300 52%, #F57C00 82%, #D84315 100%);
    transform: translateY(-3px) scale(1.03);
    border-radius: 28px 22px 26px 20px / 22px 28px 20px 26px;
    box-shadow: 
        inset 0 4px 8px rgba(255, 255, 255, 0.95),
        inset 0 -4px 8px rgba(183, 28, 28, 0.45),
        0 10px 25px rgba(230, 81, 0, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.35);
    color: #261001 !important;
}

.btn-primary:hover::after {
    transform: scaleY(1.45) translateY(1px);
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.4));
}

.btn-primary:active {
    transform: translateY(2px) scale(0.97, 0.95);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        inset 0 -2px 4px rgba(255, 255, 255, 0.4),
        0 3px 8px rgba(230, 81, 0, 0.3);
}

.btn-primary:active::after {
    transform: scaleY(0.7);
}

/* BOTÓN SECUNDARIO: Queso Mozzarella Suave y Cremoso */
.btn-secondary {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: 
        radial-gradient(circle at 25% 35%, rgba(255, 179, 0, 0.18) 0%, transparent 6px),
        radial-gradient(circle at 75% 65%, rgba(255, 179, 0, 0.2) 0%, transparent 7px),
        linear-gradient(180deg, #FFFFFF 0%, #FFFDE7 25%, #FFF9C4 65%, #FFE082 100%);
    color: #4A2600 !important;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.02em;
    padding: 0.85rem 1.65rem;
    border-radius: 22px 26px 19px 23px / 24px 19px 25px 21px;
    border-top: 2px solid #FFFFFF;
    border-left: 2px solid #FFF9C4;
    border-right: 2px solid #FFE082;
    border-bottom: 3.5px solid #FFB300;
    cursor: pointer;
    text-decoration: none;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
    box-shadow: 
        inset 0 3px 6px rgba(255, 255, 255, 0.95),
        inset 0 -3px 5px rgba(255, 179, 0, 0.35),
        0 6px 18px rgba(0, 0, 0, 0.28);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    overflow: visible;
    margin-bottom: 4px;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 10px;
    right: 10px;
    height: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 16' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L70,0 C66,2 64,8 60,8 C56,8 55,2 52,0 L46,0 C42,0 40,14 34,14 C28,14 27,0 22,0 L18,0 C15,0 14,7 10,7 C7,7 6,0 0,0 Z' fill='%23FFA000'/%3E%3Cpath d='M0,0 L70,0 C66,2 64,7 60,7 C56,7 55,2 52,0 L46,0 C42,0 40,12 34,12 C28,12 27,0 22,0 L18,0 C15,0 14,6 10,6 C7,6 6,0 0,0 Z' fill='%23FFE082'/%3E%3Cpath d='M0,0 L70,0 C66,1.5 64,5.5 60,5.5 C56,5.5 55,1.5 52,0 L46,0 C42,0 40,10 34,10 C28,10 27,0 22,0 L18,0 C15,0 14,4.5 10,4.5 C7,4.5 6,0 0,0 Z' fill='%23FFFDE7'/%3E%3C/svg%3E");
    background-size: 45px 8px;
    background-repeat: repeat-x;
    pointer-events: none;
    z-index: 2;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
}

.btn-secondary:hover {
    background: 
        radial-gradient(circle at 25% 35%, rgba(255, 179, 0, 0.25) 0%, transparent 6px),
        radial-gradient(circle at 75% 65%, rgba(255, 179, 0, 0.25) 0%, transparent 7px),
        linear-gradient(180deg, #FFFDE7 0%, #FFF59D 30%, #FFD54F 70%, #FFB300 100%);
    color: #2D1401 !important;
    border-color: #FFF9C4;
    border-bottom-color: #F57C00;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 
        inset 0 4px 8px rgba(255, 255, 255, 0.95),
        inset 0 -3px 6px rgba(230, 81, 0, 0.35),
        0 10px 22px rgba(255, 179, 0, 0.45);
}

.btn-secondary:hover::after {
    transform: scaleY(1.4) translateY(1px);
}

.btn-secondary:active {
    transform: translateY(2px) scale(0.97, 0.95);
}

.btn-large {
    padding: 1rem 2.2rem;
    font-size: 1.15rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 5%;
    /* Utilizando la imagen proporcionada por el usuario en la carpeta imagen */
    background-image: url('../imagen/764d1009-25b6-477b-96ec-b14b24e8337d.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(18, 18, 18, 0.95) 0%, rgba(18, 18, 18, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-content .badge {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.hero-content p {
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

.hero-content .hero-buttons {
    opacity: 0;
    animation: fadeInUp 1s ease-out 2s forwards;
}

.hero h2 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
}

.fly-in-char-main {
    display: inline-block;
    opacity: 0;
    transform: var(--start-transform) rotate(90deg);
    animation: flyInCharMain 1.5s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}

.fly-in-char-main.highlight-text {
    color: var(--primary-color);
}

@keyframes flyInCharMain {
    to {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg);
    }
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 179, 0, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h2 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Menu Section */
.menu-section {
    padding: 6rem 5%;
    background-color: var(--bg-dark);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--primary-color);
    font-family: var(--font-main);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.menu-card {
    background-color: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 179, 0, 0.3);
}

.menu-card-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
}

.menu-card-img.contain {
    height: 300px;
    background-size: contain, cover;
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    background-color: #fff;
}

.menu-card:hover .menu-card-img {
    transform: scale(1.05);
}

.menu-card-content {
    padding: 1.5rem;
    position: relative;
    background-color: var(--bg-card);
    z-index: 2;
}

.menu-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.menu-card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.price-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
}

.btn-icon {
    background: linear-gradient(180deg, #FFE57F 0%, #FFCA28 30%, #FFB300 70%, #FB8C00 100%);
    color: #381801;
    border: 2px solid #FFF9C4;
    border-bottom: 2.5px solid #C43E00;
    width: 45px;
    height: 45px;
    border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        inset 0 -2px 4px rgba(183, 28, 28, 0.3),
        0 4px 12px rgba(230, 81, 0, 0.4);
}

.btn-icon:hover {
    background: linear-gradient(180deg, #FFF9C4 0%, #FFD54F 30%, #FFA000 100%);
    color: #000;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 
        inset 0 3px 6px rgba(255, 255, 255, 0.95),
        0 6px 16px rgba(230, 81, 0, 0.55);
}

/* Carta Section */
.carta-section {
    padding: 6rem 5%;
    background-color: var(--bg-card);
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1514933651103-005eec06c04b?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.carta-section::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(10, 10, 10, 0.85);
    z-index: 1;
}

.carta-container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 179, 0, 0.3);
    border-radius: 15px;
    padding: 4rem 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.carta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.carta-column h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 1px dashed rgba(255, 179, 0, 0.3);
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.carta-list {
    list-style: none;
}

.carta-list li {
    margin-bottom: 1.8rem;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 8px;
}

.carta-list li:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(5px);
}

.carta-item-header {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.4rem;
}

.carta-item-header h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    font-family: var(--font-heading);
}

.carta-item-header .dots {
    flex-grow: 1;
    border-bottom: 2px dotted rgba(255, 255, 255, 0.2);
    margin: 0 15px;
    opacity: 0.5;
}

.carta-item-header .price {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.carta-list p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.4;
}

.carta-download {
    text-align: center;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .carta-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .carta-container {
        padding: 2.5rem 1.5rem;
    }
}

/* About Section */
.about-section {
    padding: 6rem 5%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background-color: #0a0a0a;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.features {
    list-style: none;
}

.features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.features i {
    color: var(--primary-color);
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 179, 0, 0.2);
}

/* Footer */
footer {
    background-color: #050505;
    padding: 5rem 5% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #000;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* Cart Styles */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.cart-icon:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background-color: var(--bg-card);
    z-index: 1002;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-header h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.close-cart {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 10px;
}

.cart-item-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.cart-item-info p {
    color: var(--primary-color);
    font-weight: bold;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.qty-btn {
    background: linear-gradient(180deg, #FFE082 0%, #FFB300 100%);
    border: 1px solid #FFE57F;
    border-bottom: 2px solid #C43E00;
    color: #381801;
    font-weight: 800;
    width: 27px;
    height: 27px;
    border-radius: 7px 9px 6px 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: 
        inset 0 1px 2px rgba(255, 255, 255, 0.8),
        0 2px 5px rgba(0, 0, 0, 0.25);
}

.qty-btn:hover {
    background: linear-gradient(180deg, #FFF9C4 0%, #FFA000 100%);
    color: #000;
    transform: scale(1.12);
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        0 4px 8px rgba(230, 81, 0, 0.45);
}

.remove-item {
    color: var(--secondary-color);
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: var(--transition);
}

.remove-item:hover {
    color: #ff5252;
    transform: scale(1.1);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(0, 0, 0, 0.2);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Campos de datos del cliente en el carrito */
#customer-info-form {
    margin-bottom: 12px;
}

.cart-customer-field {
    margin-bottom: 10px;
}

.cart-customer-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cart-customer-field label i {
    color: var(--primary-color);
    margin-right: 5px;
    font-size: 0.8rem;
}

.cart-customer-field input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    color: var(--text-light);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    outline: none;
}

.cart-customer-field input::placeholder {
    color: rgba(255, 255, 255, 0.25);
    font-style: italic;
}

.cart-customer-field input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 179, 0, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.15);
}

/* Estado de error con animación shake */
.cart-customer-field input.cart-field-error {
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2) !important;
    animation: shakeError 0.4s ease;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

.btn-checkout {
    width: 100%;
    display: block;
    text-align: center;
}

.desktop-btn {
    display: block;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--primary-color);
    color: #000;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-150%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

/* Reviews Section */
.reviews-section {
    padding: 6rem 5%;
    background-color: var(--bg-card);
}

.review-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-dark);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.rating input {
    display: none;
}

.rating label {
    cursor: pointer;
    font-size: 2.5rem;
    color: #333;
    transition: color 0.2s;
}

.rating input:checked~label,
.rating label:hover,
.rating label:hover~label {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-light);
    font-family: var(--font-main);
    resize: vertical;
    transition: var(--transition);
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05);
}




/* BORDE ANIMADO: Caja flotante independiente que no altera el flujo de la página */
.borde-animado-fijo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; /* Permite hacer clic en los botones y enlaces de abajo */
    z-index: 99999; /* Se sitúa por encima de todo el contenido visual */
    box-sizing: border-box;
    border: 12px solid transparent; 
    border-image: linear-gradient(90deg, #007bff, #00d2ff, #0044ff, #007bff) 1;
    animation: rotacionBorde 4s linear infinite;
}

@keyframes rotacionBorde {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* =====================================================
   DISEÑO RESPONSIVO COMPLETO - TODOS LOS DISPOSITIVOS
   ===================================================== */

/* ---- TABLET GRANDE (máx 992px) ---- */
@media (max-width: 992px) {
    .glass-header {
        padding: 1rem 4%;
    }

    .hero h2 {
        font-size: 3rem;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .about-content h2 {
        font-size: 2.4rem;
    }

    .about-image {
        display: flex;
        justify-content: center;
    }

    .carta-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .carta-container {
        padding: 3rem 2rem;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

/* ---- TABLET / MÓVIL GRANDE (máx 768px) ---- */
@media (max-width: 768px) {

    /* Encabezado */
    .glass-header {
        padding: 0.9rem 4%;
    }

    /* Menú de navegación desplegable */
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(18, 18, 18, 0.98);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        border-bottom: 2px solid var(--primary-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        z-index: 999;
    }

    nav.active {
        max-height: 600px;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        padding: 1.5rem 0;
        align-items: center;
        gap: 1.2rem;
    }

    nav ul li a {
        font-size: 1.1rem;
    }

    /* Botones del header */
    .desktop-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Hero - corregir background-attachment:fixed (bug en móviles iOS/Android) */
    .hero {
        background-attachment: scroll;
        height: 100svh; /* safe viewport height para móviles */
    }

    .carta-section {
        background-attachment: scroll;
    }

    .hero h2 {
        font-size: 2.6rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        text-align: center;
        display: block;
        width: 100%;
        max-width: 280px;
    }

    /* Secciones */
    .menu-section,
    .about-section,
    .reviews-section {
        padding: 3.5rem 4%;
    }

    .carta-section {
        padding: 3.5rem 4%;
    }

    /* Carta */
    .carta-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .carta-container {
        padding: 2rem 1.5rem;
    }

    /* Tarjetas */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .menu-card-img {
        height: 200px;
    }

    /* About */
    .about-section {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-col p {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    /* WhatsApp flotante */
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 16px;
        font-size: 26px;
    }

    /* Carrito lateral */
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-sidebar.active {
        right: 0;
    }

    /* Borde animado */
    .borde-animado-fijo {
        border-width: 5px;
    }
}

/* ---- MÓVIL MEDIANO (máx 480px) ---- */
@media (max-width: 480px) {

    /* Header */
    .glass-header {
        padding: 0.8rem 4%;
    }

    .logo h1 {
        font-size: 1.35rem;
    }

    /* Hero */
    .hero {
        padding: 0 4%;
        background-attachment: scroll;
    }

    .hero h2 {
        font-size: 2rem;
        line-height: 1.15;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.8rem;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    /* Secciones */
    .menu-section,
    .carta-section,
    .about-section,
    .reviews-section {
        padding: 2.5rem 4%;
    }

    footer {
        padding: 3rem 4% 1.5rem;
    }

    /* Títulos */
    .section-title h2 {
        font-size: 1.7rem;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    /* Tarjetas */
    .menu-card-img {
        height: 180px;
    }

    .menu-card-content {
        padding: 1.2rem;
    }

    .menu-card-content h3 {
        font-size: 1.3rem;
    }

    .price {
        font-size: 1.2rem;
    }

    /* Carta */
    .carta-container {
        padding: 1.5rem 1rem;
    }

    .carta-column h3 {
        font-size: 1.4rem;
    }

    .carta-item-header h4 {
        font-size: 1rem;
    }

    .carta-item-header .price {
        font-size: 1rem;
    }

    /* Botones */
    .btn-primary,
    .btn-secondary {
        padding: 0.65rem 1.2rem;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    /* Carrito */
    .cart-header h2 {
        font-size: 1.2rem;
    }

    .cart-total {
        font-size: 1.2rem;
    }

    .cart-item-info h4 {
        font-size: 0.95rem;
    }

    /* Reviews */
    .review-form-container {
        padding: 1.5rem 1rem;
    }

    .rating label {
        font-size: 2rem;
    }

    /* Toast */
    .toast-container {
        left: 8px;
        right: 8px;
        bottom: 12px;
    }

    .toast {
        font-size: 0.9rem;
        padding: 10px 14px;
    }

    /* Borde animado */
    .borde-animado-fijo {
        border-width: 4px;
    }

    /* WhatsApp */
    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 16px;
        right: 12px;
        font-size: 24px;
    }
}

/* ---- MÓVIL PEQUEÑO (máx 380px) ---- */
@media (max-width: 380px) {
    .logo h1 {
        font-size: 1.15rem;
    }

    .hero h2 {
        font-size: 1.7rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .about-content h2 {
        font-size: 1.7rem;
    }

    .carta-item-header {
        flex-wrap: wrap;
        gap: 0.2rem;
    }

    .carta-item-header .dots {
        display: none;
    }

    .carta-item-header h4,
    .carta-item-header .price {
        width: auto;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        max-width: 100%;
        font-size: 0.9rem;
    }

    .footer-col h3 {
        font-size: 1.2rem;
    }

    .borde-animado-fijo {
        border-width: 3px;
    }
}

/* ---- CORRECCIÓN PARA iOS (evitar zoom en inputs) ---- */
@media (max-width: 768px) {
    input,
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* ---- PANTALLAS MUY ALTAS (landscape móvil) ---- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100svh;
        padding: 100px 5% 3rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    nav.active {
        max-height: 300px;
        overflow-y: auto;
    }
}

/* ---- ADAPTABILIDAD ESTILO FLUTTER: PANTALLAS GRANDES (TV, PlayStation, Monitores 4K) ---- */
@media (min-width: 1400px) {
    .hero h2 {
        font-size: 4rem;
    }

    .hero p {
        font-size: 1.35rem;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        max-width: 1400px;
        margin: 0 auto;
    }

    .glass-header {
        padding: 1.5rem 8%;
    }
}

/* ---- ADAPTABILIDAD MÓVILES ULTRACOMPACTOS (<= 360px) ---- */
@media (max-width: 360px) {
    .hero h2 {
        font-size: 1.85rem;
    }

    .btn-primary, .btn-secondary {
        padding: 0.7rem 1.4rem;
        font-size: 0.9rem;
    }

    .glass-header {
        padding: 0.8rem 3%;
    }

    .logo h1 {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   ANIMACIÓN DE FRACTURA Y VUELO AL CARRITO (SHATTER & FLY)
   ========================================================================== */

.shatter-shard {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    will-change: transform, opacity;
}

@keyframes cartBouncePop {
    0% { transform: scale(1); }
    25% { transform: scale(1.5) rotate(-14deg); filter: drop-shadow(0 0 16px #FFB300); }
    50% { transform: scale(0.9) rotate(8deg); }
    75% { transform: scale(1.2) rotate(-4deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.cart-bounce-pop {
    animation: cartBouncePop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.cart-sparkle {
    pointer-events: none;
    will-change: transform, opacity;
}