﻿/* =========================================================
   1) HORARIO (solo Step 2 - tabla de slots)
   ========================================================= */

.horario-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    width: 100%;
    overflow-x: auto; /* si la tabla no cabe, scroll solo aquí */
}

.horario-tabla {
    width: 90%;
    max-width: 900px;
    margin-bottom: 5px;
    border-collapse: collapse;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,.1);
    table-layout: fixed; /* mismas anchuras */
}

    .horario-tabla th,
    .horario-tabla td {
        padding: 2px;
        border: 0;
        vertical-align: middle;
        width: calc(100% / 7);
    }

    .horario-tabla tbody td {
        vertical-align: top !important;
    }

    .horario-tabla th {
        background: #5dade2;
        color: #fff;
        font-size: 14px;
    }

.bloque-cita {
    background: #fff;
    color: #5dade2;
    border: 2px solid #5dade2;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 8px;
    margin: 1px;
    display: inline-block;
    cursor: pointer;
    transition: all .2s ease-in-out;
    text-align: center;
    font-weight: 500;
}

    .bloque-cita:hover {
        background: #5dade2;
        color: #fff;
        transform: scale(1.05);
    }

.disponible {
    border-color: #5dade2;
    color: #5dade2;
    font-weight: 600;
}

    .disponible:hover {
        background: #5dade2 !important;
        color: #fff !important;
    }

.bloque-cita.disponible.seleccionado {
    background-color: #5dade2;
    border: 2px solid #5dade2;
    color: #fff !important;
}

@media (max-width: 768px) {
    .horario-tabla {
        width: 100%;
        max-width: none;
        font-size: 12px;
        border-radius: 0; /* si quieres “full width” */
        margin: 0;
    }

        .horario-tabla th,
        .horario-tabla td {
            padding: 1px;
        }

    .bloque-cita {
        padding: 5px 6px;
        font-size: 10px;
        min-width: 40px;
    }
}


/* =========================================================
   2) WIZARD (layout pantalla completa + steps + footer)
   ========================================================= */

html, body {
    margin: 0;
    padding: 0;
}

/* Fondo gris a pantalla completa */
.cb-booking-shell {
    min-height: 100vh;
    background: #eef1f5;
    display: flex;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

/* Marco centrado (PC) */
.cb-booking-frame {
    width: min(980px, 100%);
    min-height: 100vh;
    display: grid;
    grid-template-rows: 90px 1fr 72px; /* header / main / footer */
    gap: 12px;
    padding: 14px;
    box-sizing: border-box;
}

/* HEADER */
.cb-booking-header {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-logo-slot {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.cb-logo-img {
    max-height: 56px;
    max-width: 240px;
    object-fit: contain;
}

.cb-logo-link {
    text-decoration: none;
}

.cb-logo-mark {
    font-weight: 900;
    letter-spacing: .2px;
    font-size: 1.35rem;
    color: #2c3e50;
}

.cb-logo-sub {
    font-size: .9rem;
    color: rgba(44,62,80,.65);
}

/* MAIN card */
.cb-booking-main {
    min-height: 0;
}

.cb-steps-card {
    height: 100%;
    min-height: 68vh; /* estabilidad de alto */
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(0,0,0,.14);
    overflow: hidden;
}

    /* Radzen Steps ocupa toda la altura, contenido con scroll interno */
    .cb-steps-card .rz-steps {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .cb-steps-card .rz-steps-content,
    .cb-steps-card .rz-steps-body {
        flex: 1;
        min-height: 0;
        overflow: auto;
        overflow-x: hidden;
        background: #fff;
        scrollbar-gutter: stable;
    }

/* Contenido de cada step */
.cb-step-pane {
    padding: 18px 20px;
    box-sizing: border-box;
}

.cb-step-pane--flush {
    padding: 10px 12px;
}

/* Paso 1 (form) */
.cb-step1 {
    width: 100%;
    padding: 18px 20px;
    box-sizing: border-box;
}

.cb-form-narrow {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .cb-form-narrow .rz-dropdown,
    .cb-form-narrow .rz-multiselect,
    .cb-form-narrow .rz-formfield,
    .cb-form-narrow input,
    .cb-form-narrow textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

/* PC: controles más estrechos (pero card grande) */
@media (min-width: 769px) {
    .cb-step-pane:not(.cb-step-pane--flush) .rz-formfield,
    .cb-step-pane:not(.cb-step-pane--flush) .rz-dropdown,
    .cb-step-pane:not(.cb-step-pane--flush) .rz-multiselect,
    .cb-step-pane:not(.cb-step-pane--flush) .rz-autocomplete,
    .cb-step-pane:not(.cb-step-pane--flush) input,
    .cb-step-pane:not(.cb-step-pane--flush) textarea {
        width: 100% !important;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
}

/* FOOTER promo */
.cb-booking-footer {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cb-powered-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 10px 25px rgba(0,0,0,.10);
    transition: transform .15s ease, box-shadow .15s ease;
    color: #2c3e50;
}

    .cb-powered-link:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 30px rgba(0,0,0,.14);
    }

.cb-powered-pill {
    font-size: .85rem;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f2f4f7;
    border: 1px solid rgba(0,0,0,.06);
}

.cb-powered-brand {
    font-weight: 900;
    letter-spacing: .2px;
}

.cb-powered-cta {
    font-size: .9rem;
    opacity: .85;
}

/* =========================================================
   3) MÓVIL (sin padding exterior + steps a 3 columnas)
   ========================================================= */

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
    }

    .cb-booking-frame {
        width: 100%;
        min-height: 100vh;
        padding: 0;
        gap: 8px;
        grid-template-rows: 78px 1fr 66px;
    }

    /* Card “a pantalla” */
    .cb-steps-card {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        min-height: 72vh;
    }

    .cb-step-pane {
        padding: 8px 10px;
    }

    .cb-step-pane--flush {
        padding: 0;
    }

    .cb-step1 {
        padding: 12px 12px;
    }

    .cb-form-narrow {
        max-width: none;
    }

    /* Evitar descuadres por stacks horizontales */
    .cb-step-pane .rz-stack {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: 100% !important;
    }

        .cb-step-pane .rz-stack > * {
            min-width: 0 !important;
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box;
        }

    /* Dropdowns full width + texto no empuja */
    .cb-step-pane .rz-dropdown,
    .cb-step-pane .rz-multiselect,
    .cb-step-pane .rz-formfield,
    .cb-step-pane input,
    .cb-step-pane textarea {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    .cb-step-pane .rz-dropdown-label,
    .cb-step-pane .rz-multiselect-label {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        max-width: 100% !important;
    }

    /* Panel del dropdown: que no se salga */
    .rz-dropdown-panel,
    .rz-multiselect-panel {
        max-width: calc(100vw - 16px) !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    .rz-dropdown-item,
    .rz-multiselect-item {
        white-space: normal !important;
        word-break: break-word !important;
    }

    /* STEPS: 3 columnas a ancho completo (sin scroll) */
    .cb-steps-card .rz-steps ul {
        width: 100% !important;
        padding: 8px 8px !important;
        margin: 0;
        gap: 0 !important;
        overflow-x: hidden !important;
        justify-content: space-between !important;
        display: flex;
        flex-wrap: nowrap;
    }

    .cb-steps-card .rz-steps li {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        display: flex !important;
        justify-content: center !important;
    }

        .cb-steps-card .rz-steps li > * {
            width: 100% !important;
            justify-content: center !important;
        }

        .cb-steps-card .rz-steps li span,
        .cb-steps-card .rz-steps li a {
            min-width: 0 !important;
        }
}



