/* Food Order System - Frontend Styles */

.food-order-container {
    max-width: 480px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border: 1px solid #f0f0f0;
}

/* Header mejorado */
.food-header {
    background: linear-gradient(135deg, #7F54B3 0%, #96588A 100%);
    padding: 32px 24px;
    color: white;
    position: relative;
    overflow: hidden;
}

.food-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    opacity: 0.6;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.brand-icon i {
    font-size: 26px;
    color: white;
}

.brand-text h1 {
    margin: 0;
    color: #ffff;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-text p {
    margin: 4px 0 0 0;
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

.status-section {
    text-align: right;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.status-open {
    background: #1fc130;
    color: #ffffff;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-closed {
    background: rgba(239, 68, 68, 0.2);
    color: #ffffff;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.schedule-info, .manual-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 18px;
    opacity: 0.9;
}

/* Estado cerrado */
.closed-state {
    padding: 48px 24px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.closed-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-size: 32px;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.2);
}

.closed-state h2 {
    margin: 0 0 12px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.closed-state p {
    margin: 0 0 32px 0;
    color: #6b7280;
    line-height: 1.6;
}



/* Progress Steps */
.progress-container {
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e5e7eb;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-item.active .step-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.step-item span {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    transition: color 0.3s ease;
}

.step-item.active span {
    color: #667eea;
    font-weight: 600;
}

.step-connector {
    height: 3px;
    background: #e5e7eb;
    flex: 1;
    margin: 0 8px;
    margin-bottom: 24px;
    border-radius: 2px;
}

.step-item.active + .step-connector {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* Form Container */
.form-container {
    padding: 32px 24px;
    background: #ffffff;
}

.step-content {
    animation: slideIn 0.4s ease-out;
    min-height: 300px;
}

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

.step-header {
    text-align: center;
    margin-bottom: 32px;
}

.step-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e5e7eb 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7F54B3;
    font-size: 28px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.step-header h2 {
    margin: 0 0 8px 0;
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
    background: linear-gradient(135deg, #7F54B3 0%, #96588A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-header p {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.5;
}

/* Form Styles */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
    font-size: 15px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 18px 18px 18px 55px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
    font-weight: 500;
}

.input-wrapper input[type="date"] {
    padding: 18px 18px 18px 55px;
    color: #6b7280;
    font-family: inherit;
}

.input-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 18px;
    color: #6b7280;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.input-wrapper input[type="date"]:focus {
    color: #1f2937;
}

.input-wrapper input[type="date"]:valid {
    color: #1f2937;
}

/* Placeholder mejorado para campo de fecha vacío */
.input-wrapper input[type="date"]:invalid {
    color: #9ca3af;
}

.input-wrapper input[type="date"]:invalid::-webkit-datetime-edit {
    color: transparent;
}

.input-wrapper input[type="date"]:invalid::before {
    content: "Selecciona una fecha";
    color: #9ca3af;
    font-weight: 400;
    position: absolute;
    left: 0;
    top: 0;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.input-wrapper input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.input-wrapper input.success {
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-wrapper input:focus + .input-icon {
    color: #667eea;
}

.textarea-wrapper {
    position: relative;
}

.textarea-wrapper textarea {
    width: 100%;
    padding: 18px 18px 18px 55px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 16px;
    transition: all 0.3s ease;
    resize: none;
    font-family: inherit;
    box-sizing: border-box;
    font-weight: 500;
    min-height: 120px;
}

.textarea-wrapper textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.textarea-icon {
    position: absolute;
    left: 18px;
    top: 18px;
    color: #9ca3af;
    font-size: 18px;
    pointer-events: none;
}

.help-text {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 24px;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
}

.btn-outline {
    background: transparent;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    box-shadow: none;
}

.btn-outline:hover:not(:disabled):not(.selected) {
    background: #f9fafb;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
}

.btn-outline.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    animation: pulse-selection 0.6s ease-out;
}

.btn-block {
    width: 100%;
}

.btn .loading {
    animation: spin 1s linear infinite;
}

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

@keyframes pulse-selection {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Employee Card */
.employee-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #22c55e;
    border-radius: 20px;
    margin-top: 24px;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.15);
}

.employee-avatar {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.employee-details {
    flex: 1;
}

.employee-details h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.employee-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.meta-item i {
    width: 16px;
    color: #22c55e;
}

.employee-status {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

/* Error Card */
.error-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #ef4444;
    border-radius: 20px;
    margin-top: 24px;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.15);
}

.error-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.error-content h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    color: #dc2626;
}

.error-content p {
    margin: 0;
    font-size: 14px;
    color: #7f1d1d;
    font-weight: 500;
}

/* Combos Grid */
.combos-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.combo-option {
    cursor: pointer;
}

.combo-radio {
    display: none;
}

.combo-card {
    padding: 24px;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.combo-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.combo-radio:checked + .combo-card {
    border-color: #667eea;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

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

.combo-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.combo-check {
    width: 28px;
    height: 28px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.combo-radio:checked + .combo-card .combo-check {
    opacity: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.3);
}

.combo-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.combo-item {
    padding: 8px 14px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    font-weight: 500;
}

.combo-radio:checked + .combo-card .combo-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* Type Grid */
.type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.type-option {
    cursor: pointer;
}

.type-radio {
    display: none;
}

.type-card {
    padding: 28px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.type-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.type-radio:checked + .type-card {
    border-color: #667eea;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.type-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #6b7280;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.type-radio:checked + .type-card .type-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.type-card h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.type-card p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    font-weight: 500;
}

/* Date Info Banner */
.date-info-banner {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #93c5fd;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #1e40af;
    font-weight: 500;
}

.date-info-banner i {
    color: #3b82f6;
    font-size: 14px;
}

/* Date Quick Buttons mejorados */
.date-quick-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.date-quick-buttons .btn-outline {
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.date-quick-buttons .btn-outline i {
    font-size: 16px;
}

.date-quick-buttons .btn-outline span {
    font-size: 13px;
    line-height: 1.2;
}

.date-quick-buttons .btn-outline:not(.selected):hover {
    border-color: #a5b4fc;
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-1px);
}

.date-quick-buttons .btn-recommended {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
    color: #92400e;
    position: relative;
}

.date-quick-buttons .btn-recommended::before {
    content: '⭐';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 12px;
    background: #f59e0b;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.date-quick-buttons .btn-recommended:hover {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    border-color: #d97706;
    color: #78350f;
    transform: translateY(-1px);
}

/* Separador visual antes del campo de fecha manual */
.form-group:has(input[type="date"])::before {
    content: '';
    display: block;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e5e7eb 50%, transparent 100%);
    margin: 0 auto 16px;
}

.form-group:has(input[type="date"]) label {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 12px;
}

/* Summary Card */
.summary-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.summary-card h3 {
    margin: 0 0 24px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.summary-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 14px;
}

.summary-value {
    font-weight: 700;
    color: #1f2937;
    font-size: 16px;
}

/* Success State mejorado */
.success-content {
    text-align: center;
    padding: 32px 0;
}

.thank-you-message {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin: 30px 0;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
    animation: slideInUp 0.6s ease-out;
}

.thank-you-icon {
    font-size: 48px;
    margin-bottom: 15px;
    animation: heartbeat 1.5s infinite;
}

.thank-you-message h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.thank-you-message p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

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

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

.success-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 28px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    animation: successPulse 2s ease-out;
    box-shadow: 0 12px 40px rgba(34, 197, 94, 0.3);
}

@keyframes successPulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-content h2 {
    margin: 0 0 16px 0;
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-content p {
    margin: 0 0 32px 0;
    color: #6b7280;
    line-height: 1.6;
    font-weight: 500;
}

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

/* Botón de nuevo pedido mejorado */
#new-order-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-weight: 700;
    font-size: 16px;
    padding: 18px 24px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

#new-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

#new-order-btn:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

#new-order-btn:hover:before {
    width: 300px;
    height: 300px;
}



/* Navigation */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

/* Efectos adicionales */
.button-clicked {
    transform: scale(0.98) !important;
    transition: transform 0.1s ease !important;
}

.hover-effect {
    border-color: #a5b4fc !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.1) !important;
}

/* Responsive */
@media (max-width: 480px) {
    .food-order-container {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .form-container {
        padding: 24px 16px;
    }
    
    .food-header {
        padding: 24px 16px;
    }
    
    .type-grid {
        grid-template-columns: 1fr;
    }
    
    .date-quick-buttons {
        grid-template-columns: 1fr;
    }
    
    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .brand-icon {
        width: 50px;
        height: 50px;
    }
    
    .brand-icon i {
        font-size: 22px;
    }
    
    .brand-text h1 {
        font-size: 22px;
    }
    
    .step-content {
        min-height: 250px;
    }
    
    .input-wrapper input,
    .textarea-wrapper textarea {
        font-size: 16px; /* Evita zoom en iOS */
    }
}

/* Hidden utility */
.hidden {
    display: none !important;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus visible para navegación por teclado */
.btn:focus-visible,
.combo-option:focus-visible,
.type-option:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Estados de carga mejorados */
.btn:disabled .loading {
    display: inline-block;
}

.btn:disabled .btn-text,
.btn:disabled .btn-icon {
    display: none;
}

/* Sección de pedidos especiales */
.special-order-section {
    margin-top: 24px;
    padding: 20px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    text-align: center;
}

.special-order-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.special-order-header i {
    color: #f59e0b;
    font-size: 24px;
}

.special-order-header h3 {
    margin: 0;
    color: #d97706;
    font-size: 20px;
    font-weight: 700;
}

.special-order-section p {
    margin-bottom: 16px;
    color: #4b5563;
    font-size: 15px;
}

#special-order-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

#special-order-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

#special-order-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.5);
}

#special-order-btn:active {
    transform: scale(0.98);
}

/* Indicador de pedido especial */
.special-order-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    animation: pulse 2s infinite;
}

.special-order-indicator i {
    font-size: 10px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 2px 12px rgba(245, 158, 11, 0.6);
    }
    100% {
        box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    }
}

/* ========================================
   TEMPORIZADOR PROFESIONAL DE CIERRE
   ======================================== */

.countdown-timer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-width: 180px;
    max-width: 220px;
}

.countdown-timer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.countdown-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.countdown-content i {
    font-size: 16px;
    opacity: 0.8;
}

.countdown-timer.countdown-normal {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(34, 197, 94, 0.3);
    color: #166534;
}

.countdown-timer.countdown-normal .countdown-content i {
    color: #22c55e;
}

.countdown-timer.countdown-warning {
    background: rgba(254, 243, 199, 0.95);
    border-color: rgba(245, 158, 11, 0.4);
    color: #92400e;
    animation: pulse-warning 2s infinite;
}

.countdown-timer.countdown-warning .countdown-content i {
    color: #f59e0b;
}

.countdown-timer.countdown-critical {
    background: rgba(254, 226, 226, 0.95);
    border-color: rgba(239, 68, 68, 0.4);
    color: #991b1b;
    animation: pulse-critical 1.5s infinite;
}

.countdown-timer.countdown-critical .countdown-content i {
    color: #ef4444;
}

/* Animaciones para estados críticos */
@keyframes pulse-warning {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(245, 158, 11, 0.6);
    }
}

@keyframes pulse-critical {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(239, 68, 68, 0.7);
    }
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .countdown-timer {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
        padding: 10px 14px;
    }
    
    .countdown-content {
        font-size: 13px;
        justify-content: center;
    }
    
    .countdown-content i {
        font-size: 15px;
    }
}

/* Asegurar que el temporizador esté siempre visible */
.countdown-timer {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}