/* ============================================
 * Cita previa — estilos públicos
 * ============================================ */

body {
    background: #f4f6f8;
    color: #333;
}

.cita-header {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cita-main {
    min-height: calc(100vh - 200px);
}

.cita-footer {
    background: #fff;
    border-top: 1px solid #dee2e6;
    margin-top: 2rem;
}

/* === Stepper === */
.cita-stepper {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: flex;
    justify-content: space-between;
    counter-reset: step;
}

.cita-stepper .step {
    flex: 1;
    text-align: center;
    position: relative;
    padding-top: 40px;
    color: #adb5bd;
    font-size: 0.9rem;
}

.cita-stepper .step span {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    line-height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #adb5bd;
    color: #adb5bd;
    font-weight: bold;
}

.cita-stepper .step.active span {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.cita-stepper .step.active {
    color: #0d6efd;
    font-weight: 600;
}

.cita-stepper .step.done span {
    background: #198754;
    border-color: #198754;
    color: #fff;
}
.cita-stepper .step.done {
    color: #198754;
}

.cita-stepper .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: #dee2e6;
}

.cita-stepper .step.done:not(:last-child)::after {
    background: #198754;
}

/* === Pasos === */
.paso {
    display: none;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.paso.active {
    display: block;
}

.botones-wizard {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* === Cards de servicio === */
.servicio-card {
    border: 2px solid #dee2e6;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-align: left;
    width: 100%;
    padding: 0;
}

.servicio-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 2px 8px rgba(13,110,253,0.15);
}

/* === Calendario inline === */
.cita-calendar {
    max-width: 380px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
    user-select: none;
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cal-title {
    font-weight: 600;
    text-transform: capitalize;
    font-size: 1.05rem;
}

.cal-nav {
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    color: #333;
}
.cal-nav:hover:not(:disabled) {
    background: #e7f1ff;
    border-color: #0d6efd;
}
.cal-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

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

.cal-dow {
    margin-bottom: 6px;
    font-size: 0.7rem;
    text-align: center;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
}

.cal-cell {
    aspect-ratio: 1;
    border: 1px solid transparent;
    background: #f8f9fa;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #212529;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s, border-color 0.1s, color 0.1s;
    padding: 0;
}

button.cal-cell:hover {
    background: #cfe2ff;
    border-color: #0d6efd;
}

.cal-cell.cal-today {
    font-weight: bold;
    border-color: #0d6efd;
}

.cal-cell.cal-selected {
    background: #0d6efd;
    color: #fff !important;
    border-color: #0d6efd;
}

.cal-cell.cal-disabled {
    background: transparent;
    color: #ccc;
    cursor: not-allowed;
}

.cal-cell.cal-empty {
    background: transparent;
    cursor: default;
    border: none;
}

/* === Slots === */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 0.5rem;
}

.slots-grid .slot-btn {
    padding: 0.75rem 0.5rem;
    font-size: 1.05rem;
    font-weight: 500;
}

/* === Resumen === */
.resumen-cita {
    background: #e7f1ff;
    border-left: 4px solid #0d6efd;
    padding: 0.75rem 1rem;
    border-radius: 4px;
}

/* Stepper en móvil */
@media (max-width: 576px) {
    .cita-stepper .step {
        font-size: 0.7rem;
    }
    .cita-stepper .step:not(:last-child)::after {
        width: 70%;
    }
}
