/* ==========================================================================
   OMYRA ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚Â PUBLIC BOOKING
   ========================================================================== */


/* ==========================================================================
   1. TOKENS / RESET
   ========================================================================== */

:root {
    /*
     * Tema Omyra por defecto.
     * Los tenants pueden sobrescribir estos valores en <body>.
     */
    --brand: #176b51;
    --brand-secondary: #ffffff;

    --danger: #9e2f2f;
    --danger-soft: #fff0f0;

    --shadow:
        0 10px 30px
        rgba(0, 0, 0, .08);

    --booking-font:
        "Geist",
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-family: var(--booking-font);
}

* {
    box-sizing: border-box;
}


body {
    /*
     * Variables derivadas.
     *
     * Deben vivir en body y no en :root, porque el branding del tenant
     * se inyecta como custom properties inline sobre <body>.
     */

    --ink:
        color-mix(
            in srgb,
            var(--brand) 28%,
            #111111
        );

    --muted:
        color-mix(
            in srgb,
            var(--brand) 22%,
            #666666
        );

    --line:
        color-mix(
            in srgb,
            var(--brand) 18%,
            #e5e5e5
        );

    --canvas:
        color-mix(
            in srgb,
            var(--brand) 4%,
            var(--brand-secondary)
        );

    --surface: var(--brand-secondary);

    --brand-dark:
        color-mix(
            in srgb,
            var(--brand) 60%,
            #222222
        );

    --brand-soft:
        color-mix(
            in srgb,
            var(--brand) 15%,
            var(--brand-secondary)
        );

    /*
     * Superficie exterior / cabecera.
     */
    --page-background: var(--canvas);
    --page-heading-text: var(--ink);
    --page-subheading-text: var(--muted);

    --section-number-bg: var(--brand-soft);
    --section-number-text: var(--brand-dark);

    /*
     * Stepper mÃ³vil y resumen colapsado.
     */
    --mobile-step-line: #d9e0dc;

    --mobile-step-idle-border: #d9e0dc;
    --mobile-step-idle-bg: #f5f7f5;
    --mobile-step-idle-text: #65716b;
    --mobile-step-label: #77817c;

    --mobile-step-active-border: var(--brand);
    --mobile-step-active-bg: var(--brand);
    --mobile-step-active-text: #ffffff;
    --mobile-step-active-label: var(--brand-dark);

    --mobile-step-complete-border: var(--brand);
    --mobile-step-complete-bg: var(--brand-soft);
    --mobile-step-complete-text: var(--brand);
    --mobile-step-complete-label: var(--brand-dark);

    --selection-summary-bg: rgba(255, 255, 255, .72);
    --selection-summary-border: var(--line);
    --selection-summary-label: var(--muted);
    --selection-summary-text: var(--ink);

    /*
     * Controles seleccionables y acciones.
     */
    --choice-bg: var(--surface);
    --choice-text: var(--ink);
    --choice-meta-text: var(--choice-text);
    --choice-border: var(--line);

    --choice-hover-bg: var(--brand-soft);
    --choice-hover-text: var(--brand-dark);

    --choice-selected-bg: var(--brand);
    --choice-selected-text: #ffffff;
    --choice-selected-border: var(--brand);

    /*
     * LÃ­neas internas de separaciÃ³n.
     * Se calculan aquÃ­ para usar el borderColor real del tenant.
     */
    --separator-color:
        color-mix(
            in srgb,
            var(--choice-border) 55%,
            transparent
        );

    margin: 0;

    color: var(--choice-text);
    background: var(--page-background);

    font-family: var(--booking-font);

    line-height: 1.45;
}

body.tenant-custom-font {
    --booking-font:
        "TenantBookingFont",
        sans-serif;
}


button,
input {
    font: inherit;
}


button {
    touch-action: manipulation;
}


[hidden] {
    display: none !important;
}


/* ==========================================================================
   2. LAYOUT GENERAL
   ========================================================================== */

.page-shell {
    width: min(100%, 760px);

    margin: 0 auto;
    padding: 20px 14px 48px;
}


.booking-grid {
    display: grid;
    gap: 14px;
}


.card {
    padding: 20px;

    border: 1px solid var(--line);
    border-radius: 19px;

    background: var(--surface);

    box-shadow: var(--shadow);
}


/* ==========================================================================
   3. BRANDING / CABECERA
   ========================================================================== */

.booking-brand {
    display: flex;

    align-items: center;
    justify-content: center;

    margin: 4px 0 24px;
}


.booking-logo {
    display: block;

    width: clamp(130px, 28vw, 190px);
    height: auto;

    object-fit: contain;
}


.booking-business-heading {
    margin: -8px 2px 24px;

    text-align: center;
}


.booking-business-heading h1 {
    margin: 0;

    color: var(--choice-text);

    font-size: clamp(1.3rem, 5vw, 1.75rem);
    line-height: 1.2;
    letter-spacing: -.025em;
}


.booking-business-heading p {
    margin: 6px 0 0;

    color: var(--page-subheading-text);

    font-size: .8rem;
    font-weight: 650;
    letter-spacing: .02em;
}


.hero {
    margin: 4px 2px 22px;
}


.hero h1 {
    margin: 0 0 7px;

    font-size: clamp(1.65rem, 7vw, 2.25rem);
    line-height: 1.12;
    letter-spacing: -.035em;
}


.hero p {
    margin: 0;

    color: var(--choice-text);
    opacity: .72;
}


/* ==========================================================================
   4. CABECERAS DE SECCIÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã¢â‚¬Å“N
   ========================================================================== */

.section-heading {
    display: flex;

    align-items: baseline;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 14px;
}


.section-heading h2 {
    margin: 0;

    color: var(--choice-text);

    font-size: 1.1rem;
    letter-spacing: -.015em;
}


.section-number {
    display: inline-grid;

    width: 25px;
    height: 25px;

    margin-right: 7px;

    place-items: center;

    border-radius: 50%;

    color: var(--section-number-text);
    background: var(--section-number-bg);

    font-size: .8rem;
}


.hint {
    color: var(--choice-text);

    font-size: .84rem;

    opacity: .72;
}


/* ==========================================================================
   5. BOTONES
   ========================================================================== */

.secondary-button,
.primary-button {
    min-height: 44px;

    padding: 10px 15px;

    border-radius: 11px;

    cursor: pointer;

    font-weight: 750;
}


.secondary-button {
    border: 1px solid var(--choice-border);

    color: var(--choice-text);
    background: var(--choice-bg);
}


.secondary-button:hover {
    border-color: var(--choice-border);

    color: var(--choice-hover-text);
    background: var(--choice-hover-bg);
}


.primary-button {
    border: 1px solid var(--choice-selected-border);

    color: var(--choice-selected-text);
    background: var(--choice-selected-bg);
}


.primary-button:hover {
    border-color: var(--choice-border);

    color: var(--choice-hover-text);
    background: var(--choice-hover-bg);
}


.primary-button[disabled],
.secondary-button[disabled] {
    opacity: .6;

    cursor: wait;
}


/* ==========================================================================
   6. CHIPS / CATÁLOGO DE SERVICIOS
   ========================================================================== */

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}


/*
 * Chips genéricos.
 *
 * Se siguen utilizando para profesionales,
 * clientes y otros selectores.
 */
.chip {
    min-height: 44px;

    padding: 10px 14px;

    border: 1px solid var(--choice-border);
    border-radius: 999px;

    color: var(--choice-text);
    background: var(--choice-bg);

    cursor: pointer;

    transition:
        border-color .15s ease,
        background .15s ease,
        color .15s ease,
        transform .15s ease;
}


/* ==========================================================================
   CATÁLOGO DE SERVICIOS
   ========================================================================== */

.service-list {
    display: grid;

    gap: 10px;

    width: 100%;
}


/*
 * Cada categoría es un <details>.
 */
.service-category {
    overflow: hidden;

    border: 1px solid var(--choice-border);
    border-radius: 14px;

    background: var(--surface);
}


/*
 * Cabecera de categoría.
 *
 * [>] Depilación láser                     8
 */
.service-category-title {
    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 11px;

    min-height: 52px;

    padding: 13px 15px;

    color: var(--choice-text);
    background: var(--choice-bg);

    cursor: pointer;

    font-size: .92rem;
    font-weight: 750;

    list-style: none;

    user-select: none;

    transition:
        background .15s ease,
        color .15s ease;
}


/*
 * Quitamos el triángulo nativo.
 */
.service-category-title::-webkit-details-marker {
    display: none;
}


.service-category-title::marker {
    content: "";
}


/*
 * Flecha propia.
 */
.service-category-title::before {
    content: "›";

    display: grid;

    width: 22px;
    height: 22px;

    place-items: center;

    color: var(--choice-text);

    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1;

    transform: rotate(0deg);

    transition:
        transform .15s ease;
}


.service-category[open]
.service-category-title::before {
    transform: rotate(90deg);
}


/*
 * Categoría abierta.
 */
.service-category[open]
.service-category-title {
    border-bottom:
        1px solid var(--choice-border);
}


/*
 * Número de servicios.
 */
.service-category-count {
    display: inline-grid;

    min-width: 27px;
    height: 27px;

    padding: 0 7px;

    place-items: center;

    border: 1px solid var(--choice-border);
    border-radius: 999px;

    color: var(--choice-text);

    background:
        color-mix(
            in srgb,
            var(--surface) 75%,
            transparent
        );

    font-size: .72rem;
    font-weight: 750;
}


/*
 * Dentro de la categoría ya NO usamos chips.
 *
 * Se comporta como una lista / tabla.
 */
.service-category-services {
    display: grid;

    gap: 0;

    padding: 0;

    background: var(--surface);
}


/* ==========================================================================
   FILA DE SERVICIO
   ========================================================================== */

.service-option {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    width: 100%;
    min-width: 0;

    align-items: center;

    gap: 18px;

    padding: 16px 16px;

    border: 0;
    border-bottom:
        1px solid var(--separator-color);

    border-radius: 0;

    color: var(--choice-text);
    background: var(--surface);

    text-align: left;

    cursor: pointer;

    appearance: none;

    transition:
        background .15s ease,
        color .15s ease,
        transform .12s ease;
}


.service-option:last-child {
    border-bottom: 0;
}


/*
 * Parte izquierda.
 */
.service-option-content {
    display: flex;

    min-width: 0;

    flex-direction: column;

    align-items: flex-start;

    gap: 4px;
}


/*
 * Nombre.
 */
.service-option-name {
    display: block;

    width: 100%;

    color: var(--choice-text);

    font-size: .96rem;
    font-weight: 760;
    line-height: 1.32;

    letter-spacing: -.01em;
}


/*
 * Descripción.
 *
 * Máximo dos líneas para no volver
 * a crear una página kilométrica.
 */
.service-option-description {
    display: -webkit-box;

    width: 100%;

    overflow: hidden;

    color: var(--choice-meta-text);

    font-size: .81rem;
    font-weight: 450;
    line-height: 1.42;

    opacity: .72;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


/*
 * Duración.
 */
.service-option-duration {
    display: block;

    margin-top: 2px;

    color: var(--choice-meta-text);

    font-size: .76rem;
    font-weight: 650;
    line-height: 1.3;

    opacity: .66;
}


/*
 * Parte derecha.
 */
.service-option-aside {
    display: flex;

    flex: 0 0 auto;

    align-items: center;

    gap: 10px;
}


/*
 * Precio.
 */
.service-option-price {
    color: var(--choice-text);

    font-size: .9rem;
    font-weight: 780;
    line-height: 1.2;

    white-space: nowrap;
}


/*
 * Flecha visual de selección.
 */
.service-option-arrow {
    display: block;

    width: 16px;

    color: var(--choice-text);

    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1;

    opacity: .45;

    transition:
        transform .15s ease,
        opacity .15s ease;
}


/* ==========================================================================
   HOVER / FOCUS
   ========================================================================== */

@media (hover: hover) and (pointer: fine) {

    .service-category-title:hover {
        background: var(--choice-hover-bg);
    }


    .service-option:hover {
        color: var(--choice-hover-text);
        background: var(--choice-hover-bg);
    }


    .service-option:hover
    .service-option-arrow {
        opacity: .85;

        transform:
            translateX(2px);
    }


    .chip:hover {
        border-color: var(--choice-border);

        color: var(--choice-hover-text);
        background: var(--choice-hover-bg);
    }
}


.service-category-title:focus-visible,
.service-option:focus-visible {
    outline:
        3px solid
        color-mix(
            in srgb,
            var(--choice-border) 25%,
            transparent
        );

    outline-offset: -3px;
}


/* ==========================================================================
   SERVICIO SELECCIONADO
   ========================================================================== */

.service-option.is-selected,
.service-option.is-selected:hover {
    color: var(--choice-selected-text);
    background: var(--choice-selected-bg);

    box-shadow:
        inset 4px 0 0
        var(--choice-selected-border);
}


.service-option.is-selected
.service-option-name,

.service-option.is-selected
.service-option-description,

.service-option.is-selected
.service-option-duration,

.service-option.is-selected
.service-option-price,

.service-option.is-selected
.service-option-arrow {
    color: var(--choice-selected-text);
}


.service-option.is-selected
.service-option-description {
    opacity: .82;
}


.service-option.is-selected
.service-option-duration {
    opacity: .76;
}


.service-option.is-selected
.service-option-arrow {
    opacity: .9;
}


.service-option:active {
    transform: scale(.995);
}


/* ==========================================================================
   CHIPS GENÉRICOS SELECCIONADOS
   ========================================================================== */

.chip.is-selected,
.chip.is-selected:hover {
    border-color: var(--choice-selected-border);

    color: var(--choice-selected-text);
    background: var(--choice-selected-bg);

    box-shadow:
        inset 0 0 0 1px
        var(--choice-selected-border);

    font-weight: 700;
}


.chip:active {
    transform: scale(.98);
}


.chip[disabled],
.service-option[disabled] {
    opacity: .58;

    cursor: wait;
}


/* ==========================================================================
   CATÁLOGO DE SERVICIOS — MÓVIL
   ========================================================================== */

@media (max-width: 520px) {

    .service-category-title {
        min-height: 50px;

        padding:
            12px
            13px;

        gap: 8px;

        font-size: .88rem;
    }


    .service-option {
        grid-template-columns:
            minmax(0, 1fr)
            auto;

        gap: 10px;

        padding:
            15px
            13px;
    }


    .service-option-name {
        font-size: .92rem;
    }


    .service-option-description {
        font-size: .79rem;
    }


    .service-option-duration {
        font-size: .74rem;
    }


    .service-option-aside {
        gap: 6px;
    }


    .service-option-price {
        font-size: .86rem;
    }


    .service-option-arrow {
        width: 12px;

        font-size: 1.2rem;
    }
}



/* ==========================================================================
   7. ESTADOS / MENSAJES
   ========================================================================== */

.status {
    margin: 0;

    padding: 13px 14px;

    border-radius: 12px;

    color: var(--choice-text);
    background:
        color-mix(
            in srgb,
            var(--choice-bg) 55%,
            var(--surface)
        );
}


.status.is-error {
    color: var(--danger);
    background: var(--danger-soft);
}


.status.is-info {
    color: var(--choice-text);
    background: var(--choice-bg);
}


/* ==========================================================================
   8. STEPPER DE RESERVA
   ========================================================================== */

.booking-step {
    border-color: var(--choice-border);
    display: block;
}


.booking-stepper {
    display: none;
}


.mobile-step-actions {
    display: none;
}


.booking-selection-summary {
    display: none;
}


/* ==========================================================================
   9. SELECTOR VISUAL DE FECHAS
   ========================================================================== */

.date-strip {
    display: flex;

    width: 100%;

    gap: 8px;

    margin: 2px 0 18px;
    padding: 2px 1px 7px;

    overflow-x: auto;

    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;

    scrollbar-width: none;
}


.date-strip::-webkit-scrollbar {
    display: none;
}


.date-strip-day {
    display: flex;

    flex: 0 0 62px;
    flex-direction: column;

    min-height: 70px;

    align-items: center;
    justify-content: center;

    gap: 3px;

    padding: 8px 6px;

    border: 1px solid var(--choice-border);
    border-radius: 14px;

    color: var(--choice-text);
    background: var(--choice-bg);

    cursor: pointer;

    scroll-snap-align: start;

    transition:
        background .15s ease,
        border-color .15s ease,
        color .15s ease,
        transform .12s ease;
}


.date-strip-day:active {
    transform: scale(.97);
}


.date-strip-weekday {
    color: var(--choice-text);

    font-size: .72rem;
    font-weight: 700;

    text-transform: uppercase;

    opacity: .72;
}


.date-strip-number {
    font-size: 1.05rem;
    font-weight: 800;
}


@media (hover: hover) and (pointer: fine) {
    .date-strip-day:hover {
        border-color: var(--choice-border);

        color: var(--choice-hover-text);
        background: var(--choice-hover-bg);
    }

    .date-strip-day:hover .date-strip-weekday {
        color: var(--choice-hover-text);
    }
}


.date-strip-day.is-selected,
.date-strip-day.is-selected:hover {
    border-color: var(--choice-selected-border);

    color: var(--choice-selected-text);
    background: var(--choice-selected-bg);
}


.date-strip-day.is-selected .date-strip-weekday,
.date-strip-day.is-selected:hover .date-strip-weekday {
    color: var(--choice-selected-text);
    opacity: .85;
}


/* ==========================================================================
   10. "ELEGIR OTRA FECHA"
   ========================================================================== */

.date-tools {
    margin: 20px 0 0;
    padding-top: 16px;

    border-top: 1px solid var(--separator-color);
}


.date-tools summary,
.date-tools-summary {
    display: inline-flex;

    width: max-content;

    align-items: center;

    gap: 7px;

    color: var(--choice-text);

    cursor: pointer;

    font-weight: 700;
}


.date-controls {
    margin-top: 12px;
}


.date-picker-label {
    display: block;

    margin-bottom: 7px;

    color: var(--choice-text);

    font-size: .78rem;
    font-weight: 650;

    opacity: .72;
}


.date-picker-row {
    display: flex;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;
}


.date-picker-input {
    position: relative;

    width: 220px;
    max-width: 100%;
}


.date-picker-icon {
    position: absolute;
    z-index: 1;

    top: 50%;
    left: 12px;

    display: flex;

    color: var(--choice-text);

    pointer-events: none;

    transform:
        translateY(-50%);
}


.date-picker-input input {
    width: 100%;
    min-width: 0;
    min-height: 46px;

    padding:
        9px
        10px
        9px
        40px;

    border: 1px solid var(--choice-border);
    border-radius: 11px;

    color: var(--choice-text);
    background: var(--surface);
}


.date-picker-input input:focus {
    outline:
        2px solid
        color-mix(
            in srgb,
            var(--choice-border) 25%,
            transparent
        );

    border-color: var(--choice-border);
}


#search-date {
    min-height: 46px;

    white-space: nowrap;
}


/* ==========================================================================
   11. SLOTS DE HORARIO
   ========================================================================== */

#slot-list {
    transition:
        opacity .18s ease;
}


#slot-list.is-loading {
    opacity: .45;

    pointer-events: none;
}


.date-group + .date-group {
    margin-top: 20px;
}


.date-title {
    margin: 0 0 10px;

    font-size: .95rem;

    text-transform: capitalize;
}


.slot-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 9px;
}


.slot-button {
    display: grid;

    min-height: 72px;

    align-content: center;

    gap: 1px;

    padding: 9px 6px;

    border: 1px solid var(--choice-border);
    border-radius: 13px;

    color: var(--choice-text);
    background: var(--choice-bg);

    text-align: center;

    cursor: pointer;

    transition:
        border-color .15s ease,
        background .15s ease,
        color .15s ease,
        transform .12s ease;
}


@media (hover: hover) and (pointer: fine) {
    .slot-button:hover {
        border-color: var(--choice-border);

        color: var(--choice-hover-text);
        background: var(--choice-hover-bg);
    }
}


.slot-button.is-selected,
.slot-button.is-selected:hover {
    border-color: var(--choice-selected-border);

    color: var(--choice-selected-text);
    background: var(--choice-selected-bg);

    box-shadow:
        inset 0 0 0 1px
        var(--choice-selected-border);
}


.slot-button.is-selected .slot-end,
.slot-button.is-selected .slot-employee {
    color: var(--choice-selected-text);
    opacity: .8;
}


.slot-time {
    font-size: 1.05rem;
    font-weight: 800;
}


.slot-end {
    color: var(--choice-text);

    font-size: .7rem;
    font-weight: 600;

    opacity: .72;

    white-space: nowrap;
}


.slot-employee {
    overflow: hidden;

    margin-top: 2px;

    color: var(--choice-text);

    font-size: .8rem;

    opacity: .72;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ==========================================================================
   12. CONFIRMACIÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã¢â‚¬Å“N
   ========================================================================== */

.confirmation-card {
    border-color: var(--choice-border);

    background:
        linear-gradient(
            145deg,
            var(--surface),
            color-mix(
                in srgb,
                var(--choice-bg) 35%,
                var(--surface)
            )
        );
}


.confirmation-card h2,
.success-card h1 {
    margin: 0 0 8px;
}


.confirmation-card
.confirmation-actions {
    margin-top: 18px;
}


.summary-list {
    display: grid;

    gap: 0;

    margin: 16px 0 18px;

    border-top: 1px solid var(--separator-color);
}


.summary-row {
    display: grid;

    grid-template-columns:
        95px 1fr;

    gap: 12px;

    padding: 11px 0;

    border-bottom:
        1px solid var(--separator-color);
}


.summary-label {
    color: var(--choice-text);
    opacity: .72;
}


.summary-value {
    font-weight: 720;
}


.confirmation-actions {
    display: grid;

    grid-template-columns:
        1fr 1.4fr;

    gap: 9px;
}


/* ==========================================================================
   13. IDENTIFICACIÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã¢â‚¬Å“N DEL CLIENTE
   ========================================================================== */

.public-contact-card {
    display: grid;

    gap: 14px;

    margin-top: 18px;
    padding: 24px;
}


.public-contact-card h2,
.public-contact-card p {
    margin: 0;

    color: var(--choice-text);
}


.public-contact-card
.contact-field {
    display: grid;

    gap: 7px;

    color: var(--choice-text);

    font-weight: 700;
}


.public-contact-card
.contact-field input {
    width: 100%;
    min-height: 46px;

    padding: 10px 12px;

    border: 1px solid var(--choice-border);
    border-radius: 11px;

    color: var(--choice-text);
    background: var(--surface);
}


.public-contact-card
.contact-field input:focus {
    outline:
        2px solid
        color-mix(
            in srgb,
            var(--choice-border) 25%,
            transparent
        );

    border-color: var(--choice-border);
}


.public-contact-card
#public-new-customer-fields {
    display: grid;

    gap: 14px;

    margin-top: 2px;
}


.public-contact-card
#public-new-customer-fields[hidden] {
    display: none;
}


.public-contact-card
.confirmation-actions {
    margin-top: 4px;
}


/* ==========================================================================
   14. ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚Â°XITO / PÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚ÂGINAS DE ERROR
   ========================================================================== */

.success-card {
    padding: 28px 20px;

    border-color: var(--choice-border);

    text-align: center;
}


.success-icon {
    display: grid;

    width: 54px;
    height: 54px;

    margin: 0 auto 14px;

    place-items: center;

    border-radius: 50%;

    color: #fff;
    background: var(--brand);

    font-size: 1.7rem;
}


.unavailable {
    margin-top: 12vh;

    text-align: center;
}


.unavailable h1 {
    margin: 8px 0;
}


/* ==========================================================================
   15. SELECTOR DE CLIENTE / CITA PÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Â¦Ãƒâ€šÃ‚Â¡BLICA
   ========================================================================== */

.appointment-choice-list {
    display: grid;

    gap: 10px;
}


.appointment-choice-form {
    margin: 0;
}


.appointment-choice {
    display: grid;

    width: 100%;
    min-height: 96px;

    gap: 5px;

    padding: 15px 16px;

    border: 1px solid var(--line);
    border-radius: 16px;

    color: var(--ink);
    background: var(--surface);

    box-shadow:
        0 4px 14px
        rgba(0, 0, 0, .05);

    text-align: left;

    cursor: pointer;

    transition:
        border-color .15s ease,
        background .15s ease,
        transform .12s ease,
        box-shadow .15s ease;
}


.appointment-choice:hover {
    border-color: var(--choice-border);
    background: var(--choice-hover-bg);
}


.appointment-choice:active {
    transform: scale(.985);
}


.appointment-choice:focus-visible {
    outline:
        3px solid
        color-mix(
            in srgb,
            var(--choice-border) 25%,
            transparent
        );

    outline-offset: 2px;

    border-color: var(--choice-border);
}


.appointment-choice-customer {
    display: block;

    font-size: 1rem;
    font-weight: 800;

    letter-spacing: -.015em;
}


.appointment-choice-service {
    display: block;

    color: var(--muted);

    font-size: .9rem;
}


.appointment-choice-meta {
    display: flex;

    flex-direction: column;

    gap: 2px;

    margin-top: 4px;
}


.appointment-choice-meta
span:first-child {
    color: var(--brand-dark);

    font-size: .94rem;
    font-weight: 750;
}


.appointment-choice-meta
span:last-child {
    color: var(--muted);

    font-size: .84rem;
}


.appointment-choice-date {
    display: flex;

    align-items: baseline;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 3px;
}


.appointment-choice-date strong {
    color: var(--brand-dark);

    font-size: 1.05rem;
    font-weight: 850;
}


.appointment-choice-date span {
    color: var(--muted);

    font-size: .78rem;
}


.appointment-choice-employee {
    margin-top: 2px;

    color: var(--muted);

    font-size: .84rem;
}


/* ==========================================================================
   16. CITA ACTUAL / EDICIÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã¢â‚¬Å“N
   ========================================================================== */

.current-appointment-card {
    border-color: var(--choice-border);

    background:
        linear-gradient(
            145deg,
            var(--surface),
            color-mix(
                in srgb,
                var(--choice-bg) 35%,
                var(--surface)
            )
        );
}


.current-appointment-heading {
    align-items: flex-start;
    flex-direction: column;
}


.current-appointment-heading > div {
    display: grid;

    gap: 3px;
}


.current-appointment-summary {
    margin-bottom: 0;
}


.choose-another-link {
    display: inline-flex;

    width: 100%;
    min-height: 44px;

    align-items: center;
    justify-content: center;

    padding: 9px 12px;

    border: 1px solid var(--choice-border);
    border-radius: 11px;

    color: var(--choice-text);
    background: var(--choice-bg);

    text-align: center;
    text-decoration: none;

    font-size: .86rem;
    font-weight: 750;
}


.choose-another-link:hover,
.choose-another-link:focus-visible {
    outline: none;

    border-color: var(--choice-border);
    background: var(--choice-hover-bg);
}


.empty-edit-state {
    margin-top: 8vh;

    text-align: center;
}


.empty-edit-state h1 {
    margin: 8px 0;
}


.empty-edit-state p {
    margin-bottom: 0;
}


.edit-success-card {
    text-align: center;
}


.edit-success-intro {
    margin: 0;

    color: var(--muted);
}


.edit-success-footer {
    margin: 18px 0 0;

    color: var(--brand-dark);

    font-weight: 700;
}


/* ==========================================================================
   17. COMPARACIÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã¢â‚¬Å“N ANTES / DESPUÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚Â°S DE UNA CITA
   ========================================================================== */

.appointment-change {
    display: grid;

    gap: 10px;

    margin-top: 22px;

    text-align: left;
}


.appointment-state {
    padding: 16px;

    border: 1px solid var(--line);
    border-radius: 16px;
}


.appointment-state--before {
    background:
        color-mix(
            in srgb,
            var(--choice-bg) 35%,
            var(--surface)
        );
}


.appointment-state--after {
    border-color: var(--choice-border);

    background: var(--choice-bg);
}


.appointment-state-heading {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 12px;
}


.appointment-state-label {
    color: var(--muted);

    font-size: .76rem;
    font-weight: 800;

    letter-spacing: .06em;
    text-transform: uppercase;
}


.appointment-state--after
.appointment-state-label {
    color: var(--brand-dark);
}


.appointment-state-check {
    display: grid;

    width: 24px;
    height: 24px;

    place-items: center;

    border-radius: 50%;

    color: #fff;
    background: var(--brand);

    font-size: .76rem;
    font-weight: 800;
}


.appointment-state-content {
    display: grid;

    gap: 5px;
}


.appointment-state-service {
    font-size: 1rem;
    font-weight: 800;
}


.appointment-state-employee {
    color: var(--ink);
}


.appointment-state-date {
    color: var(--muted);

    font-size: .9rem;
}


.appointment-change-arrow {
    display: grid;

    height: 26px;

    place-items: center;

    color: var(--brand);

    font-size: 1.25rem;
    font-weight: 800;
}


.arrow-desktop {
    display: none;
}


/* ==========================================================================
   18. ACCESIBILIDAD
   ========================================================================== */

.visually-hidden {
    position: absolute;

    width: 1px;
    height: 1px;

    margin: -1px;
    padding: 0;

    overflow: hidden;

    border: 0;

    clip:
        rect(0, 0, 0, 0);

    white-space: nowrap;
}


/* ==========================================================================
   19. MOBILE ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚Â BOOKING
   <= 768px
   ========================================================================== */

@media (max-width: 768px) {

    /*
     * Un ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Âºnico paso visible.
     */

    .booking-step {
        border-color: var(--choice-border);
        display: none;
    }


    .booking-step.is-mobile-active {
        display: block;
    }


    /*
     * Stepper.
     */

    .booking-stepper {
        position: relative;

        display: grid;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        width: 100%;

        margin: 4px 0 20px;
        padding: 0 4px;
    }


    .booking-stepper::before {
        position: absolute;

        top: 16px;
        right: 16.5%;
        left: 16.5%;

        height: 1px;

        background: var(--mobile-step-line);

        content: "";
    }


    .booking-stepper-step {
        position: relative;
        z-index: 1;

        display: flex;

        flex-direction: column;

        align-items: center;

        gap: 7px;

        padding: 0;

        border: 0;

        color: var(--mobile-step-label);
        background: transparent;

        font: inherit;

        cursor: default;
    }


    .booking-stepper-circle {
        display: grid;

        width: 32px;
        height: 32px;

        place-items: center;

        border: 1px solid var(--mobile-step-idle-border);
        border-radius: 50%;

        color: var(--mobile-step-idle-text);
        background: var(--mobile-step-idle-bg);

        font-size: .82rem;
        font-weight: 700;
    }


    .booking-stepper-label {
        font-size: .72rem;
        font-weight: 600;

        text-align: center;
    }


    .booking-stepper-step.is-active
    .booking-stepper-circle {
        border-color: var(--mobile-step-active-border);

        color: var(--mobile-step-active-text);
        background: var(--mobile-step-active-bg);
    }


    .booking-stepper-step.is-active
    .booking-stepper-label {
        color: var(--mobile-step-active-label);
    }


    .booking-stepper-step.is-complete {
        cursor: pointer;
    }


    .booking-stepper-step.is-complete
    .booking-stepper-circle {
        border-color: var(--mobile-step-complete-border);

        color: var(--mobile-step-complete-text);
        background: var(--mobile-step-complete-bg);
    }


    .booking-stepper-step.is-complete
    .booking-stepper-label {
        color: var(--mobile-step-complete-label);
    }


    .booking-stepper-step:disabled {
        opacity: 1;
    }


    /*
     * Resumen de selecciÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â³n.
     */

    .booking-selection-summary {
        display: grid;

        gap: 8px;

        margin: -5px 0 18px;
        padding: 13px 15px;

        border: 1px solid var(--selection-summary-border);
        border-radius: 14px;

        background: var(--selection-summary-bg);
    }


    .booking-selection-summary-item {
        display: grid;

        grid-template-columns:
            82px minmax(0, 1fr);

        align-items: baseline;

        gap: 8px;
    }


    .booking-selection-summary-label {
        color: var(--selection-summary-label);

        font-size: .75rem;
        font-weight: 700;
    }


    .booking-selection-summary-item strong {
        min-width: 0;

        overflow: hidden;

        color: var(--selection-summary-text);

        font-size: .82rem;
        font-weight: 750;

        text-overflow: ellipsis;
        white-space: nowrap;
    }


    /*
     * Botones Continuar.
     */

    .mobile-step-actions {
        display: flex;

        margin-top: 20px;
    }


    .mobile-step-actions
    .primary-button {
        width: 100%;
        min-height: 48px;
    }


    /*
     * Selector manual de fecha.
     */

    .date-picker-row {
        flex-direction: column;

        align-items: flex-start;
    }


    .date-picker-input {
        width: 210px;
    }


    #search-date {
        width: auto;
        min-width: 120px;
    }
}


/* ==========================================================================
   20. TABLET / DESKTOP PEQUEÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¹Ã…â€œO
   >= 620px
   ========================================================================== */

@media (min-width: 620px) {

    .page-shell {
        padding:
            36px
            22px
            64px;
    }


    .card {
        padding: 24px;
    }


    .booking-brand {
        margin-bottom: 28px;
    }


    .booking-logo {
        width: 170px;
    }


    .appointment-change {
        grid-template-columns:
            minmax(0, 1fr)
            auto
            minmax(0, 1fr);

        align-items: stretch;
    }


    .appointment-change-arrow {
        width: 28px;
        height: auto;
    }


    .arrow-mobile {
        display: none;
    }


    .arrow-desktop {
        display: inline;
    }


    .current-appointment-heading {
        flex-direction: row;
    }


    .choose-another-link {
        width: auto;
    }
}


/* ==========================================================================
   21. DESKTOP
   >= 769px
   ========================================================================== */

@media (min-width: 769px) {

    /*
     * En desktop siempre se muestran
     * Servicio + Profesional + Fecha.
     */

    .booking-step {
        border-color: var(--choice-border);
        display: block;
    }


    /*
     * Stepper y resumen son exclusivos
     * de mÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã¢â‚¬Å¡Ãƒâ€šÃ‚Â³vil.
     */

    .booking-stepper,
    .booking-selection-summary,
    .mobile-step-actions {
        display: none;
    }
}


/* ==========================================================================
   22. MÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¦Ã¢â‚¬Å“VILES MUY PEQUEÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€¹Ã…â€œOS
   <= 420px
   ========================================================================== */

@media (max-width: 420px) {

    .appointment-selector {
        padding: 16px;
    }


    .appointment-choice {
        padding: 14px;

        border-radius: 14px;
    }


    .appointment-choice-customer {
        font-size: .97rem;
    }
}

/* ==========================================================================
   23. BRANDING MÃƒÆ’Ã†â€™ÃƒÂ¢Ã¢â€šÂ¬Ã…â€œVIL
   ========================================================================== */

@media (max-width: 768px) {

    /*
     * El logo de marca necesita mÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¡s presencia en mÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â³vil.
     * En un iPhone 13 Pro Max (~428 CSS px) queda en torno a 220 px.
     */
    .booking-logo {
        width: clamp(190px, 52vw, 230px);
    }
}