/* ===================================================================
   PUCCA'S FAST FOOD - DESIGN SYSTEM & MOBILE FIRST STYLES
   =================================================================== */

:root {
    /* Paleta de Colores Inspirada en el Logo de Pucca's Fast Food */
    --bg-dark: #131012;               /* Fondo oscuro profundo con matriz cálida inspirada en sombras */
    --bg-card: #1D171A;               /* Tarjeta oscura elegante */
    --bg-card-hover: #292025;         /* Estado hover de tarjetas */
    --bg-nav: rgba(19, 16, 18, 0.95);  /* Barra de navegación sticky con desfoque */
    
    --text-main: #F7F3EE;             /* Texto principal tono crema claro inspirada en el papiro */
    --text-muted: #A89F97;            /* Texto secundario gris cálido */
    --text-bright: #FFFFFF;           /* Blanco brillante */
    
    /* Colores del Emblema de Pucca's */
    --accent-red: #D9252B;            /* Rojo Pucca (Emblema, gorra y camiseta del personaje) */
    --accent-red-dark: #A3181D;       /* Rojo carmesí para sombras y gradientes */
    --accent-gold: #F4AC23;           /* Oro Sello (Cuerda, estrellas y textos clave) */
    --accent-gold-light: #FFC438;     /* Oro brillante de acento */
    --accent-teal: #25717F;           /* Turquesa Vintage (Fondo circular del sello de Pucca) */
    --accent-teal-light: #3DA1B3;     /* Turquesa claro */
    --accent-orange: #EA5E20;         /* Naranja de acento secundario */
    --whatsapp-green: #25D366;
    
    --border-color: rgba(247, 243, 238, 0.09);
    --border-highlight: rgba(244, 172, 35, 0.4);   /* Resplandor dorado */
    --border-red-highlight: rgba(217, 37, 43, 0.4);  /* Resplandor rojo */
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 999px;
    
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 18px rgba(244, 172, 35, 0.25);
    --shadow-red-glow: 0 0 18px rgba(217, 37, 43, 0.35);
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset Básico */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.5;
    font-size: 15px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Limitador de Ancho para Simulación Móvil en Escritorio */
.app-container {
    width: 100%;
    max-width: 480px; /* Tamaño ideal móvil */
    background-color: var(--bg-dark);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

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

/* ===================================================================
   HEADER & BANNER HERO
   =================================================================== */
.hero-header {
    position: relative;
    background-color: var(--bg-dark);
}

.hero-banner-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(13, 13, 17, 0.2) 0%, rgba(13, 13, 17, 0.95) 85%, var(--bg-dark) 100%);
}

.hero-content {
    padding: 0 20px 16px 20px;
    margin-top: -30px;
    position: relative;
    z-index: 2;
}

.brand-badge-container {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 211, 102, 0.15);
    color: #4EFE8D;
    border: 1px solid rgba(37, 211, 102, 0.3);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.status-dot {
    width: 7px;
    height: 7px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 0 8px #25D366;
}

.delivery-pill {
    background: rgba(37, 113, 127, 0.2);
    color: var(--accent-teal-light);
    border: 1px solid rgba(37, 113, 127, 0.4);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 900;
    color: var(--text-bright);
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 4px;
}

.brand-tagline {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.restaurant-info-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

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

.info-icon {
    width: 14px;
    height: 14px;
    color: var(--accent-gold);
}

/* Buscador */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 40px 0 42px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.search-box input:focus {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-glow);
}

.search-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.clear-search-btn {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    display: none;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
}

/* ===================================================================
   STICKY NAVIGATION (BARRA SUPERIOR NAVEGABLE MÓVIL)
   =================================================================== */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.nav-scroll-wrapper {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.nav-scroll-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.nav-btn {
    min-height: 44px; /* Touch target optimizado */
    padding: 0 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.nav-btn:active {
    transform: scale(0.96);
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--accent-red) 0%, #B71C1C 60%, var(--accent-gold) 100%);
    color: #FFFFFF;
    border-color: var(--accent-gold);
    box-shadow: 0 4px 14px rgba(217, 37, 43, 0.4);
}

/* ===================================================================
   SECCIONES Y TARJETAS DE PRODUCTOS
   =================================================================== */
.menu-sections {
    padding: 16px 16px 80px 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.category-section {
    scroll-margin-top: 70px; /* Offset para el scroll sticky */
}

.category-header {
    margin-bottom: 14px;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-bright);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.2px;
}

.category-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-red) 50%, transparent 100%);
    margin-left: 8px;
    border-radius: var(--radius-full);
}

.category-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Grid de Productos */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* -------------------------------------------------------------------
   1. MODO CON IMAGEN: TARJETA HORIZONAL MÓVIL (CARD)
   ------------------------------------------------------------------- */
.product-card-horizontal {
    display: flex;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 110px;
}

.product-card-horizontal:active {
    transform: scale(0.98);
    border-color: var(--border-highlight);
}

.card-img-wrapper {
    position: relative;
    width: 110px;
    min-width: 110px;
    height: 100%;
    min-height: 110px;
    background-color: #222230;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0; /* Permite acortar texto con ellipsis */
}

.product-badge {
    align-self: flex-start;
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-gold);
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.2);
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    line-height: 1.2;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.2;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--accent-gold);
}

.add-mini-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: rgba(217, 37, 43, 0.15);
    color: var(--accent-red);
    border: 1px solid rgba(217, 37, 43, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.add-mini-btn:hover {
    background: var(--accent-red);
    color: #FFFFFF;
    border-color: var(--accent-red);
    box-shadow: 0 0 10px rgba(217, 37, 43, 0.4);
}

/* -------------------------------------------------------------------
   2. MODO SIN IMAGEN: LISTA ELEGANTE SOLO TEXTO
   ------------------------------------------------------------------- */
.product-card-text-only {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-red);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
    gap: 12px;
}

.product-card-text-only:hover {
    border-left-color: var(--accent-gold);
}

.product-card-text-only:active {
    transform: scale(0.98);
    background: var(--bg-card-hover);
}

.text-only-left {
    flex: 1;
    min-width: 0;
}

.text-only-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.text-only-price {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    color: var(--accent-gold);
    background: rgba(255, 193, 7, 0.08);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 193, 7, 0.15);
}

/* ===================================================================
   VISTA DE SIN RESULTADOS
   =================================================================== */
.no-results-view {
    text-align: center;
    padding: 40px 20px;
}

.no-results-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.no-results-view h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-bright);
    margin-bottom: 6px;
}

.no-results-view p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.reset-search-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent-red) 0%, #B71C1C 60%, var(--accent-gold) 100%);
    color: #FFFFFF;
    font-weight: 800;
    border: 1px solid var(--accent-gold);
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(217, 37, 43, 0.3);
}

/* ===================================================================
   FOOTER
   =================================================================== */
.app-footer {
    background-color: #09090D;
    border-top: 1px solid var(--border-color);
    padding: 30px 20px 90px 20px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 1px;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

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

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.2s ease;
}

.social-btn:active {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.btn-whatsapp-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFF;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}

.whatsapp-icon {
    width: 22px;
    height: 22px;
}

.copyright {
    font-size: 11px;
    color: #66667A;
    margin-top: 20px;
}

/* ===================================================================
   BOTÓN FLOTANTE WHATSAPP (MÓVIL UI/UX)
   =================================================================== */
.floating-wa-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 90;
    background: #25D366;
    color: #FFF;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: var(--radius-full);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.floating-wa-btn:active {
    transform: scale(0.92);
}

.floating-wa-icon {
    width: 22px;
    height: 22px;
}

/* ===================================================================
   MODAL DE PRODUCTO / DETALLE
   =================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000; /* Abre por encima de la barra flotante (z-index: 900) */
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end; /* Abre tipo hoja móvil desde abajo */
    justify-content: center;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.modal-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    padding-bottom: 16px;
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-image-wrapper {
    width: 100%;
    height: 220px;
    background: #111118;
    position: relative;
}

.modal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 20px;
}

.modal-badge-wrapper {
    margin-bottom: 8px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.modal-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 24px;
}

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

.modal-price {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    color: var(--accent-gold);
}

.modal-order-btn {
    flex: 1;
    min-height: 48px;
    background: linear-gradient(135deg, var(--accent-red) 0%, #B71C1C 60%, var(--accent-gold) 100%);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 15px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(217, 37, 43, 0.4);
    border: 1px solid var(--accent-gold);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

/* ===================================================================
   BARRA FLOTANTE DEL CARRITO (CHECKOUT BAR)
   =================================================================== */
.floating-cart-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 448px;
    height: 62px;
    background: rgba(29, 23, 26, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), var(--shadow-glow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 900;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.floating-cart-bar.hidden {
    display: none !important;
}

.cart-bar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cart-icon-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
    background: rgba(244, 172, 35, 0.15);
    border: 1px solid rgba(244, 172, 35, 0.4);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.cart-badge-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--accent-red);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 900;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-card);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.cart-bar-info {
    display: flex;
    flex-direction: column;
}

.cart-bar-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-bar-total {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
    color: var(--accent-gold);
}

.cart-bar-action-btn {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-orange) 100%);
    color: #131012;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(244, 172, 35, 0.3);
}

/* Ajuste del botón flotante de WhatsApp cuando el carrito está visible */
.floating-wa-btn.shifted-up {
    bottom: 92px;
}

/* ===================================================================
   TOAST NOTIFICACIONES
   =================================================================== */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: calc(100% - 32px);
    max-width: 400px;
}

.toast-message {
    background: rgba(37, 113, 127, 0.95);
    backdrop-filter: blur(8px);
    color: var(--text-bright);
    border: 1px solid var(--accent-teal-light);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================================================
   SELECTOR DE CANTIDAD Y NOTAS EN MODAL DE PRODUCTO
   =================================================================== */
.modal-product-notes-wrapper {
    margin-bottom: 16px;
}

.input-label-sm {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 600;
}

.form-input-sm {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
}

.form-input-sm:focus {
    border-color: var(--accent-gold);
}

.modal-price-and-qty {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-qty-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 2px 6px;
}

.modal-qty-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 18px;
    font-weight: 800;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-qty-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

.modal-qty-val {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-gold);
    min-width: 18px;
    text-align: center;
}

/* ===================================================================
   MODAL DE CHECKOUT Y CARRITO
   =================================================================== */
.cart-modal-card {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.cart-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-modal-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-bright);
}

.cart-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* Carrito Vacío */
.cart-empty-view {
    text-align: center;
    padding: 40px 20px;
}

.empty-cart-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.cart-empty-view h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.cart-empty-view p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Lista de Ítems en Carrito */
.cart-items-section {
    margin-bottom: 24px;
}

.cart-items-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.clear-cart-btn {
    background: none;
    border: none;
    color: var(--accent-red);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    gap: 12px;
}

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

.cart-item-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-bright);
}

.cart-item-price {
    font-size: 13px;
    color: var(--accent-gold);
    font-weight: 600;
    display: block;
}

.cart-item-note {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

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

.cart-qty-btn {
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-bright);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cart-qty-count {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    color: var(--text-bright);
    min-width: 16px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    margin-left: 6px;
    cursor: pointer;
}

.cart-item-remove:hover {
    color: var(--accent-red);
}

/* Secciones del Checkout */
.checkout-section {
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-md);
    padding: 14px;
    border: 1px solid var(--border-color);
}

.checkout-section-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.order-type-tabs {
    display: flex;
    gap: 8px;
}

.type-tab {
    flex: 1;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.type-tab.active {
    background: rgba(37, 113, 127, 0.25);
    border-color: var(--accent-teal-light);
    color: var(--text-bright);
    box-shadow: 0 0 10px rgba(37, 113, 127, 0.3);
}

/* Campos de Formulario */
.form-group {
    margin-bottom: 12px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 8px rgba(244, 172, 35, 0.2);
}

.form-select option {
    background: var(--bg-card);
    color: var(--text-main);
}

/* Resumen Total y Botón */
.checkout-total-card {
    background: linear-gradient(180deg, rgba(29, 23, 26, 0.8) 0%, rgba(19, 16, 18, 0.95) 100%);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 24px;
}

.total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.total-label {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-bright);
}

.total-amount {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 900;
    color: var(--accent-gold);
}

.send-whatsapp-submit-btn {
    width: 100%;
    min-height: 52px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 16px;
    border: none;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.send-whatsapp-submit-btn:active {
    transform: scale(0.98);
}

.wa-btn-icon {
    width: 22px;
    height: 22px;
}

