/* ============================================
   RESTAURANTE - Sistema de Pedidos
   Diseño Ultra Profesional
   ============================================ */

/* Reset y Variables */
:root {
    --primary-dark: #0a0a0a;
    --primary-medium: #111111;
    --accent-dark: #1a1a1a;
    --gold: #c9a227;
    --gold-light: #e6c84d;
    --gold-dark: #9a7b0a;
    --white: #ffffff;
    --cream: #f8f6f0;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #888888;
    --success: #2e7d32;
    --success-light: #4caf50;
    --danger: #c62828;
    --whatsapp: #25d366;
    --shadow-dark: rgba(0, 0, 0, 0.4);
    --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #111111 50%, #1a1a1a 100%);
    --gradient-gold: linear-gradient(135deg, #9a7b0a 0%, #c9a227 50%, #e6c84d 100%);
    --gradient-card: linear-gradient(135deg, #f8f6f0 0%, #ffffff 100%);
    --font-display: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;
}

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

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

body {
    font-family: var(--font-body);
    background: var(--gradient-dark);
    min-height: 100vh;
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   SPLASH SCREEN
   ============================================ */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
    padding: 40px 20px;
    position: relative;
    width: 100%;
    max-width: 400px;
}

.splash-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L35 20 L50 20 L38 30 L42 45 L30 36 L18 45 L22 30 L10 20 L25 20 Z' fill='%23c9a227' fill-opacity='0.5'/%3E%3C/svg%3E");
}

.splash-logo {
    position: relative;
    z-index: 1;
    margin-bottom: 50px;
}

.splash-icon {
    font-size: 3rem;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(201, 162, 39, 0.6);
    margin: 15px 0;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.splash-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-light);
    text-shadow: 0 2px 20px rgba(201, 162, 39, 0.5);
    letter-spacing: 8px;
    margin-bottom: 10px;
}

.splash-subtitle {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 3px 25px rgba(255, 255, 255, 0.2);
    line-height: 1.1;
    letter-spacing: 4px;
}

.splash-enter-btn {
    background: var(--gradient-gold);
    color: var(--text-dark);
    border: none;
    padding: 20px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(201, 162, 39, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.splash-enter-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(201, 162, 39, 0.6);
}

.splash-enter-btn:active {
    transform: translateY(-2px) scale(1.02);
}

.splash-enter-btn i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.splash-enter-btn:hover i {
    transform: translateX(5px);
}

/* Loading Animation */
.splash-loading {
    position: relative;
    z-index: 1;
    margin-top: 30px;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.loading-dots span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 1px;
}

/* ============================================
   APP CONTAINER
   ============================================ */
.app-container {
    padding-bottom: 120px;
}

/* ============================================
   HEADER MINI
   ============================================ */
.header-mini {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-dark) 100%);
    padding: 15px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--gold);
}

.header-mini-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
}

.header-mini-content > i {
    font-size: 1.3rem;
    color: var(--gold);
}

.header-mini-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 3px;
}

/* Order Counter */
.order-counter {
    background: var(--accent-dark);
    border: 1px solid var(--gold);
    padding: 10px 20px;
    margin: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--gold);
    font-weight: 600;
}

.order-counter i {
    font-size: 1.1rem;
}

/* ============================================
   MENU CONTAINER
   ============================================ */
.menu-container {
    padding: 20px 15px;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   MENU SECTIONS
   ============================================ */
.menu-section {
    margin-bottom: 30px;
    background: linear-gradient(145deg, rgba(201, 162, 39, 0.08) 0%, rgba(201, 162, 39, 0.02) 100%);
    border-radius: 25px;
    padding: 25px 15px;
    border: 1px solid rgba(201, 162, 39, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* ★ Sección Destacada - Especialidades */
.menu-section.featured-section {
    background: linear-gradient(145deg, rgba(201, 162, 39, 0.15) 0%, rgba(201, 162, 39, 0.04) 100%);
    border: 2px solid rgba(201, 162, 39, 0.4);
    box-shadow: 0 10px 50px rgba(201, 162, 39, 0.15), 0 10px 40px rgba(0, 0, 0, 0.3);
}

.menu-section.featured-section .section-title {
    background: var(--gradient-gold);
    color: var(--primary-dark);
    font-size: 1.3rem;
    padding: 14px 28px;
    box-shadow: 0 5px 20px rgba(201, 162, 39, 0.4);
}

.menu-section.featured-section .section-title i {
    color: var(--primary-dark);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--primary-dark) 100%);
    border-radius: 50px;
    border: 2px solid var(--gold);
    box-shadow: 0 5px 25px rgba(201, 162, 39, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.section-title i {
    color: var(--gold-light);
    font-size: 1.1rem;
}

.rope-decoration {
    flex: 1;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
    max-width: 50px;
}

.rope-decoration.left { margin-right: 15px; }
.rope-decoration.right { margin-left: 15px; }

/* ============================================
   MENU ITEMS
   ============================================ */
.menu-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-item {
    background: var(--gradient-card);
    border-radius: 20px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.menu-item:hover::before,
.menu-item.selected::before {
    opacity: 1;
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(201, 162, 39, 0.3);
    border-color: var(--gold);
}

.menu-item.selected {
    border-color: var(--gold);
    box-shadow: 0 8px 35px rgba(201, 162, 39, 0.4);
}

.item-image {
    width: 85px;
    height: 85px;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid var(--gold);
    position: relative;
    z-index: 1;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-item:hover .item-image img {
    transform: scale(1.1);
}

.item-info {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.item-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.item-description {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-price-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.item-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-dark);
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-dark);
    border-radius: 30px;
    padding: 6px 10px;
    position: relative;
    z-index: 3;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty-btn.minus {
    background: var(--danger);
}

.qty-btn.plus {
    background: var(--success);
}

.qty-btn:hover {
    transform: scale(1.1);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    min-width: 30px;
    text-align: center;
}

/* ============================================
   ORDER BAR
   ============================================ */
.order-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-gold);
    padding: 15px 20px;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-bar.visible {
    transform: translateY(0);
}

.order-bar-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.order-summary {
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
}

.order-total-label {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.7;
}

.order-total {
    font-size: 1.6rem;
    font-weight: 700;
}

.review-order-btn {
    flex: 1;
    background: var(--primary-dark);
    color: var(--gold);
    border: 2px solid var(--primary-dark);
    border-radius: 15px;
    padding: 16px 25px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.review-order-btn:hover {
    background: transparent;
    color: var(--text-dark);
}

.review-order-btn:active {
    transform: scale(0.98);
}

.review-order-btn i {
    font-size: 1.2rem;
}

/* ============================================
   MODAL
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 30px 30px 0 0;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    background: var(--gradient-gold);
    color: var(--text-dark);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.modal-header h3 i {
    color: var(--gold-dark);
}

.close-modal {
    background: rgba(0, 0, 0, 0.1);
    border: none;
    color: var(--text-dark);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: rotate(90deg);
}

.order-number-display {
    background: var(--primary-dark);
    padding: 10px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.order-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.order-number {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold);
}

.modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    color: var(--text-dark);
    -webkit-overflow-scrolling: touch;
}

/* Modal Sections */
.order-section {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.order-section:last-child {
    border-bottom: none;
}

.section-header-modal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header-modal h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header-modal h4 i {
    color: var(--gold);
}

/* Customer Data Section */
.customer-data-section {
    background: linear-gradient(180deg, #fffef5 0%, #fff8e6 100%);
}

.customer-data-section h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.customer-data-section h4 i {
    color: var(--gold);
}

.section-instruction {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
}

/* Table Section */
.table-section {
    background: linear-gradient(180deg, #f5f5f5 0%, #ebebeb 100%);
}

.table-section h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.table-section h4 i {
    color: var(--gold);
}

/* Order Items in Modal */
.order-items-list {
    margin-bottom: 15px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.order-item-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-dark);
    border-radius: 25px;
    padding: 4px 8px;
}

.order-item-qty-controls .modal-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    color: var(--white);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.order-item-qty-controls .modal-qty-btn.minus {
    background: var(--danger);
}

.order-item-qty-controls .modal-qty-btn.plus {
    background: var(--success);
}

.order-item-qty-controls .modal-qty-btn:hover {
    transform: scale(1.1);
}

.order-item-qty-controls .modal-qty-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    min-width: 25px;
    text-align: center;
}

.order-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-dark);
}

.order-item-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gold-dark);
    min-width: 70px;
    text-align: right;
}

.order-total-section {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 15px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.total-row.grand-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Customer Name Input */
.customer-name-input {
    width: 100%;
    padding: 18px;
    font-size: 1.3rem;
    font-weight: 600;
    border: 3px solid var(--gold);
    border-radius: 15px;
    text-align: center;
    color: var(--primary-dark);
    background: var(--white);
    transition: all 0.3s ease;
    outline: none;
}

.customer-name-input::placeholder {
    color: #bbb;
    font-weight: 400;
    font-size: 1.1rem;
}

.customer-name-input:focus {
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.2);
}

/* Table Selection */
.table-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.table-btn {
    background: var(--white);
    border: 2px solid #ddd;
    border-radius: 12px;
    padding: 14px 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.table-btn:hover {
    border-color: var(--gold);
    background: rgba(201, 162, 39, 0.1);
}

.table-btn.selected {
    background: var(--gradient-gold);
    border-color: var(--gold);
    color: var(--text-dark);
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(201, 162, 39, 0.4);
}

/* Modal Footer */
.modal-footer {
    padding: 15px 20px;
    background: var(--white);
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.send-whatsapp-btn {
    width: 100%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: var(--white);
    border: none;
    border-radius: 15px;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
}

.send-whatsapp-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.6);
}

.send-whatsapp-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.send-whatsapp-btn i {
    font-size: 1.5rem;
}

/* ============================================
   SEARCH ORDER BUTTON (Header)
   ============================================ */
.search-order-btn {
    background: rgba(201, 162, 39, 0.15);
    border: 1.5px solid var(--gold);
    color: var(--gold);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: absolute;
    right: 15px;
}

.search-order-btn:hover {
    background: var(--gold);
    color: var(--primary-dark);
    transform: scale(1.1);
}

.search-order-btn:active {
    transform: scale(0.95);
}

/* ============================================
   SEARCH ORDER MODAL
   ============================================ */
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    max-height: 88vh;
    border-radius: 30px 30px 0 0;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.search-modal-overlay.active .search-modal-content {
    transform: translateY(0);
}

.search-modal-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: var(--gold);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-bottom: 2px solid var(--gold);
}

.search-modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.search-modal-header .close-modal {
    background: rgba(201, 162, 39, 0.15);
    color: var(--gold);
}

.search-modal-header .close-modal:hover {
    background: rgba(201, 162, 39, 0.3);
}

.search-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

/* Search Field Groups */
.search-field-group {
    margin-bottom: 18px;
}

.search-field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.search-field-label i {
    color: var(--gold-dark);
    font-size: 0.85rem;
}

.search-input-wrapper {
    display: flex;
    gap: 8px;
}

.search-order-input {
    flex: 1;
    padding: 14px 16px;
    font-size: 1.1rem;
    font-weight: 500;
    border: 2px solid #ddd;
    border-radius: 14px;
    color: var(--primary-dark);
    background: #f9f9f9;
    transition: all 0.3s ease;
    outline: none;
    font-family: var(--font-body);
}

.search-order-input::placeholder {
    color: #bbb;
    font-weight: 400;
    font-size: 1rem;
}

.search-order-input:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.search-go-btn {
    width: 52px;
    height: auto;
    background: var(--gradient-gold);
    border: none;
    border-radius: 14px;
    color: var(--primary-dark);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-go-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(201, 162, 39, 0.4);
}

.search-go-btn:active {
    transform: scale(0.95);
}

/* Search Results Area */
.search-results-area {
    margin-top: 20px;
}

.search-results-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--gold);
}

.search-results-title span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold-dark);
}

.search-results-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 350px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Individual Result Card */
.search-result-card {
    background: linear-gradient(135deg, #fafafa 0%, #f5f3ed 100%);
    border: 1.5px solid #e8e0c8;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-card:hover {
    border-color: var(--gold);
    box-shadow: 0 5px 20px rgba(201, 162, 39, 0.2);
    transform: translateY(-2px);
}

.search-result-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.search-result-order-id {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.search-result-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-result-status.pendiente {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}

.search-result-status.completado {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.search-result-card-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.search-result-customer {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.search-result-meta {
    font-size: 0.82rem;
    color: #888;
}

.search-result-total {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-dark);
}

/* Search Result Detail (expanded) */
.search-result-detail {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #d5ceb5;
}

.search-result-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-result-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: #555;
    padding: 4px 0;
}

.search-result-item-row span:first-child {
    font-weight: 500;
}

.search-result-item-row span:last-child {
    font-weight: 600;
    color: var(--gold-dark);
}

.search-result-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1.5px solid var(--gold);
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark);
}

/* No Results */
.search-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.search-no-results i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
}

.search-no-results p {
    font-size: 1.05rem;
    font-weight: 600;
    color: #777;
    margin-bottom: 5px;
}

.search-no-results span {
    font-size: 0.85rem;
    color: #aaa;
}

/* Initial Search State */
.search-initial {
    text-align: center;
    padding: 40px 20px;
    color: #bbb;
}

.search-initial i {
    font-size: 3rem;
    color: rgba(201, 162, 39, 0.3);
    margin-bottom: 15px;
}

.search-initial p {
    font-size: 0.95rem;
    color: #999;
    line-height: 1.5;
}

/* ============================================
   ORDER CONFIRMATION
   ============================================ */
.order-confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
    animation: fadeIn 0.4s ease;
}

.order-confirmation-box {
    background: var(--white);
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    animation: scaleIn 0.5s ease;
    box-shadow: 0 20px 60px rgba(201, 162, 39, 0.3);
}

.confirmation-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    animation: bounceIn 0.6s ease 0.2s both;
}

.confirmation-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.confirmation-message {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
}

.confirmation-message strong {
    color: var(--gold-dark);
}

.confirmation-close-btn {
    width: 100%;
    padding: 18px 30px;
    background: var(--gradient-gold);
    color: var(--text-dark);
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirmation-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 162, 39, 0.4);
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--primary-dark);
    padding: 30px 20px;
    text-align: center;
    border-top: 2px solid var(--gold);
}

.footer-content {
    max-width: 400px;
    margin: 0 auto;
}

.footer-contact {
    margin-bottom: 20px;
}

.footer-contact p {
    font-size: 0.95rem;
    color: var(--cream);
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--gold);
    width: 20px;
}

.footer-hours {
    color: var(--gold) !important;
    font-weight: 600;
    font-size: 1rem !important;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 10px 20px;
    border: 1px solid var(--text-muted);
    border-radius: 30px;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.admin-link:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 480px) {
    html {
        font-size: 16px;
    }

    .splash-title {
        font-size: 2rem;
        letter-spacing: 5px;
    }

    .splash-subtitle {
        font-size: 2.2rem;
    }

    .splash-icon {
        font-size: 2.5rem;
    }

    .splash-enter-btn {
        padding: 16px 40px;
        font-size: 1rem;
    }

    .header-mini {
        padding: 12px 15px;
    }

    .header-mini-title {
        font-size: 0.9rem;
        letter-spacing: 1.5px;
    }

    .search-order-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        right: 10px;
    }

    .menu-container {
        padding: 15px 10px;
    }

    .menu-section {
        padding: 20px 12px;
        border-radius: 20px;
    }

    .section-title {
        font-size: 1.1rem;
        padding: 10px 18px;
    }

    .rope-decoration {
        display: none;
    }

    .menu-item {
        padding: 15px;
        flex-wrap: wrap;
    }

    .item-image {
        width: 70px;
        height: 70px;
    }

    .item-info {
        flex: 1;
        min-width: calc(100% - 90px);
    }

    .item-name {
        font-size: 1rem;
    }

    .item-description {
        font-size: 0.8rem;
    }

    .item-price-action {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 12px;
    }

    .item-price {
        font-size: 1.3rem;
    }

    .quantity-controls {
        gap: 8px;
        padding: 5px 8px;
    }

    .qty-btn {
        width: 34px;
        height: 34px;
    }

    .table-options {
        grid-template-columns: repeat(3, 1fr);
    }

    .order-bar-content {
        flex-direction: column;
        gap: 10px;
    }

    .order-summary {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    .order-total {
        font-size: 1.4rem;
    }

    .review-order-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 20px;
    }

    .splash-title {
        font-size: 3rem;
    }

    .splash-subtitle {
        font-size: 3.5rem;
    }

    .splash-icon {
        font-size: 4rem;
    }

    .menu-section {
        padding: 35px 30px;
    }

    .section-title {
        font-size: 1.5rem;
        padding: 15px 35px;
    }

    .menu-item {
        padding: 22px;
    }

    .item-image {
        width: 100px;
        height: 100px;
    }

    .item-name {
        font-size: 1.2rem;
    }

    .modal-content {
        border-radius: 30px;
        margin: auto;
        max-height: 85vh;
    }

    .modal-overlay {
        align-items: center;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.menu-item {
    animation: slideUp 0.5s ease forwards;
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }

.order-bar.visible .review-order-btn {
    animation: pulse 2s infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

/* Empty State */
.empty-order {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.empty-order i {
    font-size: 4rem;
    margin-bottom: 15px;
    color: #ddd;
}

.empty-order p {
    font-size: 1.1rem;
}
