/* CSS DESIGN SYSTEM - SAN PARRILLA */

:root {
    /* Color Palette Bases (RGB) */
    --mauve-shadow-rgb: 121, 85, 72; /* Warm brown */
    --dusty-lavender-rgb: 255, 215, 0; /* Brilliant gold */
    --lilac-ash-rgb: 128, 128, 128; /* Ash grey */
    --tea-green-rgb: 76, 175, 80; /* Vibrant green */
    --ash-grey-rgb: 128, 128, 128; /* Ash grey */

    /* Colors */
    --bg-primary: #18110e; /* Dark chocolate/charcoal base */
    --bg-secondary: #261b16; /* Warm brown */
    --bg-card: rgba(var(--mauve-shadow-rgb), 0.25);
    
    --glass-bg: rgba(38, 27, 22, 0.85);
    --glass-border: rgba(var(--mauve-shadow-rgb), 0.3);
    --glass-glow: rgba(var(--dusty-lavender-rgb), 0.05);
    
    --primary: #FFD700; /* Vibrant Gold */
    --primary-light: #ffe240;
    --primary-glow: rgba(var(--dusty-lavender-rgb), 0.45);
    
    --accent: #4CAF50; /* Vibrant Green */
    --accent-gold: #FFD700; /* Gold */
    --accent-cream: #FFFFF0; /* Ivory */
    
    --text-main: #FFFFF0; /* Pure Ivory - high contrast */
    --text-muted: #b5beb3; /* Grey-green readable text */
    
    --success: #4CAF50;
    --success-glow: rgba(var(--tea-green-rgb), 0.2);
    --danger: #e74c3c;
    
    /* Layout */
    --header-height: 85px;
    --border-radius-sm: 8px;
    --border-radius-md: 14px;
    --border-radius-lg: 20px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Smoke/fire gradient glows */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 15%, rgba(var(--dusty-lavender-rgb), 0.12) 0%, transparent 45%),
                radial-gradient(circle at 85% 70%, rgba(var(--tea-green-rgb), 0.08) 0%, transparent 45%),
                radial-gradient(circle at 50% 40%, rgba(var(--mauve-shadow-rgb), 0.8) 0%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation */
.app-header {
    height: var(--header-height);
    background: rgba(18, 12, 9, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    align-items: center;
}

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

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

.icon-brand {
    color: var(--primary-light);
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 0 6px var(--primary-glow));
    animation: flame-flicker 2s infinite alternate;
}

.brand-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.brand-name .accent {
    color: var(--primary-light);
}

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

.nav-link {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-muted);
    position: relative;
    padding: 0.4rem 0;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-light);
    transition: var(--transition-normal);
    transform: translateX(-50%);
}

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

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--success);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    transition: var(--transition-fast);
    box-shadow: 0 4px 10px var(--success-glow);
}

.whatsapp-btn:hover {
    background: #219653;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px var(--success-glow);
}

/* Main Content Wrapper */
.main-content {
    margin-top: var(--header-height);
    padding-bottom: 120px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 18vh;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 1.5rem 1rem;
    background-image: url('hero-bg.jpg');
    background-size: cover;
    background-position: center 60%;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(24, 17, 14, 0.7) 0%, rgba(24, 17, 14, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.badge {
    background: rgba(var(--dusty-lavender-rgb), 0.15);
    color: var(--primary-light);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    border: 1px solid rgba(var(--dusty-lavender-rgb), 0.25);
    display: inline-block;
    margin-bottom: 0.4rem;
}

.hero-content h1 {
    font-size: 2.1rem;
    line-height: 1.25;
    margin-bottom: 0.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e5d5cd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Section Title Common */
.section-title-wrap {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-wrap .subtitle {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title-wrap h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
}

.section-title-wrap p {
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* SECTION 1: DAILY SPECIALS */
.menu-del-dia-section {
    padding: 3rem 0;
}

.daily-specials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.special-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.special-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.special-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--dusty-lavender-rgb), 0.3);
    box-shadow: 0 10px 25px rgba(var(--dusty-lavender-rgb), 0.05);
}

.card-icon-header {
    background: rgba(var(--dusty-lavender-rgb), 0.08);
    border: 1px solid rgba(var(--dusty-lavender-rgb), 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.special-icon {
    color: var(--primary-light);
    width: 28px;
    height: 28px;
}

.special-card-body h3 {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 700;
}

.special-highlight {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.special-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.special-list {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
    padding-left: 1rem;
}

.special-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 500;
}

.check-icon {
    color: var(--primary-light);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* SECTION 2: NUESTRO MENÚ (8 Price Categories Grid) */
.nuestro-menu-section {
    padding: 4rem 0;
}

.menu-price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.price-tier-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 1.75rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.price-tier-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--dusty-lavender-rgb), 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.price-tier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.7;
}

.tier-header {
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.tier-price {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(241, 196, 21, 0.15);
}

.tier-items-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tier-items-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.tier-items-list li:last-child {
    border-bottom: none;
}

.item-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    padding-right: 1rem;
    line-height: 1.4;
}

.btn-add-fast {
    background: rgba(var(--dusty-lavender-rgb), 0.1);
    border: 1px solid rgba(var(--dusty-lavender-rgb), 0.2);
    color: var(--primary-light);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.btn-add-fast:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-primary);
    transform: scale(1.1);
}

.btn-add-fast i {
    width: 14px;
    height: 14px;
}

/* SECTION 3: PICADAS */
.picadas-section {
    padding: 4rem 0;
}

.picadas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.picada-item-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-normal);
}

.picada-item-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--dusty-lavender-rgb), 0.25);
}

.picada-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.picada-info p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 1.25rem;
}

.picada-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.picada-price {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--accent-gold);
}

.btn-add-cart {
    background: rgba(var(--dusty-lavender-rgb), 0.1);
    border: 1px solid rgba(var(--dusty-lavender-rgb), 0.2);
    color: var(--primary-light);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.btn-add-cart:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.picada-action .btn-add-cart {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.picada-action .btn-add-cart i {
    width: 14px;
    height: 14px;
}

/* Picada Berraca Card */
.berraca-card {
    background: linear-gradient(145deg, #3a221a, #1a100d);
    border: 1.5px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.badge-mini {
    background: var(--accent);
    color: var(--bg-primary);
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.4rem;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius-sm);
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: scale(1.02);
}

/* FLOATING CART DRAWER */
.cart-drawer {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 480px;
    z-index: 1000;
    background: rgba(var(--bg-secondary), 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid var(--primary);
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(var(--dusty-lavender-rgb), 0.15);
    overflow: hidden;
    transition: var(--transition-normal);
}

.cart-summary-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    cursor: pointer;
    background: rgba(var(--dusty-lavender-rgb), 0.05);
}

.cart-info-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-icon {
    color: var(--primary-light);
    width: 20px;
    height: 20px;
}

.cart-total-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.cart-separator {
    color: var(--text-muted);
}

.cart-info-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Cart Panel Details Expansion */
.cart-details {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
    max-height: 400px;
    overflow-y: auto;
}

.cart-header-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.5rem;
}

.btn-clear {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    transition: color var(--transition-fast);
}

.btn-clear:hover {
    color: var(--danger);
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.cart-item-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-sm);
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition-fast);
}

.cart-item-container:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(var(--dusty-lavender-rgb), 0.15);
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.cart-item-meta {
    font-size: 0.8rem;
    color: var(--accent-gold);
    display: block;
    margin-top: 0.15rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
}

.btn-remove-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
}

.btn-remove-item:hover {
    color: var(--danger);
}

.cart-item-customizer {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.6rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
    padding-top: 0.6rem;
}

.customizer-select-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.customizer-select-group label {
    color: var(--text-muted);
    font-weight: 500;
}

.customizer-select-group select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    color: #ffffff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    cursor: pointer;
    width: 150px;
    transition: var(--transition-fast);
}

.customizer-select-group select:focus {
    border-color: var(--primary-light);
}

.cart-service-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 1rem;
}

.cart-service-selector label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.cart-service-selector select {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    color: #ffffff;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    cursor: pointer;
    width: 190px;
    transition: var(--transition-fast);
}

.cart-service-selector select:focus {
    border-color: var(--primary-light);
}

.cart-pricing-summary {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.summary-line.total-line {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.5rem;
    margin-top: 0.25rem;
    font-weight: 700;
    color: #ffffff;
    font-size: 0.95rem;
}

.summary-line.total-line span:last-child {
    color: var(--accent-gold);
    font-size: 1.15rem;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 0 8px rgba(241, 196, 21, 0.1);
}

.cart-checkout-panel {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1rem;
}

.btn-block {
    width: 100%;
}

/* Footer */
.app-footer {
    border-top: 1px solid var(--glass-border);
    background: #0d0806;
    padding: 2rem 0;
    text-align: center;
}

.footer-brand {
    justify-content: center;
    margin-bottom: 1rem;
}

.app-footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Flicker Animation */
@keyframes flame-flicker {
    0% { transform: scale(1) rotate(0deg); opacity: 0.9; }
    100% { transform: scale(1.08) rotate(3deg); opacity: 1; filter: drop-shadow(0 0 10px rgba(var(--dusty-lavender-rgb), 0.6)); }
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Specials Badges & Highlight Boxes */
.special-day-box {
    margin-top: 1.25rem;
    padding: 1.1rem 0.8rem 0.6rem 0.8rem;
    border-radius: var(--border-radius-sm);
    background: rgba(24, 17, 14, 0.4); /* Darker inset container background */
    border: 1.5px dashed var(--primary); /* Dashed gold border */
    position: relative;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.special-day-badge {
    position: absolute;
    top: -11px;
    left: 10px;
    background: var(--primary); /* Gold background */
    color: #18110e; /* Dark brown text for contrast */
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.special-items-list {
    margin-top: 0.4rem;
}

.day-only-badge {
    background: rgba(var(--tea-green-rgb), 0.15); /* Light green tint */
    color: var(--accent); /* Accent green text */
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.5rem;
    display: inline-block;
    vertical-align: middle;
}

/* Responsive */
@media(max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 0.75rem;
        height: auto;
        padding: 0.75rem;
    }
    .app-header {
        height: auto;
        position: relative;
    }
    .main-content {
        margin-top: 0;
    }
    .nav-links {
        gap: 1.25rem;
    }
    .whatsapp-btn span {
        display: none;
    }
    .whatsapp-btn {
        padding: 0.5rem;
    }
    .hero-section {
        height: 14vh;
        min-height: 130px;
        padding: 1rem;
    }
}
