/* public/assets/css/booking.css */

:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.booking-container {
    width: 100%;
    max-width: 620px;
    background: var(--card-bg);
    border-radius: 0 !important;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.08);
    padding: 36px;
    margin-top: 40px;
    margin-bottom: 40px;
    align-self: flex-start;
}

.booking-header {
    text-align: center;
    margin-bottom: 30px;
}

#company-logo-container {
    width: 72px;
    height: 72px;
    border-radius: 0 !important;
    background: var(--primary);
    margin: 0 auto 16px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: none;
}

.company-icon-placeholder {
    color: white;
    font-size: 30px;
}

#company-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Progress */
.progress-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 35px;
    padding: 0 10px;
}

.progress-line {
    position: absolute;
    top: 15px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.progress-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    z-index: 2;
    transition: width 0.3s ease;
}

.progress-step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
}

.progress-step.active {
    color: var(--primary);
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 0 !important;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
    transition: all 0.25s ease;
    font-variant-numeric: tabular-nums;
}

.progress-step.active .step-circle {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.progress-step span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Steps */
.step-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.step-content.active {
    display: block;
}

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

.step-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}

.step-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 22px;
}

/* Service Cards */
.service-card {
    border: 1px solid var(--border-color);
    border-radius: 0 !important;
    padding: 16px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-card:hover {
    border-color: var(--primary);
    background-color: rgba(0, 0, 0, 0.02);
}

.service-card.selected {
    border-color: var(--primary);
    background-color: rgba(20, 184, 166, 0.08);
    box-shadow: inset 3px 0 0 var(--primary);
}

.service-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}

.service-info {
    font-size: 13px;
    color: var(--text-muted);
}

.service-price {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 0 !important;
    font-size: 15px;
    outline: none;
    transition: all 0.2s;
    background: var(--bg-color);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

/* Time Slots */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.slot-btn {
    padding: 12px 0;
    border: 1px solid var(--border-color);
    border-radius: 0 !important;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    transition: all 0.2s ease;
    font-variant-numeric: tabular-nums;
}

.slot-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(20, 184, 166, 0.04);
}

.slot-btn.selected {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.slot-btn:disabled {
    background: var(--bg-color);
    color: #cbd5e1;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 0.6;
}

/* Summary Box */
.summary-box {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 0 !important;
    padding: 18px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.summary-item i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

/* Buttons */
.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 14px;
}

.btn {
    padding: 12px 24px;
    border-radius: 0 !important;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--text-muted);
}

.alert {
    padding: 12px 16px;
    border-radius: 0 !important;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid var(--danger);
}


/* Temas adicionales */
[data-theme="grey"] {
    --bg-color: #374151;
    --card-bg: #4b5563;
    --text-main: #f3f4f6;
    --text-muted: #d1d5db;
    --border-color: #6b7280;
}

/* ------------------ OVERRIDES ESPECÍFICOS POR TEMA DE RESERVAS (BOOKING) ------------------ */

/* Classic Paper */
body.theme-booking-classic-paper {
    background-color: #fdf8e9 !important;
}
body.theme-booking-classic-paper .booking-container {
    background: transparent !important;
    box-shadow: none !important;
    border: 2px dashed rgba(0,0,0,0.1);
    border-radius: 0;
}
body.theme-booking-classic-paper *:not([class*="fa-"]) {
    font-family: 'Playfair Display', serif !important;
}
body.theme-booking-classic-paper h2, body.theme-booking-classic-paper h3 {
    text-transform: uppercase;
    letter-spacing: 1px;
}
body.theme-booking-classic-paper .btn-primary {
    background: #8c2518;
    color: white;
    border-radius: 0;
}

/* Modern Brutalism */
body.theme-booking-modern-brutalism {
    background-color: #ffffff !important;
}
body.theme-booking-modern-brutalism .booking-container {
    background: #ffffff !important;
    border: 4px solid #000;
    border-radius: 0;
    box-shadow: 8px 8px 0px 0px #000 !important;
}
body.theme-booking-modern-brutalism *:not([class*="fa-"]) {
    font-family: 'Space Mono', monospace !important;
    color: #000 !important;
}
body.theme-booking-modern-brutalism .step-circle {
    border: 2px solid #000;
    border-radius: 0;
    background: #000;
    color: #fff !important;
    box-shadow: 3px 3px 0px 0px #000;
}
body.theme-booking-modern-brutalism .selection-card {
    border: 2px solid #000;
    border-radius: 0;
}
body.theme-booking-modern-brutalism .selection-card.selected {
    box-shadow: 4px 4px 0px 0px #000;
}
body.theme-booking-modern-brutalism .btn-primary {
    background: #000 !important;
    color: #fff !important;
    border-radius: 0;
    border: 2px solid #000;
}

/* Retro Diner */
body.theme-booking-retro-diner {
    background-color: #ffe4e1 !important;
}
body.theme-booking-retro-diner .booking-container {
    border-radius: 40px !important;
    border: 4px solid #ffffff;
    box-shadow: 0 15px 30px rgba(0,188,212,0.2) !important;
}
body.theme-booking-retro-diner *:not([class*="fa-"]) {
    font-family: 'Righteous', cursive !important;
}
body.theme-booking-retro-diner h2 {
    color: #ff4081 !important;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.1);
}
body.theme-booking-retro-diner .step-circle {
    background: #00bcd4;
    border-color: #00bcd4;
}
body.theme-booking-retro-diner .btn-primary {
    background: #ff4081 !important;
    border-radius: 30px;
}
body.theme-booking-retro-diner .selection-card {
    border-radius: 20px;
}

/* Neon Night */
body.theme-booking-neon-night {
    background-color: #090a0f !important;
}
body.theme-booking-neon-night .booking-container {
    background: #12141c !important;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1), inset 0 0 10px rgba(255, 0, 127, 0.05) !important;
}
body.theme-booking-neon-night *:not([class*="fa-"]) {
    font-family: 'Space Mono', monospace !important;
    color: #fff !important;
}
body.theme-booking-neon-night h2 {
    color: #00f0ff !important;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}
body.theme-booking-neon-night .selection-card {
    border-color: rgba(255, 0, 127, 0.3);
    background: transparent;
}
body.theme-booking-neon-night .selection-card.selected {
    border-color: #ff007f;
    box-shadow: 0 0 15px rgba(255, 0, 127, 0.4);
}
body.theme-booking-neon-night .btn-primary {
    background: transparent !important;
    border: 1px solid #ff007f;
    color: #ff007f !important;
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
}
body.theme-booking-neon-night .btn-primary:hover {
    background: #ff007f !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.6);
}

/* 6. Chalkboard */
body.theme-booking-chalkboard {
    background-color: #2c3e50 !important;
}
body.theme-booking-chalkboard .booking-container {
    background: #34495e !important;
    border: 3px dashed #7f8c8d;
    box-shadow: none !important;
}
body.theme-booking-chalkboard *:not([class*="fa-"]) {
    font-family: 'Caveat', cursive !important;
    color: #f1c40f !important;
}
body.theme-booking-chalkboard h2 {
    font-size: 2rem !important;
    text-align: center;
}
body.theme-booking-chalkboard .step-circle {
    background: transparent;
    border: 2px dashed #f1c40f;
    color: #f1c40f !important;
    font-size: 1.5rem !important;
}
body.theme-booking-chalkboard .form-control {
    background: transparent !important;
    border: 1px solid #f1c40f;
    color: #fff !important;
}
body.theme-booking-chalkboard .btn-primary {
    background: transparent !important;
    border: 2px dashed #f1c40f;
    color: #f1c40f !important;
}

/* 7. Minimal Pearl */
body.theme-booking-minimal-pearl {
    background-color: #f9f9f9 !important;
}
body.theme-booking-minimal-pearl .booking-container {
    background: #ffffff !important;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.02) !important;
}
body.theme-booking-minimal-pearl *:not([class*="fa-"]) {
    font-family: 'Outfit', sans-serif !important;
    color: #333 !important;
}
body.theme-booking-minimal-pearl .step-circle {
    background: #f0f0f0;
    color: #333 !important;
    border: none;
}
body.theme-booking-minimal-pearl .btn-primary {
    background: #333 !important;
    color: #fff !important;
    border-radius: 4px;
}

/* 8. Ruby Wine */
body.theme-booking-ruby-wine {
    background-color: #fcf8f8 !important;
}
body.theme-booking-ruby-wine .booking-container {
    background: #fff !important;
    border-top: 5px solid #722f37;
    box-shadow: 0 10px 20px rgba(114, 47, 55, 0.1) !important;
}
body.theme-booking-ruby-wine *:not([class*="fa-"]) {
    font-family: 'Playfair Display', serif !important;
    color: #4a1f24 !important;
}
body.theme-booking-ruby-wine .step-circle {
    background: #722f37;
    color: #fff !important;
    border: none;
}
body.theme-booking-ruby-wine .btn-primary {
    background: #722f37 !important;
    color: #fff !important;
    border-radius: 0;
}

/* 9. Ocean Blue */
body.theme-booking-ocean-blue {
    background-color: #e0f2fe !important;
}
body.theme-booking-ocean-blue .booking-container {
    background: #ffffff !important;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.1) !important;
}
body.theme-booking-ocean-blue *:not([class*="fa-"]) {
    font-family: 'Outfit', sans-serif !important;
    color: #0c4a6e !important;
}
body.theme-booking-ocean-blue .step-circle {
    background: #0ea5e9;
    color: #fff !important;
    border: none;
}
body.theme-booking-ocean-blue .btn-primary {
    background: #0284c7 !important;
    color: #fff !important;
    border-radius: 20px;
}

/* 10. Organic Forest */
body.theme-booking-organic-forest {
    background-color: #f4f5f0 !important;
}
body.theme-booking-organic-forest .booking-container {
    background: #ffffff !important;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05) !important;
}
body.theme-booking-organic-forest *:not([class*="fa-"]) {
    font-family: 'Inter', sans-serif !important;
    color: #3f6212 !important;
}
body.theme-booking-organic-forest .step-circle {
    background: #65a30d;
    color: #fff !important;
    border: none;
}
body.theme-booking-organic-forest .btn-primary {
    background: #4d7c0f !important;
    color: #fff !important;
    border-radius: 8px;
}
