/* Viva Tulum · Estancias — extiende styles.css de Zama 12 */

/* ---------- Hero de estancias ---------- */
.vt-hero { position: relative; min-height: 78svh; display: flex; align-items: flex-end; overflow: hidden; color: var(--paper); }
.vt-hero-bg { position: absolute; inset: 0; }
.vt-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.vt-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,12,.35) 0%, rgba(20,18,12,.05) 35%, rgba(20,18,12,.7) 100%); }
.vt-hero-inner { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--nav-h) + 2rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.vt-hero .eyebrow { color: var(--terra-pale); }
.vt-hero h1 { font-size: clamp(2.6rem, 6.5vw, 5.4rem); font-style: italic; max-width: 16ch; margin-top: .8rem; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.vt-hero p { margin-top: 1rem; max-width: 50ch; font-size: 1.1rem; color: rgba(246,241,231,.92); text-shadow: 0 1px 10px rgba(0,0,0,.5); }

/* ---------- Buscador ---------- */
.vt-search { margin-top: 2rem; display: grid; gap: .7rem; grid-template-columns: 1fr 1fr; background: var(--paper); color: var(--ink); border-radius: 22px; padding: .8rem; box-shadow: 0 24px 50px -20px rgba(0,0,0,.45); max-width: 860px; }
.vt-search .field label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); }
.vt-search .field input, .vt-search .field select { padding: .7rem .8rem; }
.vt-search .btn { justify-content: center; grid-column: 1 / -1; }
@media (min-width: 760px) {
  .vt-search { grid-template-columns: 1fr 1fr .8fr auto; align-items: end; border-radius: 999px; padding: .7rem .7rem .7rem 1.6rem; }
  .vt-search .btn { grid-column: auto; height: 52px; }
  .vt-search .field input, .vt-search .field select { border: 0; background: transparent; padding: .2rem 0 .3rem; }
  .vt-search .field + .field { border-left: 1px solid var(--line); padding-left: 1rem; }
}

/* ---------- Tarjetas de departamento ---------- */
.vt-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.vt-toolbar .filter-bar { margin: 0; }
.vt-resumen { font-family: var(--font-mono); font-size: .8rem; color: var(--ink-mute); }
.vt-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .vt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .vt-grid { grid-template-columns: repeat(3, 1fr); } }
.vt-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .4s var(--ease-out), transform .4s var(--ease-out); }
.vt-card:hover { box-shadow: 0 30px 60px -24px rgba(32,29,22,.32); transform: translateY(-3px); }
.vt-card-fig { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.vt-card-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.vt-card:hover .vt-card-fig img { transform: scale(1.06); }
.vt-badge { position: absolute; top: .9rem; left: .9rem; padding: .35rem .8rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; background: rgba(246,241,231,.94); color: var(--verde-deep); }
.vt-badge.no { color: var(--terra-deep); }
.vt-rating { position: absolute; top: .9rem; right: .9rem; padding: .35rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: rgba(32,29,22,.72); color: var(--paper); }
.vt-card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.vt-card-body h3 { font-size: 1.5rem; font-style: italic; }
.vt-card-body p { color: var(--ink-mute); font-size: .92rem; }
.vt-specs { display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.vt-card-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line-soft); display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.vt-precio { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: 1; }
.vt-precio small { font-family: var(--font-body); font-size: .78rem; font-weight: 500; color: var(--ink-mute); display: block; margin-top: .3rem; }
.vt-vacio-msg { padding: 2.5rem; text-align: center; border: 1.5px dashed var(--line); border-radius: 22px; color: var(--ink-mute); }

/* ---------- Bloque Zama 12 ---------- */
.vt-ventajas { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .vt-ventajas { grid-template-columns: repeat(3, 1fr); } }
.vt-ventaja { padding: 1.6rem; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.vt-ventaja b { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.45rem; font-weight: 500; margin-bottom: .4rem; }
.vt-ventaja p { color: var(--ink-mute); font-size: .92rem; }

/* ---------- Ficha ---------- */
.vt-ficha-head { padding-top: calc(var(--nav-h) + 1.6rem); }
.vt-migas { font-size: .82rem; color: var(--ink-mute); }
.vt-migas a { color: var(--verde-deep); font-weight: 600; }
.vt-ficha-head h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-style: italic; margin-top: .6rem; }
.vt-ficha-sub { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .7rem; font-size: .9rem; color: var(--ink-soft); font-weight: 600; }

.vt-galeria { display: grid; gap: .5rem; grid-template-columns: 1fr; margin-top: 1.6rem; border-radius: 22px; overflow: hidden; position: relative; }
.vt-galeria button { display: block; padding: 0; overflow: hidden; }
.vt-galeria img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out), filter .4s; }
.vt-galeria button:hover img { transform: scale(1.04); filter: brightness(1.05); }
.vt-galeria .g0 { aspect-ratio: 3/2; }
.vt-galeria .gx { display: none; }
@media (min-width: 760px) {
  .vt-galeria { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(360px, 46vw, 540px); }
  .vt-galeria .g0 { grid-row: 1 / 3; aspect-ratio: auto; }
  .vt-galeria .gx { display: block; }
}
.vt-galeria-btn { position: absolute; right: 1rem; bottom: 1rem; background: var(--paper) !important; padding: .6rem 1.1rem !important; border-radius: 999px; font-size: .85rem; font-weight: 700; box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); }

.vt-ficha-grid { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
@media (min-width: 1000px) { .vt-ficha-grid { grid-template-columns: 1fr 400px; align-items: start; } }
.vt-bloque { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.vt-bloque:last-child { border-bottom: 0; }
.vt-bloque h2 { font-size: 1.9rem; font-style: italic; margin-bottom: 1rem; }
.vt-bloque p + p { margin-top: .8rem; }
.vt-bloque p { color: var(--ink-soft); }
.vt-amen { display: grid; gap: .8rem 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .vt-amen { grid-template-columns: 1fr 1fr; } }
.vt-amen li { display: flex; align-items: center; gap: .7rem; font-size: .95rem; }
.vt-amen svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--verde); }
.vt-reglas li { padding: .35rem 0; color: var(--ink-soft); }
.vt-reglas li::before { content: "·"; color: var(--terra); font-weight: 800; margin-right: .5rem; }
.vt-extra { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: 18px; background: var(--verde-pale); color: var(--verde-deep); }
.vt-extra + .vt-extra { margin-top: .7rem; }
.vt-extra b { display: block; }
.vt-extra span { font-size: .9rem; }

/* ---------- Calendario ---------- */
.vt-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.vt-cal-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); font-size: 1.1rem; }
.vt-cal-nav button:disabled { opacity: .3; cursor: default; }
.vt-cal { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .vt-cal.dos { grid-template-columns: 1fr 1fr; } }
.vt-mes-titulo { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; text-transform: capitalize; margin-bottom: .5rem; text-align: center; }
.vt-mes-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.vt-dow { text-align: center; font-size: .7rem; font-weight: 700; color: var(--ink-mute); padding: .3rem 0; }
.vt-dia { aspect-ratio: 1 / 1.05; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: .9rem; position: relative; background: transparent; transition: background .2s; }
.vt-dia .vt-num { font-weight: 700; line-height: 1; }
.vt-dia .vt-p { font-size: .6rem; color: var(--ink-mute); font-family: var(--font-mono); line-height: 1; }
.vt-dia:not(:disabled):hover { background: var(--bg-2); }
.vt-dia:disabled { cursor: default; }
.vt-dia.pasado { opacity: .3; }
.vt-dia.ocupado .vt-num { text-decoration: line-through; color: var(--ink-mute); opacity: .55; }
.vt-dia.ocupado .vt-p { visibility: hidden; }
.vt-dia.salida-ok .vt-num { text-decoration: none; opacity: 1; color: var(--ink); }
.vt-dia.en-rango { background: var(--terra-pale); border-radius: 0; }
.vt-dia.sel-ini, .vt-dia.sel-fin { background: var(--ink) !important; color: var(--paper); border-radius: 10px; }
.vt-dia.sel-ini .vt-p, .vt-dia.sel-fin .vt-p { color: rgba(246,241,231,.75); }
.vt-dia.evento::after { content: ""; position: absolute; top: 5px; right: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--terra); }
.vt-cal-leyenda { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1rem; font-size: .78rem; color: var(--ink-mute); }
.vt-cal-leyenda i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }

/* ---------- Panel de reserva ---------- */
.vt-reserva { position: sticky; top: calc(var(--nav-h) + 1rem); background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 1.5rem; box-shadow: 0 30px 60px -30px rgba(32,29,22,.35); }
.vt-reserva h3 { font-size: 1.8rem; font-weight: 600; font-family: var(--font-display); }
.vt-reserva h3 small { font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--ink-mute); }
.vt-fechas { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line); border-radius: 14px; margin-top: 1rem; overflow: hidden; }
.vt-fechas > div { padding: .6rem .8rem; }
.vt-fechas > div + div { border-left: 1.5px solid var(--line); }
.vt-fechas .full { grid-column: 1 / -1; border-left: 0 !important; border-top: 1.5px solid var(--line); }
.vt-fechas label { display: block; font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.vt-fechas output, .vt-fechas select { font-size: .92rem; border: 0; background: none; padding: 0; width: 100%; }
.vt-desglose { margin-top: 1.1rem; display: grid; gap: .45rem; font-size: .92rem; }
.vt-desglose div { display: flex; justify-content: space-between; gap: 1rem; }
.vt-desglose .tot { padding-top: .7rem; margin-top: .3rem; border-top: 1px solid var(--line); font-weight: 800; font-size: 1.02rem; }
.vt-ahorro { margin-top: .9rem; padding: .7rem .9rem; border-radius: 12px; background: var(--verde-pale); color: var(--verde-deep); font-size: .85rem; font-weight: 600; }
.vt-aviso { margin-top: .9rem; padding: .7rem .9rem; border-radius: 12px; background: var(--terra-pale); color: var(--terra-deep); font-size: .85rem; font-weight: 600; }
.vt-reserva .btn { width: 100%; justify-content: center; margin-top: 1rem; }
.vt-reserva .btn:disabled { opacity: .45; pointer-events: none; }
.vt-nota { font-size: .78rem; color: var(--ink-mute); text-align: center; margin-top: .7rem; }

/* ---------- Modal / visor ---------- */
.vt-modal { position: fixed; inset: 0; z-index: 900; display: none; align-items: center; justify-content: center; padding: 1rem; background: rgba(20,18,12,.6); backdrop-filter: blur(4px); }
.vt-modal.abierto { display: flex; }
.vt-modal-box { background: var(--bg); border-radius: 24px; width: min(640px, 100%); max-height: calc(100svh - 2rem); overflow: auto; padding: clamp(1.4rem, 4vw, 2.2rem); position: relative; }
.vt-modal-box h2 { font-size: 2rem; font-style: italic; padding-right: 2.5rem; }
.vt-cerrar { position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--paper); font-size: 1rem; }
.vt-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); }
.vt-check input { margin-top: .25rem; accent-color: var(--terra); }

.vt-visor { position: fixed; inset: 0; z-index: 950; background: #0f0e0b; display: none; flex-direction: column; }
.vt-visor.abierto { display: flex; }
.vt-visor-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; color: var(--paper); }
.vt-visor-top .filter-pill { color: rgba(246,241,231,.7); border-color: rgba(246,241,231,.25); padding: .45rem 1rem; font-size: .8rem; }
.vt-visor-top .filter-pill.is-active { background: var(--paper); color: var(--ink); }
.vt-visor-cats { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; }
.vt-visor-main { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; min-height: 0; }
.vt-visor-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.vt-visor-main .prev, .vt-visor-main .next { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(246,241,231,.15); color: var(--paper); font-size: 1.3rem; }
.vt-visor-main .prev { left: 1rem; } .vt-visor-main .next { right: 1rem; }
.vt-visor-cap { text-align: center; color: rgba(246,241,231,.75); font-size: .85rem; padding: .7rem; }
.vt-visor .vt-cerrar { position: static; background: rgba(246,241,231,.12); color: var(--paper); border-color: rgba(246,241,231,.25); flex-shrink: 0; }

.vt-ok { text-align: center; }
.vt-ok svg { margin: 0 auto 1rem; color: var(--verde); }
.vt-ok h2 { padding: 0; }
.vt-ok p { margin-top: .8rem; color: var(--ink-soft); }
.vt-ok .cta-row { justify-content: center; margin-top: 1.4rem; }

.vt-whatsapp { background: #25D366; color: #fff; }
.vt-whatsapp:hover { background: #1fb457; transform: translateY(-2px); }

/* el atributo hidden siempre oculta, aunque la clase defina display */
[hidden] { display: none !important; }
