/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Typography */
    --font-body: "Outfit", sans-serif;
    --font-title: "Playfair Display", serif;

    /* Color Palette - Cozy Trattoria Medium Theme */
    --bg-main: #fff1d7; /* Soft cream / warm off-white */
    --bg-surface: #2a282d; /* Slightly deeper card surface */
    --bg-surface-hover: #312f35;
    --bg-card: #2a282d;
    --bg-input: #222024;

    --primary: #d32f2f; /* Rich Logo Red */
    --primary-rgb: 211, 47, 47;
    --secondary: #ff6003; /* Flame Orange-Gold (from logo) */
    --secondary-rgb: 255, 145, 0;
    --accent: #ffb74d; /* Soft amber glow accent */

    --text-main: #f4f1ea; /* Warm flour-cream — high contrast on charcoal */
    --text-muted: #a5a198; /* Clay-tan — readable but secondary */
    --text-dark: #f4f1ea;
    --text-white: #ffffff;
    --text-sections: #444;

    --border-color: #46444a; /* Muted brick-border */
    --border-focus: rgba(255, 145, 0, 0.45);

    /* Shadows & Glows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
    --glow-red: 0 4px 15px rgba(211, 47, 47, 0.3);
    --glow-orange: 0 4px 20px rgba(255, 145, 0, 0.25);
    --glow-white: 0 2px 10px rgba(0, 0, 0, 0.2);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #58555e;
    border-radius: var(--radius-sm);
    border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Ambient Background Lights (Warm oven glow) */
.glow-bg {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.22;
}
.glow-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -100px;
    background: radial-gradient(
        circle,
        rgba(var(--primary-rgb), 0.5) 0%,
        rgba(0, 0, 0, 0) 70%
    );
}
.glow-2 {
    width: 500px;
    height: 500px;
    top: 50%;
    right: -150px;
    background: radial-gradient(
        circle,
        rgba(var(--secondary-rgb), 0.4) 0%,
        rgba(0, 0, 0, 0) 70%
    );
    animation: glowPulse 10s infinite alternate;
}

@keyframes glowPulse {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.18;
    }
    100% {
        transform: translateY(50px) scale(1.1);
        opacity: 0.28;
    }
}

/* Common Layout Elements */
.container-padding {
    padding: 80px 5% 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-white);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.2);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
    filter: brightness(1.05);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    background: var(--bg-surface-hover);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
}

/* Navigation Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    background: #000;
}

.main-header.scrolled {
    height: 60px;
    background: var(--bg-main);
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-menu {
    display: flex;
    gap: 100px;
}
.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition-fast);
    position: relative;
}

.main-header.scrolled .nav-link {
    color: var(--text-sections);
}
.nav-link:hover {
    color: var(--secondary);
}
.nav-link::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width var(--transition-fast);
}
.nav-link:hover::after {
    width: 100%;
}

.cart-nav-btn {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}
.cart-nav-btn:hover {
    background: var(--secondary);
    color: var(--text-white);
    transform: scale(1.05);
    border-color: transparent;
    box-shadow: var(--glow-orange);
}
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary);
    color: var(--text-white);
    font-size: 0.75rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.4);
    transition: transform var(--transition-fast);
}

/* Hero Section */
.hero-section {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 24px 50px;
    text-align: center;
    position: relative;
}
.hero-content {
    max-width: 800px;
    z-index: 10;
}
.logo-wrapper {
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
    width: 100%;
}
.logo-wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: var(--radius-full);
    background: radial-gradient(
        circle,
        rgba(var(--secondary-rgb), 0.12) 0%,
        rgba(0, 0, 0, 0) 70%
    );
    z-index: -1;
    animation: logoPulse 4s infinite alternate;
}
.hero-logo {
    width: 280px;
    max-width: 85vw;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.08));
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
@keyframes logoPulse {
    0% {
        transform: scale(0.95);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.05);
        opacity: 0.7;
    }
}

.hero-title {
    font-family: var(--font-title);
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}
.highlight-text {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.hero-tagline {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 20px;
    font-weight: 400;
}

/* Trust badges row */
.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

/* Elegant, non-clickable trust badges */
.badge-item {
    background: rgba(
        42,
        40,
        45,
        0.04
    ); /* Ultra-subtle tint so it blends into the cream background */
    border: 1px solid rgba(70, 68, 74, 0.15); /* Soft, thin border line */
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #555259; /* Muted dark text to keep text contrast readable but soft */
    box-shadow: none; /* Removes the button shadow completely */
    pointer-events: none; /* Tells browsers (and users) it's purely informational */
}

/* Subtle pop of color for the icons inside the badges */
.badge-item i {
    color: var(--secondary);
    font-size: 0.95rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Sections Common Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-subtitle {
    color: var(--secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 10px;
}
.section-title {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-sections);
}
.title-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 15px auto 0;
    border-radius: var(--radius-full);
}

/* Promociones Section */
.promociones-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.promo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.promo-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 145, 0, 0.25);
    box-shadow:
        var(--shadow-lg),
        0 10px 25px rgba(255, 145, 0, 0.1);
    background: var(--bg-surface-hover);
}

.promo-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 40px;
    transform: rotate(45deg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.promo-badge.highlight {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--text-white);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.2);
}

.promo-icon {
    font-size: 2.8rem;
    color: var(--secondary);
    margin-bottom: 20px;
    display: inline-flex;
    justify-content: center;
}

.promo-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}
.promo-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}
.promo-price-wrapper {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 12px;
}
.original-price {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.promo-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
}

.btn-promo {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: var(--glow-white);
}
.btn-promo:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-white);
    transform: scale(1.02);
}
.btn-promo.highlight-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-white);
    border: none;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.15);
}
.btn-promo.highlight-btn:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 15px rgba(var(--primary-rgb), 0.25);
}

/* Menu Section */
.menu-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    background: #1f1e22;
    padding: 6px 8px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-md);
}
.tab-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 8px 24px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}
.tab-btn:hover {
    color: var(--text-main);
}
.tab-btn.active {
    background: var(--secondary);
    color: var(--text-white);
    box-shadow: var(--shadow-sm);
}

/* Custom calzone icon (FontAwesome has no built-in calzone glyph) */
.fa-calzone {
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    background-color: currentColor;
    vertical-align: -0.15em;
    mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13C3 7.5 7.5 3 13 3C16.5 3 19.5 4.5 20.5 7C21.5 9.5 20 12 18 14C15.5 16.5 13 21 9 21C5.5 21 3 16.5 3 13Z'/%3E%3Cline x1='9' y1='8' x2='11' y2='11'/%3E%3Cline x1='13' y1='7' x2='15' y2='10'/%3E%3Cpath d='M4 15.5C5 16.5 6 16 7 17C8 18 8.5 19 9.5 19.5' stroke-width='1.5' opacity='0.85'/%3E%3C/svg%3E")
        no-repeat center / contain;
    -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 13C3 7.5 7.5 3 13 3C16.5 3 19.5 4.5 20.5 7C21.5 9.5 20 12 18 14C15.5 16.5 13 21 9 21C5.5 21 3 16.5 3 13Z'/%3E%3Cline x1='9' y1='8' x2='11' y2='11'/%3E%3Cline x1='13' y1='7' x2='15' y2='10'/%3E%3Cpath d='M4 15.5C5 16.5 6 16 7 17C8 18 8.5 19 9.5 19.5' stroke-width='1.5' opacity='0.85'/%3E%3C/svg%3E")
        no-repeat center / contain;
}

/* Tab Content Visibility */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn var(--transition-normal) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-info-alert {
    background: rgba(255, 110, 26, 0.1);
    border: 1px solid rgba(255, 145, 0, 0.18);
    color: var(--text-sections);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.menu-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}
.menu-item-card:hover {
    border-color: rgba(0, 0, 0, 0.12);
    background: var(--bg-surface-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Pizza visual highlight tag */
.combinada-especial {
    font-size: 0.9rem;
    color: var(--accent);
    line-height: 1.4;
    margin-bottom: 24px;
    flex-grow: 1;
    font-weight: 400;
    font-style: italic;
}
.item-visual {
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    position: relative;
    display: none;
}
.menu-item-card:has(.item-tag) .item-visual {
    display: block;
    height: 24px;
    background: transparent;
}
.item-tag {
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: var(--secondary);
    color: var(--text-white);
}
.item-tag.highlight {
    background: var(--primary);
    color: var(--text-white);
    box-shadow: 0 2px 6px rgba(var(--primary-rgb), 0.2);
}

.item-details {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.item-details h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}
.item-ingredients {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 24px;
    flex-grow: 1;
    font-weight: 400;
}

.size-selector {
    margin-bottom: 24px;
}
.size-selector label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}
.size-chips {
    display: flex;
    gap: 8px;
}
.size-chip {
    flex: 1;
    background: #1f1e22;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 4px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}
.size-chip:hover {
    background: #312f35;
    color: var(--text-main);
}
.size-chip.active {
    background: rgba(255, 145, 0, 0.14);
    color: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 2px 8px rgba(var(--secondary-rgb), 0.2);
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.price-display {
    display: flex;
    align-items: baseline;
    color: var(--text-main);
}
.price-display .currency {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary);
    margin-right: 2px;
}
.price-display .price-val {
    font-size: 1.8rem;
    font-weight: 800;
}

/* Quantity Incrementor */
.quantity-controller {
    display: flex;
    align-items: center;
    background: #1f1e22;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px;
}
.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}
.qty-btn:hover {
    background: #312f35;
    color: var(--text-main);
}
.qty-btn.plus-btn:hover {
    background: rgba(255, 145, 0, 0.15);
    color: var(--secondary);
}
.qty-btn.minus-btn:hover {
    background: rgba(211, 47, 47, 0.15);
    color: var(--primary);
}
.qty-display {
    width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

/* Simple Item specific layout adjustment */
.simple-item .item-details {
    padding-top: 36px;
}
.simple-item h3 {
    margin-bottom: 12px;
}
.simple-item .item-ingredients {
    margin-bottom: 24px;
}

/* Order Section & Form */
.order-section {
    padding: 100px 24px 140px;
}
.order-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: start;
}

.order-info-panel h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-sections);
}
.order-intro {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 50px;
}
.feature-item {
    display: flex;
    gap: 20px;
    align-items: center;
}
.feature-item i {
    font-size: 1.5rem;
    color: var(--secondary);
    background: rgba(255, 145, 0, 0.1);
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 145, 0, 0.15);
}
.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-sections);
}
.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.payment-note {
    display: flex;
    gap: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-muted);
    align-items: center;
    box-shadow: var(--shadow-sm);
}
.payment-note i {
    color: var(--secondary);
    font-size: 1.1rem;
}

/* Order Form / Checkout Card */
.order-form-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-lg);
}
.form-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.cart-items {
    max-height: 260px;
    overflow-y: auto;
    margin-bottom: 24px;
    padding-right: 6px;
}

.empty-cart-msg {
    text-align: center;
    padding: 30px 10px;
    color: var(--text-muted);
}
.empty-cart-msg i {
    font-size: 2.2rem;
    margin-bottom: 16px;
    color: #58555e;
}
.empty-cart-msg p {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Cart Item Line */
.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    animation: fadeIn var(--transition-fast) forwards;
}
.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cart-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}
.cart-item-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.cart-item-price-qty {
    display: flex;
    align-items: center;
    gap: 16px;
}
.cart-item-qty {
    font-size: 0.85rem;
    background: #1f1e22;
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    color: var(--text-main);
}
.cart-item-subtotal {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
}
.cart-item-delete {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
}
.cart-item-delete:hover {
    color: var(--primary);
}

.order-price-summary {
    background: #1f1e22;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}
.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.summary-line:last-child {
    margin-bottom: 0;
}
.summary-line.highlight-total {
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 700;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}
.summary-line.highlight-total span:last-child {
    color: var(--secondary);
}

/* Form Inputs */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.form-group input,
.form-group textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    box-shadow: var(--glow-white);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 12px rgba(var(--secondary-rgb), 0.18);
}

.btn-submit-order {
    width: 100%;
    padding: 16px;
    background: linear-gradient(
        135deg,
        #25d366,
        #128c7e
    ); /* WhatsApp Branding */
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    margin-top: 8px;
}
.btn-submit-order:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    filter: brightness(1.05);
}
.btn-submit-order:disabled {
    background: #312f35;
    color: #58555e;
    border: 1px solid var(--border-color);
    box-shadow: none;
    cursor: not-allowed;
}

/* ==========================================================================
   Footer & Contacto Section
   ========================================================================== */

/* Grounded Dark Contrast Footer */
.main-footer {
    background-color: #131215; /* Deep black-charcoal background to make card pop */
    padding: 40px 24px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    color: #a5a198; /* Muted warm tan */
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

/* Chef Column */
.footer-chef-column {
    flex: 0 0 auto;
}
.footer-chef-image {
    width: 180px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
}

/* Info Card (Right Column) */
.footer-info-card {
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #1e1d21; /* Slightly lighter cozy card surface */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.info-card-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}
.info-card-col h3 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    margin-top: 0;
}

.contact-info-item {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}
.contact-info-item i:not(.fa-whatsapp) {
    color: #f16322;
    width: 20px;
    text-align: center;
}
.contact-info-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color var(--transition-fast);
}
.contact-info-item a:hover {
    color: var(--secondary);
}

/* WhatsApp Accent Rules */
.contact-info-item.highlight-contact i {
    color: #25d366 !important;
}
.contact-info-item.highlight-contact a {
    font-weight: 600;
    color: #25d366 !important;
}
.contact-info-item.highlight-contact a:hover {
    color: #128c7e !important;
}

/* Bottom Centered Copyright */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-copy {
    text-align: center;
    font-weight: 300;
    color: var(--text-muted);
}

/* Responsive Viewports (Mobile Breakdown) */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }
    .footer-info-card {
        grid-template-columns: 1fr;
        gap: 30px;
        width: 100%;
        padding: 30px 24px;
    }
    .info-card-col {
        align-items: center;
        text-align: center;
    }
    .contact-info-item {
        justify-content: center;
    }
    .footer-chef-image {
        width: 160px;
    }
}

/* Floating Mobile Cart Bar */
.floating-mobile-cart {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    z-index: 999;
    background: rgba(30, 28, 33, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--secondary);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 145, 0, 0.1);
    animation: slideUp var(--transition-normal) forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.floating-cart-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.floating-cart-info {
    display: flex;
    flex-direction: column;
}
.floating-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.floating-total {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary);
}
.floating-cart-link {
    background: var(--secondary);
    color: var(--text-white);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
}
.floating-cart-link:hover {
    transform: translateX(4px);
    filter: brightness(1.1);
}

/* Responsive Queries */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    .order-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .order-info-panel {
        text-align: center;
    }
    .order-intro {
        margin-bottom: 24px;
    }
    .features-list {
        align-items: center;
        max-width: 500px;
        margin: 0 auto 30px;
    }
    .feature-item {
        text-align: left;
    }
    .payment-note {
        justify-content: center;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: flex;
        gap: 20px;
        font-size: 0.8rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-tagline {
        font-size: 1.05rem;
    }
    .hero-logo {
        width: 200px;
    }
    .hero-badges {
        gap: 10px;
    }
    .badge-item {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        max-width: 280px;
        margin: 0 auto;
    }
    .btn {
        width: 100%;
    }
    .section-title,
    h2 {
        line-height: 1.2;
    }
    .promo-grid {
        grid-template-columns: 1fr;
    }
    .promo-card {
        width: 100%;
    }
    .menu-tabs {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
        padding: 6px;
    }
    .tab-btn {
        flex: 1 1 0%;
        justify-content: center;
        padding: 8px 4px;
        font-size: 14px;
    }
    .menu-grid {
        grid-template-columns: 1fr;
    }
    .order-form-panel {
        padding: 24px;
    }
    .main-footer {
        padding: 40px 16px;
    }
}

/* Print/Utilities helpers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
/* ==========================================================================
   Alerta de Notificación de WhatsApp
   ========================================================================== */
/* Botón de cierre manual para la alerta */
.whatsapp-alert {
    position: fixed;
    bottom: -100px;
    right: 24px;
    background: #1e1d21;
    border: 1px solid #25d366;
    border-radius: 16px;
    padding: 20px 36px 16px 20px; /* Espacio extra a la derecha para que no choque con la X */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 9999;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 350px;
}

.alert-close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.4rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s ease;
}

.alert-close-btn:hover {
    color: #ffffff; /* Brilla al pasar el cursor */
}

.whatsapp-alert {
    position: fixed;
    bottom: -100px; /* Oculta la alerta abajo de la pantalla inicialmente */
    right: 24px;
    background: #1e1d21; /* Mismo color acogedor de tus tarjetas oscuras */
    border: 1px solid #25d366; /* Borde verde brillante de WhatsApp */
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 9999; /* Asegura que aparezca por encima de todo */
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Animación con rebote sutil */
    max-width: 350px;
}

/* ==========================================================================
   Nueva Alerta con Despliegue Dinámico Puro (Fade-in)
   ========================================================================== */

.whatsapp-alert {
    position: fixed;
    bottom: 24px; /* Posición fija definitiva en pantalla */
    right: 24px;
    background: #1e1d21;
    border: 1px solid #25d366;
    border-radius: 16px;
    padding: 20px 36px 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    max-width: 350px;

    /* EL CAMBIO CLAVE: Desaparecido por completo del flujo del navegador */
    display: none !important;
    opacity: 0;
}

/* Estado activo: se inyecta al DOM de golpe y se desvanece suavemente */
.whatsapp-alert.show {
    display: flex !important; /* Aparece instantáneamente como flex para alinear icono y texto */
    animation: alertFadeIn 0.3s ease forwards;
}

/* Animación limpia de aparición gradual sin esconderse abajo */
@keyframes alertFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95); /* Crece sutilmente desde el centro */
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.alert-close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.4rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s ease;
    outline: none;
}

.alert-close-btn:hover {
    color: #ffffff;
}

.whatsapp-alert-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.whatsapp-alert .alert-icon {
    color: #25d366;
    font-size: 2rem;
    flex-shrink: 0;
}

.whatsapp-alert h4 {
    margin: 0 0 4px 0;
    color: #ffffff;
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
}

.whatsapp-alert p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    line-height: 1.3;
}

/* Vista móvil */
@media (max-width: 480px) {
    .whatsapp-alert {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}

/* Clase activa que el JavaScript añadirá para mostrar la alerta
.whatsapp-alert.show {
    bottom: 24px; /* Sube la alerta a la esquina visible
}

.whatsapp-alert-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.whatsapp-alert .alert-icon {
    color: #25d366;
    font-size: 2rem;
    flex-shrink: 0;
}

.whatsapp-alert h4 {
    margin: 0 0 4px 0;
    color: #ffffff;
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 700;
}

.whatsapp-alert p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
    line-height: 1.3;
}

/* Ajuste para pantallas pequeñas
@media (max-width: 480px) {
    .whatsapp-alert {
        left: 16px;
        right: 16px;
        max-width: none;
    }
}
*/
