/* =========================================
   STYLE.CSS - LA CALMA STUDIO (Frontend)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Paleta adaptada al logo de La Calma */
    --color-bg-main: #050505; /* Negro profundo para el fondo */
    --color-bg-card: #111111; /* Gris casi negro para las tarjetas */
    --color-bg-input: #1a1a1a;
    
    --color-primary: #38E0FF; /* Cyan vibrante del logo */
    --color-primary-hover: #1CBED9;
    --color-primary-glow: rgba(56, 224, 255, 0.25);
    
    --color-text-main: #ffffff; /* Blanco puro del texto del logo */
    --color-text-muted: #94a3b8;
    --color-border: #222222;
    
    --gradient-primary: linear-gradient(135deg, #38E0FF 0%, #0096C7 100%);
    --shadow-soft: 0 15px 35px -5px rgba(0,0,0,0.8);
    --shadow-glow: 0 0 25px var(--color-primary-glow);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Fondo decorativo sutil (Brillo Cyan) */
.background-glow {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* Header */
.header {
    padding: 60px 20px 40px;
    text-align: center;
}

.header-content {
    max-width: 800px;
    margin: 0 auto;
}

.header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--color-text-main);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.header .icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    filter: drop-shadow(0 0 10px var(--color-primary-glow));
}

.header p {
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Container */
.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Form Layout */
.booking-form {
    background-color: var(--color-bg-card);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

/* Borde superior decorativo */
.booking-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-header p {
    color: var(--color-text-muted);
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--color-border);
}

.form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

.sub-label {
    display: block;
    margin-bottom: 15px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    background-color: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-control::placeholder {
    color: #475569;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #222;
    box-shadow: 0 0 0 3px var(--color-primary-glow);
}

/* Calendario */
::-webkit-calendar-picker-indicator {
    filter: invert(1) sepia(1) saturate(5) hue-rotate(175deg);
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition-fast);
}
::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.service-card {
    background-color: var(--color-bg-input);
    padding: 22px;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-border);
    transition: var(--transition-smooth);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.service-card:hover {
    border-color: #444;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.service-card.selected {
    border-color: var(--color-primary);
    background-color: rgba(56, 224, 255, 0.05);
    box-shadow: var(--shadow-glow);
}

.service-info h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.service-info .duration {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    display: block;
}

.service-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.service-card .check-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--color-primary);
    color: #000;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    opacity: 0;
    transition: var(--transition-smooth);
    box-shadow: 0 0 10px var(--color-primary-glow);
}

.service-card.selected .check-icon {
    opacity: 1;
    top: -10px;
    right: -10px;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    background: var(--color-bg-input);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--color-border);
    color: var(--color-text-muted);
}

.time-slot {
    padding: 12px;
    background-color: var(--color-bg-input);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 500;
    color: var(--color-text-muted);
}

.time-slot:hover:not(.disabled) {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: rgba(56, 224, 255, 0.05);
}

.time-slot.selected {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #000;
    font-weight: 700;
    box-shadow: 0 5px 15px var(--color-primary-glow);
}

.time-slot.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background-color: #0a0a0a;
}

/* Buttons */
.form-actions {
    margin-top: 40px;
}

.btn {
    display: block;
    width: 100%;
    padding: 18px 40px;
    background: var(--gradient-primary);
    color: #000;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--color-primary-glow);
}

.btn:active {
    transform: translateY(0);
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 30px;
    font-weight: 500;
    display: none;
    animation: fadeIn 0.3s ease;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid #10b981;
    color: #34d399;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #f87171;
}

/* Footer */
.footer {
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg-card);
    padding: 40px 20px;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer .logo {
    color: var(--color-text-main);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer p {
    color: var(--color-text-muted);
}

.footer .phone {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--color-primary);
    font-size: 1.1rem;
}

.footer .copyright {
    font-size: 0.9rem;
}

/* Loading Spinner */
.loading {
    display: none;
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-bg-input);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 40px 15px 20px;
    }
    
    .header h1 {
        font-size: 2.2rem;
    }
    
    .booking-form {
        padding: 30px 20px;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .input-grid {
        grid-template-columns: 1fr;
    }
    
    .time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   WIZARD MULTI-STEP STYLES (Rediseñado)
   ========================================= */
.booking-form-container {
    background-color: var(--color-bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
    position: relative;
}

.booking-form-container .booking-form {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}
.booking-form-container .booking-form::before {
    display: none; /* Quitamos el borde superior si está en el wizard */
}

/* Barra de progreso */
.progress-container {
    position: relative;
    margin-bottom: 50px;
    padding: 0 10px;
}

.progress-bar {
    position: absolute;
    top: 50%;
    left: 20px;
    right: 20px;
    height: 4px;
    background-color: var(--color-border);
    transform: translateY(-50%);
    z-index: 1;
    border-radius: 2px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%; 
    background: var(--gradient-primary);
    transition: width 0.4s ease;
    border-radius: 2px;
    box-shadow: 0 0 10px var(--color-primary-glow);
}

/* Indicadores de pasos */
.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.step-indicator {
    width: 45px;
    height: 45px;
    background-color: var(--color-bg-input);
    border: 2px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all 0.4s ease;
}

.step-indicator.active {
    border-color: var(--color-primary);
    background-color: var(--color-bg-card);
    color: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary-glow);
    transform: scale(1.1);
}

.step-indicator.completed {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #000;
}

/* Ocultar/Mostrar Pasos */
.form-step {
    display: none;
    animation: fadeInStep 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.form-step.active {
    display: block;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Botones de navegación */
.form-actions {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.form-actions.right {
    justify-content: flex-end;
}

.form-actions.split {
    justify-content: space-between;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-text-main);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(56, 224, 255, 0.05);
    box-shadow: none;
}

.btn-container {
    display: flex;
    align-items: center;
    gap: 15px;
}