/* ═══════════ Reserva pública de cita ═══════════ */

:root {
    --rs-fondo: #EDEFF2;
    --rs-suave: color-mix(in srgb, var(--p-acc) 9%, #fff);
    --rs-medio: color-mix(in srgb, var(--p-acc) 30%, #fff);
}

body,
.main, .content {
    background: var(--rs-fondo);
}

.rs-page {
    width: 100%;
    padding-top: 60px;
    font-family: 'DM Sans', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: var(--p-ink);
}

.rs-form {
    box-sizing: border-box;
    width: 100%;
    max-width: 1304px;
    margin: 0 auto;
    padding: 0 32px;
}

.rs-page button {
    font-family: inherit;
}

.rs-page :focus-visible {
    outline: 3px solid var(--p-acc-ink);
    outline-offset: 2px;
}

/* ═══════════ Portada del negocio ═══════════ */

.rs-portada {
    position: relative;
    display: flex;
    border-radius: 24px;
    overflow: hidden;
    min-height: 390px;
    background: var(--p-acc);
    color: var(--p-on);
}

.rs-portada-texto {
    flex: 1 1 440px;
    min-width: 0;
    box-sizing: border-box;
    padding: 28px 34px 92px;
}

.rs-portada-marca {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rs-logo {
    display: flex;
    flex-shrink: 0;
}

    .rs-logo img {
        height: 72px;
        width: auto;
        max-width: 200px;
        object-fit: contain;
        border-radius: 14px;
    }

.rs-logo-ini {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--p-ink);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.rs-estado-corto {
    display: none;
    font-size: 15px;
}

.rs-negocio {
    margin: 16px 0 8px;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(50px, 5.6vw, 76px);
    font-weight: 400;
    line-height: 1;
    overflow-wrap: anywhere;
}

.rs-dir {
    color: inherit;
    font-size: 16px;
    text-decoration: none;
}

    .rs-dir span {
        text-decoration: underline;
        text-underline-offset: 3px;
        white-space: nowrap;
    }

.rs-contacto {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.rs-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid color-mix(in srgb, var(--p-on) 65%, transparent);
    border-radius: 10px;
    color: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

    .rs-pill svg {
        width: 15px;
        height: 15px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

@media (hover: hover) {
    .rs-pill:hover {
        background: color-mix(in srgb, var(--p-on) 14%, transparent);
    }
}

.rs-ver-horario {
    display: none;
}

.rs-portada-foto {
    position: relative;
    flex: 1.25 1 420px;
    min-width: 0;
    background: var(--p-ink);
}

    .rs-portada-foto img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.rs-horas {
    position: absolute;
    top: 18px;
    right: 18px;
    box-sizing: border-box;
    max-width: 340px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    color: var(--p-ink);
}

.rs-estado {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}

.rs-estado--abierto {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #17643A;
}

    .rs-estado--abierto::before {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #1E8A4F;
    }

.rs-horario {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--p-ink2);
    white-space: pre-line;
}

.rs-en-datos .rs-portada {
    min-height: 280px;
}

.rs-en-datos .rs-negocio {
    font-size: clamp(40px, 4.2vw, 54px);
}

.rs-en-datos .rs-contacto,
.rs-en-datos .rs-horas,
.rs-en-datos .rs-ver-horario {
    display: none;
}

.rs-en-datos .rs-estado-corto {
    display: inline;
}

/* ═══════════ Tablero ═══════════ */

.rs-tablero {
    position: relative;
    z-index: 2;
    margin: -64px 32px 48px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(23, 25, 28, .05), 0 22px 50px rgba(23, 25, 28, .14);
    overflow: clip;
}

.rs-cambio {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 16px;
    padding: 12px 26px;
    background: #FBF1DC;
    color: #5E4A1F;
    font-size: 14px;
    line-height: 1.45;
}

    .rs-cambio a {
        color: inherit;
        font-weight: 600;
        text-underline-offset: 3px;
        white-space: nowrap;
    }

.rs-antes {
    margin-top: 12px;
    font-size: 13px;
    color: var(--p-ink2);
}

    .rs-antes s {
        text-decoration-color: #B5574B;
    }

.rs-columnas {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
}

.rs-col {
    min-width: 0;
}

.rs-columnas > .rs-col + .rs-col {
    border-left: 1px solid var(--p-line);
}

.rs-section {
    padding: 26px;
    min-width: 0;
}

.rs-section--prof {
    padding-top: 0;
}

.rs-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    margin-bottom: 12px;
}

.rs-h2 {
    margin: 0;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.15;
}

    .rs-h2:focus {
        outline: none;
    }

.rs-h3 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 500;
}

.rs-section-note {
    font-size: 14px;
    color: var(--p-ink2);
}

/* ═══════════ Servicios ═══════════ */

.rs-chips {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--p-line);
    scrollbar-width: none;
}

    .rs-chips::-webkit-scrollbar {
        display: none;
    }

.rs-chip {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--p-ink2);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

    .rs-chip[aria-selected="true"] {
        border-bottom-color: var(--p-acc);
        color: var(--p-ink);
        font-weight: 600;
    }

.rs-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: var(--p-acc);
    color: var(--p-on);
    font-size: 12px;
    font-weight: 700;
}

.rs-services {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rs-service {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 62px;
    padding: 10px 14px;
    border: 1px solid var(--p-line);
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

    .rs-service[aria-pressed="true"] {
        border: 1.5px solid var(--p-acc);
        background: var(--rs-suave);
    }

.rs-service-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.rs-service-name {
    font-size: 15px;
    font-weight: 600;
}

.rs-service-detail {
    font-size: 13px;
    color: var(--p-ink2);
}

.rs-service-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.4;
    color: var(--p-ink2);
}

.rs-service-precio {
    flex-shrink: 0;
    font-size: 15px;
    font-weight: 600;
}

.rs-check {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--p-line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--p-ink);
}

    .rs-check svg {
        width: 13px;
        height: 13px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2.4;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .rs-check .rs-ico-ok {
        display: none;
    }

.rs-service[aria-pressed="true"] .rs-check {
    background: var(--p-acc);
    border-color: var(--p-acc);
    color: var(--p-on);
}

.rs-service[aria-pressed="true"] .rs-ico-mas {
    display: none;
}

.rs-service[aria-pressed="true"] .rs-ico-ok {
    display: block;
}

.rs-service:disabled {
    cursor: default;
}

    .rs-service:disabled .rs-service-name,
    .rs-service:disabled .rs-check {
        opacity: .4;
    }

    .rs-service:disabled .rs-service-detail {
        font-style: italic;
    }

/* ═══════════ Profesionales ═══════════ */

.rs-emps {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.rs-emp {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    min-height: 40px;
    padding: 0 13px 0 5px;
    border: 1px solid var(--p-line);
    border-radius: 999px;
    background: #fff;
    color: var(--p-ink);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.rs-emp-pic {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--rs-suave);
    color: var(--p-ink2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    overflow: hidden;
}

    .rs-emp-pic img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .rs-emp-pic svg {
        width: 17px;
        height: 17px;
        stroke: currentColor;
        fill: none;
        stroke-width: 1.7;
        stroke-linecap: round;
    }

.rs-emp-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rs-emp[aria-pressed="true"] {
    border-color: var(--p-acc);
    background: var(--rs-suave);
    font-weight: 600;
}

/* ═══════════ Días ═══════════ */

.rs-month {
    display: flex;
    align-items: center;
    gap: 2px;
}

.rs-month-label {
    font-size: 14px;
    color: var(--p-ink2);
    text-align: center;
    white-space: nowrap;
}

.rs-nav {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--p-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .rs-nav svg {
        width: 16px;
        height: 16px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .rs-nav:disabled {
        opacity: .35;
        cursor: default;
    }

.rs-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.rs-days--mes {
    gap: 2px;
}

.rs-cal-sem {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    font-size: 13px;
    color: var(--p-ink2);
}

.rs-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 0;
    min-height: 62px;
    border: 1px solid var(--p-line);
    border-radius: 10px;
    background: #fff;
    color: var(--p-ink);
    cursor: pointer;
}

.rs-day--mes {
    height: 44px;
    min-height: 0;
    width: 44px;
    max-width: 100%;
    justify-self: center;
    border-color: transparent;
    border-radius: 50%;
    background: none;
    font-size: 15px;
    font-weight: 500;
}

.rs-day--hoy {
    border-color: var(--rs-medio);
}

.rs-day-num {
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
}

.rs-day-name {
    font-size: 13px;
}

.rs-day:disabled {
    cursor: default;
    color: color-mix(in srgb, var(--p-ink2) 62%, #fff);
    font-weight: 400;
}

.rs-day[aria-pressed="true"] {
    background: var(--p-acc);
    border-color: var(--p-acc);
    color: var(--p-on);
    font-weight: 700;
}

/* ═══════════ Horas ═══════════ */

.rs-hint {
    font-size: 14px;
    color: var(--p-ink2);
    line-height: 1.5;
}

.rs-quick {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 14px;
    padding: 10px 12px;
    border: 1.5px dashed var(--p-acc);
    border-radius: 12px;
    background: var(--rs-suave);
    color: var(--p-ink);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

    .rs-quick svg {
        width: 17px;
        height: 17px;
        flex-shrink: 0;
        stroke: var(--p-acc-ink);
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .rs-quick b {
        color: var(--p-acc-ink);
    }

.rs-turno {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--p-ink2);
}

    .rs-turno + .rs-times-grid {
        margin-bottom: 14px;
    }

.rs-times-grid:last-child {
    margin-bottom: 0;
}

.rs-times-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.rs-time {
    min-height: 44px;
    border: 1px solid var(--p-line);
    border-radius: 10px;
    background: #fff;
    color: var(--p-ink);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

    .rs-time[aria-pressed="true"] {
        background: var(--p-acc);
        border-color: var(--p-acc);
        color: var(--p-on);
        font-weight: 600;
    }

.rs-empty {
    font-size: 14px;
    color: var(--p-ink2);
    padding: 6px 0;
}

@media (hover: hover) {
    .rs-service:not(:disabled):hover, .rs-time:hover, .rs-day:not(:disabled):hover, .rs-emp:hover {
        border-color: var(--p-ink2);
    }

    .rs-chip:hover {
        color: var(--p-ink);
    }

    .rs-nav:not(:disabled):hover {
        background: var(--p-soft);
    }

    .rs-service[aria-pressed="true"]:hover, .rs-time[aria-pressed="true"]:hover, .rs-day[aria-pressed="true"]:hover {
        border-color: var(--p-acc);
    }
}

/* ═══════════ Ticket ═══════════ */

.rs-ticket {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: stretch;
    background: var(--rs-suave);
    border-top: 1px solid var(--p-line);
}

.rs-t-label {
    font-size: 14px;
    color: var(--p-ink2);
}

.rs-t-cuando {
    flex: 0 0 230px;
    box-sizing: border-box;
    padding: 18px 26px;
}

.rs-t-dia {
    min-height: 40px;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 36px;
    line-height: 1.1;
}

.rs-t-diahora {
    display: none;
}

.rs-t-hora {
    font-size: 16px;
    font-weight: 600;
}

.rs-corte {
    position: relative;
    flex-shrink: 0;
    width: 0;
    border-left: 2px dashed var(--rs-medio);
}

    .rs-corte::before, .rs-corte::after {
        content: "";
        position: absolute;
        left: -10px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
    }

    .rs-corte::before {
        top: -9px;
        background: #fff;
    }

    .rs-corte::after {
        bottom: -9px;
        background: var(--rs-fondo);
    }

.rs-t-servicios {
    flex: 1 1 auto;
    min-width: 0;
    padding: 14px 16px 14px 26px;
}

.rs-t-lista {
    max-height: 88px;
    overflow-y: auto;
}

.rs-t-linea {
    display: none;
}

.rs-t-ayuda {
    font-size: 15px;
    font-weight: 600;
}

.rs-t-fila {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    font-size: 15px;
}

.rs-t-nombre {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
}

.rs-t-min {
    flex-shrink: 0;
    color: var(--p-ink2);
}

.rs-t-euros {
    flex-shrink: 0;
    min-width: 44px;
    font-weight: 600;
    text-align: right;
}

.rs-t-quitar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--p-ink2);
    cursor: pointer;
}

    .rs-t-quitar svg {
        width: 15px;
        height: 15px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        stroke-linecap: round;
    }

@media (hover: hover) {
    .rs-t-quitar:hover {
        background: var(--rs-medio);
        color: var(--p-ink);
    }
}

.rs-t-total {
    flex: 0 0 300px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 26px;
}

.rs-t-precio {
    white-space: nowrap;
    min-height: 40px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.rs-btn {
    position: relative;
    flex-shrink: 0;
    min-height: 50px;
    padding: 0 24px;
    border: none;
    border-radius: 12px;
    background: var(--p-acc);
    color: var(--p-on);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: filter .15s;
}

@media (hover: hover) {
    .rs-btn:not(:disabled):hover {
        filter: brightness(.94);
    }
}

.rs-btn:disabled,
.rs-btn[aria-disabled="true"] {
    background: var(--p-line);
    color: var(--p-ink2);
}

.rs-btn:disabled {
    cursor: not-allowed;
}

.rs-btn[aria-disabled="true"] {
    filter: none;
}

.rs-falta {
    animation: rs-falta 1.2s ease;
}

@keyframes rs-falta {
    0%, 100% { box-shadow: none; }
    20%, 60% { box-shadow: inset 0 0 0 2px var(--p-acc); }
}

.rs-turnos {
    display: flex;
    gap: 6px;
    margin: 0 0 12px;
    padding: 4px;
    border-radius: 12px;
    background: var(--rs-suave);
}

.rs-turno-btn {
    flex: 1;
    min-height: 40px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--p-ink2);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

    .rs-turno-btn span {
        margin-left: 4px;
        font-size: 12px;
        opacity: .75;
    }

    .rs-turno-btn[aria-pressed="true"] {
        background: #fff;
        color: var(--p-ink);
        box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    }

.rs-btn.loading {
    color: transparent;
    pointer-events: none;
}

    .rs-btn.loading::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 20px;
        height: 20px;
        margin: -10px 0 0 -10px;
        border-radius: 50%;
        border: 2.5px solid color-mix(in srgb, var(--p-on) 35%, transparent);
        border-top-color: var(--p-on);
        animation: rs-spin .7s linear infinite;
    }

@keyframes rs-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ═══════════ Paso 2 ═══════════ */

.rs-step2 {
    display: flex;
}

.rs-resumen {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    padding: 32px;
    background: var(--rs-suave);
}

.rs-resumen-dia {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 54px;
    line-height: 1.04;
}

.rs-resumen-hora {
    font-size: 22px;
    font-weight: 600;
}

.rs-resumen-bloque {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 2px dashed var(--rs-medio);
}

.rs-resumen-prof {
    font-size: 14px;
    color: var(--p-ink2);
}

.rs-resumen-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.rs-link {
    margin-top: 10px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--p-ink);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.rs-datos {
    flex: 1.6 1 0;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
}

.rs-step2-sub {
    margin: 4px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--p-ink2);
}

.rs-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.rs-field--full, .rs-recordar {
    grid-column: 1 / -1;
}

.rs-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rs-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--p-ink);
}

.rs-optional {
    font-weight: 400;
    color: var(--p-ink2);
}

.rs-input {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #C9CED5;
    border-radius: 10px;
    background: #fff;
    color: var(--p-ink);
    font: 16px 'DM Sans', -apple-system, 'Segoe UI', sans-serif;
}

textarea.rs-input {
    min-height: 76px;
    resize: vertical;
}

.rs-input::placeholder {
    color: var(--p-ink2);
    opacity: .75;
}

.rs-page .rs-input:focus, .rs-page .rs-input:focus-visible {
    outline: none;
    border-color: var(--p-acc);
    box-shadow: 0 0 0 3px var(--rs-medio);
}

.rs-input[aria-invalid="true"] {
    border-color: #B3261E;
}

.rs-error {
    display: none;
    font-size: 14px;
    color: #B3261E;
}

    .rs-error.is-visible {
        display: block;
    }

.rs-recordar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}

    .rs-recordar input {
        width: 20px;
        height: 20px;
        margin: 0;
        accent-color: var(--p-acc);
        flex-shrink: 0;
    }

.rs-legal {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--p-ink2);
}

    .rs-legal strong {
        color: var(--p-ink);
        font-weight: 600;
    }

    .rs-legal a {
        color: inherit;
        text-decoration: underline;
    }

.rs-legal--recaptcha {
    font-size: 12px;
}

.grecaptcha-badge {
    visibility: hidden !important;
}

.rs-datos-pie {
    display: flex;
    justify-content: flex-end;
}

/* ═══════════ Pantallas medianas ═══════════ */

@media (max-width: 1080px) {
    .rs-columnas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

        .rs-columnas > .rs-col:first-child {
            grid-column: 1 / -1;
            border-bottom: 1px solid var(--p-line);
        }

        .rs-columnas > .rs-col:nth-child(2) {
            border-left: 0;
        }

    .rs-t-cuando {
        flex-basis: 180px;
    }

    .rs-t-total {
        flex-basis: 250px;
    }
}

/* ═══════════ Móvil ═══════════ */

@media (max-width: 720px) {
    .rs-page {
        padding-top: 0;
    }

    .main {
        position: relative;
    }

    .guest-tools {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .rs-logo img {
        height: 52px;
    }

    .rs-logo-ini {
        width: 52px;
        height: 52px;
    }

    .rs-form {
        padding: 0;
    }

    .rs-portada, .rs-en-datos .rs-portada {
        flex-direction: column;
        min-height: 0;
        border-radius: 0;
        padding-bottom: 44px;
    }

    .rs-portada-foto {
        flex: 0 0 150px;
        order: -1;
    }

    .rs-portada--sinfoto {
        padding-top: 4px;
    }

    .rs-portada-texto {
        flex: 0 0 auto;
        padding: 14px 18px 8px;
    }

    .rs-estado-corto {
        display: inline;
    }

    .rs-negocio, .rs-en-datos .rs-negocio {
        margin: 10px 0 4px;
        font-size: 38px;
    }

    .rs-dir {
        font-size: 15px;
    }

    .rs-contacto {
        margin-top: 10px;
    }

    .rs-pill {
        padding: 0 11px;
    }

    .rs-ver-horario {
        display: inline-block;
        min-height: 44px;
        padding: 0;
        border: 0;
        background: none;
        color: inherit;
        font-size: 14px;
        font-weight: 500;
        text-decoration: underline;
        text-underline-offset: 3px;
        cursor: pointer;
    }

    .rs-horas {
        position: static;
        display: none;
        max-width: none;
        margin: 0 14px;
    }

        .rs-horas.is-abierto {
            display: block;
        }

    .rs-estado {
        display: none;
    }

    .rs-tablero {
        margin: -36px 12px 0;
        border-radius: 20px 20px 0 0;
    }

    .rs-columnas {
        display: block;
    }

        .rs-columnas > .rs-col + .rs-col {
            border-left: 0;
            border-top: 1px solid var(--p-line);
        }

        .rs-columnas > .rs-col:first-child {
            border-bottom: 0;
        }

    .rs-section {
        padding: 16px;
    }

    .rs-section--prof {
        padding-top: 0;
    }

    .rs-section-head {
        margin-bottom: 8px;
    }

    .rs-days {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 4px;
    }

    .rs-times-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .rs-ticket {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "dia precio" "linea linea" "corte corte" "boton boton";
        padding-top: 10px;
        background: #fff;
        border-radius: 18px 18px 0 0;
        border-top: 0;
        box-shadow: 0 -8px 26px rgba(23, 25, 28, .14);
    }

    .rs-t-cuando {
        grid-area: dia;
        padding: 0 16px;
    }

        .rs-t-cuando .rs-t-label, .rs-t-hora {
            display: none;
        }

    .rs-t-dia {
        min-height: 0;
        font-size: 24px;
    }

    .rs-t-diahora {
        display: inline;
    }

    .rs-t-servicios {
        grid-area: linea;
        padding: 0 16px 10px;
    }

        .rs-t-servicios .rs-t-label, .rs-t-lista {
            display: none;
        }

    .rs-t-linea {
        display: block;
        font-size: 14px;
        color: var(--p-ink2);
    }

    .rs-corte {
        display: none;
    }

    .rs-corte--pie {
        grid-area: corte;
        display: block;
        width: auto;
        height: 0;
        border-left: 0;
        border-top: 2px dashed var(--p-line);
    }

        .rs-corte--pie::before, .rs-corte--pie::after {
            top: -10px;
            bottom: auto;
            background: var(--rs-fondo);
        }

        .rs-corte--pie::before {
            left: -9px;
        }

        .rs-corte--pie::after {
            left: auto;
            right: -9px;
        }

    .rs-t-total {
        display: contents;
    }

    .rs-t-importe {
        grid-area: precio;
        padding: 0 16px;
    }

        .rs-t-importe .rs-t-label {
            display: none;
        }

    .rs-t-precio {
        min-height: 0;
        font-size: 22px;
    }

    .rs-ticket .rs-btn {
        grid-area: boton;
        margin: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    }

    .rs-step2 {
        flex-direction: column;
    }

    .rs-resumen, .rs-datos {
        flex: 0 0 auto;
        padding: 20px 16px;
    }

    .rs-resumen-dia {
        font-size: 32px;
    }

    .rs-resumen-hora {
        font-size: 18px;
    }

    .rs-fields {
        grid-template-columns: minmax(0, 1fr);
    }

    .rs-datos-pie {
        position: sticky;
        bottom: 0;
        margin: 0 -16px -20px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        background: #fff;
        border-top: 1px solid var(--p-line);
    }

        .rs-datos-pie .rs-btn {
            width: 100%;
        }
}

/* ═══════════ Utilidades ═══════════ */

.rs-hidden {
    display: none !important;
}

.rs-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ═══════════ Modal de avisos ═══════════ */

.dp-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(42,37,34,.45);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

    .dp-modal-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }

.dp-modal {
    width: 100%;
    max-width: 360px;
    padding: 28px 24px 24px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 40px rgba(42,37,34,.16);
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    transform: translateY(12px) scale(.97);
    transition: transform .25s cubic-bezier(.22,1,.36,1);
}

.dp-modal-overlay.open .dp-modal {
    transform: none;
}

.dp-modal-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: #FDEAEA;
    color: #B3261E;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dp-modal-title {
    margin-bottom: 12px;
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    color: var(--p-ink);
}

.dp-modal-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .dp-modal-list li {
        padding: 8px 12px;
        border-radius: 8px;
        background: var(--bg);
        font-size: 15px;
        color: var(--p-ink);
    }

.dp-modal-btn {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 12px;
    background: var(--p-acc);
    color: var(--p-on);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

@media (hover: hover) {
    .dp-modal-btn:hover {
        background: var(--p-acc);
    }
}

/* ═══════════ Movimiento reducido ═══════════ */
@media (prefers-reduced-motion: reduce) {
    .rs-page *,
    .dp-modal-overlay,
    .dp-modal {
        transition: none !important;
        animation: none !important;
    }

    .rs-btn.loading::after {
        animation: rs-spin 1.5s linear infinite !important;
    }
}

.guest-login-btn { display: none !important; }

/* ═══════════ Categorías con desplazamiento ═══════════ */

.rs-chips-zona {
    position: relative;
}

.rs-chips-flecha {
    position: absolute;
    top: 1px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--p-line);
    border-radius: 50%;
    background: #fff;
    color: var(--p-ink);
    box-shadow: 0 2px 8px rgba(22, 25, 29, .16);
    cursor: pointer;
}

.rs-chips-flecha[hidden] { display: none; }
.rs-chips-flecha--izq { left: 0; }
.rs-chips-flecha--der { right: 0; }

.rs-chips-flecha svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ═══════════ Descripciones largas ═══════════ */

.rs-service-caja {
    position: relative;
}

.rs-service-caja--mas .rs-service {
    padding-bottom: 32px;
}

.rs-service-mas {
    position: absolute;
    left: 14px;
    bottom: 6px;
    min-height: 24px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--p-acc-ink);
    font: 600 13px 'DM Sans', sans-serif;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.rs-desc {
    width: min(460px, calc(100vw - 32px));
    margin: auto;
    padding: 22px;
    border: 0;
    border-radius: 16px;
    color: var(--p-ink);
}

.rs-desc::backdrop {
    background: rgba(22, 25, 29, .45);
}

.rs-desc-texto {
    margin: 10px 0 18px;
    font-size: 15px;
    line-height: 1.55;
    white-space: pre-line;
}

/* ═══════════ Vista con sesión iniciada ═══════════ */

.sidebar, .sidebar-overlay, .bottom-nav, .guest-login-btn { display: none !important; }
.main { margin-left: 0 !important; width: 100%; height: 100dvh; overflow-y: auto; }
