/* ==========================================================================
   Luisito el Viajero · Hoja de estilos
   Mobile-first. Una sola capa: tokens → base → componentes → ajustes de escritorio.
   Mínimos de diseño: texto ≥ 12 px (cuerpo 16 px), objetivos táctiles ≥ 44 px,
   campos de formulario a 16 px (evita el zoom automático de iOS).
   ========================================================================== */

@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url("assets/fonts/dm-sans-latin.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("assets/fonts/cormorant-garamond-latin.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500 600; font-display: swap; src: url("assets/fonts/cormorant-garamond-italic-latin.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --ink: #131715;
  --ink-soft: #3d4640;
  --muted: #667068;
  --paper: #f6f4ee;
  --card: #fffefb;
  --sand: #ebe7dc;
  --line: #dcd8cc;
  --pine: #1f463d;
  --pine-deep: #12261f;
  --teal: #1f9c8a;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px;
  --gutter: 16px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .72, .2, 1);
  --shadow-card: 0 1px 2px rgba(19, 23, 21, .06), 0 8px 24px rgba(19, 23, 21, .08);
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 84px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.modal-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 700; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
::selection { background: #cfe3dc; color: var(--pine-deep); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.wrap { width: min(1200px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }
.section h2 { font-size: clamp(38px, 8.4vw, 54px); font-weight: 500; letter-spacing: -.015em; line-height: 1.04; }

/* ---------- Tipografía ----------
   Dos voces. Cormorant Garamond (serif editorial) solo en títulos y cifras de ficha: hero, títulos de sección,
   nombre de la cabaña, subtítulos y total de la ficha. DM Sans (sans) en todo lo demás: cuerpo, interfaz, botones,
   precios de tarjeta, formularios y chat. El serif de pantalla tiene menos altura de x, así que sus tamaños son
   mayores que los de la sans para que se lean con el mismo peso visual. Cada componente fija su tamaño más abajo. */
.hero h1, .section h2, .cta-copy h2, .pm-info h2, .pm-subtitle, .calc-title, .card-title, .pm-price strong, .result-total strong { font-family: var(--serif); font-optical-sizing: auto; }
.pm-price strong, .result-row.result-total strong { font-variant-numeric: lining-nums; }
.pm-price em, .result-total em { font-family: var(--sans); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Iconos ---------- */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { flex: none; width: 1.25em; height: 1.25em; fill: currentColor; }

/* ---------- Movimiento ----------
   Entradas con animación (no transición) para que el hover posterior no herede retrasos.
   Todo usa transform y opacity; con movimiento reducido se desactiva al final de la hoja. */
.reveal { opacity: 0; }
.reveal.is-visible { opacity: 1; animation: rise .8s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
.property-card.is-visible .card-image-button img { animation: img-settle 1.3s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes rise-s { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes img-settle { from { transform: scale(1.16); } to { transform: none; } }
@keyframes heart-pop { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 65% { transform: scale(.9); } 100% { transform: scale(1); } }
@keyframes num-bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); color: var(--teal); } 100% { transform: scale(1); } }
@keyframes arrow-nudge { 0% { transform: translate(0, 0); } 45% { transform: translate(14px, -14px); opacity: 0; } 46% { transform: translate(-14px, 14px); opacity: 0; } 100% { transform: translate(1px, -1px); opacity: 1; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.07); } to { transform: none; } }
@keyframes drift { from { transform: translate(-6%, -6%) scale(1); } to { transform: translate(8%, 10%) scale(1.25); } }

/* ---------- Botones ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; font-size: 15px; font-weight: 500; line-height: 1; transition: transform .2s var(--ease), background-color .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(8, 14, 12, .16); }
.button:active { transform: translateY(0) scale(.98); box-shadow: none; }
.button svg { width: 18px; height: 18px; flex: none; }
.button-light { background: #fff; color: var(--ink); }
.button-light:hover { background: #f1f1ec; }
.button-dark { background: var(--pine); color: #fff; }
.button-dark:hover { background: var(--pine-deep); }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button-secondary:hover { background: var(--sand); }
.button-icon { font-size: 18px; }
.button-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.button-outline:hover { background: #fff; border-color: #b9b6ab; box-shadow: none; }
.button-outline .icon { color: #1f9d58; }
.button-wa { background: #1ea85c; color: #fff; box-shadow: none; }
.button-wa:hover { background: #189a52; box-shadow: 0 4px 14px rgba(22, 138, 75, .28); }
.button-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.button-ghost:hover { background: rgba(255, 255, 255, .18); border-color: #fff; box-shadow: none; }
.button-cta { background: #137a6a; color: #fff; box-shadow: none; }
.button-cta:hover { background: #0f6e61; box-shadow: 0 4px 14px rgba(15, 110, 97, .28); }
.button:disabled { opacity: .6; pointer-events: none; }

/* ---------- Cabecera ---------- */
.site-header { position: fixed; z-index: 50; inset: 0 0 auto; height: var(--header-h); display: flex; align-items: center; gap: 8px; padding-inline: max(var(--gutter), calc((100% - 1200px) / 2)); color: #fff; transition: background-color .3s ease, box-shadow .3s ease; }
.site-header { animation: drop-in .8s var(--ease) backwards; }
.scroll-progress { position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, var(--teal), #7fd6c8); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.site-header.is-scrolled .scroll-progress { opacity: 1; }
.site-header.is-scrolled, .site-header.menu-open { background: rgba(14, 26, 22, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.brand { display: block; margin-right: auto; flex: none; }
.brand-logo { display: block; width: auto; height: 46px; }
@media (min-width: 768px) { .brand-logo { height: 56px; } }

.header-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .45); border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 14px; font-weight: 500; transition: background-color .2s ease; }
.header-cta:hover { background: rgba(255, 255, 255, .2); }
.header-cta svg { width: 20px; height: 20px; }
.cta-long { display: none; }

.menu-toggle { display: inline-grid; place-content: center; gap: 6px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #fff; }
.menu-toggle span { display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Menú móvil: panel sólido bajo la cabecera */
.main-nav { position: fixed; inset: var(--header-h) 0 auto; display: none; flex-direction: column; padding: 8px var(--gutter) 28px; background: #0e1a16; max-height: calc(100svh - var(--header-h)); overflow-y: auto; }
.main-nav.is-open { display: flex; }
.main-nav a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid rgba(255, 255, 255, .1); color: #fff; font-size: 18px; font-weight: 500; }
.nav-cta { margin-top: 20px; min-height: 48px; }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .main-nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 28px; padding: 0; background: none; max-height: none; overflow: visible; }
  .main-nav a { min-height: 44px; border: 0; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .9); }
  .main-nav a:hover { color: #fff; }
  .nav-cta { display: none; }
  .header-cta { margin-left: 8px; padding: 0 20px; }
  .cta-long { display: inline; }
  .cta-short { display: none; }
}

/* ---------- Hero ----------
   Titular (serif) y subtexto (sans) centrados en la parte alta, con aire bajo la cabecera; el botón queda abajo. */
.hero { position: relative; isolation: isolate; display: flex; align-items: stretch; height: min(133.33vw, 700px); overflow: hidden; color: #fff; background: #1c2a25; }
.hero-image { position: absolute; inset: 0; z-index: -2; background: url("assets/hero-cabanas-mobile.webp") 50% 45% / cover no-repeat; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 14, 12, .76) 0%, rgba(8, 14, 12, .64) 34%, rgba(8, 14, 12, 0) 62%), linear-gradient(0deg, rgba(8, 14, 12, .6) 0%, rgba(8, 14, 12, 0) 26%); }
.hero-image { animation: settle 2s var(--ease) backwards; }
.hero-content { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: calc(var(--header-h) + 20px) 0 28px; text-align: center; transform: translate3d(0, calc(var(--hero-p, 0) * 80px), 0); opacity: calc(1 - var(--hero-p, 0) * 1.4); will-change: transform, opacity; }
.hero-text { display: grid; justify-items: center; }
.hero h1, .hero-copy, .hero-actions { animation: rise 1s var(--ease) backwards; }
.hero h1 { animation-delay: .2s; }
.hero-copy { animation-delay: .38s; }
.hero-actions { animation-delay: .54s; }
.hero-actions .button:hover .icon-arrow { transform: translateY(3px); }
.hero-actions .icon-arrow { transition: transform .3s var(--ease); }
.hero h1 { max-width: 9em; font-size: clamp(46px, 12.6vw, 66px); font-weight: 500; line-height: .96; letter-spacing: -.02em; text-shadow: 0 2px 28px rgba(8, 14, 12, .45); }
.hero h1 em { font-weight: 500; letter-spacing: -.01em; }
.hero-copy { max-width: 31ch; margin-top: 14px; color: rgba(255, 255, 255, .94); font-size: 16px; line-height: 1.5; text-wrap: balance; text-shadow: 0 1px 14px rgba(8, 14, 12, .5); }
.hero-copy-more { display: none; }
@media (min-width: 560px) { .hero-content { padding-bottom: 40px; } .hero-copy { font-size: 17px; } }
@media (min-width: 600px) { .hero-copy-more { display: inline; } }
/* Con la foto horizontal (≥ 1100 px) el sujeto queda a la derecha; por debajo se usa la vertical, que admite texto centrado. */
@media (min-width: 1100px) {
  .hero { --hero-h: clamp(580px, 72svh, 720px); height: var(--hero-h); }
  /* Foto ampliada y anclada arriba a la izquierda: el sujeto queda a la derecha y más abajo, libre del texto centrado. */
  .hero-image { background-image: url("assets/hero-cabanas.webp"); background-size: max(125%, calc(var(--hero-h) * 2.4)) auto; background-position: 0% 0%; }
  .hero-shade { background: linear-gradient(180deg, rgba(8, 14, 12, .7) 0%, rgba(8, 14, 12, .46) 30%, rgba(8, 14, 12, 0) 56%), linear-gradient(0deg, rgba(8, 14, 12, .5) 0%, rgba(8, 14, 12, 0) 24%); }
  .hero-content { padding-top: calc(var(--header-h) + 28px); padding-bottom: 44px; }
  .hero h1 { max-width: 9.5em; font-size: clamp(58px, 5vw, 72px); line-height: .94; }
  .hero-copy { max-width: 30ch; margin-top: 18px; font-size: 19px; }
}
@media (min-width: 1280px) { .hero-copy { max-width: 32ch; } }
@media (min-width: 1440px) { .hero-copy { max-width: 36ch; } }

/* ---------- Catálogo ---------- */
.catalog-section { padding-top: 36px; }
@media (min-width: 768px) { .catalog-section { padding-top: 64px; } }

/* Filtro único por ubicación */
.catalog-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.catalog-toolbar .result-count { margin-left: auto; }
.loc-filter { position: relative; flex: 1 1 auto; min-width: 0; }
@media (min-width: 480px) { .loc-filter { flex: none; width: 210px; } }
.loc-button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-size: 15px; font-weight: 500; text-align: left; transition: border-color .2s ease, background-color .25s ease, color .25s ease, transform .2s var(--ease); }
.loc-button:hover { border-color: #b9b6ab; background: var(--card); }
.loc-button:active { transform: scale(.985); }
.loc-button .icon { width: 18px; height: 18px; color: var(--pine); transition: color .25s ease, transform .35s var(--ease); }
.loc-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-button[aria-expanded="true"] .icon-chevron { transform: rotate(180deg); }
.loc-button.is-filtered { background: var(--pine); border-color: var(--pine); color: #fff; }
.loc-button.is-filtered:hover { background: var(--pine-deep); }
.loc-button.is-filtered .icon { color: #fff; }
.loc-menu { max-height: min(60svh, 420px); overflow-y: auto; overscroll-behavior: contain; position: absolute; z-index: 30; inset: calc(100% + 8px) auto auto 0; width: min(340px, calc(100vw - 2 * var(--gutter))); padding: 6px; border-radius: var(--radius-m); background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(19, 23, 21, .2); visibility: hidden; opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: 24px top; transition: opacity .18s ease, transform .3s var(--ease), visibility 0s .3s; }
.loc-menu.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.loc-menu.is-open .loc-option { animation: rise-s .35s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 45ms + 40ms); }
.loc-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--radius-s); background: transparent; color: var(--ink); font-size: 15px; text-align: left; transition: background-color .15s ease; }
.loc-option:hover, .loc-option:focus-visible { background: var(--sand); outline: none; }
.loc-meta { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.loc-meta small { font-size: 13px; }
.loc-meta .icon { width: 18px; height: 18px; color: var(--pine); opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .3s var(--ease); }
.loc-option[aria-selected="true"] { color: var(--pine); font-weight: 700; }
.loc-option[aria-selected="true"] .icon { opacity: 1; transform: none; }
.result-count { flex: none; color: var(--muted); font-size: 14px; white-space: nowrap; }
@media (max-width: 479px) { .result-count { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); } .loc-filter { max-width: none; } }

.property-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .property-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1040px) { .property-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.fav-toggle { position: relative; display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-size: 15px; font-weight: 500; transition: border-color .2s ease, background-color .25s ease, color .25s ease, transform .2s var(--ease); }
.fav-toggle .icon { width: 18px; height: 18px; color: #e5484d; transition: transform .35s var(--ease); }
.fav-toggle:hover { border-color: #b9b6ab; background: var(--card); }
.fav-toggle:hover .icon { transform: scale(1.15); }
.fav-toggle:active { transform: scale(.97); }
.fav-toggle.is-active { background: var(--pine); border-color: var(--pine); color: #fff; }
.fav-toggle.is-active:hover { background: var(--pine-deep); }
.fav-toggle.is-active .icon { color: #ff7a85; }
.fav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 12px; font-weight: 600; line-height: 1; animation: pop-in .4s var(--ease); }
.empty-state { display: grid; grid-column: 1 / -1; justify-items: center; gap: 10px; padding: 56px 16px; border: 1px dashed #b9b6ab; border-radius: 18px; color: var(--muted); text-align: center; }
.empty-state strong { color: var(--ink); font-size: 18px; }
.empty-state .button { margin-top: 8px; }
.catalog-note { margin-top: 28px; color: var(--muted); font-size: 13px; }

/* Paginador del catálogo (9 por página) */
.pager { display: grid; justify-items: center; gap: 14px; margin-top: 32px; }
.pager[hidden] { display: none; }
.pager-info { color: var(--muted); font-size: 14px; }
.pager-controls { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.pager-step { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font-size: 15px; font-weight: 500; transition: border-color .2s ease, background-color .2s ease, opacity .2s ease, transform .2s var(--ease); }
.pager-step .icon { width: 18px; height: 18px; }
.pager-step:hover:not(:disabled) { border-color: #b9b6ab; background: var(--card); }
.pager-step:active:not(:disabled) { transform: scale(.97); }
.pager-step:disabled { opacity: .38; cursor: default; }
.pager-numbers { display: none; gap: 4px; }
.pager-number { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; transition: background-color .2s ease, color .2s ease; }
.pager-number:hover { background: var(--sand); }
.pager-number[aria-current="page"] { background: var(--pine); color: #fff; }
.pager-status { flex: 1; color: var(--muted); font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
@media (min-width: 640px) { .pager-numbers { display: flex; } .pager-status { display: none; } .pager-controls { gap: 16px; } .pager-step { padding: 0 18px; } }

/* Tarjeta: foto grande con título, lugar y precio sobre la imagen, y franja clara con datos clave */
.property-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #e8e5de; border-radius: 18px; background: #fbfaf7; box-shadow: 0 2px 6px rgba(27, 29, 24, .04); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s ease; }
.property-card:hover { transform: translateY(-5px); border-color: #d5d0c5; box-shadow: 0 18px 40px rgba(27, 29, 24, .13); }
.card-visual { position: relative; overflow: hidden; border-radius: 17px 17px 0 0; }
.card-image-button { position: relative; display: block; width: 100%; aspect-ratio: 1.5 / 1; padding: 0; border: 0; overflow: hidden; background: #2a3a34; color: #fff; text-align: left; isolation: isolate; }
.card-image-button::after { content: ""; position: absolute; z-index: 0; inset: 28% 0 0; background: linear-gradient(0deg, rgba(5, 9, 8, .9) 0%, rgba(5, 9, 8, .58) 34%, rgba(5, 9, 8, .1) 80%, transparent 100%); pointer-events: none; }
.card-image-button img { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; transition: transform .9s var(--ease), filter .4s ease; }
.property-card:hover .card-image-button img { transform: scale(1.05); filter: saturate(1.06); }
.card-overlay { position: absolute; z-index: 2; inset: auto 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto 40px; align-items: end; gap: 10px; padding: 0 14px 14px 16px; }
.card-overlay-main { display: grid; gap: 5px; min-width: 0; }
.card-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; padding-bottom: 2px; color: #fff; font-size: 25px; font-weight: 600; line-height: 1.08; letter-spacing: -.005em; text-wrap: balance; overflow-wrap: break-word; }
.card-location { display: flex; align-items: flex-start; gap: 5px; min-width: 0; color: rgba(255, 255, 255, .92); font-size: 13px; line-height: 1.2; }
.card-location .icon { width: 15px; height: 15px; margin-top: 1px; color: #e8c84a; }
.card-location span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; line-height: 1.25; }
.card-price { display: flex; flex-direction: column; align-items: flex-end; color: #fff; white-space: nowrap; line-height: 1.15; }
.card-price small { color: rgba(255, 255, 255, .88); font-size: 12px; }
.card-price strong { font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.card-arrow { display: grid; place-items: center; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; background: #fbfaf7; color: var(--ink); transition: background-color .3s ease, color .3s ease, transform .4s var(--ease); }
.card-arrow .icon { width: 20px; height: 20px; transition: transform .4s var(--ease); }
.property-card:hover .card-arrow { background: var(--teal); color: #fff; transform: scale(1.08); }
.property-card:hover .card-arrow .icon { transform: translate(1px, -1px) rotate(0); animation: arrow-nudge .7s var(--ease); }
.card-heart { position: absolute; z-index: 4; top: 6px; right: 6px; isolation: isolate; display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: transparent; color: #fff; }
.card-heart::before { content: ""; position: absolute; z-index: -1; width: 38px; height: 38px; border-radius: 50%; background: rgba(8, 14, 12, .38); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .2s ease, transform .3s var(--ease); }
.card-heart:hover::before { background: rgba(8, 14, 12, .58); transform: scale(1.1); }
.card-heart .icon { width: 20px; height: 20px; transition: fill .2s ease; }
.card-heart.is-saved .icon { fill: #ff5d73; }
.card-heart.is-popping .icon { animation: heart-pop .55s var(--ease); }
.card-footer { border-top: 1px solid #eceae3; background: #fbfaf7; }
.card-specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-spec { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; min-width: 0; padding: 13px 6px 12px; color: var(--ink-soft); font-size: 13px; font-weight: 500; line-height: 1.2; text-align: center; }
.card-spec + .card-spec { border-left: 1px solid #eceae3; }
.card-spec .icon { display: block; width: 22px; height: 22px; color: var(--pine); transition: transform .35s var(--ease); }
.property-card:hover .card-spec .icon { transform: translateY(-2px); }
.card-spec span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 359px) { .card-title { font-size: 22px; } }
@media (max-width: 339px) { .card-title { font-size: 20px; } }
@media (min-width: 1040px) { .card-image-button { aspect-ratio: 1.62 / 1; } .card-title { font-size: 23px; } .card-price strong { font-size: 19px; } }
@media (min-width: 1280px) { .card-title { font-size: 27px; } }

/* ---------- Preguntas frecuentes ---------- */
.faq-section { background: var(--sand); }
.faq-layout { display: grid; gap: 24px; }
@media (min-width: 900px) { .faq-layout { grid-template-columns: 1fr 1.6fr; gap: 72px; align-items: start; } .faq-intro { position: sticky; top: calc(var(--header-h) + 24px); } }
.faq-intro { display: grid; justify-items: start; gap: 14px; }
.faq-intro p { max-width: 32ch; color: var(--ink-soft); font-size: 17px; line-height: 1.5; }
.faq-intro .button { margin-top: 6px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 0; font-size: 17px; font-weight: 600; line-height: 1.3; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 24px; height: 24px; color: var(--pine); transition: transform .4s var(--ease); }
.faq-list details[open] summary .icon { transform: rotate(135deg); }
.faq-list details[open] p { animation: rise-s .4s var(--ease) backwards; }
.faq-list details p { padding: 0 40px 20px 0; color: var(--ink-soft); font-size: 16px; line-height: 1.6; }

/* ---------- Llamada a la acción final ---------- */
.cta-section { padding: 56px 0; }
.cta-card { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 460px; padding: 28px 22px; border-radius: 24px; color: #fff; background: #12261f; }
.cta-card::before { content: ""; position: absolute; z-index: -2; inset: 0; background: url("assets/hero-cabanas-mobile.webp") 50% 50% / cover no-repeat; transform: scale(1.04); transition: transform 1.6s var(--ease); }
.cta-card.is-visible::before { transform: scale(1); }
.cta-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, rgba(10, 20, 17, .95) 0%, rgba(10, 20, 17, .82) 46%, rgba(10, 20, 17, .1) 100%); }
.cta-copy { display: grid; gap: 12px; max-width: 560px; }
.cta-kicker { color: #7fd6c8; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.cta-copy h2 { font-size: clamp(38px, 9.4vw, 54px); font-weight: 500; letter-spacing: -.015em; line-height: 1.02; }
.cta-text { color: rgba(255, 255, 255, .88); font-size: 17px; line-height: 1.5; }
.cta-points { display: grid; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.cta-points li { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .92); font-size: 15px; }
.cta-points .icon { width: 20px; height: 20px; color: #7fd6c8; }
.cta-actions { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 640px) { .cta-actions { display: flex; flex-wrap: wrap; } }
@media (min-width: 768px) {
  .cta-section { padding: 88px 0; }
  .cta-card { align-items: center; min-height: 440px; padding: 56px; }
  .cta-card::before { background-image: url("assets/hero-cabanas.webp"); background-position: 62% 40%; }
  .cta-card::after { background: linear-gradient(90deg, rgba(10, 20, 17, .94) 0%, rgba(10, 20, 17, .78) 42%, rgba(10, 20, 17, .05) 78%); }
}

/* ---------- Pie de página ---------- */
.site-footer { padding: 56px 0 24px; color: rgba(255, 255, 255, .78); background: #0e1a16; }
.footer-grid { display: grid; gap: 36px; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-brand p { max-width: 34ch; font-size: 15px; line-height: 1.55; }
.footer-col { display: grid; gap: 2px; align-content: start; }
.footer-col h3 { margin-bottom: 8px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.footer-col p { margin-bottom: 14px; max-width: 30ch; font-size: 15px; line-height: 1.5; }
.footer-col a, .footer-col button:not(.button) { display: inline-flex; align-items: center; justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .9); font-size: 16px; transition: color .2s ease, transform .25s var(--ease); }
.footer-col a:hover, .footer-col button:not(.button):hover { color: #fff; transform: translateX(3px); }
.footer-col .button { justify-self: start; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: 36px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .62); }
.footer-bottom a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: rgba(255, 255, 255, .85); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom .to-top { text-decoration: none; }
.footer-bottom .to-top .icon { width: 16px; height: 16px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 56px; } .footer-bottom { margin-top: 48px; } }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-fab { position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; height: 52px; min-width: 52px; padding: 0 14px; border: 0; border-radius: 26px; background: #1ea85c; color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 6px 18px rgba(22, 138, 75, .32), 0 1px 4px rgba(0, 0, 0, .18); opacity: 0; visibility: hidden; transform: translateY(24px) scale(.8); transition: opacity .35s ease, transform .5s var(--ease), visibility 0s .5s, padding .4s var(--ease); }
.wa-fab.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.wa-fab .icon { width: 24px; height: 24px; flex: none; }
.wa-label { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .5s var(--ease), opacity .3s ease, margin .4s var(--ease); }
.wa-fab.is-expanded .wa-label, .wa-fab:hover .wa-label, .wa-fab:focus-visible .wa-label { max-width: 260px; margin-left: 10px; opacity: 1; }
.wa-fab.is-visible::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; z-index: -1; animation: fab-ring 2.8s ease-out infinite; }
.wa-badge { position: absolute; top: -2px; right: -2px; width: 16px; height: 16px; border: 2px solid #fff; border-radius: 50%; background: #e5484d; animation: pop-in .35s var(--ease); }
.wa-fab:hover { transform: translateY(-3px); }
.wa-fab:active { transform: scale(.96); }
body.modal-open .wa-fab { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes fab-ring { 0% { transform: scale(1); opacity: .35; } 70%, 100% { transform: scale(1.35); opacity: 0; } }
@media (max-width: 479px) { .wa-fab.is-expanded .wa-label { max-width: 210px; } }

/* ---------- Modales ---------- */
.modal-root { position: fixed; z-index: 100; inset: 0; display: none; align-items: center; justify-content: center; padding: 0; background: rgba(8, 14, 12, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-root.is-open { display: flex; }
.modal-panel { position: relative; width: 100%; height: 100%; overflow-y: auto; overscroll-behavior: contain; background: var(--paper); animation: modal-in .3s var(--ease) both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 5; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: rgba(14, 26, 22, .55); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .3s var(--ease), background-color .2s ease; }
.modal-close:hover { background: rgba(14, 26, 22, .78); transform: rotate(90deg); }
.pm-stage-wrap { position: relative; }
@media (min-width: 768px) {
  .modal-root { padding: 24px; }
  .modal-panel { width: min(920px, 100%); height: auto; max-height: min(92svh, 860px); border-radius: var(--radius-l); box-shadow: 0 30px 100px rgba(0, 0, 0, .35); }
}
@keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }

/* Ficha de propiedad */
.pm-grid { display: grid; gap: 16px; padding: 0 14px 28px; }
.pm-media { display: grid; gap: 8px; min-width: 0; }
.pm-stage { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 70svh; overflow: hidden; border-radius: var(--radius-m); background: #0f1512; }
.pm-stage img, .pm-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pm-stage.is-photo img { object-fit: contain; }
.pm-stage video { cursor: pointer; }
.reel-controls { position: absolute; z-index: 3; inset: auto 0 3px; display: flex; align-items: flex-end; justify-content: space-between; padding: 12px; pointer-events: none; background: linear-gradient(0deg, rgba(8, 14, 12, .45), rgba(8, 14, 12, 0)); }
.reel-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0; border: 0; border-radius: 22px; background: rgba(14, 26, 22, .55); color: #fff; font-size: 14px; font-weight: 500; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: auto; transition: background-color .2s ease, transform .2s var(--ease); }
.reel-btn:hover { background: rgba(14, 26, 22, .75); }
.reel-btn:active { transform: scale(.94); }
.reel-btn .icon { width: 22px; height: 22px; }
.reel-btn span { display: inline-flex; }
.reel-btn .i-play, .reel-btn .i-off { display: none; }
.pm-stage.is-paused .reel-toggle .i-pause { display: none; }
.pm-stage.is-paused .reel-toggle .i-play { display: inline-flex; }
.pm-stage.is-muted .reel-sound .i-on { display: none; }
.pm-stage.is-muted .reel-sound .i-off { display: inline-flex; }
.reel-sound-hint { display: none !important; }
.pm-stage.needs-sound .reel-sound { padding: 0 16px 0 12px; background: #fff; color: var(--ink); animation: sound-hint 1.8s ease-in-out infinite; }
.pm-stage.needs-sound .reel-sound-hint { display: inline-flex !important; }
.reel-progress { position: absolute; z-index: 3; inset: auto 0 0; height: 3px; background: rgba(255, 255, 255, .28); pointer-events: none; }
.reel-progress i { display: block; width: 100%; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
@keyframes sound-hint { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 60% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }
.reel-badge { position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(14, 26, 22, .66); color: #fff; font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); }
.gallery-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery-thumb { position: relative; display: block; aspect-ratio: 1; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: var(--radius-s); background: #ddd; }
.gallery-thumb.is-selected { border-color: var(--pine); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-thumb:hover img { transform: scale(1.08); }
.gallery-thumb { transition: border-color .2s ease, transform .2s var(--ease); }
.gallery-thumb:active { transform: scale(.96); }
.thumb-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(14, 26, 22, .42); color: #fff; transition: background-color .25s ease; }
.thumb-play .icon { width: 22px; height: 22px; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .4)); }
.gallery-thumb:hover .thumb-play { background: rgba(14, 26, 22, .22); }
.pm-info { min-width: 0; }
.pm-info h2 { font-size: clamp(38px, 10vw, 46px); font-weight: 500; line-height: 1; letter-spacing: -.015em; }
.pm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 15px; }
.pm-meta .icon { width: 18px; height: 18px; color: var(--pine); }
.pm-price { margin-top: 10px; color: var(--muted); font-size: 15px; }
.pm-price strong { color: var(--ink); font-size: 28px; font-weight: 600; letter-spacing: -.005em; }
.pm-price em { font-size: 15px; font-style: normal; font-weight: 500; white-space: nowrap; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.fact { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; padding: 16px 8px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--muted); font-size: 13px; line-height: 1.25; text-align: center; }
.fact .icon { width: 26px; height: 26px; margin-bottom: 4px; color: var(--pine); }
.fact strong { color: var(--ink); font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }

.pm-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.pm-subtitle { margin-bottom: 16px; font-size: 26px; font-weight: 600; line-height: 1.1; letter-spacing: -.005em; }
.amenities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin: 0; padding: 0; list-style: none; }
.amenity { display: flex; align-items: center; gap: 14px; color: var(--ink); font-size: 15px; line-height: 1.3; }
.amenity .icon { width: 26px; height: 26px; color: var(--ink); }
.modal-root.is-open .fact, .modal-root.is-open .amenity { animation: rise-s .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 55ms + 240ms); }
.calculator-column { margin-top: 24px; }
/* Tableta (768–959 px): una sola columna, con el reel centrado y de buen tamaño. */
@media (min-width: 768px) {
  .pm-grid { padding: 28px; gap: 24px; }
  .pm-media { width: min(100%, calc(min(66svh, 620px) * 9 / 16)); margin-inline: auto; }
  .pm-stage { max-height: min(66svh, 620px); }
}
/* Escritorio (≥ 960 px): reel a la izquierda y datos a la derecha. */
@media (min-width: 960px) {
  .pm-grid { grid-template-columns: auto minmax(0, 1fr); gap: 32px; padding: 28px; align-items: start; --stage-h: min(600px, calc(92svh - 130px)); }
  .pm-media { position: sticky; top: 28px; width: calc(var(--stage-h) * 9 / 16); margin-inline: 0; }
  .pm-stage { width: 100%; height: var(--stage-h); max-height: none; aspect-ratio: auto; }
  .pm-info { padding-right: 36px; }
}

/* Cotizador: una sola caja con celdas, como en las plataformas de reservas */
.calculator { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 6px 24px rgba(19, 23, 21, .08); }
.calc-title { margin-bottom: 16px; font-size: 28px; font-weight: 600; line-height: 1.05; letter-spacing: -.005em; }
.booking-box { border: 1px solid #b9b6ab; border-radius: 12px; overflow: hidden; }
.booking-dates { display: grid; grid-template-columns: 1fr 1fr; }
.booking-dates.is-single { grid-template-columns: 1fr; }
.booking-dates .cell + .cell { border-left: 1px solid #b9b6ab; }
.booking-box > .cell { border-top: 1px solid #b9b6ab; }
.cell { position: relative; min-width: 0; background: #fff; transition: box-shadow .2s ease; }
.cell:focus-within { z-index: 2; box-shadow: inset 0 0 0 2px var(--teal); }
.cell > label, .cell-label { position: absolute; z-index: 1; top: 11px; left: 14px; right: 14px; overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .05em; line-height: 1; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; pointer-events: none; }
.cell input[type="date"], .cell select { position: relative; display: block; width: 100%; height: 64px; padding: 30px 14px 8px; border: 0; border-radius: 0; background: transparent; color: var(--ink); font-size: 16px; font-weight: 500; outline: none; }
.cell input[type="date"] { -webkit-appearance: none; appearance: none; text-align: left; }
.cell input[type="date"]::-webkit-date-and-time-value { margin: 0; text-align: left; }
.cell input[type="date"]::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.cell.is-empty input[type="date"] { color: var(--muted); }
.cell select { appearance: none; -webkit-appearance: none; padding-right: 44px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath fill='%23131715' d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E") right 16px center / 16px no-repeat; }
.cell-clear { position: absolute; z-index: 3; top: 14px; right: 4px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft); transition: background-color .2s ease, transform .3s var(--ease); }
.cell-clear .icon { width: 16px; height: 16px; }
.cell-clear:hover { background: var(--sand); transform: rotate(90deg); }

.cell-people { display: flex; flex-direction: column; align-items: center; padding: 12px 8px 10px; text-align: center; }
.cell-people .cell-label { position: static; margin-bottom: 4px; width: 100%; text-align: center; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 8px; }
.stepper-value { min-width: 112px; font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; text-align: center; }
.stepper output { display: inline-block; font-weight: 700; }
.stepper output.is-bumped { animation: num-bump .35s var(--ease); }
.stepper button { position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); }
.stepper button::before { content: ""; position: absolute; inset: 5px; border: 1px solid #b9b6ab; border-radius: 50%; transition: border-color .2s ease, background-color .2s ease, transform .2s var(--ease); }
.stepper button .icon { position: relative; width: 16px; height: 16px; }
.stepper button:hover::before { border-color: var(--ink); background: #f3f2ec; }
.stepper button:active::before { transform: scale(.9); }

.calc-result { margin-top: 18px; }
.calc-result:empty { display: none; }
.calc-result > * { animation: rise-s .4s var(--ease) backwards; }
.calc-result > :nth-child(2) { animation-delay: .04s; } .calc-result > :nth-child(3) { animation-delay: .08s; } .calc-result > :nth-child(4) { animation-delay: .12s; } .calc-result > :nth-child(5) { animation-delay: .16s; }
.result-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0; color: var(--ink-soft); font-size: 15px; }
.result-row strong { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.result-line { align-items: flex-start; }
.result-line span { display: grid; gap: 1px; line-height: 1.35; }
.result-line small { color: var(--muted); font-size: 13px; }
.result-total { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.result-total strong { color: var(--pine); font-size: 28px; font-weight: 600; line-height: 1; letter-spacing: -.005em; }
.result-deposit { color: var(--muted); }
.result-disclaimer { margin-top: 10px; color: var(--muted); font-size: 13px; }
.calc-warning { padding: 12px 14px; border-radius: 10px; background: #f3ead6; color: #6a5530; font-size: 14px; line-height: 1.5; }
.calculator > .button { width: 100%; margin-top: 18px; }
.button:hover .icon-arrow { transform: translate(2px, -2px); }
.button .icon-arrow { transition: transform .3s var(--ease); }
.calc-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 13px; }
.calc-note .icon { width: 16px; height: 16px; }

/* Barra inferior de la ficha en móvil: resumen + botón siempre a mano */
.pm-bar { display: none; }
@media (max-width: 767px) {
  .calculator > .button, .calc-note { display: none; }
  .pm-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 254, 250, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 -10px 28px rgba(19, 23, 21, .08); }
  .pm-bar-price { display: grid; gap: 1px; min-width: 0; line-height: 1.2; }
  .pm-bar-price strong { overflow: hidden; font-size: 18px; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
  .pm-bar-price span { overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
  .pm-bar .button { flex: none; min-height: 46px; padding: 0 20px; }
}

/* ---------- Chat de contacto (estilo WhatsApp) ---------- */
#contactModal { align-items: stretch; justify-content: stretch; }
.chat-panel { display: flex; flex-direction: column; overflow: hidden; width: 100%; height: 100%; background: #efeae2; }
.chat-head { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; flex: none; padding: 10px 12px 10px 6px; padding-top: max(10px, env(safe-area-inset-top)); color: #fff; background: #008069; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.chat-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; transition: background-color .2s ease, transform .3s var(--ease); }
.chat-close:hover { background: rgba(255, 255, 255, .14); transform: rotate(90deg); }
.chat-close .icon { width: 22px; height: 22px; }
.chat-who { flex: 1; }
.chat-reset { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-width: 44px; height: 44px; padding: 0 10px; border: 0; border-radius: 22px; background: transparent; color: #fff; font-size: 14px; font-weight: 600; transition: background-color .2s ease, transform .3s var(--ease); }
.chat-reset .icon { width: 22px; height: 22px; }
.chat-reset:hover { background: rgba(255, 255, 255, .14); }
.chat-reset .chat-reset-label { display: none; }
.chat-reset.is-armed { background: #b3261e; animation: pop-in .25s var(--ease); }
.chat-reset.is-armed .chat-reset-label { display: inline; }
.chat-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.chat-who { min-width: 0; line-height: 1.25; }
.chat-who h2 { overflow: hidden; font-family: var(--sans); font-size: 17px; font-weight: 600; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.chat-status { display: flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .88); font-size: 13px; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #5bf0a0; box-shadow: 0 0 0 0 rgba(91, 240, 160, .6); animation: chat-online 2.4s ease-out infinite; }
@keyframes chat-online { 0% { box-shadow: 0 0 0 0 rgba(91, 240, 160, .6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(91, 240, 160, 0); } }

.chat-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 12px 8px; overflow-y: auto; overscroll-behavior: contain; background-color: #efeae2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23000' stroke-opacity='.045' stroke-width='1.4' stroke-linecap='round'%3E%3Ccircle cx='14' cy='16' r='4'/%3E%3Cpath d='M58 12l6 6m0-6l-6 6'/%3E%3Cpath d='M30 58q6-8 12 0t12 0'/%3E%3Ccircle cx='78' cy='64' r='3'/%3E%3Cpath d='M12 80l8-4 2 8z'/%3E%3C/g%3E%3C/svg%3E"); }
.chat-body::before { content: "Hoy"; align-self: center; margin-bottom: 6px; padding: 5px 12px; border-radius: 8px; background: #fff; color: #54656f; font-size: 12.5px; font-weight: 500; box-shadow: 0 1px 1px rgba(11, 20, 26, .13); }
.bubble { position: relative; max-width: min(84%, 340px); padding: 7px 10px 6px; border-radius: 10px; color: #111b21; font-size: 15.5px; line-height: 1.4; box-shadow: 0 1px 1px rgba(11, 20, 26, .13); animation: bubble-in .38s var(--ease) backwards; overflow-wrap: anywhere; }
.bubble p { margin: 0; white-space: pre-wrap; }
.bubble p::after { content: ""; display: inline-block; width: 58px; height: 1px; }
.bubble-me p::after { width: 80px; }
.bubble-agent { align-self: flex-start; border-top-left-radius: 2px; background: #fff; transform-origin: 0 0; }
.bubble-me { align-self: flex-end; border-top-right-radius: 2px; background: #d9fdd3; transform-origin: 100% 0; }
.bubble-agent::before, .bubble-me::before { content: ""; position: absolute; top: 0; width: 9px; height: 12px; }
.bubble-agent::before { left: -8px; background: #fff; clip-path: polygon(100% 0, 0 0, 100% 100%); }
.bubble-me::before { right: -8px; background: #d9fdd3; clip-path: polygon(0 0, 100% 0, 0 100%); }
.bubble-meta { position: absolute; right: 8px; bottom: 5px; display: inline-flex; align-items: center; gap: 3px; color: #667781; font-size: 12px; line-height: 1; }
.bubble-meta .tick { width: 16px; height: 16px; color: #8696a0; transition: color .4s ease; }
.bubble-me.is-read .tick { color: #53bdeb; }
.bubble-typing { display: flex; align-items: center; gap: 5px; padding: 13px 14px; }
.bubble-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8696a0; animation: typing-dot 1.1s ease-in-out infinite; }
.bubble-typing i:nth-child(2) { animation-delay: .15s; } .bubble-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes bubble-in { from { opacity: 0; transform: translateY(8px) scale(.92); } to { opacity: 1; transform: none; } }

.bubble-cards, .bubble-quote { width: min(92%, 372px); max-width: none; padding: 6px 6px 22px; }
.mini-cards { display: grid; gap: 6px; }
.mini-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "img info" "act act"; gap: 4px 12px; padding: 8px; border-radius: 8px; background: #f6f8f7; }
.mini-card img { grid-area: img; width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.mini-info { grid-area: info; display: grid; align-content: center; gap: 1px; min-width: 0; font-size: 14px; line-height: 1.3; }
.mini-info strong { font-size: 15.5px; }
.mini-info span { color: #54656f; }
.mini-info .mini-price { color: #111b21; font-weight: 700; }
.mini-actions { grid-area: act; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mini-actions button { min-height: 44px; border: 1px solid #b7d9cf; border-radius: 8px; background: #fff; color: #008069; font-size: 14.5px; font-weight: 600; transition: background-color .2s ease, transform .2s var(--ease); }
.mini-actions button:first-child { border-color: #00a884; background: #00a884; color: #fff; }
.mini-actions button:hover { filter: brightness(.96); }
.mini-actions button:active { transform: scale(.97); }
.quote-card { padding: 8px 8px 0; font-size: 14.5px; line-height: 1.35; }
.quote-head { display: flex; align-items: center; gap: 10px; }
.quote-head img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.quote-head small { display: block; color: #00806a; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.quote-head strong { font-size: 16.5px; }
.quote-when { margin: 8px 0 6px; color: #3b4a54; }
.quote-card ul { margin: 0 0 8px; padding: 8px 0 0; list-style: none; border-top: 1px dashed #c9d2d6; color: #54656f; font-size: 13.5px; }
.quote-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 3px 0; color: #3b4a54; }
.quote-row strong { color: #111b21; font-variant-numeric: tabular-nums; }
.quote-total { margin-top: 2px; padding-top: 6px; border-top: 1px solid #e2e8eb; color: #111b21; font-weight: 700; }
.quote-total strong { font-size: 19px; letter-spacing: -.01em; }
.bubble-preview { max-width: min(92%, 372px); border: 1px dashed #7bbf9f; }
.bubble-preview p { font-size: 14.5px; }
.preview-label { margin-bottom: 4px !important; color: #00806a; font-size: 12px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.chat-chip svg.icon { width: 18px; height: 18px; margin-right: 8px; }
.chat-chip-wide { flex: 1 1 100%; min-height: 50px; font-size: 16px; }
.plan-card { display: flex; align-items: center; gap: 12px; min-width: 232px; padding: 4px 4px 22px 4px; }
.plan-card img { flex: none; width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }
.plan-card div { display: grid; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.3; }
.plan-card strong { font-size: 15.5px; }
.plan-card span { color: #3b4a54; }
.plan-card .plan-total { color: #111b21; font-weight: 700; }

.chat-replies { display: flex; flex: none; gap: 8px; padding: 0 12px; overflow-x: auto; scrollbar-width: none; background: #efeae2; scroll-padding-inline: 12px; }
.chat-replies::-webkit-scrollbar { display: none; }
.chat-replies .chat-chip { flex: none; }
.chat-replies:empty { display: none; }
.chat-replies { padding-bottom: 8px; }
.chat-chip { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid #b7d9cf; border-radius: 22px; background: #fff; color: #008069; font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: 0 1px 1px rgba(11, 20, 26, .1); animation: rise-s .35s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); transition: background-color .2s ease, transform .2s var(--ease); }
.chat-chip:hover { background: #f0faf7; }
.chat-chip:active { transform: scale(.97); }
.chat-chip.is-primary { border-color: #00a884; background: #00a884; color: #fff; }
.chat-chip.is-primary:hover { background: #029373; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; margin-top: 4px; }

.chat-input { display: flex; align-items: flex-end; flex: none; gap: 8px; padding: 8px 10px; padding-bottom: max(8px, env(safe-area-inset-bottom)); background: #f0f2f5; }
.chat-input textarea { flex: 1; min-width: 0; min-height: 48px; max-height: 112px; padding: 13px 16px; border: 0; border-radius: 24px; background: #fff; color: #111b21; font-size: 16px; line-height: 1.3; resize: none; outline: none; box-shadow: 0 1px 1px rgba(11, 20, 26, .1); transition: box-shadow .2s ease; }
.chat-input textarea:focus { box-shadow: 0 0 0 2px rgba(0, 168, 132, .45); }
.chat-input textarea:disabled { background: #e9edef; color: #667781; }
.chat-input textarea::placeholder { color: #667781; }
.chat-send { display: grid; place-items: center; flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: #00a884; color: #fff; box-shadow: 0 2px 6px rgba(0, 120, 94, .35); transition: background-color .2s ease, transform .2s var(--ease), opacity .2s ease; }
.chat-send .icon { width: 22px; height: 22px; margin-left: 2px; }
.chat-send:hover:not(:disabled) { background: #029373; }
.chat-send:active:not(:disabled) { transform: scale(.92); }
.chat-send:disabled { background: #9bd9c9; box-shadow: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (min-width: 768px) {
  #contactModal { align-items: flex-end; justify-content: flex-end; padding: 24px; background: rgba(8, 14, 12, .45); }
  .chat-panel { width: 400px; height: min(660px, calc(100svh - 48px)); max-height: none; border-radius: 16px; box-shadow: 0 24px 70px rgba(0, 0, 0, .4); animation: chat-open .45s var(--ease) both; transform-origin: 100% 100%; }
}
@keyframes chat-open { from { opacity: 0; transform: translateY(24px) scale(.92); } to { opacity: 1; transform: none; } }
/* Con el teclado abierto (iPhone y Android) la altura sale del viewport visual: el campo de texto nunca queda tapado. */
@media (max-width: 767px) {
  #contactModal { align-items: flex-start; }
  .chat-panel { height: var(--vvh, 100dvh); margin-top: var(--vvt, 0px); border-radius: 0; animation: sheet-in .4s var(--ease) both; }
}

/* Aviso */
.toast { position: fixed; z-index: 200; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 32px); padding: 14px 18px; border-radius: var(--radius-s); background: #0e1a16; color: #fff; font-size: 15px; line-height: 1.4; box-shadow: 0 12px 32px rgba(0, 0, 0, .3); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .25s ease, transform .25s var(--ease); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.has-action { display: flex; align-items: center; gap: 14px; pointer-events: auto; }
.toast-action { flex: none; min-height: 44px; padding: 0 6px; border: 0; background: none; color: #7fd6c8; font-size: 15px; font-weight: 700; }
.toast-action:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; }
  .hero-content { transform: none !important; opacity: 1 !important; }
  .site-header, .hero-image, .hero h1, .hero-copy, .hero-actions, .wa-fab::before, .chat-dot { animation: none; }
}
