/* ==========================================================================
   HOJA DE ESTILOS PREMIUM - CLIENTE (MOBILE-FIRST ESTÁTICO)
   ========================================================================== */

:root {
    --primary: #e67e22;          /* Naranja cálido */
    --primary-hover: #d35400;
    --accent: #f1c40f;           /* Amarillo dorado */
    --dark: #2c3e50;             /* Gris oscuro azulado */
    --light-bg: #f8f9fa;         /* Fondo claro y limpio */
    --surface: #ffffff;          /* Tarjetas y modales */
    --text: #34495e;             /* Texto principal */
    --text-muted: #7f8c8d;       /* Texto secundario */
    --border: #eaeded;           /* Bordes sutiles */
    --error: #e74c3c;            /* Alertas */
    --success: #2ecc71;          /* Éxito */
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.1);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.15);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & CONFIGURACIÓN BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--light-bg);
    color: var(--text);
    line-height: 1.5;
    padding-bottom: 90px; /* Espacio para barra flotante de carrito */
}

/* ==========================================================================
   HEADER DE LA APP (PREMIUM HERO)
   ========================================================================== */
.app-header {
    position: relative;
    height: 200px;
    background-image: url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?w=1000&auto=format&fit=crop&q=60');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    display: flex;
    align-items: flex-end;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    overflow: hidden;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    width: 100%;
}

.restaurant-badge {
    background-color: var(--primary);
    color: #ffffff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.restaurant-name {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.restaurant-tagline, .restaurant-address {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   CATEGORÍAS (SCROLL HORIZONTAL)
   ========================================================================== */
.category-nav-wrapper {
    position: sticky;
    top: 0;
    background-color: var(--surface);
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-bottom: 1px solid var(--border);
}

.category-nav {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.category-nav::-webkit-scrollbar {
    display: none; /* Ocultar scrollbar */
}

.category-tab {
    flex: 0 0 auto;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 30px;
    background-color: #f1f2f6;
    color: var(--dark);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.category-tab.active {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
}

/* ==========================================================================
   MENU CONTENEDOR Y BUSCADOR
   ========================================================================== */
.menu-container {
    padding: 16px;
}

.search-bar-container {
    position: relative;
    margin-bottom: 24px;
}

.search-bar-container input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background-color: var(--surface);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    box-shadow: var(--shadow-sm);
}

.search-bar-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.loading-state i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

/* ==========================================================================
   CATEGORÍAS & TARJETAS DE PRODUCTO
   ========================================================================== */
.category-section {
    margin-bottom: 30px;
}

.category-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    position: relative;
    padding-left: 12px;
}

.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media(min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.product-card {
    background-color: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-image {
    width: 110px;
    min-width: 110px;
    height: 110px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.product-image-placeholder {
    width: 110px;
    height: 110px;
    background-color: #eaeded;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    z-index: 2;
}

.badge-alcohol { background-color: var(--error); }
.badge-armable { background-color: var(--success); }

.product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.product-info-top h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

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

.product-info-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.add-btn-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(230, 126, 34, 0.1);
    color: var(--primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.product-card:hover .add-btn-circle {
    background-color: var(--primary);
    color: #ffffff;
}

.product-card.disabled {
    opacity: 0.6;
    pointer-events: none;
}
.product-card.disabled .product-price {
    color: var(--text-muted);
}
.product-card.disabled::after {
    content: 'Agotado';
    position: absolute;
    right: 12px;
    top: 12px;
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    padding: 3px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
    font-weight: 600;
}

/* ==========================================================================
   BARRA FLOTANTE DE CARRITO
   ========================================================================== */
.cart-floating-bar {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition);
}

.cart-floating-bar:active {
    transform: scale(0.98);
}

.cart-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-bar-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-badge-container {
    position: relative;
    color: #ffffff;
    font-size: 1.3rem;
}

.cart-count-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary);
    color: #ffffff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--dark);
}

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

.cart-bar-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    font-weight: 600;
}

.cart-bar-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
}

.cart-bar-btn {
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.cart-bar-btn:hover {
    background-color: var(--primary-hover);
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   MODALES (ESTILO PREMIUM BASE)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@media(min-width: 576px) {
    .modal-overlay {
        align-items: center;
    }
}

.modal-card {
    background-color: var(--surface);
    width: 100%;
    max-height: 90vh;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideUpFull 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-modal-card {
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Evita scroll en la tarjeta principal */
}

@media(min-width: 576px) {
    .modal-card {
        max-width: 500px;
        border-radius: var(--radius-lg);
    }
}

.modal-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.5);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background-color: rgba(0,0,0,0.7);
}

/* ==========================================================================
   MODAL PERSONALIZACIÓN PRODUCTO
   ========================================================================== */
.product-modal-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.product-modal-body {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto; /* El cuerpo es el que tiene scroll */
}

.alcohol-warning-badge {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--error);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.product-modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.product-modal-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.product-modal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

.extras-section {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-bottom: 10px; /* Reducido ya que el footer es estático */
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.optional-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

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

.extra-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background-color: var(--light-bg);
    cursor: pointer;
    transition: var(--transition);
}

.extra-item.selected {
    border-color: var(--primary);
    background-color: rgba(230, 126, 34, 0.05);
}

.extra-info {
    display: flex;
    flex-direction: column;
}

.extra-name {
    font-size: 0.9rem;
    font-weight: 500;
}

.extra-price {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: #ffffff;
    font-size: 0.7rem;
}

.extra-item.selected .checkbox-custom {
    background-color: var(--primary);
    border-color: var(--primary);
}

.product-modal-footer {
    position: static;
    background-color: var(--surface);
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 16px;
    align-items: center;
    z-index: 10;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    background-color: var(--light-bg);
    border: none;
    width: 38px;
    height: 38px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:active {
    background-color: #eaeded;
}

.qty-number {
    padding: 0 14px;
    font-weight: 600;
    font-size: 1rem;
    min-width: 32px;
    text-align: center;
}

.add-to-cart-btn {
    flex-grow: 1;
    background-color: var(--primary);
    color: #ffffff;
    border: none;
    height: 38px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.2);
}

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

.btn-subtotal {
    font-weight: 700;
    background-color: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* ==========================================================================
   MODAL CARRITO DE COMPRAS
   ========================================================================== */
.cart-modal-card {
    display: flex;
    flex-direction: column;
    max-height: 95vh;
}

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

.modal-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close-btn-header {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.modal-close-btn-header:hover {
    color: var(--dark);
}

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

.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.cart-item-details {
    flex-grow: 1;
    padding-right: 12px;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-item-extras {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    list-style: none;
    padding-left: 10px;
}

.cart-item-extras li {
    position: relative;
}

.cart-item-extras li::before {
    content: '└';
    position: absolute;
    left: -10px;
    font-weight: bold;
}

.cart-item-notes {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--primary);
    margin-top: 4px;
}

.cart-item-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 6px;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.cart-item-remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

/* Formulario */
.checkout-form {
    border-top: 2px dashed var(--border);
    padding-top: 20px;
}

.method-toggle-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.method-toggle-container input[type="radio"] {
    display: none;
}

.method-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    background-color: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    gap: 6px;
}

.method-label i {
    font-size: 1.1rem;
}

.method-toggle-container input[type="radio"]:checked + .method-label {
    border-color: var(--primary);
    color: var(--primary);
    background-color: rgba(230, 126, 34, 0.05);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    background-color: var(--surface);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--primary);
}

.form-group textarea {
    height: 70px;
    resize: none;
}

/* Resumen de costos */
.price-summary {
    background-color: var(--light-bg);
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.summary-divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 4px 0;
}

.total-line {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}

.total-line span:last-child {
    color: var(--primary);
}

/* Botón WhatsApp */
.submit-order-btn {
    width: 100%;
    background-color: #25d366;
    color: #ffffff;
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
}

.submit-order-btn:hover {
    background-color: #20ba5a;
    transform: translateY(-1px);
}

/* ==========================================================================
   MODAL ADVERTENCIA EDAD
   ========================================================================== */
.age-modal-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius-lg) !important;
}

.age-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--error);
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.age-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 10px;
    margin-bottom: 24px;
    line-height: 1.4;
}

.age-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.age-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.age-accept {
    background-color: var(--primary);
    color: #ffffff;
}

.age-accept:hover {
    background-color: var(--primary-hover);
}

.age-cancel {
    background-color: var(--light-bg);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.age-cancel:hover {
    background-color: #eaeded;
}

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

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

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

/* ==========================================================================
   ESTILOS DE MAPA Y LOCALIZACIÓN DEL CLIENTE
   ========================================================================== */
.map-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.btn-map-locate {
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.btn-map-locate:hover {
    background-color: var(--primary);
    color: #ffffff;
}

.selected-delivery-info {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-top: 8px;
    transition: var(--transition);
}

.selected-delivery-info.error {
    background-color: #ffeef0;
    border: 1px solid #ffd0d6;
    color: #d63031;
}

.selected-delivery-info.success {
    background-color: #e3faf1;
    border: 1px solid #a3ebd6;
    color: #00b894;
}

.submit-order-btn:disabled {
    background-color: var(--text-muted);
    color: #ffffff;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.6;
}

.submit-order-btn:disabled:hover {
    background-color: var(--text-muted);
    transform: none;
}

/* ==========================================================================
   ESTILOS DE VENTA POR PESO (CLIENTE)
   ========================================================================== */
.badge-peso {
    background: linear-gradient(135deg, #e67e22, #f39c12) !important;
}
.gram-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 2px 4px;
    background-color: #fff;
    box-shadow: var(--shadow-sm);
}
.gram-selector .qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background-color: var(--light-bg);
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.gram-selector .qty-btn:hover {
    background-color: var(--primary);
    color: #fff;
}
.gram-selector .qty-number {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 12px;
    min-width: 60px;
    text-align: center;
    color: var(--dark);
}

/* ==========================================================================
   CURRENCY SWITCH TOGGLE
   ========================================================================== */
.currency-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 15px auto 5px auto;
    background-color: var(--surface);
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: var(--shadow-sm);
    width: fit-content;
    border: 1px solid var(--border);
}

.currency-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.currency-label.active {
    color: var(--primary);
    font-weight: 700;
}

/* Base switch container */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Slider style */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border);
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

