/* ==========================================================================
   Pelos · página corta de reserva
   ========================================================================== */

.booking-body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    position: relative;
    overflow-x: hidden;
}
.booking-body::before {
    content: '';
    position: fixed;
    top: -18%;
    right: -10%;
    width: 680px;
    height: 680px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 180, 152, .22), transparent 66%);
    pointer-events: none;
}
.booking-body::after { opacity: .022; }

.res-shell {
    width: min(1160px, calc(100% - 64px));
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* ---------- Cabecera ---------- */
.res-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}
.res-brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.res-brand__word {
    font-family: var(--serif);
    font-size: 35px;
    line-height: 1;
    letter-spacing: -.035em;
    white-space: nowrap;
}
.res-brand__word span { color: var(--clay); }
.res-brand__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 16px;
    border-left: 1px solid var(--line-strong);
    min-width: 0;
}
.res-brand__meta strong {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.res-brand__meta > span { font-size: 10px; color: var(--muted); }
.res-header__right { display: flex; align-items: center; gap: 20px; flex: 0 0 auto; }
.res-headnote {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 8.5px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.res-headnote::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--forest);
}
.res-wa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 500;
    color: var(--ink-2);
    transition: border-color .2s, background .2s;
}
.res-wa:hover { border-color: var(--forest); background: var(--white); }
.res-wa span { font-size: 11px; }

/* ---------- Estructura ---------- */
.res-main {
    flex: 1;
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    align-items: center;
    gap: 64px;
    padding: 44px 0;
}
.res-side { min-width: 0; }
.res-intro .eyebrow { margin-bottom: 14px; }
.res-intro h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(54px, 5.2vw, 72px);
    line-height: .9;
    letter-spacing: -.035em;
    margin-bottom: 20px;
}
.res-intro h1 em { color: var(--forest); }
.res-lead {
    max-width: 330px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--muted);
}
.res-mini {
    margin-top: 12px;
    font-size: 10px;
    line-height: 1.5;
    color: var(--muted-2);
    max-width: 300px;
}

.res-contact {
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    max-width: 380px;
}
.res-label {
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.res-contact h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 29px;
    line-height: 1;
    letter-spacing: -.02em;
    margin: 7px 0 8px;
}
.res-contact__desc {
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 16px;
    max-width: 320px;
}
.res-contact dl { display: grid; gap: 9px; }
.res-contact dl > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
.res-contact dt {
    font-size: 7.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted-2);
    padding-top: 3px;
}
.res-contact dd { font-size: 10.5px; line-height: 1.5; color: var(--ink-2); }
.res-contact dd a { border-bottom: 1px solid var(--line-strong); padding-bottom: 1px; }
.res-contact dd a:hover { border-color: var(--forest); }
.res-social {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 9.5px;
}
.res-social a { color: var(--muted); }
.res-social a:hover { color: var(--forest); }

/* ---------- Tarjeta de reserva ---------- */
.res-panel {
    background: var(--white);
    border: 1px solid rgba(29, 27, 24, .08);
    border-radius: 20px;
    box-shadow: 0 34px 70px -48px rgba(45, 38, 27, .45);
    padding: 28px 30px 24px;
    min-width: 0;
    scroll-margin-top: 22px;
}
.res-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.res-panel__head .res-label { margin-bottom: 6px; }
.res-panel__head h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -.025em;
}
.res-badge {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 7.5px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    background: #fbf8f2;
}

.res-form { display: flex; flex-direction: column; gap: 14px; }
.res-row { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.res-field-label {
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted);
}
.res-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}
.res-date-label { font-size: 9.5px; color: var(--muted-2); white-space: nowrap; }

.res-select {
    width: 100%;
    height: 43px;
    padding: 0 34px 0 13px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background-color: var(--white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237b7469' stroke-width='1.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    font-size: 12px;
    color: var(--ink);
    appearance: none;
    transition: border-color .2s, box-shadow .2s;
}
.res-select:focus {
    outline: 0;
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(63, 85, 71, .1);
}

/* Fechas */
.res-date-wrap { display: flex; align-items: center; gap: 6px; min-width: 0; }
.res-arrow {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--white);
    color: var(--muted);
    font-size: 11px;
    line-height: 1;
    transition: border-color .2s, color .2s;
}
.res-arrow:hover { border-color: var(--forest); color: var(--forest); }
.res-dates {
    display: flex;
    gap: 5px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding: 2px 1px;
}
.res-dates::-webkit-scrollbar { display: none; }
.res-date {
    flex: 0 0 52px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    transition: border-color .2s, background .2s, color .2s;
}
.res-date:hover:not(:disabled) { border-color: var(--forest); }
.res-date__dow {
    font-size: 7.5px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted-2);
}
.res-date__num {
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1;
}
.res-date__month {
    font-size: 7px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.res-date.is-today:not(.is-selected) .res-date__num { color: var(--clay); }
.res-date.is-selected { background: var(--forest); border-color: var(--forest); }
.res-date.is-selected .res-date__dow,
.res-date.is-selected .res-date__month { color: rgba(246, 242, 236, .62); }
.res-date.is-selected .res-date__num { color: var(--paper); }
.res-date:disabled { opacity: .35; cursor: not-allowed; }

/* Horas */
.res-slots {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    min-height: 36px;
}
.res-slot {
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--white);
    font-size: 10.5px;
    font-weight: 500;
    color: var(--ink-2);
    transition: border-color .2s, background .2s, color .2s;
}
.res-slot:hover { border-color: var(--forest); }
.res-slot.is-selected { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.res-empty {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px dashed var(--line);
    border-radius: 7px;
    font-size: 9.5px;
    color: var(--muted-2);
    text-align: center;
}
.res-loading {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}
.res-loading span {
    height: 36px;
    border-radius: 7px;
    background: linear-gradient(90deg, #f3eee6, #fbf8f3, #f3eee6);
    background-size: 200% 100%;
    animation: res-shimmer 1.3s infinite;
}
@keyframes res-shimmer { to { background-position: -200% 0; } }

/* Datos */
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.res-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.res-field > span {
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted);
}
.res-field > span small { font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted-2); }
.res-field input {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--white);
    font-size: 12px;
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.res-field input::placeholder { color: #b3aa9d; }
.res-field input:focus {
    outline: 0;
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(63, 85, 71, .1);
}

.res-check { margin-top: 0; font-size: 9.5px; line-height: 1.5; gap: 8px; }
.res-check .check__box { width: 15px; height: 15px; border-radius: 3px; }
.res-check .check__box::after { width: 7px; height: 4px; }
.res-check strong { color: var(--ink-2); }

.res-error { min-height: 14px; margin: 0; font-size: 10px; color: var(--danger); }
.res-error:empty { display: none; }

.res-submit {
    width: 100%;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--forest);
    border-radius: 999px;
    background: var(--forest);
    color: #f8f4ed;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    box-shadow: 0 10px 20px -14px rgba(44, 62, 51, .8);
    transition: background .2s, border-color .2s, transform .2s;
}
.res-submit:hover { background: var(--forest-deep); border-color: var(--forest-deep); transform: translateY(-1px); }
.res-submit:disabled { opacity: .5; cursor: wait; transform: none; }
.res-submit span { font-size: 13px; }
.res-fine { font-size: 8.5px; line-height: 1.5; text-align: center; color: var(--muted-2); }

/* Éxito */
.res-success { text-align: center; padding: 22px 6px 14px; }
.res-success__mark {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--forest-soft);
    color: var(--forest);
}
.res-success__mark svg { width: 25px; height: 25px; }
.res-success .eyebrow { justify-content: center; }
.res-success h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 38px;
    line-height: .98;
    letter-spacing: -.025em;
    margin: 10px 0 14px;
}
.res-success h2 em { color: var(--forest); }
.res-success__lead { max-width: 360px; margin: 0 auto; font-size: 11.5px; line-height: 1.65; color: var(--muted); }
.res-code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 20px 0;
    padding: 8px 14px;
    border: 1px dashed var(--line-strong);
    border-radius: 7px;
    font-size: 9.5px;
    color: var(--muted);
    letter-spacing: .04em;
}
.res-code strong { font-size: 11px; letter-spacing: .1em; color: var(--ink); }
.res-success__actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.res-success__actions .btn { height: 40px; padding: 0 18px; font-size: 10.5px; }

/* ---------- Pie ---------- */
.res-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 0 24px;
    border-top: 1px solid var(--line);
    font-size: 9px;
    color: var(--muted-2);
    letter-spacing: .02em;
}
.res-credit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
}
.res-credit:hover { color: var(--ink); }
.res-credit img { height: 20px; width: auto; opacity: .86; }
.res-credit:hover img { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .res-main { gap: 42px; }
    .res-intro h1 { font-size: clamp(50px, 5.4vw, 64px); }
    .res-panel { padding: 25px 24px 22px; }
    .res-contact { max-width: 340px; }
}

@media (max-width: 900px) {
    .res-shell { width: min(680px, calc(100% - 40px)); }
    .res-main { grid-template-columns: 1fr; gap: 26px; padding: 28px 0 32px; }
    .res-panel { order: 1; }
    .res-side { order: 2; }
    .res-intro { display: none; }
    .res-contact {
        margin-top: 0;
        padding-top: 20px;
        max-width: none;
        border-top: 1px solid var(--line);
    }
    .res-contact__desc { max-width: 480px; }
    .res-contact dl { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
    .res-contact dl > div { grid-template-columns: 58px minmax(0, 1fr); }
    .res-footer { padding-bottom: 22px; }
}

@media (max-width: 620px) {
    .res-shell { width: calc(100% - 28px); }
    .res-header { padding: 17px 0; gap: 12px; }
    .res-brand { gap: 11px; }
    .res-brand__word { font-size: 30px; }
    .res-brand__meta { padding-left: 11px; }
    .res-brand__meta strong { font-size: 7.5px; letter-spacing: .1em; }
    .res-brand__meta > span { font-size: 8.5px; }
    .res-headnote { display: none; }
    .res-wa { height: 31px; padding: 0 11px; font-size: 9px; }
    .res-main { padding: 20px 0 26px; gap: 20px; }
    .res-panel { padding: 20px 18px 18px; border-radius: 16px; }
    .res-panel__head { margin-bottom: 16px; }
    .res-panel__head h2 { font-size: 30px; }
    .res-badge { display: none; }
    .res-form { gap: 12px; }
    .res-date { flex-basis: 48px; height: 56px; }
    .res-date__num { font-size: 18px; }
    .res-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .res-loading { grid-template-columns: repeat(4, 1fr); }
    .res-grid { grid-template-columns: 1fr; }
    .res-arrow { width: 24px; height: 24px; font-size: 10px; }
    .res-date-wrap { gap: 4px; }
    .res-dates { gap: 4px; }
    .res-contact dl { grid-template-columns: 1fr; gap: 10px; }
    .res-contact dl > div { grid-template-columns: 64px minmax(0, 1fr); }
    .res-contact h2 { font-size: 26px; }
    .res-footer { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 8.5px; padding: 15px 0 22px; }
    .res-credit img { height: 17px; }
    .res-success { padding: 18px 2px 10px; }
    .res-success h2 { font-size: 33px; }
    .res-success__actions { flex-direction: column; }
    .res-success__actions .btn { width: 100%; }
}

@media (max-width: 400px) {
    .res-brand__meta > span { display: none; }
    .res-brand__meta strong { font-size: 7px; }
    .res-date { flex-basis: 45px; }
    .res-slot { font-size: 10px; }
}

/* Logo de la peluquería */
.brand-lockup { display: inline-flex; align-items: center; text-decoration: none; }
.res-brand__logo { display: block; height: 64px; width: auto; max-width: 210px; object-fit: contain; }
@media (max-width: 620px) {
    .res-brand__logo { height: 50px; max-width: 160px; }
}


.res-empty-state { display: grid; justify-items: start; gap: 8px; padding: 28px 20px; border: 1px dashed var(--line-strong, #d7cec1); border-radius: 14px; background: rgba(255,255,255,.45); }
.res-empty-state__icon { font-size: 20px; color: var(--muted); }
.res-empty-state h3 { font-family: var(--serif); font-size: 26px; font-weight: 400; }
.res-empty-state p { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
