/* ══════════════════════════════════════════════════════
   KronoBook v1.3.0 — CSS
   ══════════════════════════════════════════════════════ */

:root {
    --rp-color-primary:       #1a1a1a;
    --rp-color-secondary:     #4f46e5;
    --rp-color-success:       #00a550;
    --rp-color-danger:        #cc0000;
    --rp-color-warning:       #f0a500;
    --rp-color-text:          #1a1a1a;
    --rp-color-bg:            #ffffff;
    --rp-color-border:        #e5e5e5;
    --rp-color-form-bg:       transparent;
    --rp-color-btn-continuar: #4f46e5;
    --rp-color-btn-confirmar: #1a1a1a;
    --rp-color-btn-text:      #ffffff;
    --rp-prof-foto-radius:    50%;
    --rp-border-radius:       12px;
    --rp-font-family:         inherit;
    /* Colores de mensajes de alerta */
    --rp-color-alert-text:    #721c24;
    --rp-color-alert-bg:      #f8d7da;
    --rp-color-alert-border:  #f5c6cb;
}

/* ── Wrapper ─────────────────────────────────────────── */
.rp-wrapper {
    max-width: 720px;
    margin: 0 auto;
    font-family: var(--rp-font-family);
    color: var(--rp-color-text);
    background: var(--rp-color-form-bg);  /* ← Editable desde ajustes */
    /* Hereda font-size del tema */
    font-size: inherit;
}

/* Layout compacto tiene max-width mayor pero respeta el background de ajustes */
.rp-wrapper.rp-layout-compacto {
    max-width: 900px;
    background: var(--rp-color-form-bg);  /* ← Respeta variable de ajustes */
}

/* Todos los elementos heredan la fuente */
.rp-wrapper *,
.rp-wrapper *::before,
.rp-wrapper *::after {
    font-family: var(--rp-font-family);
    box-sizing: border-box;
}

/* ══ BARRA DE PROGRESO ════════════════════════════════ */
.rp-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 10px 24px;
}

.rp-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.rp-progress-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--rp-color-border);
    background: var(--rp-color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #aaa;
    transition: all .3s;
}

.rp-progress-label {
    font-size: 11px;
    color: #aaa;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    transition: color .3s;
    max-width: 70px;
    line-height: 1.3;
}

.rp-progress-step.active .rp-progress-dot {
    background: var(--rp-color-primary);
    border-color: var(--rp-color-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.07);
}

.rp-progress-step.active .rp-progress-label {
    color: var(--rp-color-primary);
    font-weight: 700;
}

.rp-progress-step.completed .rp-progress-dot {
    background: var(--rp-color-success);
    border-color: var(--rp-color-success);
    color: #fff;
    font-size: 0;
}
.rp-progress-step.completed .rp-progress-dot::after {
    content: '✓';
    font-size: 15px;
}
.rp-progress-step.completed .rp-progress-label {
    color: var(--rp-color-success);
}

.rp-progress-line {
    flex: 1;
    height: 2px;
    background: var(--rp-color-border);
    margin: 0 4px;
    margin-bottom: 22px;
    min-width: 20px;
    max-width: 80px;
}

/* ══ PANELES DE PASO ══════════════════════════════════ */
.rp-step-panel {
    background: var(--rp-color-bg);
    border: 1px solid var(--rp-color-border);
    border-radius: var(--rp-border-radius);
    padding: 28px;
    margin-bottom: 16px;
    animation: rpFadeIn .22s ease;
}

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

.rp-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.rp-section-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--rp-color-text);
    font-family: var(--rp-font-family);
}

.rp-step-num {
    width: 30px;
    height: 30px;
    min-width: 30px;
    background: var(--rp-color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.rp-step-num--sm {
    background: transparent;
    color: var(--rp-color-text);
    font-size: 18px;
    width: 26px;
    height: 26px;
    min-width: 26px;
}

/* ── Acciones de paso ── */
.rp-step-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.rp-step-actions--right  { justify-content: flex-end; }
.rp-step-actions--left   { justify-content: flex-start; }
.rp-step-actions--split  { justify-content: space-between; }

/* ── Grid de campos ── */
.rp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.rp-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--rp-color-text);
}

.rp-field input,
.rp-field select,
.rp-field textarea,
.rp-step-panel textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--rp-color-border);
    border-radius: calc(var(--rp-border-radius) * 0.6);
    font-size: 14px;
    color: var(--rp-color-text);
    background: var(--rp-color-bg);
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none;
}

.rp-field input:focus,
.rp-field select:focus,
.rp-field textarea:focus,
.rp-step-panel textarea:focus {
    outline: none;
    border-color: var(--rp-color-primary);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.rp-step-panel textarea { resize: vertical; }

/* ── Errores ── */
.rp-field-error {
    display: none;
    font-size: 12px;
    color: var(--rp-color-danger);
    margin-top: 4px;
    font-weight: 500;
}

.rp-input-error {
    border-color: var(--rp-color-danger) !important;
    box-shadow: 0 0 0 3px rgba(204,0,0,0.08) !important;
}

/* ══ INFO DEL SERVICIO ════════════════════════════════
   Misma fuente, mismo estilo que el formulario
   ════════════════════════════════════════════════════ */
.rp-servicio-info {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 12px;
    padding: 11px 15px;
    background: var(--rp-color-border);
    border-radius: calc(var(--rp-border-radius) * 0.6);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--rp-font-family);
    color: var(--rp-color-text);
    border: 1px solid var(--rp-color-border);
}

.rp-servicio-info span {
    font-size: 14px;
    font-weight: 600;
    font-family: var(--rp-font-family);
    color: var(--rp-color-text);
}

/* ══ PROFESIONALES ════════════════════════════════════ */
.rp-prof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.rp-prof-card {
    border: 2px solid var(--rp-color-border);
    border-radius: var(--rp-border-radius);
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: var(--rp-color-bg);
    position: relative;
}

.rp-prof-card:hover {
    border-color: var(--rp-color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.rp-prof-card.selected {
    background: var(--rp-color-primary);
    border-color: var(--rp-color-primary);
    color: #fff;
}

.rp-prof-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px; right: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: var(--rp-color-success);
    width: 20px; height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 20px;
}

/* Profesional sin disponibilidad */
.rp-prof-card.sin-disponibilidad {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.rp-prof-card.sin-disponibilidad::before {
    content: 'Sin disponibilidad';
    position: absolute;
    bottom: 8px; left: 0; right: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--rp-color-danger);
    letter-spacing: .3px;
}

.rp-prof-card img {
    width: 76px; height: 76px;
    border-radius: var(--rp-prof-foto-radius, 50%);
    object-fit: cover;
    margin: 0 auto 10px;
    border: 3px solid var(--rp-color-border);
    display: block;
}
.rp-prof-card.selected img { border-color: rgba(255,255,255,0.4); }

.rp-prof-no-foto {
    width: 76px; height: 76px;
    border-radius: var(--rp-prof-foto-radius, 50%);
    background: var(--rp-color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 10px;
}

.rp-prof-nombre      { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.rp-prof-especialidad { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; opacity: .6; margin-bottom: 6px; }
.rp-prof-desc        { font-size: 12px; line-height: 1.5; opacity: .75; }

/* Alerta disponibilidad */
.rp-disponibilidad-alerta {
    margin-top: 16px;
    padding: 12px 16px;
    background: #fffbf0;
    border: 1px solid var(--rp-color-warning);
    border-radius: calc(var(--rp-border-radius) * 0.6);
    font-size: 13px;
    color: var(--rp-color-text);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.rp-btn-buscar-disponible {
    padding: 7px 16px;
    background: var(--rp-color-warning);
    color: #fff;
    border: none;
    border-radius: calc(var(--rp-border-radius) * 0.6);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
    white-space: nowrap;
}
.rp-btn-buscar-disponible:hover { opacity: .85; }

/* ══ CALENDARIO ═══════════════════════════════════════ */
.rp-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.rp-cal-nav button {
    background: var(--rp-color-bg);
    border: 1.5px solid var(--rp-color-border);
    border-radius: calc(var(--rp-border-radius) * 0.5);
    padding: 6px 16px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: var(--rp-color-text);
    transition: background .15s;
}
.rp-cal-nav button:hover { background: var(--rp-color-border); }
.rp-cal-nav span { font-weight: 700; font-size: 15px; }

.rp-cal-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 6px;
}

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

.rp-cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: calc(var(--rp-border-radius) * 0.5);
    font-size: 14px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .15s;
    color: var(--rp-color-text);
}

.rp-cal-day:hover:not(.past):not(.closed):not(.blocked):not(.empty) {
    background: var(--rp-color-border);
}
.rp-cal-day.selected {
    background: var(--rp-color-primary);
    color: #fff;
    border-color: var(--rp-color-primary);
    font-weight: 700;
}
.rp-cal-day.today:not(.selected) {
    border-color: var(--rp-color-secondary);
    color: var(--rp-color-secondary);
    font-weight: 700;
}
.rp-cal-day.past, .rp-cal-day.closed {
    color: #ccc; cursor: default; pointer-events: none;
}
.rp-cal-day.blocked {
    color: #ccc; cursor: not-allowed; pointer-events: none;
    background: repeating-linear-gradient(45deg, transparent, transparent 4px, #f5f5f5 4px, #f5f5f5 8px);
}
.rp-cal-day.empty { pointer-events: none; }

.rp-fecha-elegida {
    margin-top: 12px;
    font-size: 14px;
    color: var(--rp-color-text);
    font-weight: 500;
    opacity: .75;
}

/* ══ HORAS ════════════════════════════════════════════ */
.rp-horas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.rp-hora-btn {
    padding: 10px 6px;
    text-align: center;
    border: 2px solid var(--rp-color-border);
    border-radius: calc(var(--rp-border-radius) * 0.6);
    font-size: 14px;
    cursor: pointer;
    transition: all .15s;
    background: var(--rp-color-bg);
    color: var(--rp-color-text);
}
.rp-hora-btn:hover:not(.occupied) {
    border-color: var(--rp-color-primary) !important;
    background: rgba(0,0,0,0.05) !important;
    color: var(--rp-color-text, #1a1a1a) !important;
}
.rp-hora-btn.selected {
    background: var(--rp-color-text, #1a1a1a);
    color: #fff;
    border-color: var(--rp-color-text, #1a1a1a);
    font-weight: 700;
}
.rp-hora-btn.occupied {
    background: #f9f9f9;
    color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* ══ BOTONES ══════════════════════════════════════════ */
.rp-btn-continuar {
    padding: 11px 26px !important;
    background: var(--rp-color-btn-continuar, var(--rp-color-secondary)) !important;
    color: var(--rp-color-btn-text, #fff) !important;
    border: none !important;
    border-radius: calc(var(--rp-border-radius) * 0.7) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: var(--rp-font-family) !important;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
    text-decoration: none !important;
    display: inline-block;
    line-height: normal !important;
    box-shadow: none !important;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.rp-btn-continuar:hover { opacity: .88 !important; transform: translateY(-1px); background: var(--rp-color-btn-continuar, var(--rp-color-secondary)) !important; color: var(--rp-color-btn-text, #fff) !important; }

.rp-btn-back {
    padding: 10px 20px;
    background: transparent;
    color: var(--rp-color-text);
    border: 1.5px solid var(--rp-color-border);
    border-radius: calc(var(--rp-border-radius) * 0.7);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s;
}
.rp-btn-back:hover { background: var(--rp-color-border); }

.rp-btn-submit {
    padding: 13px 32px !important;
    background: var(--rp-color-btn-confirmar, var(--rp-color-primary)) !important;
    color: var(--rp-color-btn-text, #fff) !important;
    border: none !important;
    border-radius: calc(var(--rp-border-radius) * 0.7) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-family: var(--rp-font-family) !important;
    cursor: pointer;
    transition: opacity .2s, transform .1s;
    flex: 1;
    max-width: 280px;
    text-decoration: none !important;
    line-height: normal !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
}
.rp-btn-submit:hover    { opacity: .88 !important; transform: translateY(-1px); background: var(--rp-color-btn-confirmar, var(--rp-color-primary)) !important; color: var(--rp-color-btn-text, #fff) !important; }
/* Hora button hover — same fix */

.rp-hora-btn:not(.occupied):not(.selected):hover { color: var(--rp-color-text, #1a1a1a) !important; background: rgba(0,0,0,0.05) !important; border-color: var(--rp-color-primary) !important; }
.rp-btn-submit:disabled { opacity: .6 !important; cursor: not-allowed; transform: none; }

/* ══ RESUMEN — mismo estilo que el formulario ═════════ */
.rp-resumen-box {
    background: var(--rp-color-bg);
    border: 1.5px solid var(--rp-color-border);
    border-radius: calc(var(--rp-border-radius) * 0.7);
    overflow: hidden;
    margin-bottom: 16px;
}

.rp-resumen-table {
    width: 100%;
    border-collapse: collapse;
}

.rp-resumen-table tr {
    border-bottom: 1px solid var(--rp-color-border);
}
.rp-resumen-table tr:last-child { border-bottom: none; }

.rp-resumen-key {
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rp-color-text);
    opacity: .55;
    white-space: nowrap;
    width: 38%;
    vertical-align: middle;
}

.rp-resumen-val {
    padding: 12px 18px;
    font-size: 14px;       /* igual que inputs */
    font-weight: 500;
    color: var(--rp-color-text);
    vertical-align: middle;
}

.rp-resumen-nota {
    font-size: 13px;
    color: var(--rp-color-text);
    opacity: .65;
    background: var(--rp-color-bg);
    border: 1px solid var(--rp-color-border);
    border-left: 3px solid var(--rp-color-warning);
    border-radius: 0 calc(var(--rp-border-radius) * 0.5) calc(var(--rp-border-radius) * 0.5) 0;
    padding: 10px 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ══ MENSAJE ÉXITO FINAL — usa variables del panel ═════
   Mismo fondo, mismo radio, mismos colores del formulario
   ════════════════════════════════════════════════════ */
/* Ensure success message is visible in compact modal */
.rp-success-final,
.rp-layout-compacto .rp-success-final,
#rp-mensaje-compacto.rp-success-final,
#rp-mensaje-compacto-modal.rp-success-final {
    display: block !important;
    padding: 24px 16px !important;
    text-align: center;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    box-sizing: border-box;
    color: var(--rp-color-text, #1a1a1a) !important;
    background: transparent !important;
    border: none !important;
    animation: rpFadeIn .3s ease;
}

.rp-success-icon {
    font-size: 56px;
    margin-bottom: 14px;
    display: block;
}

.rp-success-final h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--rp-color-text, #1a1a1a);
    margin: 0 0 20px;
    letter-spacing: -.3px;
}

/* Resumen table inside success */
.rp-success-final table {
    margin: 0 auto 20px !important;
    max-width: 320px;
    text-align: left;
}

/* Aviso 📋 */
.rp-success-final .rp-aviso {
    display: inline-block;
    background: var(--rp-color-bg, #f9f9f9);
    border: 1px solid var(--rp-color-border, #e5e7eb);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--rp-color-text, #1a1a1a);
    opacity: .8;
    margin-bottom: 20px;
    max-width: 340px;
}

.rp-success-final p {
    font-size: 14px;        /* igual que inputs */
    color: var(--rp-color-text);
    margin: 8px 0;
    line-height: 1.65;
}

.rp-num-confirmacion {
    display: inline-block;
    background: var(--rp-color-primary);
    color: #fff !important;
    padding: 8px 24px;
    border-radius: calc(var(--rp-border-radius) * 2);
    font-size: 15px !important;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 10px 0 !important;
}

.rp-aviso-confirmacion {
    font-size: 13px !important;
    color: var(--rp-color-text) !important;
    opacity: .65;
    background: var(--rp-color-bg);
    border: 1px solid var(--rp-color-border);
    border-radius: calc(var(--rp-border-radius) * 0.6);
    padding: 10px 14px;
    margin-top: 14px !important;
}

/* ══ MENSAJE GENERAL ══════════════════════════════════ */
.rp-mensaje {
    margin-top: 14px;
    padding: 14px 18px;
    border-radius: calc(var(--rp-border-radius) * 0.7);
    font-size: 14px;
    text-align: center;
    display: none;
    line-height: 1.6;
}

.rp-mensaje.success {
    background: var(--rp-color-bg);
    color: var(--rp-color-success);
    border: 1.5px solid var(--rp-color-success);
    display: block;
}

.rp-mensaje.error {
    background: var(--rp-color-bg);
    color: var(--rp-color-danger);
    border: 1.5px solid var(--rp-color-danger);
    display: block;
}

/* Mensaje de alerta de disponibilidad personalizable */
.rp-alerta-disponibilidad {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: calc(var(--rp-border-radius) * 0.7);
    font-size: 13px;
    text-align: center;
    display: block;
    line-height: 1.5;
    color: var(--rp-color-alert-text, #721c24);
    background: var(--rp-color-alert-bg, #f8d7da);
    border: 1px solid var(--rp-color-alert-border, #f5c6cb);
}
/* ══ PAGO ═════════════════════════════════════════════ */
.rp-pago-wrap {
    margin-top: 16px;
    padding: 22px;
    background: var(--rp-color-bg);
    border: 1.5px solid var(--rp-color-border);
    border-radius: var(--rp-border-radius);
    text-align: center;
}

.rp-pago-wrap p {
    font-size: 14px;
    color: var(--rp-color-text);
    margin-bottom: 14px;
    font-weight: 500;
}

.rp-btn-pago {
    display: inline-block;
    padding: 14px 36px;
    background: var(--rp-color-success);
    color: #fff;
    text-decoration: none;
    border-radius: calc(var(--rp-border-radius) * 0.7);
    font-size: 15px;
    font-weight: 700;
    transition: opacity .2s, transform .1s;
    box-shadow: 0 4px 14px rgba(0,165,80,0.25);
}
.rp-btn-pago:hover { opacity: .88; color: #fff; transform: translateY(-2px); }

/* ══ LOADING ══════════════════════════════════════════ */
.rp-loading {
    color: var(--rp-color-text);
    opacity: .4;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

/* ══ RESPONSIVE ═══════════════════════════════════════ */
@media (max-width: 600px) {
    .rp-grid-2        { grid-template-columns: 1fr; }
    .rp-prof-grid     { grid-template-columns: repeat(2, 1fr); }
    .rp-horas-grid    { grid-template-columns: repeat(3, 1fr); }
    .rp-step-panel    { padding: 18px; }
    .rp-progress-label { display: none; }
    .rp-progress-line  { min-width: 12px; max-width: 40px; }
    .rp-progress-dot   { width: 30px; height: 30px; font-size: 12px; }
    .rp-btn-submit     { max-width: 100%; }
    .rp-resumen-key    { width: 40%; font-size: 12px; padding: 10px 12px; }
    .rp-resumen-val    { font-size: 13px; padding: 10px 12px; }
}
/* ── Layout Compacto ─────────────────────────────────────────────────── */
.rp-layout-compacto {
    max-width: 900px;
    margin: 0 auto;
}

.rp-compacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.rp-compacto-left {
    padding-right: 8px;
    border-right: 1px solid var(--rp-color-border);
}

.rp-compacto-right {
    padding-left: 8px;
    display: flex;
    flex-direction: column;
}

.rp-compacto-header {
    flex-shrink: 0;
}

.rp-compacto-right > div:not(.rp-compacto-header) {
    flex: 1;
}

/* Calendario compacto más compacto */
.rp-layout-compacto .rp-cal-nav {
    margin-bottom: 12px;
}

.rp-layout-compacto .rp-cal-days {
    gap: 4px;
}

.rp-layout-compacto .rp-cal-day {
    padding: 8px 4px;
    font-size: 13px;
}

.rp-layout-compacto .rp-horas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.rp-layout-compacto .rp-hora-btn {
    padding: 10px 8px;
    font-size: 14px;
}

/* Botón submit compacto */
.rp-layout-compacto .rp-btn-submit {
    max-width: 100%;
}

/* Grid de profesionales más compacto */
.rp-prof-grid--compacto {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}

.rp-prof-grid--compacto .rp-prof-card {
    padding: 10px 6px;
}

.rp-prof-grid--compacto .rp-prof-card img,
.rp-prof-grid--compacto .rp-prof-no-foto {
    width: 48px;
    height: 48px;
    font-size: 20px;
    border-radius: var(--rp-prof-foto-radius, 50%) !important;
    object-fit: cover;
}

.rp-prof-grid--compacto .rp-prof-nombre {
    font-size: 11px;
    margin-top: 4px;
}

.rp-prof-grid--compacto .rp-prof-especialidad {
    display: none;
}

/* Label compacto */
.rp-compacto-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 700;
    opacity: .6;
    margin-bottom: 10px;
    display: block;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 680px) {
    /* Compact: stack columns */
    .rp-compacto-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .rp-compacto-left {
        border-right: none;
        border-bottom: 1px solid var(--rp-color-border);
        padding-right: 0;
        padding-bottom: 20px;
    }
    .rp-compacto-right { padding-left: 0; }

    /* Modal overlay: remove excess padding on mobile */
    #kronobook-modal-overlay { padding: 8px !important; }
    #kronobook-modal-box     { border-radius: 12px !important; }

    /* Multipaso: compact progress bar */
    .rp-progress-label { display: none; }
    .rp-progress-dot   { width: 28px !important; height: 28px !important; font-size: 12px !important; }
    .rp-grid-2         { grid-template-columns: 1fr !important; }

    /* Horas: 3 cols on mobile */
    .rp-horas-grid                     { grid-template-columns: repeat(3, 1fr) !important; }
    .rp-layout-compacto .rp-horas-grid { grid-template-columns: repeat(2, 1fr) !important; }

    /* Prof grid: smaller on mobile */
    .rp-prof-grid { grid-template-columns: repeat(3, 1fr) !important; }

    /* Success: full padding */
    .rp-success-final { padding: 24px 16px !important; }

    /* Wrapper max-width full */
    .rp-wrapper { max-width: 100% !important; }
}

@media (max-width: 400px) {
    .rp-horas-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .rp-prof-grid  { grid-template-columns: repeat(2, 1fr) !important; }
}
/* Compacto — header negocio */
.rp-compacto-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--rp-color-border);
}

.rp-compacto-logo {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 12px;
    border: 2px solid var(--rp-color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--rp-color-bg);
}

.rp-compacto-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.rp-compacto-sitename {
    font-size: 18px;
    font-weight: 700;
    color: var(--rp-color-text);
    line-height: 1.2;
}

/* ══════════════════════════════════════════════════════════════════════════
   SISTEMA DE BLOQUEO TEMPORAL - v2.1.6
   ══════════════════════════════════════════════════════════════════════════ */

.kronobook-timer-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    padding: 30px 24px;
    border-radius: 16px;
    text-align: center;
    margin: 0 0 24px 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.timer-icon {
    font-size: 56px;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.timer-texto p {
    margin: 8px 0;
    font-size: 18px;
    line-height: 1.4;
}

.timer-texto strong {
    font-weight: 700;
    font-size: 20px;
}

.timer-subtitle {
    font-size: 15px !important;
    opacity: 0.95;
    margin-top: 4px !important;
}

.timer-display {
    font-size: 64px;
    font-weight: 800;
    margin: 20px 0;
    font-family: 'Courier New', Courier, monospace;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 4px;
}

.timer-display span {
    display: inline-block;
    min-width: 60px;
}

.btn-renovar-tiempo {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin: 16px 0 8px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.btn-renovar-tiempo:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-renovar-tiempo:active {
    transform: translateY(0);
}

.timer-aviso {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 16px;
    font-weight: 500;
}

/* Estado: Advertencia (5-2 minutos) */
.kronobook-timer-container.advertencia {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.4);
}

/* Estado: Urgente (menos de 2 minutos) */
.kronobook-timer-container.urgente {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    box-shadow: 0 10px 30px rgba(250, 112, 154, 0.5);
    animation: pulse 1s ease-in-out infinite;
}

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

.kronobook-timer-container.urgente .timer-display {
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-3px);
    }
    75% {
        transform: translateX(3px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .kronobook-timer-container {
        padding: 24px 16px;
        margin: 0 0 16px 0;
    }
    
    .timer-icon {
        font-size: 48px;
        margin-bottom: 12px;
    }
    
    .timer-texto strong {
        font-size: 18px;
    }
    
    .timer-texto p {
        font-size: 16px;
    }
    
    .timer-subtitle {
        font-size: 14px !important;
    }
    
    .timer-display {
        font-size: 52px;
        margin: 16px 0;
        letter-spacing: 2px;
    }
    
    .timer-display span {
        min-width: 50px;
    }
    
    .btn-renovar-tiempo {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .timer-aviso {
        font-size: 13px;
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .kronobook-timer-container {
        padding: 20px 12px;
    }
    
    .timer-icon {
        font-size: 40px;
    }
    
    .timer-texto strong {
        font-size: 16px;
    }
    
    .timer-display {
        font-size: 44px;
        letter-spacing: 1px;
    }
    
    .timer-display span {
        min-width: 40px;
    }
}

/* Respetar preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    .kronobook-timer-container,
    .kronobook-timer-container.urgente,
    .timer-icon,
    .timer-display,
    .btn-renovar-tiempo {
        animation: none !important;
        transition: none !important;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    .kronobook-timer-container {
        border: 3px solid #ffffff;
    }
    
    .btn-renovar-tiempo {
        border-width: 3px;
    }
}
