/* Marbella To You — reserva en 4 pasos. Contrastes WCAG 2.2 AA: bordes de controles ≥ 3:1 (#8C979D sobre blanco), texto secundario ≥ 4.5:1 (#4E5A60). */
.mty-bk { --bk-tx: #2B221C; --bk-tx2: #5C5148; --bk-br: #5A3E2B; --bk-cta: #3B2A1F; --bk-cta-h: #5A3E2B; --bk-ln: #B5A48F; --bk-ln2: #E3D8C8; --bk-alt: #EFE7DB; --bk-err: #A32D2D;
	display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: start; color: var(--bk-tx); }
.mty-bk [hidden] { display: none !important; }
.mty-bk :where(button) { font: inherit; color: inherit; border-radius: 0; box-shadow: none; text-transform: none; cursor: pointer; }
.mty-bk button:focus-visible, .mty-bk a:focus-visible, .mty-bk input:focus-visible, .mty-bk select:focus-visible { outline: 2px solid var(--bk-br); outline-offset: 2px; }
.mty-bk__main { min-width: 0; }

/* Pasos */
.mty-bk__step { margin: 0; padding: 26px 0 30px; border: 0; border-top: 1px solid var(--bk-ln); min-width: 0; }
.mty-bk__sh { float: left; display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 0; margin-bottom: 18px; }
.mty-bk__sh + * { clear: both; }
.mty-bk__n { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-variant-numeric: lining-nums; font-size: 26px; line-height: 1; color: var(--bk-br); }
.mty-bk__sh b { font-size: 12px; font-weight: 500; letter-spacing: .24em; }
.mty-bk__hint { margin-left: auto; font-size: 13px; color: var(--bk-tx2); text-align: right; }
.mty-bk__label { display: block; margin: 0; text-transform: uppercase; font-size: 11.5px; font-weight: 500; letter-spacing: .2em; color: var(--bk-tx2); }
.mty-bk__note, .mty-bk__small { margin: 10px 0 0; font-size: 13px; line-height: 1.55; color: var(--bk-tx2); }
.mty-bk__small a, .mty-bk__sum a { color: var(--bk-br); text-decoration: underline; text-underline-offset: 3px; }
.mty-bk__center { text-align: center; }
.mty-bk__err { margin: 8px 0 0; font-size: 13.5px; color: var(--bk-err); min-height: 0; }
.mty-bk__err:empty { display: none; }
.mty-bk__loading { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--bk-tx2); align-self: center; }

/* 1 · Tratamientos */
.mty-bk__tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mty-bk__card { display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 12px; min-width: 0; text-align: left; background: #fff; border: 1px solid var(--bk-ln); }
.mty-bk__card img { width: 100%; height: 80px; object-fit: cover; object-position: 50% 25%; display: block; margin-bottom: 4px; }
.mty-bk__cn { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-variant-numeric: lining-nums; font-size: 21px; line-height: 1.05; overflow-wrap: anywhere; }
.mty-bk__cp { font-size: 12.5px; color: var(--bk-tx2); }
.mty-bk__card:hover { border-color: var(--bk-br); }
.mty-bk__card.is-on { border: 2px solid var(--bk-cta); padding: 7px 7px 11px; }
.mty-bk__card.is-on .mty-bk__cp { color: var(--bk-cta); font-weight: 500; }
.mty-bk__durwrap { display: grid; gap: 10px; margin-top: 18px; }
.mty-bk__durations { display: flex; gap: 8px; flex-wrap: wrap; }

/* 2 · Días y horas */
.mty-bk__daysbar { display: grid; gap: 10px; }
.mty-bk__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; min-height: 92px; }
.mty-bk__day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 2px; min-height: 44px; background: #fff; border: 1px solid var(--bk-ln); }
.mty-bk__dow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.mty-bk__num { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-variant-numeric: lining-nums; font-size: 28px; line-height: 1; }
.mty-bk__free { font-size: 11.5px; color: var(--bk-tx2); }
.mty-bk__day:hover:not(.is-full):not(.is-on) { border-color: var(--bk-br); }
.mty-bk__day.is-on { background: var(--bk-tx); border-color: var(--bk-tx); color: #fff; }
.mty-bk__day.is-on .mty-bk__free { color: #fff; }
.mty-bk__day.is-full { background: var(--bk-alt); color: var(--bk-tx2); border-style: dashed; cursor: not-allowed; }
.mty-bk__weeknav { display: flex; justify-content: flex-end; gap: 22px; }
.mty-bk__weeknav button { padding: 8px 0; min-height: 44px; border: 0; background: transparent; color: var(--bk-br); font-size: 14px; }
.mty-bk__weeknav button:disabled { color: var(--bk-ln); cursor: default; }
.mty-bk .mty-bk__first { margin: 8px 0 4px; padding: 10px 16px; min-height: 44px; border: 1px solid var(--bk-br); background: #fff; color: var(--bk-br); font-size: 14px; text-align: left; }
.mty-bk__first:hover:not(:disabled) { background: var(--bk-alt); }
.mty-bk .mty-bk__first:disabled { cursor: default; border-color: var(--bk-ln); color: var(--bk-tx2); }
.mty-bk__slots { margin-top: 16px; }
.mty-bk__row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 10px; }
.mty-bk__rl { width: 92px; flex: none; padding-top: 13px; font-size: 11.5px; letter-spacing: .16em; color: var(--bk-tx2); }
.mty-bk__ss { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.mty-bk__slot { min-width: 78px; min-height: 44px; padding: 0 14px; border: 1px solid var(--bk-br); background: #fff; font-size: 15px; }
.mty-bk__slot:hover { background: var(--bk-alt); }
.mty-bk__slot.is-on { background: var(--bk-cta); border-color: var(--bk-cta); color: #fff; }

/* 3 · Lugar · 4 · Datos */
.mty-bk__pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.mty-bk__pill { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; min-height: 44px; background: #fff; border: 1px solid var(--bk-ln); font-size: 14px; color: var(--bk-tx); text-decoration: none; }
.mty-bk__pill[aria-checked="true"] { border: 2px solid var(--bk-cta); padding: 9px 17px; color: var(--bk-cta); font-weight: 500; }
.mty-bk__field { display: grid; gap: 6px; min-width: 0; }
.mty-bk input[type="text"], .mty-bk input[type="tel"], .mty-bk input[type="email"], .mty-bk select { width: 100%; padding: 12px 0; min-height: 44px; border: 0; border-bottom: 1px solid var(--bk-ln); border-radius: 0; background: transparent; font-size: 16px; color: var(--bk-tx); -webkit-appearance: none; appearance: none; }
.mty-bk input::placeholder { color: #7A6D62; opacity: 1; }
.mty-bk input:focus, .mty-bk select:focus { outline: none; border-bottom: 2px solid var(--bk-br); padding-bottom: 11px; }
.mty-bk input[aria-invalid="true"] { border-bottom: 2px solid var(--bk-err); padding-bottom: 11px; }
.mty-bk__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.mty-bk__full { grid-column: 1 / -1; }
.mty-bk__tel { display: flex; gap: 12px; }
.mty-bk__tel select { width: auto; flex: none; padding-right: 22px; background-image: linear-gradient(45deg, transparent 50%, #4E5A60 50%), linear-gradient(135deg, #4E5A60 50%, transparent 50%); background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.mty-bk__tel input { flex: 1; }
.mty-bk__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Resumen */
.mty-bk__sum { position: sticky; top: 100px; background: #fff; border: 1px solid var(--bk-ln); padding: 26px; }
.mty-bk__tt { margin: 8px 0 6px; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-variant-numeric: lining-nums; font-size: 34px; line-height: 1.05; }
.mty-bk__ln { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--bk-ln2); font-size: 14px; }
.mty-bk__ln span:first-child { color: var(--bk-tx2); flex: none; }
.mty-bk__ln span:last-child { text-align: right; }
.mty-bk__tot { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 18px; border-top: 1px solid var(--bk-tx); }
.mty-bk__v { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-variant-numeric: lining-nums; font-size: 38px; line-height: 1; }
.mty-bk__cta { display: block; width: 100%; padding: 19px; min-height: 56px; background: var(--bk-cta); color: #fff !important; border: 0; text-align: center; font-size: 13px; font-weight: 500; letter-spacing: .18em; text-decoration: none !important; }
.mty-bk__cta:hover { background: var(--bk-cta-h); }
.mty-bk__cta[aria-busy="true"] { opacity: .8; cursor: progress; }
.mty-bk__err--cta { text-align: center; }
.mty-bk__who { display: flex; gap: 12px; align-items: center; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--bk-ln2); font-size: 13.5px; color: var(--bk-tx2); line-height: 1.45; }
.mty-bk__who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; flex: none; }
.mty-bk__who b { color: var(--bk-tx); font-weight: 500; }

/* Confirmación */
.mty-bk__done { grid-column: 1 / -1; max-width: 620px; margin: 0 auto; width: 100%; background: #fff; border: 1px solid var(--bk-ln); padding: 32px; outline: none; }
.mty-bk.is-done .mty-bk__main, .mty-bk.is-done .mty-bk__sum, .mty-bk.is-done .mty-bk__mbar { display: none; }
.mty-bk__okt { margin: 8px 0 10px; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-variant-numeric: lining-nums; font-size: 40px; line-height: 1.05; }
.mty-bk__okp { margin: 0 0 20px; font-size: 15.5px; line-height: 1.65; color: var(--bk-tx2); }
.mty-bk__okb { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 22px; }
.mty-bk__cta--link { margin-bottom: 14px; }
.mty-bk .mty-bk__linkbtn { border: 0; background: none; color: var(--bk-br); text-decoration: underline; text-underline-offset: 3px; padding: 10px; font-size: 14px; }

/* Barra fija móvil */
.mty-bk__mbar { display: none; }

@media (max-width: 1100px) {
	.mty-bk { grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; }
	.mty-bk__tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 859px) {
	.mty-bk { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.mty-bk__sum { position: static; margin-top: 8px; }
	.mty-bk__sh { flex-wrap: wrap; }
	.mty-bk__hint { margin-left: 0; width: 100%; text-align: left; font-size: 12.5px; }
	.mty-bk__card img { height: 66px; }
	.mty-bk__cn { font-size: 18px; }
	.mty-bk__days { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; min-height: 0; margin-right: -20px; padding-right: 20px; }
	.mty-bk__day { flex: 0 0 70px; scroll-snap-align: start; }
	.mty-bk__weeknav { justify-content: space-between; }
	.mty-bk__rl { width: 84px; }
	.mty-bk__slot { min-width: 0; flex: 0 0 calc(33.33% - 4px); padding: 0 6px; }
	.mty-bk__grid2 { grid-template-columns: 1fr; }
	.mty-bk__done { padding: 24px 20px; }
	.mty-bk__okt { font-size: 34px; }
	/* Mientras la reserva está en pantalla, su barra sustituye a la barra general (WhatsApp | Reservar). */
	body.mty-bk-visible .mty-mobilebar { display: none !important; }
	body.mty-bk-visible .mty-bk__mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; background: #fff; border-top: 1px solid var(--bk-ln); padding-bottom: env(safe-area-inset-bottom); }
	.mty-bk__mbar-i { flex: 1; min-width: 0; padding: 9px 16px; font-size: 13px; line-height: 1.35; }
	.mty-bk__mbar-i b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.mty-bk__mbar-i span { color: var(--bk-tx2); }
	.mty-bk .mty-bk__mbar-b { flex: none; min-height: 56px; padding: 0 20px; border: 0; background: var(--bk-cta); color: #fff; font-size: 12.5px; font-weight: 500; letter-spacing: .16em; }
}
