* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background: #0a1628;
    color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Iconos SVG */
.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.icon-lg {
    width: 24px;
    height: 24px;
}

.icon-xl {
    width: 48px;
    height: 48px;
}

/* Hero Header */
.hero-header {
    position: relative;
    min-height: 280px;
    background: linear-gradient(180deg, rgba(10,22,40,0.7) 0%, rgba(10,22,40,0.95) 100%), 
                url('./img/biendeli.jpg') center/cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
}

.hero-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: 0.5px;
}

.restaurant-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fff;
    border: 5px solid #0a1628;
    margin-bottom: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}

.restaurant-name {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.restaurant-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 8px;
}

.stars {
    color: #fbbf24;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.restaurant-description {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 12px;
    max-width: 500px;
}

.restaurant-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 15px;
}

.whatsapp-btn {
    background: #25d366;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    transition: transform 0.2s;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
}

.whatsapp-btn:active {
    transform: translateY(0);
}

/* Search */
.search-section {
    padding: 20px;
    background: #0f1c31;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border-radius: 12px;
    border: none;
    background: #1a2942;
    color: white;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    background: #213348;
}

.search-box input::placeholder {
    color: #64748b;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

/* Tabs */
.tabs-section {
    padding: 20px;
    background: #0f1c31;
    overflow-x: auto;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #1a2942;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs-section::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: #1a2942;
    color: #94a3b8;
    border: none;
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    flex-shrink: 0;
}

.tab-btn:hover {
    background: #213348;
}

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

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

/* Category Header */
.category-header {
    padding: 20px 20px 10px;
    font-size: 18px;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 4px solid #3b82f6;
    margin-left: 20px;
    background: linear-gradient(90deg, rgba(59,130,246,0.1) 0%, transparent 100%);
}

/* Products */
.products-section {
    padding: 20px;
}

.product-card {
    background: #1a2942;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 15px;
    align-items: center;
    position: relative;
    transition: transform 0.2s;
}

.product-card:active {
    transform: scale(0.98);
}

.product-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.product-badge {
    background: #10b981;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    position: absolute;
    top: 12px;
    right: 12px;
}

.product-description {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-options {
    margin-bottom: 10px;
}

.product-options select {
    background: #0f1c31;
    color: white;
    border: 1px solid #2d3f5f;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    width: 100%;
    cursor: pointer;
}

.product-options select:focus {
    outline: none;
    border-color: #3b82f6;
}

/* Selector de salsas para alitas */
.sauce-selector {
    margin-bottom: 10px;
}

.sauce-label {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 6px;
    display: block;
}

.sauce-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sauce-chip {
    background: #0f1c31;
    border: 1px solid #2d3f5f;
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.sauce-chip:hover {
    border-color: #3b82f6;
}

.sauce-chip.selected {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.sauce-chip.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: #3b82f6;
}

.add-btn {
    background: #3b82f6;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
    flex-shrink: 0;
}

.add-btn:hover {
    transform: scale(1.05);
}

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

.qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0f1c31;
    padding: 6px 12px;
    border-radius: 20px;
}

.qty-btn {
    background: #3b82f6;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #2563eb;
}

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

.qty-display {
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.favorite-btn {
    background: rgba(0,0,0,0.5);
    border: none;
    color: #64748b;
    cursor: pointer;
    position: absolute;
    top: 16px;
    left: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 1;
}

.favorite-btn:hover {
    background: rgba(0,0,0,0.7);
}

.favorite-btn.active {
    color: #ef4444;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-icon {
    margin-bottom: 15px;
}

/* Cart Bottom Bar */
.cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1a2942 0%, #0f1c31 100%);
    padding: 16px 20px;
    display: none;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.cart-bar.show {
    display: flex;
    transform: translateY(0);
}

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

.cart-icon-wrapper {
    background: #3b82f6;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.cart-details {
    flex: 1;
}

.cart-items-text {
    font-size: 13px;
    color: #94a3b8;
}

.cart-total {
    font-size: 20px;
    font-weight: 800;
    color: white;
}

.view-cart-btn {
    background: #10b981;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(16,185,129,0.3);
    transition: all 0.2s;
}

.view-cart-btn:hover {
    background: #059669;
}

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

/* Cart Panel */
.cart-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a1628;
    z-index: 200;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.cart-panel.open {
    transform: translateY(0);
}

.cart-header {
    background: linear-gradient(135deg, #1a2942 0%, #0f1c31 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-btn:active {
    opacity: 0.7;
}

.cart-title {
    font-size: 18px;
    font-weight: 700;
}

.order-number {
    font-size: 13px;
    color: #3b82f6;
    font-weight: 600;
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
}

.cart-item {
    background: #1a2942;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cart-item-name {
    font-weight: 700;
    font-size: 15px;
    flex: 1;
}

.cart-delete {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-delete:active {
    opacity: 0.7;
}

.cart-item-option {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 10px;
}

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

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: #3b82f6;
}

.cart-item-notes {
    margin-top: 10px;
}

.cart-item-notes textarea {
    width: 100%;
    background: #0f1c31;
    border: 1px solid #2d3f5f;
    color: white;
    padding: 8px;
    border-radius: 8px;
    font-size: 12px;
    resize: none;
    font-family: 'Inter', sans-serif;
}

.cart-item-notes textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.cart-summary {
    background: #1a2942;
    padding: 20px;
    border-top: 1px solid #2d3f5f;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.summary-row.total {
    font-size: 20px;
    font-weight: 800;
    color: white;
    padding-top: 12px;
    border-top: 1px solid #2d3f5f;
}

.checkout-btn {
    width: 100%;
    background: #10b981;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(16,185,129,0.3);
    transition: all 0.2s;
}

.checkout-btn:hover {
    background: #059669;
}

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

.checkout-btn:disabled {
    background: #475569;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Checkout Modal */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.checkout-modal.show {
    display: flex;
    opacity: 1;
}

.checkout-content {
    background: #1a2942;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.checkout-header {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-input {
    width: 100%;
    padding: 12px;
    background: #0f1c31;
    border: 1px solid #2d3f5f;
    color: white;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.location-btn {
    width: 100%;
    background: transparent;
    border: 2px dashed #10b981;
    color: #10b981;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.location-btn:hover {
    background: rgba(16,185,129,0.1);
}

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

.location-info {
    margin-top: 10px;
    font-size: 12px;
    color: #10b981;
}

.payment-options {
    display: grid;
    gap: 12px;
}

.payment-option {
    background: #0f1c31;
    border: 2px solid #2d3f5f;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-option:hover {
    border-color: #3b82f6;
}

.payment-option.selected {
    border-color: #3b82f6;
    background: rgba(59,130,246,0.1);
}

.payment-radio {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.payment-info {
    flex: 1;
}

.payment-title {
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-desc {
    font-size: 12px;
    color: #94a3b8;
}

.transfer-info {
    background: #0f1c31;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    display: none;
}

.transfer-info.show {
    display: block;
}

.transfer-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #2d3f5f;
}

.transfer-row:last-child {
    border: none;
}

.transfer-label {
    color: #94a3b8;
    font-size: 13px;
}

.transfer-value {
    font-weight: 600;
    font-size: 14px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.modal-btn {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-cancel {
    background: #475569;
    color: white;
}

.btn-cancel:hover {
    background: #334155;
}

.btn-confirm {
    background: #10b981;
    color: white;
}

.btn-confirm:hover {
    background: #059669;
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a1628;
    z-index: 400;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.success-modal.show {
    display: flex;
    opacity: 1;
}

.success-content {
    text-align: center;
    max-width: 500px;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease;
}

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

.success-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.success-message {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 30px;
}

.success-order-id {
    background: #1a2942;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.success-order-label {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 5px;
}

.success-order-number {
    font-size: 24px;
    font-weight: 800;
    color: #3b82f6;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.success-btn {
    padding: 14px 32px;
    border: none;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.success-btn.primary {
    background: #10b981;
    color: white;
}

.success-btn.primary:hover {
    background: #059669;
}

.success-btn.secondary {
    background: #475569;
    color: white;
}

.success-btn.secondary:hover {
    background: #334155;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(16,185,129,0.4);
    z-index: 500;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    opacity: 1;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-header {
        min-height: 260px;
        padding: 25px 20px;
    }
    
    .restaurant-logo {
        width: 100px;
        height: 100px;
        font-size: 45px;
    }
    
    .restaurant-name {
        font-size: 20px;
    }
    
    .product-card {
        padding: 14px;
    }
    
    .product-image {
        width: 90px;
        height: 90px;
    }
    
    .checkout-content {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .cart-bar {
        padding: 12px 15px;
    }
    
    .cart-icon-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .cart-total {
        font-size: 18px;
    }
    
    .view-cart-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}
