:root {
    --box-blue: #0f84c9;
    --box-blue-dark: #0a4f77;
    --box-ink: #0f2740;
    --box-muted: #64748b;
    --box-line: #dce8ef;
    --box-soft: #f5fbfe;
    --box-card: #ffffff;
    --box-success: #0d9f7c;
    --box-danger: #d33f49;
}

* { box-sizing: border-box; }
body.box-booking-page { margin:0; background:linear-gradient(180deg,#f8fcff 0%,#eef8fc 100%); color:var(--box-ink); font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
.box-public-header { position:sticky; top:0; z-index:30; }
.box-booking { min-height:calc(100vh - 80px); padding:42px 18px 84px; }
.box-booking__hero { width:min(1120px,100%); margin:0 auto 26px; display:grid; grid-template-columns:1.45fr .55fr; gap:22px; align-items:stretch; }
.box-booking__hero-copy, .box-booking__hero-card { border:1px solid rgba(15,132,201,.12); border-radius:30px; box-shadow:0 22px 60px rgba(21,76,108,.10); }
.box-booking__hero-copy { background:linear-gradient(135deg,#0a567d,#0b7da9 72%,#12a4c6); color:#fff; padding:40px 44px; position:relative; overflow:hidden; }
.box-booking__hero-copy:after { content:""; position:absolute; width:290px; height:290px; border-radius:50%; right:-120px; bottom:-170px; border:1px solid rgba(255,255,255,.25); box-shadow:0 0 0 50px rgba(255,255,255,.04),0 0 0 100px rgba(255,255,255,.03); }
.box-booking__eyebrow { display:inline-flex; padding:8px 12px; border:1px solid rgba(255,255,255,.32); border-radius:999px; font-size:.76rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.box-booking__hero h1 { margin:18px 0 10px; font-size:clamp(2.2rem,5vw,4.35rem); line-height:.98; letter-spacing:-.055em; max-width:760px; }
.box-booking__hero p { margin:0; max-width:670px; color:rgba(255,255,255,.84); font-size:1.03rem; }
.box-booking__hero-card { background:#fff; padding:30px; display:flex; flex-direction:column; justify-content:flex-end; min-height:220px; }
.box-booking__hero-card span { width:48px; height:48px; display:grid; place-items:center; border-radius:15px; color:#fff; background:linear-gradient(135deg,var(--box-blue),#2f70f2); font-weight:900; box-shadow:0 12px 25px rgba(15,132,201,.25); }
.box-booking__hero-card strong { margin-top:24px; font-size:1.18rem; }
.box-booking__hero-card small { margin-top:6px; color:var(--box-muted); line-height:1.5; }

.box-booking__shell { width:min(980px,100%); margin:0 auto; }
.box-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:14px; }
.box-step { appearance:none; border:1px solid var(--box-line); background:rgba(255,255,255,.78); color:#7890a2; border-radius:18px; min-height:76px; padding:10px 14px; display:flex; align-items:center; justify-content:center; gap:10px; font-weight:800; pointer-events:none; }
.box-step b { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:#edf5f8; color:#7890a2; }
.box-step.is-active, .box-step.is-complete { color:var(--box-blue-dark); border-color:rgba(15,132,201,.32); background:#fff; }
.box-step.is-active b { color:#fff; background:linear-gradient(135deg,var(--box-blue),#2f70f2); box-shadow:0 8px 20px rgba(15,132,201,.25); }
.box-step.is-complete b { color:#fff; background:var(--box-success); }

.box-booking__panel { background:rgba(255,255,255,.94); border:1px solid var(--box-line); border-radius:30px; box-shadow:0 28px 80px rgba(20,72,102,.10); overflow:hidden; }
.box-form-step { display:none; padding:38px; }
.box-form-step.is-active { display:block; }
.box-form-heading { margin-bottom:26px; }
.box-form-heading > span { display:block; color:var(--box-blue); font-size:.78rem; font-weight:900; letter-spacing:.12em; text-transform:uppercase; margin-bottom:8px; }
.box-form-heading h2 { margin:0; font-size:clamp(1.8rem,4vw,2.7rem); letter-spacing:-.035em; }
.box-form-heading p { margin:8px 0 0; color:var(--box-muted); }

.box-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.box-rut-row { display:flex; gap:12px; align-items:flex-end; }
.box-field { display:grid; gap:8px; margin-bottom:16px; }
.box-field--grow { flex:1; margin-bottom:0; }
.box-field span { font-weight:800; font-size:.92rem; }
.box-field small { color:var(--box-muted); font-weight:600; }
.box-field input, .box-field textarea, .box-field select { width:100%; border:1.5px solid #cbdde7; background:#fff; border-radius:14px; padding:13px 14px; color:var(--box-ink); font:inherit; outline:none; transition:border-color .18s ease,box-shadow .18s ease; }
.box-field input:focus, .box-field textarea:focus, .box-field select:focus { border-color:var(--box-blue); box-shadow:0 0 0 4px rgba(15,132,201,.11); }
.box-field textarea { resize:vertical; min-height:96px; }
.box-consent { display:flex; gap:11px; align-items:flex-start; padding:14px 16px; border:1px solid var(--box-line); border-radius:14px; background:var(--box-soft); color:#4d6678; font-size:.9rem; }
.box-consent input { margin-top:3px; accent-color:var(--box-blue); }
.box-inline-message { min-height:22px; margin:9px 0 14px; color:var(--box-muted); font-size:.88rem; }
.box-inline-message.is-error { color:var(--box-danger); }
.box-inline-message.is-success { color:var(--box-success); }

.box-actions { display:flex; justify-content:space-between; gap:12px; margin-top:26px; }
.box-actions--end { justify-content:flex-end; }
.box-btn { min-height:48px; border-radius:14px; border:0; padding:0 22px; display:inline-flex; align-items:center; justify-content:center; text-decoration:none; font-weight:850; cursor:pointer; transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease; }
.box-btn:hover { transform:translateY(-1px); }
.box-btn:disabled { opacity:.45; cursor:not-allowed; transform:none; }
.box-btn--primary { color:#fff; background:linear-gradient(135deg,var(--box-blue),#2d70ef); box-shadow:0 12px 24px rgba(15,132,201,.22); }
.box-btn--secondary { color:var(--box-blue-dark); background:#eaf6fb; border:1px solid #c9e4ef; white-space:nowrap; }
.box-btn--ghost { color:#516979; background:#eef3f6; }

.box-choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.box-choice-card { border:1.5px solid var(--box-line); border-radius:22px; overflow:hidden; background:#fff; position:relative; transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.box-choice-card.is-selected { border-color:var(--box-blue); box-shadow:0 14px 32px rgba(15,132,201,.14); transform:translateY(-2px); }
.box-choice-card__select { position:absolute; z-index:3; top:12px; right:12px; display:flex; align-items:center; gap:7px; padding:8px 10px; border-radius:999px; background:rgba(255,255,255,.95); border:1px solid rgba(15,132,201,.18); color:var(--box-blue-dark); font-size:.78rem; font-weight:850; cursor:pointer; box-shadow:0 8px 18px rgba(16,58,80,.12); }
.box-choice-card__select input { position:absolute; opacity:0; pointer-events:none; }
.box-choice-card__check { width:20px; height:20px; display:grid; place-items:center; border-radius:50%; background:#e7f2f7; color:transparent; }
.box-choice-card__select input:checked + .box-choice-card__check { background:var(--box-blue); color:#fff; }
.box-choice-card__image { height:190px; background:#eef7fa; overflow:hidden; display:grid; place-items:center; }
.box-choice-card__image img { width:100%; height:100%; object-fit:cover; }
.box-choice-card__image img[src*="isotipo"] { object-fit:contain; padding:38px; }
.box-choice-card__body { padding:20px; }
.box-choice-card h3 { margin:0 0 7px; font-size:1.25rem; }
.box-choice-card p { margin:0 0 12px; color:var(--box-muted); line-height:1.55; }
.box-choice-card__location { display:block; color:#45697f; font-size:.86rem; font-weight:700; margin-bottom:12px; }
.box-info { border-top:1px solid #e8f0f4; padding-top:12px; }
.box-info summary { cursor:pointer; color:var(--box-blue-dark); font-weight:850; list-style:none; }
.box-info summary::-webkit-details-marker { display:none; }
.box-info summary:after { content:"+"; float:right; }
.box-info[open] summary:after { content:"−"; }
.box-info__content { margin-top:14px; color:#4d6678; font-size:.9rem; }
.box-info__content h4 { margin:15px 0 7px; color:var(--box-ink); font-size:.9rem; }
.box-info__content ul { margin:0; padding-left:18px; }
.box-info__gallery { margin-top:14px; display:grid; grid-template-columns:repeat(3,1fr); gap:7px; }
.box-info__gallery img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:10px; }
.box-empty-state { padding:28px; border:1px dashed #bdd6e2; background:var(--box-soft); border-radius:18px; text-align:center; display:grid; gap:7px; }
.box-empty-state span { color:var(--box-muted); }

.box-slot-panel { border:1px solid var(--box-line); background:var(--box-soft); border-radius:20px; padding:18px; }
.box-slot-panel__header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:13px; }
.box-slot-panel__header span { color:var(--box-muted); font-size:.84rem; }
.box-slot-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.box-slot { border:1px solid #cfe0e8; background:#fff; color:var(--box-blue-dark); border-radius:13px; min-height:52px; padding:7px 10px; font-weight:850; cursor:pointer; }
.box-slot small { display:block; color:var(--box-muted); font-weight:650; margin-top:2px; }
.box-slot.is-selected { color:#fff; background:linear-gradient(135deg,var(--box-blue),#2d70ef); border-color:transparent; box-shadow:0 10px 22px rgba(15,132,201,.22); }
.box-slot.is-selected small { color:rgba(255,255,255,.82); }
.box-slot-empty { grid-column:1/-1; color:var(--box-muted); padding:20px; text-align:center; }

.box-summary { border:1px solid var(--box-line); border-radius:20px; overflow:hidden; margin-bottom:18px; }
.box-summary__row { display:grid; grid-template-columns:160px 1fr; gap:14px; padding:14px 16px; border-bottom:1px solid #eaf1f4; }
.box-summary__row:last-child { border-bottom:0; }
.box-summary__row span { color:var(--box-muted); font-size:.88rem; }
.box-summary__row strong { text-align:right; }
.box-success { margin-top:20px; border:1px solid rgba(13,159,124,.25); background:#f0fcf8; border-radius:22px; padding:30px; text-align:center; }
.box-success__icon { width:56px; height:56px; display:grid; place-items:center; margin:0 auto 14px; border-radius:50%; background:var(--box-success); color:#fff; font-size:1.6rem; font-weight:900; }
.box-success h2 { margin:0 0 8px; }
.box-success p { color:var(--box-muted); }
.box-success > strong { display:inline-block; font-size:1.25rem; letter-spacing:.12em; color:var(--box-blue-dark); background:#fff; border:1px solid #d8e8ef; padding:10px 14px; border-radius:12px; }
.box-success__actions { margin-top:18px; }
.box-public-footer { padding:22px 18px; }
.box-public-footer .site-footer__inner { justify-content:center; }

@media (max-width: 820px) {
    .box-public-header .site-header__inner { width:min(100% - 22px,1180px); }
    .box-public-header .brand span { display:none; }
    .box-booking { padding:22px 10px 60px; }
    .box-booking__hero { grid-template-columns:1fr; gap:12px; }
    .box-booking__hero-copy { padding:28px 23px; border-radius:24px; }
    .box-booking__hero-card { display:none; }
    .box-steps { gap:6px; overflow:hidden; }
    .box-step { min-height:63px; border-radius:14px; padding:7px 4px; display:grid; gap:4px; justify-items:center; font-size:.7rem; }
    .box-step b { width:28px; height:28px; font-size:.78rem; }
    .box-booking__panel { border-radius:24px; }
    .box-form-step { padding:24px 18px; }
    .box-grid-2, .box-choice-grid { grid-template-columns:1fr; }
    .box-rut-row { align-items:stretch; flex-direction:column; }
    .box-rut-row .box-btn { width:100%; }
    .box-slot-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .box-summary__row { grid-template-columns:1fr; gap:3px; }
    .box-summary__row strong { text-align:left; }
}

@media (max-width: 460px) {
    .box-public-header .button { min-height:42px; padding-inline:13px; font-size:.78rem; }
    .box-booking__hero h1 { font-size:2.15rem; }
    .box-booking__hero p { font-size:.92rem; }
    .box-step span { max-width:72px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .box-slot-list { grid-template-columns:1fr 1fr; }
    .box-actions { flex-direction:column-reverse; }
    .box-actions .box-btn { width:100%; }
    .box-actions--end { flex-direction:column; }
}

/* ===== Paso 6: selección clara de boxes + calendario integrado ===== */
.box-choice-card {
    cursor:pointer;
}
.box-choice-card:focus-visible {
    outline:3px solid rgba(15,132,201,.25);
    outline-offset:3px;
}
.box-choice-card__select {
    position:relative;
    top:auto;
    right:auto;
    z-index:1;
    width:calc(100% - 24px);
    min-height:46px;
    margin:12px 12px 0;
    padding:10px 14px;
    border-radius:12px;
    justify-content:center;
    background:#edf7fb;
    border:1px solid #c9e4ef;
    box-shadow:none;
    font-size:.86rem;
}
.box-choice-card.is-selected .box-choice-card__select {
    color:#fff;
    background:linear-gradient(135deg,var(--box-blue),#2d70ef);
    border-color:transparent;
}
.box-choice-card__check {
    flex:0 0 24px;
    width:24px;
    height:24px;
    background:#fff;
    border:1px solid #a9cbd9;
    color:transparent;
}
.box-choice-card.is-selected .box-choice-card__check {
    background:#fff;
    color:var(--box-blue);
    border-color:#fff;
}
.box-choice-card__image { height:210px; }

.box-date-picker {
    border:1px solid var(--box-line);
    border-radius:20px;
    background:#fff;
    padding:18px;
    margin-bottom:18px;
}
.box-date-picker__header {
    display:grid;
    grid-template-columns:44px 1fr 44px;
    align-items:center;
    gap:12px;
    margin-bottom:12px;
}
.box-date-picker__header > div { text-align:center; }
.box-date-picker__header span {
    display:block;
    color:var(--box-muted);
    font-size:.75rem;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.08em;
}
.box-date-picker__header strong {
    display:block;
    margin-top:2px;
    color:var(--box-blue-dark);
    font-size:1.08rem;
    text-transform:capitalize;
}
.box-date-picker__nav {
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    border:1px solid #cbdde7;
    border-radius:12px;
    background:#f7fbfd;
    color:var(--box-blue-dark);
    font-size:1.1rem;
    font-weight:900;
    cursor:pointer;
}
.box-date-picker__nav:hover { background:#eaf6fb; }
.box-date-picker__legend {
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:12px;
    color:#61798a;
    font-size:.76rem;
    font-weight:700;
}
.box-date-picker__legend span { display:inline-flex; align-items:center; gap:6px; }
.box-date-picker__legend i { width:10px; height:10px; display:inline-block; border-radius:3px; }
.box-date-picker__legend .is-available { background:#dff6ec; border:1px solid #75c9a3; }
.box-date-picker__legend .is-full { background:#fff0f0; border:1px solid #ec9c9c; }
.box-date-picker__legend .is-unavailable { background:#f0f3f5; border:1px solid #d3dce1; }
.box-date-picker__weekdays,
.box-date-picker__grid {
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:7px;
}
.box-date-picker__weekdays {
    margin-bottom:7px;
    text-align:center;
    color:#6b8190;
    font-size:.72rem;
    font-weight:900;
}
.box-date-day {
    min-height:58px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:2px;
    padding:5px;
    border:1px solid #dfe9ee;
    border-radius:11px;
    background:#f8fafb;
    color:#7c8d97;
    cursor:default;
}
.box-date-day strong { font-size:.92rem; }
.box-date-day small { font-size:.6rem; line-height:1; }
.box-date-day.is-blank { visibility:hidden; }
.box-date-day.is-available {
    background:#f0fbf7;
    border-color:#bfe6d3;
    color:#176c4a;
    cursor:pointer;
}
.box-date-day.is-available:hover {
    border-color:#63bd94;
    box-shadow:0 6px 16px rgba(28,113,79,.10);
}
.box-date-day.is-full {
    background:#fff5f5;
    border-color:#f1cccc;
    color:#b26565;
}
.box-date-day.is-unavailable { opacity:.58; }
.box-date-day.is-today strong {
    width:26px;
    height:26px;
    display:grid;
    place-items:center;
    border-radius:7px;
    background:#e7f4fa;
    color:var(--box-blue-dark);
}
.box-date-day.is-selected {
    color:#fff;
    background:linear-gradient(135deg,var(--box-blue),#2d70ef);
    border-color:transparent;
    box-shadow:0 8px 18px rgba(15,132,201,.20);
}
.box-date-day.is-selected small,
.box-date-day.is-selected strong { color:#fff; }
.box-date-day.is-selected.is-today strong { background:rgba(255,255,255,.16); }
.box-date-picker__selected {
    margin:12px 0 0;
    color:var(--box-blue-dark);
    text-align:center;
    font-size:.86rem;
    font-weight:800;
}

@media (max-width: 560px) {
    .box-choice-card__image { height:170px; }
    .box-date-picker { padding:13px 10px; border-radius:16px; }
    .box-date-picker__header { grid-template-columns:40px 1fr 40px; gap:8px; }
    .box-date-picker__nav { width:40px; height:40px; }
    .box-date-picker__weekdays,
    .box-date-picker__grid { gap:4px; }
    .box-date-day { min-height:48px; padding:3px; border-radius:9px; }
    .box-date-day strong { font-size:.82rem; }
    .box-date-day small { display:none; }
    .box-date-picker__legend { gap:8px; font-size:.68rem; }
}

/* ===== Ajustes UX: RUT automático y Box único más protagonista ===== */
.box-field small#boxRutHelp {
    display:block;
    margin-top:2px;
    color:var(--box-muted);
    font-size:.76rem;
    font-weight:650;
    line-height:1.4;
}
.box-choice-grid.is-single {
    grid-template-columns:minmax(0,760px);
    justify-content:center;
}
.box-choice-grid.is-single .box-choice-card__image {
    height:300px;
}
.box-choice-grid.is-single .box-choice-card__body {
    padding:26px 28px;
}
.box-choice-grid.is-single .box-choice-card h3 {
    font-size:1.5rem;
}
@media (max-width:560px) {
    .box-choice-grid.is-single { grid-template-columns:1fr; }
    .box-choice-grid.is-single .box-choice-card__image { height:190px; }
    .box-choice-grid.is-single .box-choice-card__body { padding:20px; }
    .box-choice-grid.is-single .box-choice-card h3 { font-size:1.25rem; }
}


/* Pago Webpay para reserva de Boxes */
.box-choice-card__title-row {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom:7px;
}
.box-choice-card__title-row h3 { margin:0; }
.box-choice-card__price {
    flex:0 0 auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:30px;
    padding:5px 10px;
    border-radius:999px;
    background:#e9f8f5;
    color:#087d70;
    font-size:.82rem;
    font-weight:900;
    white-space:nowrap;
}
.box-payment-notice {
    display:flex;
    align-items:center;
    gap:12px;
    margin:0 0 18px;
    padding:14px 16px;
    border:1px solid rgba(15,159,143,.22);
    border-radius:16px;
    background:#f0fbf8;
    color:#164f49;
}
.box-payment-notice[hidden] { display:none !important; }
.box-payment-notice__icon {
    flex:0 0 auto;
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    border-radius:12px;
    background:#d9f4ee;
    font-size:1.05rem;
}
.box-payment-notice div { display:grid; gap:2px; }
.box-payment-notice strong { font-size:.94rem; }
.box-payment-notice span:not(.box-payment-notice__icon) { color:var(--box-muted); font-size:.84rem; line-height:1.4; }

@media (max-width: 640px) {
    .box-choice-card__title-row { align-items:center; }
    .box-choice-card__price { font-size:.78rem; }
}

/* Tanda 07: selección múltiple y galería */
.box-rut-row { align-items:flex-end; }
.box-rut-row .box-btn { min-height:50px; margin:0; }
.box-rut-help { display:block; margin-top:8px; color:var(--box-muted); }
.box-selection-heading,.box-selection-total { grid-column:1/-1; }
.box-selection-heading { font-size:1rem; margin:8px 0 0; }
.box-selection-total { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; font-weight:700; padding:10px 0; }
.box-slot:disabled { opacity:.5; cursor:not-allowed; }
.box-public-gallery { margin:12px 0; }
.box-public-gallery__slides { background:#eef7fa; border-radius:12px; overflow:hidden; }
.box-public-gallery [hidden] { display:none!important; }
.box-public-gallery img,.box-public-gallery video { width:100%; max-height:320px; aspect-ratio:4/3; object-fit:contain; display:block; }
.box-public-gallery__nav { display:flex; align-items:center; justify-content:center; gap:14px; margin-top:8px; }
.box-public-gallery__nav button { color:#075985; background:white; border:1px solid #b9d5e5; border-radius:8px; min-width:44px; min-height:44px; font-size:1.4rem; cursor:pointer; }
@media(max-width:600px) { .box-rut-row { flex-direction:column; align-items:stretch; } }
