.hpd .hpd-panel {
    width: min(100%, 760px);
    margin: 1rem auto;
    padding: clamp(14px, 4vw, 30px);
    background: linear-gradient(145deg, #f4f8fb, #e0ebf2);
    border: 1px solid #d6e4ee;
    border-radius: 24px;
    box-shadow: inset 0 1px 0 white;
}
.hpd .app-ui-titulo { font-size: clamp(1.4rem, 4vw, 1.85rem); }
.hpd h3 { margin: 0.75rem 0; color: var(--app-acento); font: 700 1.1rem system-ui, sans-serif; }
.hpd p { margin: 0.75rem 0; }
.hpd a { color: var(--app-acento); }
.hpd .hpd-head { display: flex; align-items: center; justify-content: space-between; gap: .65rem; flex-wrap: wrap; }
.hpd .hpd-month { flex-wrap: nowrap; margin: .5rem 0; color: var(--app-acento); }
.hpd .hpd-month strong::first-letter { text-transform: uppercase; }
.hpd .hpd-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(3px, 1vw, 8px); text-align: center; }
.hpd .hpd-calendar > span { align-self: center; padding: .3rem 0; font-size: .85rem; }
.hpd :is(button, .hpd-tabs a, input:not([type=checkbox]):not([type=hidden])) {
    border: 1px solid #c6dbe9;
    border-radius: 10px;
    padding: .45rem .65rem;
    background: rgba(255,255,255,.78);
    color: var(--app-acento);
    font-weight: 650;
}
.hpd button { cursor: pointer; }
.hpd .hpd-calendar button { padding: .1em; font-variant-numeric: tabular-nums; line-height: 1; min-width: 0; }
.hpd button:disabled { color: #929da6; background: rgba(255,255,255,.27); border-color: transparent; cursor: default; }
.hpd :is(button[aria-pressed=true], .hpd-tabs a[aria-current], .app-ui-accion--principal) { background: var(--app-acento); color: white; }
.hpd input[type=number] { width: 5em; }
.hpd input[type=checkbox] { width: 1.1rem; min-height: 0; height: 1.1rem; margin: 0; accent-color: var(--app-acento); }
.hpd .hpd-contact, .hpd .hpd-options { display: flex; flex-wrap: wrap; gap: .55rem; margin: .8rem 0; }
.hpd .hpd-contact label { display: grid; gap: .2rem; max-width: 100%; }
.hpd .hpd-contact input { max-width: 100%; }
.hpd .hpd-options label {
    display: flex; align-items: center; gap: .45rem; padding: .55rem .7rem;
    min-height: 44px; background: rgba(255,255,255,.67); border: 1px solid white; border-radius: 12px;
}
.hpd .hpd-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: .7rem 0; }
.hpd .hpd-tabs a { text-decoration: none; }
.hpd .hpd-booking { padding: .9rem; background: rgba(255,255,255,.62); border: 1px solid white; border-radius: 14px; margin: .65rem 0; overflow-wrap: anywhere; }
.hpd .hpd-tag { color: var(--app-acento); font-size: .85rem; }
.hpd summary { cursor: pointer; color: var(--app-acento); font-weight: 650; padding: .45rem 0; }
.hpd fieldset { margin: .65rem 0; padding: .5rem; border: 1px solid #c6dbe9; border-radius: 10px; }
.hpd form[data-cancel] { margin-top: .35rem; }
.hpd .hpd-occupancy-day { border: 1px solid #d6e4ee; border-radius: 9px; background: rgba(255,255,255,.63); }
.hpd .hpd-occupancy nav a { padding: .35rem .7rem; font-size: 1.3rem; }

/* Calendario y selección pública */
.app-ui.hpd { max-width: 760px; }
.hpd .hpd-panel { background: linear-gradient(150deg, #f3f8fc, var(--app-fondo)); }
.hpd .hpd-date-card, .hpd .hpd-summary {
    padding: clamp(12px, 3vw, 22px);
    background: rgba(255,255,255,.49);
    border: 1px solid rgba(255,255,255,.95);
    border-radius: 20px;
}
.hpd .hpd-calendar button {
    display: grid; place-items: center; padding: 0 !important;
    min-width: 0; width: 100%; min-height: clamp(36px, 8vw, 46px);
    white-space: nowrap; overflow-wrap: normal; word-break: keep-all;
    letter-spacing: normal; font-size: clamp(12px, 3.5vw, 16px);
}
.hpd .hpd-calendar button:disabled { background: transparent; border-color: transparent; color: #a3b2be; opacity: 1; }
.hpd .hpd-calendar button:enabled:hover { border-color: var(--app-acento); }
.hpd .hpd-calendar button[aria-pressed=true]:enabled { background: var(--app-acento); color: white; }
.hpd .hpd-month button { min-width: 38px; padding: 0; font-size: 1.45rem; line-height: 1; }
.hpd .hpd-month strong { text-align: center; }
.hpd [data-selection] { margin-top: 1.25rem; }
.hpd .hpd-count { border-radius: 999px; padding: .3rem .65rem; background: #e8f1f5; color: var(--app-acento); font-size: .85rem; }
.hpd [data-dates] { color: #526477; }
.hpd [data-units] { display: grid; }
.hpd [data-units] label:has(input[type=checkbox]) {
    display: grid; grid-template-columns: 2.3rem minmax(0,1fr) 1.35rem;
    gap: .7rem; padding: .7rem; min-height: 60px; border-radius: 14px; cursor: pointer;
}
.hpd [data-units] label:has(input:checked) { border-color: var(--app-acento); background: #eaf3f7; }
.hpd [data-units] label:has(input:disabled) { opacity: .54; cursor: default; }
.hpd [data-units] small { display: block; color: #526477; }
.hpd .hpd-unit-icon { background: #e7f0f5; color: var(--app-acento); border-radius: 11px; display: grid; place-items: center; height: 2.3rem; font-size: 1.4rem; }
.hpd .hpd-summary { text-align: center; margin-top: 1rem; }
.hpd .hpd-summary > strong { color: var(--app-acento); }
.hpd .hpd-summary .hpd-contact { text-align: left; justify-content: start; }
.hpd .hpd-summary button { width: 100%; background: #147839; color: white; border-color: transparent; }
.hpd .hpd-summary button:disabled { background: #e4edf0; color: #536571; }
.hpd [data-hpd-feedback], .hpd-admin [data-hpd-feedback] { border-left: 3px solid #075985; padding: .5rem .7rem; }

/* Administración de alojamientos */
.hpd-admin { max-width: 1000px; }
.hpd-admin .hpd-table-scroll { overflow-x: auto; margin: 1rem 0 1.4rem; }
.hpd-admin #hpd-admin { border: 1px solid #d7e2e9; border-radius: 16px; padding: clamp(12px, 3vw, 24px); background: #fff; }
.hpd-admin .hpd-admin-section { margin: 1rem 0; padding: .75rem; border: 1px solid #dce6ec; border-radius: 12px; background: #f5f9fb; overflow-x: auto; }
.hpd-admin .hpd-admin-section h3 { margin-top: 0; color: #075985; }
.hpd-admin .hpd-admin-section th { text-align: left; }
.hpd-admin .hpd-admin-section td { padding: .2rem .35rem; }
.hpd-admin :is(textarea,input[type=text],input[type=tel],select) { max-width: 100%; }

.hpd .hpd-guests { display: flex; align-items: center; gap: .55rem; margin: .4rem 0 .8rem; }
.hpd .hpd-guests select {
    min-width: 4rem; min-height: 44px; padding: .35rem .55rem;
    border: 1px solid #c6dbe9; border-radius: 10px; background: rgba(255,255,255,.78);
    color: var(--app-acento); font: inherit; font-weight: 650;
}

.hpd .hpd-manager-header { margin-bottom: 1rem; }
.hpd .hpd-manager-header h2 { margin-bottom: .18rem; }
.hpd .hpd-manager-header p { margin: 0; color: #526477; font-weight: 650; }
.hpd .hpd-manager-tools { display: grid; gap: .5rem; margin-bottom: 1rem; }
.hpd .hpd-manager-tools > details {
    border: 1px solid #d5e6ef; border-radius: 12px;
    padding: .15rem .75rem; background: rgba(255,255,255,.66);
}
.hpd .hpd-booking { padding: clamp(.75rem, 3vw, 1.2rem); }
.hpd .hpd-booking-header { align-items: flex-start; }
.hpd .hpd-booking-header small { color: #526477; font-size: .75rem; }
.hpd .hpd-booking-header h3 { margin: .15rem 0 0; color: var(--tinta); }
.hpd .hpd-booking .hpd-tag {
    padding: .23rem .55rem; border-radius: 20px; background: #e7eef5;
    color: #285476; font-size: .75rem; font-weight: 700;
}
.hpd .hpd-tag[data-state="confirmada"] { color: #176045; background: #e1f2e8; }
.hpd .hpd-tag[data-state="pendiente"] { color: #795019; background: #fbf0db; }
.hpd .hpd-tag[data-state="cancelada"] { color: #873248; background: #faeaf0; }
.hpd .hpd-stay-dates, .hpd [data-dates] {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem;
    padding: .65rem .8rem; margin: .8rem 0; border-radius: 11px; background: #eaf2f7;
}
.hpd .hpd-stay-dates dt, .hpd [data-dates] strong { color: #526477; font-size: .75rem; font-weight: 700; display: block; }
.hpd .hpd-stay-dates dd { margin: .15rem 0 0; font-weight: 650; }
.hpd .hpd-booking-meta { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; }
.hpd .hpd-booking-meta span { color: #526477; font-size: .82rem; }
.hpd .hpd-booking-actions { margin-top: .35rem; border-top: 1px solid #dce8f0; padding-top: .35rem; }
.hpd .hpd-booking-actions [data-cancel] button { color: #873248; border-color: #e7c6d0; }
.hpd .hpd-booking-form button[type="submit"] { background: var(--app-acento); color: white; }

.hpd .hpd-month-panel {
    padding: clamp(.65rem, 2.4vw, 1.1rem);
    border: 1px solid #d5e6ef;
    border-radius: 16px;
    background: rgba(255,255,255,.42);
}
.hpd .hpd-month-panel .hpd-occupancy { margin-bottom: 1rem; }
.hpd .hpd-occupancy [data-availability="full"] {
    --hpd-day-border: #8ccbad;
    --hpd-day-fill: #e0f8e9;
    --hpd-day-ink: #135640;
}
.hpd .hpd-occupancy [data-availability="limited"] {
    --hpd-day-border: #dfbe54;
    --hpd-day-fill: #fff4bc;
    --hpd-day-ink: #754200;
}
.hpd .hpd-occupancy [data-availability="none"] {
    --hpd-day-border: #e7a1ab;
    --hpd-day-fill: #ffe0e1;
    --hpd-day-ink: #892c3c;
}
.hpd .hpd-occupancy :is(.hpd-occupancy-day, .hpd-occupancy-legend li) {
    background: var(--hpd-day-fill);
    border: 1px solid var(--hpd-day-border);
    color: var(--hpd-day-ink);
}
.hpd .hpd-occupancy-day strong { font-weight: 750; color: inherit; }
.hpd .hpd-occupancy ul.hpd-occupancy-legend {
    display: flex; flex-wrap: wrap; gap: .35rem .45rem;
    list-style: none; margin: .7rem 0 0; padding: 0;
    font-size: .75rem; font-weight: 650;
}
.hpd .hpd-occupancy-legend li {
    display: block; list-style: none; margin: 0;
    border-radius: 999px; padding: .18rem .55rem;
}
.hpd .hpd-occupancy-legend li::before { content: none; }
.hpd .hpd-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap;
}

.hpd .hpd-calendar .hpd-occupancy-day {
    display: grid; place-items: center; min-height: 40px; padding: .2rem;
    font-weight: 750; text-decoration: none;
}
.hpd .hpd-calendar a.hpd-occupancy-day { color: var(--hpd-day-ink); }
.hpd .hpd-calendar a.hpd-occupancy-day:is(:hover, :focus-visible, [aria-current="date"]) {
    outline: 2px solid var(--hpd-day-ink); outline-offset: -2px;
}
.hpd .hpd-day-availability {
    margin-top: .7rem; padding: .7rem; border: 1px solid #d5e6ef; border-radius: 12px;
}
.hpd .hpd-day-availability h4, .hpd .hpd-day-availability p { margin: 0 0 .25rem; }
.hpd .hpd-day-availability ul { margin: .25rem 0 .35rem; padding-inline-start: 1.15rem; }
.hpd .hpd-record-date { display: block; }
.hpd .hpd-unit-editor { margin-bottom: .5rem; }

.hpd .hpd-booking-header .hpd-booking-meta { margin-top: .22rem; }
.hpd .hpd-booking-header .hpd-booking-meta strong { overflow-wrap: anywhere; }
.hpd .hpd-unit-editor { display: grid; justify-items: start; gap: .55rem; }
.hpd .hpd-unit-field { display: grid; gap: .2rem; width: min(100%, 24rem); }
.hpd .hpd-unit-field select {
    width: 100%; min-height: 44px; padding: .45rem .65rem;
    border: 1px solid #c6dbe9; border-radius: 10px;
    background: rgba(255,255,255,.78); color: var(--app-acento); font: inherit; font-weight: 650;
}
