/* Viva Gualivá — Reservas web (estilo Airbnb light, tokens de SPEC-airbnb-light.md) */
.vgb { --vgb-text: #1F3A2E; --vgb-soft: #4E5D55; --vgb-line: #EBEBEB; --vgb-line2: #DDDDDD; --vgb-cta: #B4532F; --vgb-cta-h: #93411F; --vgb-green: #1F4D3A; font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--vgb-text); max-width: 1120px; margin: 0 auto; }
.vgb *, .vgb *::before, .vgb *::after { box-sizing: border-box; }

.vgb-units { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.vgb-unit input { position: absolute; opacity: 0; pointer-events: none; }
.vgb-unit__card { display: flex; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--vgb-line2); border-radius: 12px; cursor: pointer; background: #fff; transition: box-shadow .2s, border-color .2s; }
.vgb-unit__card:hover { box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.vgb-unit input:checked + .vgb-unit__card { border: 2px solid var(--vgb-text); padding: 11px; }
.vgb-unit input:focus-visible + .vgb-unit__card { outline: 2px solid var(--vgb-green); outline-offset: 2px; }
.vgb-unit img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; flex: none; }
.vgb-unit__body { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--vgb-soft); }
.vgb-unit__body strong { font-size: 16px; font-weight: 600; color: var(--vgb-text); }
.vgb-unit__body small { font-size: 12px; }

.vgb-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
.vgb-cal { border: 1px solid var(--vgb-line); border-radius: 12px; padding: 24px; background: #fff; }
.vgb-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.vgb-cal__title { font-weight: 600; font-size: 16px; text-transform: capitalize; }
.vgb-cal__nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--vgb-line2); background: #fff; font-size: 20px; line-height: 1; cursor: pointer; color: var(--vgb-text); }
.vgb-cal__nav:hover { box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.vgb-cal__months { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.vgb-month__name { font-weight: 600; text-align: center; margin: 8px 0 12px; text-transform: capitalize; }
.vgb-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.vgb-dow { font-size: 12px; color: var(--vgb-soft); padding: 4px 0; }
.vgb-day { aspect-ratio: 1; border: 0; background: transparent; border-radius: 50%; font: inherit; font-size: 14px; font-weight: 500; color: var(--vgb-text); cursor: pointer; }
.vgb-day:hover:not(:disabled):not(.is-busy) { box-shadow: inset 0 0 0 1px var(--vgb-text); }
.vgb-day.is-past { color: #C4C4C4; cursor: default; }
.vgb-day.is-busy { color: #B0B0B0; text-decoration: line-through; cursor: not-allowed; }
.vgb-day.is-in { background: #F6E0D4; border-radius: 0; }
.vgb-day.is-start, .vgb-day.is-end { background: var(--vgb-text); color: #fff; text-decoration: none; }
.vgb-legend { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--vgb-soft); margin: 16px 0 0; }
.vgb-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-left: 8px; }
.vgb-dot--busy { background: #EBEBEB; }
.vgb-dot--sel { background: var(--vgb-text); }

.vgb-form { border: 1px solid var(--vgb-line2); border-radius: 12px; padding: 24px; box-shadow: 0 6px 16px rgba(0,0,0,.08); background: #fff; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 100px; }
.vgb-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--vgb-text); }
.vgb-form input[type=text], .vgb-form input[type=tel], .vgb-form input[type=email], .vgb-form input[type=date], .vgb-form input[type=number], .vgb-form textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--vgb-text); padding: 0 14px; height: 56px; border: 1px solid #B0B0B0; border-radius: 8px; background: #fff; width: 100%; }
.vgb-form textarea { height: 96px; padding: 12px 14px; resize: vertical; }
.vgb-form input:focus, .vgb-form textarea:focus { outline: 2px solid var(--vgb-text); outline-offset: -1px; border-color: transparent; }
.vgb-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vgb-check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; color: var(--vgb-soft) !important; font-size: 13px !important; }
.vgb-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--vgb-cta); flex: none; }
.vgb-btn { display: inline-block; text-align: center; background: var(--vgb-cta); color: #fff !important; border: 0; border-radius: 8px; padding: 14px 24px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; }
.vgb-btn:hover { background: var(--vgb-cta-h); }
.vgb-btn--wa { background: #1F7A4A; margin-top: 10px; }
.vgb-btn--wa:hover { background: #17633c; }
.vgb-fine { font-size: 12px; color: var(--vgb-soft); margin: 0; text-align: center; }
.vgb-summary { border-top: 1px solid var(--vgb-line); padding-top: 12px; }
.vgb-summary__row { display: flex; justify-content: space-between; font-size: 15px; padding: 4px 0; color: var(--vgb-soft); }
.vgb-summary__total { color: var(--vgb-text); font-weight: 600; border-top: 1px solid var(--vgb-line); margin-top: 6px; padding-top: 10px; }
.vgb-summary .vgb-fine { text-align: left; margin-top: 6px; }
.vgb-warn { margin: 0; color: #93411F; font-size: 14px; font-weight: 600; }
.vgb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vgb-msg { border-radius: 12px; padding: 16px 20px; margin: 0 auto 24px; max-width: 1120px; font-size: 15px; }
.vgb-msg--ok { background: #E3EEDC; color: #1F4D3A; }
.vgb-msg--err { background: #F6E0D4; color: #93411F; }

@media (max-width: 899px) {
	.vgb-grid { grid-template-columns: 1fr; gap: 24px; }
	.vgb-form { position: static; }
}
@media (max-width: 640px) {
	.vgb-units { grid-template-columns: 1fr; }
	.vgb-unit img { width: 80px; height: 80px; }
	.vgb-cal, .vgb-form { padding: 16px; }
}

/* Evitar desbordes en pantallas angostas */
.vgb, .vgb-grid > *, .vgb-units > *, .vgb-dates > *, .vgb-form label { min-width: 0; }
.vgb-cal__months { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.vgb-form input, .vgb-form textarea { max-width: 100%; min-width: 0; }
.vgb-form input[type=date] { -webkit-appearance: none; appearance: none; }
@media (max-width: 640px) { .vgb-dates input[type=date] { padding: 0 8px; font-size: 15px; } }

/* v1.1 — calendario con precios estilo Airbnb */
.vgb-days { gap: 4px; }
.vgb-day { aspect-ratio: auto; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 8px; background: #fff; padding: 4px 0; }
.vgb-day__n { font-size: 14px; font-weight: 600; line-height: 1.1; }
.vgb-day__p { font-size: 10.5px; font-weight: 500; color: var(--vgb-soft); line-height: 1.1; letter-spacing: -.01em; }
.vgb-day:hover:not(:disabled):not(.is-busy) { box-shadow: inset 0 0 0 1.5px var(--vgb-text); }
.vgb-day.is-past { background: transparent; color: #C8C8C8; }
.vgb-day.is-past .vgb-day__n { font-weight: 400; }
.vgb-day.is-busy { background: #F6E0D4; color: #9A6B57; cursor: not-allowed; text-decoration: none; }
.vgb-day.is-busy .vgb-day__n { text-decoration: line-through; font-weight: 500; }
.vgb-day.is-in { background: #F3F3F3; border-radius: 0; }
.vgb-day.is-in .vgb-day__p { color: var(--vgb-text); }
.vgb-day.is-start, .vgb-day.is-end { background: var(--vgb-text) !important; color: #fff; border-radius: 8px; }
.vgb-day.is-start .vgb-day__p, .vgb-day.is-end .vgb-day__p { color: rgba(255,255,255,.8); }
.vgb-legend { flex-wrap: wrap; row-gap: 6px; }
.vgb-key { display: inline-block; width: 16px; height: 16px; border-radius: 4px; margin-left: 10px; vertical-align: -3px; }
.vgb-key:first-child { margin-left: 0; }
.vgb-key--free { background: #fff; box-shadow: inset 0 0 0 1px #B0B0B0; }
.vgb-key--busy { background: #F6E0D4; }
.vgb-key--sel { background: var(--vgb-text); }
.vgb-fine--left { text-align: left; }
.vgb-teaser { margin: 0; font-size: 14px; font-weight: 600; color: var(--vgb-green); background: #E3EEDC; border-radius: 8px; padding: 10px 12px; }

/* Paso 2: confirmación con beneficio */
.vgb-done { max-width: 640px; }
.vgb-done__card { border: 1px solid var(--vgb-line2); border-radius: 12px; padding: 28px; box-shadow: 0 6px 16px rgba(0,0,0,.08); background: #fff; display: flex; flex-direction: column; gap: 14px; }
.vgb-done__eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--vgb-cta); }
.vgb-done__title { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; color: var(--vgb-green); }
.vgb-done__meta { margin: 0; font-size: 15px; color: var(--vgb-soft); }
.vgb-benefit { display: flex; flex-direction: column; gap: 2px; background: #E3EEDC; border-radius: 12px; padding: 14px 16px; }
.vgb-benefit__tag { font-size: 13px; font-weight: 600; color: var(--vgb-green); }
.vgb-benefit strong { font-size: 20px; font-weight: 600; color: var(--vgb-green); }
.vgb-strike { text-decoration: line-through; }
.vgb-summary__save { color: var(--vgb-green) !important; font-weight: 600; }
.vgb-link { text-align: center; font-size: 14px; color: var(--vgb-text); text-decoration: underline; }
@media (max-width: 640px) {
	.vgb-day { min-height: 46px; }
	.vgb-day__p { font-size: 9.5px; }
	.vgb-done__card { padding: 18px; }
	.vgb-done__title { font-size: 19px; }
}
.vgb-legend { gap: 6px 16px; }
.vgb-legend__item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.vgb-legend__item .vgb-key { margin-left: 0; }
.vgb-page:has(.vgb-done) > p { display: none; }
