/* ====================================
   TAQUERÍA GUADALAJARA - ESTILOS
   Menú Digital - Calidad Premium
   Basado en referencia profesional
==================================== */

:root {
    --primary-orange: #ff6b00;
    --primary-orange-dark: #e85d04;
    --primary-red: #dc2f02;
    --primary-yellow: #ffba08;
    --primary-green: #22c55e;
    --primary-turquoise: #00b4d8;
    --primary-purple: #7b2cbf;
    --gradient-orange: linear-gradient(135deg, #ff6b00 0%, #e85d04 100%);
    --dark-brown: #3d2914;
    --light-cream: #fef9ef;
    --white: #ffffff;
    --black: #1a1a1a;
    --gray-light: #f5f5f5;
    --gray-medium: #e0e0e0;
    --shadow: 0 4px 15px rgba(0,0,0,0.15);
    --shadow-strong: 0 8px 30px rgba(0,0,0,0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #ff6b00 0%, #e85d04 50%, #dc2f02 100%);
    min-height: 100vh;
    font-size: 16px;
    overflow-x: hidden;
}

/* ====================================
   SPLASH SCREEN - 100% CSS PURO
   Se auto-oculta con animation-delay
   NO depende de JavaScript para nada
==================================== */

/* ANIMACIÓN CLAVE: el splash desaparece solo después de 2.5s */
@keyframes splashAutoHide {
    0% { opacity: 1; visibility: visible; }
    85% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #ff6b00 0%, #e85d04 50%, #dc2f02 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Animación CSS pura: dura 3s, se queda en estado final (forwards) */
    animation: splashAutoHide 3s ease-in-out forwards;
    pointer-events: auto;
}

/* Después de la animación, el splash no bloquea nada */
.splash-screen.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

.splash-content {
    position: relative;
    text-align: center;
    z-index: 2;
    padding: 20px;
}

.splash-bg-pattern {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(255,186,8,0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(255,186,8,0.1) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
    animation: bgFloat 10s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-2%, -2%) rotate(2deg); }
}

.splash-logo {
    position: relative;
    z-index: 2;
    animation: logoAppear 0.8s ease-out;
}

@keyframes logoAppear {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.splash-icon {
    color: #ffba08;
    font-size: 2.5rem;
    display: inline-block;
    margin: 0 10px;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.splash-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 
        4px 4px 0 #ffba08,
        6px 6px 0 rgba(0,0,0,0.2);
    letter-spacing: 5px;
    line-height: 1;
    margin: 15px 0;
}

.splash-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 8px;
    font-weight: 600;
    margin: 5px 0;
}

.splash-subtitle-accent {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #ffba08;
    text-transform: uppercase;
    letter-spacing: 6px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-top: 5px;
}

.splash-loading {
    margin-top: 50px;
    animation: splashFadeIn 1s ease-out 0.5s both;
}

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

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

.loading-dots span {
    width: 12px;
    height: 12px;
    background: #ffba08;
    border-radius: 50%;
    animation: dotBounce 0.6s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.1s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes dotBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(-15px); opacity: 0.5; }
}

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

.splash-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.splash-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

.splash-wave svg path {
    fill: rgba(255,255,255,0.15);
}

/* ====================================
   APP CONTAINER
==================================== */

/* App container: aparece con animación CSS pura */
@keyframes appFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.app-container {
    padding-bottom: 100px;
    min-height: 100vh;
    /* Aparece con delay de 2.5s para sincronizar con splash */
    animation: appFadeIn 0.6s ease-out 2.5s both;
}

/* ====================================
   HEADER MINI - Fijo Superior
==================================== */

.header-mini {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-orange);
    padding: 12px 15px;
    z-index: 100;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
    border-bottom: 3px solid var(--primary-yellow);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.header-mini.visible {
    transform: translateY(0);
}

.header-mini-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.header-mini-content i {
    color: var(--primary-yellow);
    font-size: 1rem;
}

.header-mini-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ====================================
   HEADER PRINCIPAL
==================================== */

.header {
    position: relative;
    background: var(--primary-orange);
    padding: 0 0 30px 0;
    text-align: center;
    overflow: hidden;
}

.header-pattern {
    position: relative;
    width: 100%;
    height: 28px;
    background: 
        repeating-linear-gradient(
            90deg,
            #dc2f02 0px,
            #dc2f02 40px,
            #ff6b00 40px,
            #ff6b00 80px,
            #ffba08 80px,
            #ffba08 120px,
            #22c55e 120px,
            #22c55e 160px,
            #00b4d8 160px,
            #00b4d8 200px,
            #7b2cbf 200px,
            #7b2cbf 240px
        );
}

.header-content {
    position: relative;
    z-index: 1;
    padding: 25px 15px 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--white);
    text-shadow: 
        3px 3px 0 var(--primary-yellow),
        5px 5px 0 rgba(0,0,0,0.2);
    margin-bottom: 0;
    letter-spacing: 3px;
    line-height: 1;
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    color: var(--primary-yellow);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    margin-top: 8px;
    margin-bottom: 15px;
}

.order-counter {
    background: rgba(0,0,0,0.25);
    padding: 10px 25px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.counter-label {
    color: var(--primary-yellow);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.counter-number {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

/* ====================================
   MENU CONTAINER
==================================== */

.menu-container {
    position: relative;
    z-index: 1;
    padding: 20px 15px;
    max-width: 600px;
    margin: 0 auto;
}

/* ====================================
   MENU SECTIONS - Estructura Premium
==================================== */

.menu-section {
    margin-bottom: 25px;
    background: var(--light-cream);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    border: 4px solid var(--dark-brown);
}

.section-header {
    padding: 18px 15px;
    text-align: center;
    position: relative;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--white);
}

.section-title i {
    font-size: 1rem;
}

/* Decoraciones de cuerda */
.rope-decoration {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.6) 20%, 
        rgba(255,255,255,0.6) 80%, 
        transparent 100%);
    border-radius: 2px;
}

.rope-decoration.left {
    left: 10px;
}

.rope-decoration.right {
    right: 10px;
}

/* Headers de sección con colores */
.tacos-header {
    background: linear-gradient(135deg, #7b2cbf 0%, #5a189a 100%);
    border-bottom: 4px solid #3c096c;
}

.antojitos-header {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    border-bottom: 4px solid #023e8a;
}

.bebidas-header {
    background: linear-gradient(135deg, #2d6a4f 0%, #1b4332 100%);
    border-bottom: 4px solid #081c15;
}

/* ====================================
   MENU ITEMS - Cards Elegantes
==================================== */

.menu-items {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: var(--white);
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    align-items: flex-start;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-orange);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-item:hover {
    border-color: var(--primary-orange);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

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

.menu-item.has-quantity {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.menu-item.has-quantity::before {
    background: var(--primary-green);
    opacity: 1;
}

/* Item Image */
.item-image {
    flex-shrink: 0;
    width: 85px;
    height: 85px;
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid var(--primary-orange);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
}

.item-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
}

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

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

/* Item Info */
.item-info {
    flex: 1;
    min-width: 0;
}

.item-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-brown);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 6px;
}

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

/* Item Price & Action */
.item-price-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.item-price {
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #f59e0b 100%);
    color: var(--dark-brown);
    padding: 7px 14px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gray-light);
    padding: 5px;
    border-radius: 30px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.qty-btn.minus {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--white);
}

.qty-btn.plus {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: var(--white);
}

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

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

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

/* ====================================
   ORDER BAR - Barra Fija Inferior
==================================== */

.order-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 12px 15px;
    z-index: 100;
    box-shadow: 0 -4px 25px rgba(0,0,0,0.2);
    border-top: 4px solid var(--primary-orange);
    transition: all 0.4s ease;
}

.order-bar.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.order-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 500px;
    margin: 0 auto;
    cursor: pointer;
}

.order-summary {
    display: flex;
    flex-direction: column;
}

.order-total-label {
    font-size: 0.7rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
}

.order-total-amount {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-orange);
}

.review-order-btn {
    background: var(--gradient-orange);
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255,107,0,0.3);
}

.review-order-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 25px rgba(255, 107, 0, 0.45);
}

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

/* ====================================
   MODAL - Diseño Premium
==================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 15px;
    backdrop-filter: blur(5px);
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.4s ease;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
}

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

/* Modal Header */
.modal-header {
    background: var(--gradient-orange);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-modal {
    background: rgba(255,255,255,0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* Order Number Display */
.order-number-display {
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-bottom: 1px solid #eee;
}

.order-label {
    font-size: 0.9rem;
    color: #888;
    font-weight: 500;
}

.order-number-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-orange);
}

/* Modal Body */
.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.order-section {
    margin-bottom: 20px;
}

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

.section-header-modal h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-brown);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* Order Items List - En Modal */
.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.order-item-new {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    background: var(--gray-light);
    border-radius: 14px;
    border-left: 4px solid var(--primary-orange);
}

.order-item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.order-qty-btn.minus {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.order-qty-btn.plus {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

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

.order-item-qty {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark-brown);
    min-width: 24px;
    text-align: center;
}

.order-item-info {
    flex: 1;
}

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

.order-item-unit {
    font-size: 0.75rem;
    color: #888;
}

.order-item-total {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1rem;
}

/* Order Total Section */
.order-total-section {
    margin-top: 15px;
}

.total-row.grand-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--dark-brown);
    border-radius: 14px;
    color: white;
}

.total-row.grand-total span:first-child {
    font-weight: 600;
    font-size: 0.95rem;
}

.total-row.grand-total .total-amount {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--primary-yellow);
}

/* Customer Data Section */
.customer-data-section {
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #eee;
}

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

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

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

.customer-name-input {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    border: 3px solid var(--primary-orange);
    border-radius: 14px;
    outline: none;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.customer-name-input:focus {
    border-color: var(--primary-orange-dark);
    box-shadow: 0 0 0 5px rgba(255, 107, 0, 0.15);
}

.customer-name-input::placeholder {
    color: #aaa;
}

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

.send-whatsapp-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.05rem;
    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: 0.5px;
    box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}

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

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

/* ====================================
   SUCCESS MODAL
==================================== */

.success-modal {
    text-align: center;
    padding: 40px 25px;
    max-width: 380px;
}

.success-icon {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    animation: successPop 0.6s ease;
    box-shadow: 0 8px 25px rgba(34,197,94,0.3);
}

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

.success-icon i {
    font-size: 2.5rem;
    color: white;
}

.success-modal h2 {
    font-size: 1.9rem;
    color: var(--dark-brown);
    margin-bottom: 15px;
}

.success-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 10px;
}

.success-subtext {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.success-thanks {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.success-order-badge {
    background: var(--gray-light);
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    color: #666;
    display: inline-block;
    margin-bottom: 25px;
}

.success-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-orange);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(255,107,0,0.3);
}

.success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 0, 0.45);
}

/* ====================================
   FOOTER
==================================== */

.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 30px 20px 120px;
    color: var(--white);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.4rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.2);
}

.social-links a:hover {
    background: var(--primary-yellow);
    color: var(--dark-brown);
    transform: translateY(-4px);
    border-color: var(--primary-yellow);
}

.footer-handle {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-yellow);
}

.footer-contact {
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-contact p {
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--primary-yellow);
    font-size: 1.1rem;
    width: 25px;
}

.footer-hours {
    font-weight: 700 !important;
    color: var(--primary-yellow) !important;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 12px 22px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.admin-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* ====================================
   EMPTY STATE
==================================== */

.empty-order {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-order i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

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

/* ====================================
   ANIMATIONS
==================================== */

.menu-item.added {
    animation: itemAdded 0.4s ease;
}

@keyframes itemAdded {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); background: #e8f5e9; }
    100% { transform: scale(1); }
}

.qty-number.changed {
    animation: numberPop 0.3s ease;
}

@keyframes numberPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); color: var(--primary-orange); }
    100% { transform: scale(1); }
}

/* ====================================
   RESPONSIVE
==================================== */

@media (max-width: 480px) {
    .splash-title {
        font-size: 4rem;
    }
    
    .splash-subtitle {
        font-size: 1.2rem;
        letter-spacing: 5px;
    }
    
    .splash-subtitle-accent {
        font-size: 1.8rem;
    }
    
    .logo {
        font-size: 3.5rem;
    }
    
    .brand-name {
        font-size: 1.15rem;
        letter-spacing: 3px;
    }
    
    .section-title {
        font-size: 1rem;
        gap: 8px;
    }
    
    .menu-item {
        padding: 12px;
        gap: 10px;
    }
    
    .item-image {
        width: 75px;
        height: 75px;
    }
    
    .item-name {
        font-size: 0.85rem;
    }
    
    .item-description {
        font-size: 0.75rem;
    }
    
    .item-price {
        font-size: 0.8rem;
        padding: 5px 12px;
    }
    
    .qty-btn {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
    
    .qty-number {
        font-size: 1rem;
        min-width: 25px;
    }
    
    .review-order-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    
    .order-total-amount {
        font-size: 1.3rem;
    }
}

@media (max-width: 360px) {
    .splash-title {
        font-size: 3.2rem;
    }
    
    .logo {
        font-size: 3rem;
    }
    
    .brand-name {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .review-order-btn span {
        display: none;
    }
    
    .review-order-btn {
        padding: 14px 18px;
    }
    
    .item-image {
        width: 65px;
        height: 65px;
    }
}

/* ====================================
   SCROLLBAR
==================================== */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-orange-dark);
}

/* ====================================
   BOTÓN BUSCAR PEDIDO EN HEADER
==================================== */

.search-order-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    padding: 10px 20px;
    border-radius: 25px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    font-family: 'Poppins', sans-serif;
}

.search-order-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

.search-order-btn i {
    font-size: 1rem;
}

/* ====================================
   MODAL DE BÚSQUEDA DE ÓRDENES
==================================== */

.search-modal {
    max-width: 500px;
    max-height: 85vh;
}

.search-header {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

/* Sección de Búsqueda */
.search-section {
    margin-bottom: 20px;
}

.search-instruction {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
    text-align: center;
}

.search-input-container {
    position: relative;
    margin-bottom: 15px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
}

.search-input {
    width: 100%;
    padding: 15px 45px;
    font-size: 1rem;
    border: 3px solid #e0e0e0;
    border-radius: 14px;
    outline: none;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.search-input::placeholder {
    color: #aaa;
}

.search-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #e0e0e0;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #666;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.search-clear-btn.visible {
    display: flex;
}

.search-clear-btn:hover {
    background: #ccc;
}

/* Filtros de Búsqueda */
.search-filters {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--gray-light);
    border: 2px solid transparent;
    border-radius: 20px;
    color: #666;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.filter-btn:hover {
    background: #e8e8e8;
}

.filter-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.filter-btn i {
    font-size: 0.75rem;
}

/* Resultados de Búsqueda */
.search-results {
    min-height: 200px;
    max-height: 350px;
    overflow-y: auto;
}

.search-empty-state,
.search-no-results {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.search-empty-state i,
.search-no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.search-empty-state p,
.search-no-results p {
    font-size: 1rem;
    font-weight: 500;
}

.search-no-results span {
    font-size: 0.85rem;
    display: block;
    margin-top: 5px;
}

/* Lista de Resultados */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--gray-light);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.search-result-item:hover {
    background: #e8f4ff;
    border-color: #3b82f6;
    transform: translateX(5px);
}

.result-order-number {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 90px;
    text-align: center;
}

.result-info {
    flex: 1;
}

.result-customer {
    font-weight: 600;
    color: var(--dark-brown);
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.result-date {
    font-size: 0.8rem;
    color: #888;
}

.result-total {
    text-align: right;
}

.result-price {
    font-weight: 700;
    color: var(--primary-green);
    font-size: 1rem;
    display: block;
}

.result-status {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 3px;
}

.result-status.pending {
    background: #fef3c7;
    color: #d97706;
}

.result-status.completed {
    background: #d1fae5;
    color: #059669;
}

.result-status.cancelled {
    background: #fee2e2;
    color: #dc2626;
}

/* Footer de Búsqueda */
.search-footer {
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.search-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #666;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stats-item i {
    color: var(--primary-orange);
}

.stats-divider {
    color: #ddd;
}

/* ====================================
   MODAL DE DETALLE DE ORDEN
==================================== */

.order-detail-modal {
    max-width: 450px;
}

.detail-header {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange-dark) 100%);
}

.order-detail-card {
    background: var(--gray-light);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
}

.detail-order-number {
    text-align: center;
    margin-bottom: 20px;
}

.detail-order-number .order-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-orange);
    display: block;
}

.detail-order-number .order-date {
    font-size: 0.9rem;
    color: #888;
}

.detail-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-info-row:last-child {
    border-bottom: none;
}

.detail-info-row .label {
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-info-row .label i {
    color: var(--primary-orange);
    width: 18px;
}

.detail-info-row .value {
    font-weight: 600;
    color: var(--dark-brown);
}

.detail-status-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.detail-status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

.detail-status-badge.completed {
    background: #d1fae5;
    color: #059669;
}

.detail-status-badge.cancelled {
    background: #fee2e2;
    color: #dc2626;
}

/* Items del Pedido en Detalle */
.detail-items-section {
    margin-top: 20px;
}

.detail-items-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-brown);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-items-title i {
    color: var(--primary-orange);
}

.detail-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: white;
    border-radius: 10px;
    border-left: 3px solid var(--primary-orange);
}

.detail-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-item-qty {
    background: var(--primary-orange);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.detail-item-name {
    font-weight: 500;
    color: var(--dark-brown);
    font-size: 0.9rem;
}

.detail-item-price {
    font-weight: 600;
    color: var(--primary-green);
}

/* Total en Detalle */
.detail-total {
    margin-top: 15px;
    padding: 15px;
    background: var(--dark-brown);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.detail-total .total-label {
    font-weight: 600;
}

.detail-total .total-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-yellow);
}

/* Botón Volver */
.back-to-search-btn {
    width: 100%;
    padding: 14px;
    background: #f0f0f0;
    color: #666;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.back-to-search-btn:hover {
    background: #e0e0e0;
}

/* Responsive para búsqueda */
@media (max-width: 480px) {
    .search-order-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }
    
    .search-order-btn span {
        display: none;
    }
    
    .search-order-btn i {
        font-size: 1.1rem;
    }
    
    .filter-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .filter-btn span {
        display: none;
    }
    
    .search-result-item {
        padding: 12px;
    }
    
    .result-order-number {
        min-width: 75px;
        font-size: 0.75rem;
        padding: 6px 8px;
    }
}
