:root {
    --bg-color: #fcfcfc;
    --card-bg: #ffffff;
    --text-main: #2d3748;
    --text-muted: #718096;
    --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.08);
    --primary: #1a202c;
    /* Color por defecto, cambiará con JS */
    --primary-shadow: rgba(26, 32, 44, 0.4);
    /* Sombra dinámica, cambiará con JS */
    --accent: #4ade80;
    --radius: 16px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    scroll-behavior: smooth;
}

.hidden {
    display: none !important;
}

.booking-container {
    max-width: 600px;
    width: 100%;
}

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

.booking-header h1 {
    font-weight: 300;
    font-size: 2.2rem;
}

.booking-header p {
    color: var(--text-muted);
    margin-top: 5px;
}

/* Tarjetas de Producto */
.services-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.service-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.service-card.selected {
    border-color: var(--primary);
    box-shadow: 0 5px 20px var(--primary-shadow);
}

.service-brand {
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.service-price {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 10px 0;
    color: var(--text-main);
}

.btn-more {
    background: none;
    border: none;
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.85rem;
}

.service-desc {
    display: none;
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    border-top: 1px solid #edf2f7;
    padding-top: 10px;
}

/* Calendario */
.calendar-wrapper {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 25px;
    margin-bottom: 30px;
    animation: fadeIn 0.6s ease;
}

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

.calendar-header button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 5px 15px;
    border-radius: 8px;
    transition: 0.2s;
}

.calendar-header button:hover {
    background: #519400;
}

.calendar-days-names {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.cal-day:hover:not(.disabled) {
    background-color: #edf2f7;
    transform: scale(1.1);
}

.cal-day.disabled {
    color: #cbd5e0;
    cursor: not-allowed;
    text-decoration: line-through;
}

.cal-day.selected {
    background-color: var(--primary);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 4px 12px var(--primary-shadow);
}

/* Horas */
.hours-wrapper {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
    animation: slideDown 0.4s ease;
    transform-origin: top;
}

.hours-wrapper h3 {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.hour-btn {
    padding: 12px;
    background: #f7fafc;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
}

.hour-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.hour-btn.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-shadow);
}

/* Formulario */
.form-wrapper {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    animation: slideDown 0.4s ease;
    margin-bottom: 40px;
}

.form-wrapper h3 {
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.input-group {
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background: #fbfbfc;
}

.input-group input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px var(--primary-shadow);
}

.success-msg {
    text-align: center;
    padding: 20px;
    color: var(--primary);
    /* Toma el color dinámico (Morado o Verde) */
    font-weight: bold;
    background: transparent;
    /* Quitamos el fondo verde estático */
    border: 2px dashed var(--primary);
    /* Borde sutil del color de la marca */
    border-radius: 12px;
    margin-top: 15px;
}

/* --- BOTÓN FINAL MODERNO --- */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-top: 20px;
    box-shadow: 0 8px 20px var(--primary-shadow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px var(--primary-shadow);
    filter: brightness(1.15);
}

.btn-submit:active {
    transform: translateY(2px);
    box-shadow: 0 4px 10px var(--primary-shadow);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: translateY(0);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scaleY(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}