/* ==========================================================================
   Todo en Punilla — sistema de diseño compartido
   Se apoya en Bootstrap 5.3 (grilla, modal, carrusel) y define la identidad
   visual común para todas las páginas del sitio.
   ========================================================================== */

:root {
  --tp-ink: #17211c;
  --tp-ink-soft: #2b3832;
  --tp-muted: #5d6b64;
  --tp-forest: #1f4a39;
  --tp-forest-600: #2a6049;
  --tp-forest-050: #e9f1ec;
  --tp-gold: #c8963a;
  --tp-gold-600: #a97a25;
  --tp-gold-050: #f8efdc;
  --tp-sand: #f6f2ea;
  --tp-paper: #fffdf9;
  --tp-line: #e6dfd1;
  --tp-whatsapp: #1fa855;
  --tp-whatsapp-600: #178a45;
  --tp-danger: #b3261e;

  --tp-radius-sm: 10px;
  --tp-radius: 16px;
  --tp-radius-lg: 24px;
  --tp-shadow-sm: 0 1px 2px rgba(23, 33, 28, .06), 0 2px 8px rgba(23, 33, 28, .05);
  --tp-shadow: 0 6px 24px rgba(23, 33, 28, .09);
  --tp-shadow-lg: 0 18px 50px rgba(23, 33, 28, .16);

  --tp-font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --tp-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --tp-header-h: 72px;

  /* Ajustes de Bootstrap */
  --bs-body-font-family: var(--tp-font-body);
  --bs-body-color: var(--tp-ink-soft);
  --bs-body-bg: var(--tp-paper);
  --bs-primary: var(--tp-forest);
  --bs-primary-rgb: 31, 74, 57;
  --bs-link-color: var(--tp-forest-600);
  --bs-link-hover-color: var(--tp-forest);
  --bs-border-radius: var(--tp-radius-sm);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--tp-header-h) + 12px); }
body {
  font-family: var(--tp-font-body);
  color: var(--tp-ink-soft);
  background: var(--tp-paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, .tp-display {
  font-family: var(--tp-font-display);
  color: var(--tp-ink);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.15;
}
h4, h5, h6 { font-family: var(--tp-font-body); color: var(--tp-ink); font-weight: 650; }
img { max-width: 100%; }
a { text-underline-offset: 3px; }
::selection { background: var(--tp-gold-050); }

:focus-visible { outline: 3px solid var(--tp-gold); outline-offset: 2px; border-radius: 4px; }

.visually-hidden-focusable:focus {
  position: fixed; top: 8px; left: 8px; z-index: 2000;
  background: var(--tp-ink); color: #fff; padding: .5rem 1rem; border-radius: 8px;
}

/* ---------- Botones ---------- */
.btn { font-weight: 600; border-radius: 999px; padding: .7rem 1.4rem; letter-spacing: .005em; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.05rem; }
.btn-sm { padding: .4rem .9rem; }
.btn-tp {
  background: var(--tp-gold); color: #1d1406; border: 0;
  box-shadow: 0 6px 18px rgba(200, 150, 58, .35);
}
.btn-tp:hover, .btn-tp:focus { background: var(--tp-gold-600); color: #fff; }
.btn-forest { background: var(--tp-forest); color: #fff; border: 0; }
.btn-forest:hover, .btn-forest:focus { background: var(--tp-forest-600); color: #fff; }
.btn-whatsapp { background: var(--tp-whatsapp); color: #fff; border: 0; }
.btn-whatsapp:hover, .btn-whatsapp:focus { background: var(--tp-whatsapp-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--tp-forest); border: 1.5px solid var(--tp-line); }
.btn-ghost:hover, .btn-ghost:focus { border-color: var(--tp-forest); color: var(--tp-forest); background: var(--tp-forest-050); }
.btn-light-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-light-ghost:hover, .btn-light-ghost:focus { background: #fff; color: var(--tp-ink); }
.btn .bi { font-size: 1.05em; vertical-align: -.1em; }

/* ---------- Encabezado ---------- */
.tp-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1030; height: var(--tp-header-h);
  display: flex; align-items: center;
  transition: background-color .25s ease, box-shadow .25s ease, color .25s ease;
  color: #fff;
}
.tp-header.is-solid, .tp-header.is-open, body.tp-no-hero .tp-header {
  background: rgba(255, 253, 249, .96); color: var(--tp-ink);
  box-shadow: 0 1px 0 var(--tp-line), 0 6px 20px rgba(23,33,28,.05);
  backdrop-filter: saturate(1.4) blur(10px);
}
.tp-header .container { display: flex; align-items: center; gap: 1.5rem; }
.tp-brand { display: flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; margin-right: auto; }
.tp-brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tp-gold); color: #1d1406; font-size: 1.15rem;
}
.tp-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.tp-brand-name { font-family: var(--tp-font-display); font-weight: 650; font-size: 1.2rem; }
.tp-brand-by { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.tp-nav { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.tp-nav > li > a, .tp-nav > li > button {
  display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .85rem; border-radius: 999px;
  color: inherit; text-decoration: none; font-weight: 550; font-size: .95rem; background: none; border: 0;
}
.tp-nav > li > a:hover, .tp-nav > li > button:hover, .tp-nav > li > a[aria-current="page"] { background: rgba(127,127,127,.14); }
.tp-nav .dropdown-menu {
  border: 1px solid var(--tp-line); border-radius: var(--tp-radius); box-shadow: var(--tp-shadow-lg);
  padding: 1rem; min-width: 560px;
}
.tp-mega { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tp-mega h6 { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tp-muted); margin: 0 0 .4rem .5rem; }
.tp-mega a { display: block; padding: .35rem .5rem; border-radius: 8px; color: var(--tp-ink-soft); text-decoration: none; font-size: .93rem; }
.tp-mega a:hover { background: var(--tp-forest-050); color: var(--tp-forest); }
.tp-header-cta { white-space: nowrap; }
.tp-burger { display: none; background: none; border: 0; color: inherit; font-size: 1.7rem; padding: .25rem .5rem; line-height: 1; }

@media (max-width: 991.98px) {
  .tp-burger { display: inline-block; }
  .tp-header-cta { display: none; }
  .tp-nav-wrap {
    position: fixed; inset: var(--tp-header-h) 0 0 0; background: var(--tp-paper); color: var(--tp-ink);
    padding: 1rem 1.25rem 2rem; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .tp-header.is-open .tp-nav-wrap { opacity: 1; transform: none; visibility: visible; }
  .tp-nav { flex-direction: column; align-items: stretch; gap: 0; }
  .tp-nav > li > a, .tp-nav > li > button { width: 100%; justify-content: space-between; padding: .9rem .5rem; font-size: 1.05rem; border-radius: 0; border-bottom: 1px solid var(--tp-line); }
  .tp-nav .dropdown-menu { position: static !important; transform: none !important; min-width: 0; box-shadow: none; border: 0; padding: .5rem 0 1rem; }
  .tp-mega { grid-template-columns: 1fr 1fr; }
  .tp-nav-mobile-cta { display: grid !important; gap: .6rem; margin-top: 1.25rem; }
}
.tp-nav-mobile-cta { display: none !important; }

/* ---------- Hero ---------- */
.tp-hero {
  position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end;
  color: #fff; padding: calc(var(--tp-header-h) + 3rem) 0 4.5rem; isolation: isolate; overflow: hidden;
  background: var(--tp-ink);
}
.tp-hero--compact { min-height: 62vh; }
.tp-hero-media { position: absolute; inset: 0; z-index: -2; }
.tp-hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: tp-hero-zoom 18s ease-out forwards; }
.tp-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,16,13,.55) 0%, rgba(10,16,13,.15) 35%, rgba(10,16,13,.78) 100%);
}
@keyframes tp-hero-zoom { to { transform: scale(1); } }
.tp-hero h1 { color: #fff; font-size: clamp(2.4rem, 5.6vw, 4.6rem); margin-bottom: 1rem; max-width: 14ch; text-wrap: balance; }
.tp-hero .tp-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 46ch; opacity: .92; margin-bottom: 2rem; }
.tp-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 650;
  letter-spacing: .14em; text-transform: uppercase; color: var(--tp-gold); margin-bottom: .9rem;
}
.tp-hero .tp-eyebrow { color: #f1d49a; }
.tp-breadcrumb { display: flex; flex-wrap: wrap; gap: .35rem; font-size: .88rem; margin-bottom: 1rem; opacity: .9; list-style: none; padding: 0; }
.tp-breadcrumb a { color: inherit; }
.tp-breadcrumb li + li::before { content: '›'; margin-right: .35rem; opacity: .7; }

/* Buscador del hero */
.tp-search {
  background: rgba(255,255,255,.97); color: var(--tp-ink); border-radius: var(--tp-radius-lg);
  padding: .6rem; display: grid; grid-template-columns: 1.4fr 1fr auto; gap: .4rem; box-shadow: var(--tp-shadow-lg);
  max-width: 760px;
}
.tp-search label { display: block; font-size: .72rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--tp-muted); }
.tp-search .tp-search-field { padding: .5rem 1rem; border-radius: 14px; }
.tp-search .tp-search-field + .tp-search-field { border-left: 1px solid var(--tp-line); }
.tp-search select, .tp-search input { border: 0; background: transparent; width: 100%; padding: .1rem 0; font-weight: 550; color: var(--tp-ink); outline: none; }
.tp-search .btn { align-self: stretch; border-radius: 18px; padding-inline: 1.6rem; }
@media (max-width: 767.98px) {
  .tp-search { grid-template-columns: 1fr 1fr; }
  .tp-search .tp-search-field + .tp-search-field { border-left: 0; }
  .tp-search .tp-search-field { background: var(--tp-sand); }
  .tp-search .btn { grid-column: 1 / -1; }
}

/* ---------- Secciones ---------- */
.tp-section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.tp-section--sand { background: var(--tp-sand); }
.tp-section--forest { background: var(--tp-forest); color: #e6efe9; }
.tp-section--forest h2, .tp-section--forest h3 { color: #fff; }
.tp-section-head { max-width: 720px; margin-bottom: 2.75rem; }
.tp-section-head.text-center { margin-inline: auto; }
.tp-section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: .75rem; text-wrap: balance; }
.tp-section-head p { color: var(--tp-muted); font-size: 1.08rem; margin: 0; }
.tp-section--forest .tp-section-head p { color: #c4d6cb; }
.tp-section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.tp-section-head-row .tp-section-head { margin-bottom: 0; }

/* ---------- Tarjetas de servicio ---------- */
.tp-service {
  display: flex; flex-direction: column; gap: .6rem; height: 100%; padding: 1.75rem; border-radius: var(--tp-radius);
  background: #fff; border: 1px solid var(--tp-line); color: inherit; text-decoration: none; text-align: left; width: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tp-service:hover { transform: translateY(-4px); box-shadow: var(--tp-shadow); border-color: transparent; color: inherit; }
.tp-service-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--tp-forest-050); color: var(--tp-forest); font-size: 1.5rem; }
.tp-service h3 { font-family: var(--tp-font-body); font-size: 1.12rem; font-weight: 700; margin: .4rem 0 0; }
.tp-service p { color: var(--tp-muted); margin: 0; font-size: .97rem; }
.tp-service-link { margin-top: auto; padding-top: .5rem; color: var(--tp-forest-600); font-weight: 650; font-size: .93rem; display: inline-flex; align-items: center; gap: .35rem; }
.tp-service:hover .tp-service-link .bi { transform: translateX(3px); }
.tp-service-link .bi { transition: transform .2s ease; }

/* ---------- Localidades ---------- */
.tp-towns { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.tp-town {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--tp-radius); overflow: hidden;
  color: #fff; text-decoration: none; background: var(--tp-ink); isolation: isolate;
}
.tp-town img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.tp-town::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(8,14,11,.82) 100%); }
.tp-town:hover img { transform: scale(1.06); }
.tp-town-body { position: absolute; inset: auto 0 0 0; padding: 1.25rem; }
.tp-town-zone { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.tp-town h3 { color: #fff; font-size: 1.45rem; margin: .15rem 0 0; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.tp-town h3 .bi { font-size: 1.1rem; opacity: 0; transform: translateX(-6px); transition: all .25s ease; }
.tp-town:hover h3 .bi { opacity: 1; transform: none; }
.tp-towns-filter { display: flex; flex-wrap: wrap; gap: .5rem; }
.tp-chip {
  border: 1.5px solid var(--tp-line); background: #fff; color: var(--tp-ink-soft); border-radius: 999px;
  padding: .45rem 1rem; font-weight: 600; font-size: .9rem; transition: all .15s ease;
}
.tp-chip:hover { border-color: var(--tp-forest); color: var(--tp-forest); }
.tp-chip.is-active, .tp-chip[aria-pressed="true"] { background: var(--tp-forest); border-color: var(--tp-forest); color: #fff; }

/* ---------- Galería / carrusel ---------- */
.tp-gallery { position: relative; }
.tp-gallery .carousel { border-radius: var(--tp-radius-lg); overflow: hidden; background: var(--tp-ink); box-shadow: var(--tp-shadow); }
.tp-gallery .carousel-item { aspect-ratio: 16 / 9; }
.tp-gallery .carousel-item img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.tp-gallery .carousel-caption {
  left: 0; right: 0; bottom: 0; text-align: left; padding: 3rem 1.75rem 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(8,14,11,.78));
}
.tp-gallery .carousel-caption h3 { color: #fff; font-size: 1.4rem; margin: 0 0 .2rem; }
.tp-gallery .carousel-caption p { margin: 0; opacity: .9; }
.tp-gallery .carousel-control-prev, .tp-gallery .carousel-control-next {
  width: 48px; height: 48px; top: 50%; transform: translateY(-50%); margin: 0 1rem; border-radius: 50%;
  background: rgba(255,255,255,.92); opacity: 0; transition: opacity .2s ease, background-color .2s ease;
}
.tp-gallery:hover .carousel-control-prev, .tp-gallery:hover .carousel-control-next,
.tp-gallery .carousel-control-prev:focus-visible, .tp-gallery .carousel-control-next:focus-visible { opacity: 1; }
.tp-gallery .carousel-control-prev-icon, .tp-gallery .carousel-control-next-icon { filter: invert(1) grayscale(1); width: 1.1rem; height: 1.1rem; }
@media (hover: none) { .tp-gallery .carousel-control-prev, .tp-gallery .carousel-control-next { opacity: .9; width: 40px; height: 40px; margin: 0 .5rem; } }
.tp-gallery-counter {
  position: absolute; top: 1rem; right: 1rem; z-index: 3; background: rgba(8,14,11,.65); color: #fff;
  border-radius: 999px; padding: .3rem .8rem; font-size: .82rem; font-weight: 600; backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; gap: .4rem;
}
.tp-gallery-counter button { background: none; border: 0; color: inherit; padding: 0 0 0 .4rem; border-left: 1px solid rgba(255,255,255,.35); margin-left: .2rem; }
.tp-gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .75rem .1rem .25rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.tp-gallery-thumbs button {
  flex: 0 0 auto; width: 92px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; padding: 0; border: 2px solid transparent;
  opacity: .6; transition: opacity .2s ease, border-color .2s ease; scroll-snap-align: start; background: var(--tp-line);
}
.tp-gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.tp-gallery-thumbs button:hover { opacity: .9; }
.tp-gallery-thumbs button.active { opacity: 1; border-color: var(--tp-gold); }
.tp-lightbox .modal-content { background: #0b100d; border: 0; }
.tp-lightbox .carousel-item { height: calc(100vh - 64px); }
.tp-lightbox .carousel-item img { width: 100%; height: 100%; object-fit: contain; }
.tp-lightbox .modal-header { border: 0; color: #fff; }
.tp-lightbox .btn-close { filter: invert(1); }

/* ---------- Tarjetas de alojamiento ---------- */
.tp-listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.tp-listing {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--tp-radius); overflow: hidden;
  border: 1px solid var(--tp-line); transition: transform .2s ease, box-shadow .2s ease; height: 100%;
}
.tp-listing:hover { transform: translateY(-4px); box-shadow: var(--tp-shadow); }
.tp-listing-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tp-sand); display: block; }
.tp-listing-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tp-listing:hover .tp-listing-media img { transform: scale(1.05); }
.tp-badge {
  position: absolute; top: .85rem; left: .85rem; background: var(--tp-gold); color: #1d1406; border-radius: 999px;
  padding: .25rem .7rem; font-size: .75rem; font-weight: 700; letter-spacing: .02em; display: inline-flex; gap: .3rem; align-items: center;
}
.tp-listing-photos { position: absolute; bottom: .75rem; right: .75rem; background: rgba(8,14,11,.65); color: #fff; border-radius: 999px; padding: .2rem .6rem; font-size: .78rem; }
.tp-listing-body { padding: 1.25rem 1.35rem 1.35rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.tp-listing-loc { color: var(--tp-muted); font-size: .88rem; display: flex; align-items: center; gap: .3rem; }
.tp-listing h3 { font-family: var(--tp-font-body); font-size: 1.15rem; font-weight: 700; margin: 0; }
.tp-listing-desc { color: var(--tp-muted); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-listing-meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.tp-pill { display: inline-flex; align-items: center; gap: .3rem; background: var(--tp-sand); border-radius: 999px; padding: .2rem .65rem; font-size: .8rem; color: var(--tp-ink-soft); }
.tp-listing-foot { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--tp-line); display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.tp-price { font-weight: 750; color: var(--tp-ink); font-size: 1.15rem; }
.tp-price small { font-weight: 500; color: var(--tp-muted); font-size: .8rem; }
.tp-skeleton { background: linear-gradient(90deg, #eee8dc 0%, #f6f2ea 50%, #eee8dc 100%); background-size: 200% 100%; animation: tp-shimmer 1.2s linear infinite; border-radius: var(--tp-radius); }
@keyframes tp-shimmer { to { background-position: -200% 0; } }

/* Filtros de listado */
.tp-filters {
  background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius-lg); padding: 1rem;
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: .75rem; align-items: end; box-shadow: var(--tp-shadow-sm);
}
.tp-filters label { font-size: .75rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--tp-muted); margin-bottom: .25rem; }
@media (max-width: 991.98px) { .tp-filters { grid-template-columns: 1fr 1fr; } .tp-filters .tp-filters-actions { grid-column: 1 / -1; } }

/* Estado vacío */
.tp-empty { text-align: center; padding: 3rem 1.5rem; border: 1.5px dashed var(--tp-line); border-radius: var(--tp-radius-lg); background: #fff; grid-column: 1 / -1; }
.tp-empty .bi { font-size: 2.2rem; color: var(--tp-gold); }
.tp-empty h3 { font-family: var(--tp-font-body); font-size: 1.2rem; font-weight: 700; margin: .75rem 0 .35rem; }
.tp-empty p { color: var(--tp-muted); max-width: 46ch; margin: 0 auto 1.25rem; }

/* ---------- Destacado (feature) ---------- */
.tp-feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 991.98px) { .tp-feature { grid-template-columns: 1fr; } }
.tp-checklist { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; }
.tp-checklist li { display: flex; gap: .55rem; align-items: center; }
.tp-checklist .bi { color: var(--tp-forest-600); font-size: 1.15rem; }
@media (max-width: 575.98px) { .tp-checklist { grid-template-columns: 1fr; } }
.tp-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0; }
.tp-fact { background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: 1rem; }
.tp-fact strong { display: block; font-family: var(--tp-font-display); font-size: 1.7rem; color: var(--tp-ink); line-height: 1.1; }
.tp-fact span { color: var(--tp-muted); font-size: .88rem; }
.tp-section--sand .tp-fact { background: var(--tp-paper); }

/* Amenities */
.tp-amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .9rem; }
.tp-amenity { display: flex; align-items: center; gap: .8rem; padding: .95rem 1.1rem; background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); font-weight: 550; }
.tp-amenity .bi { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--tp-forest-050); color: var(--tp-forest); font-size: 1.2rem; }

/* Pasos */
.tp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
@media (max-width: 767.98px) { .tp-steps { grid-template-columns: 1fr; } }
.tp-step { padding: 1.75rem; border-radius: var(--tp-radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.tp-step::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--tp-gold); color: #1d1406; font-weight: 800; margin-bottom: 1rem;
}
.tp-step h3 { font-family: var(--tp-font-body); font-size: 1.1rem; font-weight: 700; }
.tp-step p { margin: 0; color: #c4d6cb; }

/* Guía (artículos) */
.tp-guide { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--tp-radius); overflow: hidden; border: 1px solid var(--tp-line); }
.tp-guide-media { aspect-ratio: 16 / 10; background: var(--tp-sand); overflow: hidden; }
.tp-guide-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tp-guide:hover .tp-guide-media img { transform: scale(1.04); }
.tp-guide-body { padding: 1.25rem 1.35rem 1.5rem; }
.tp-guide h3 { font-family: var(--tp-font-body); font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.tp-guide p { color: var(--tp-muted); margin: 0; font-size: .96rem; }

/* Banda CTA */
.tp-cta {
  border-radius: var(--tp-radius-lg); padding: clamp(2rem, 5vw, 3.5rem); color: #fff; position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 140% at 100% 0%, #2f6a52 0%, var(--tp-forest) 55%, #163428 100%);
  display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center;
}
.tp-cta h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .5rem; }
.tp-cta p { color: #cfe0d6; margin: 0; max-width: 52ch; }
.tp-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 767.98px) { .tp-cta { grid-template-columns: 1fr; } }

/* Mapa */
.tp-map { border-radius: var(--tp-radius-lg); overflow: hidden; border: 1px solid var(--tp-line); aspect-ratio: 16 / 10; background: var(--tp-sand); }
.tp-map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Pie ---------- */
.tp-footer { background: #121a16; color: #b9c6bf; padding: 4.5rem 0 2rem; font-size: .95rem; }
.tp-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.tp-footer a { color: #d9e3dd; text-decoration: none; }
.tp-footer a:hover { color: var(--tp-gold); }
.tp-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.tp-footer .tp-brand { color: #fff; margin-bottom: 1rem; }
.tp-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.tp-footer ul.tp-footer-towns { display: block; columns: 2; column-gap: 1.25rem; }
.tp-footer-towns li { break-inside: avoid; margin-bottom: .45rem; }
.tp-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .85rem; }
@media (max-width: 991.98px) { .tp-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .tp-footer-grid { grid-template-columns: 1fr; } }

/* ---------- Botones flotantes ---------- */
.tp-fab-stack { position: fixed; right: 20px; bottom: 20px; z-index: 1040; display: flex; flex-direction: column; align-items: flex-end; gap: .75rem; }
.tp-fab {
  width: 60px; height: 60px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 1.65rem; color: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.22); transition: transform .2s ease, background-color .2s ease; position: relative;
}
.tp-fab:hover { transform: scale(1.06); }
.tp-fab--whatsapp { background: var(--tp-whatsapp); }
.tp-fab--whatsapp:hover { background: var(--tp-whatsapp-600); }
.tp-fab--chat { background: var(--tp-forest); width: 52px; height: 52px; font-size: 1.35rem; }
.tp-fab-badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--tp-danger); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; }
.tp-fab-label {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--tp-ink); color: #fff;
  font-size: .85rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px; pointer-events: none; opacity: 0; transition: opacity .2s ease;
}
.tp-fab:hover .tp-fab-label, .tp-fab:focus-visible .tp-fab-label { opacity: 1; }
@media (max-width: 575.98px) { .tp-fab-stack { right: 14px; bottom: 14px; } .tp-fab { width: 54px; height: 54px; } }

/* ---------- Modal de consulta ---------- */
.tp-modal .modal-content { border: 0; border-radius: var(--tp-radius-lg); overflow: hidden; box-shadow: var(--tp-shadow-lg); }
.tp-modal .modal-header { border: 0; padding: 1.5rem 1.75rem .5rem; align-items: flex-start; }
.tp-modal .modal-title { font-family: var(--tp-font-display); font-size: 1.6rem; }
.tp-modal .modal-body { padding: .5rem 1.75rem 1.25rem; }
.tp-modal .modal-footer { border: 0; padding: 0 1.75rem 1.75rem; gap: .6rem; }
.tp-modal-context { display: flex; align-items: center; gap: .6rem; background: var(--tp-gold-050); color: #5d4413; border-radius: 12px; padding: .6rem .9rem; font-size: .92rem; margin-bottom: 1rem; }
.tp-modal .form-label { font-weight: 600; font-size: .88rem; margin-bottom: .3rem; color: var(--tp-ink); }
.tp-modal .form-label .tp-opt { font-weight: 400; color: var(--tp-muted); }
.form-control, .form-select { border-radius: 12px; border: 1.5px solid var(--tp-line); padding: .65rem .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--tp-forest-600); box-shadow: 0 0 0 .2rem rgba(42, 96, 73, .15); }
.tp-form-section { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tp-muted); font-weight: 700; margin: 1.1rem 0 .6rem; }
.tp-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; width: 100%; margin: 0; }
.tp-modal-actions .btn { width: 100%; }
@media (max-width: 575.98px) { .tp-modal-actions { grid-template-columns: 1fr; } }
.tp-modal-note { font-size: .8rem; color: var(--tp-muted); text-align: center; width: 100%; margin: .25rem 0 0; }
.tp-success { text-align: center; padding: 1.5rem .5rem 1rem; }
.tp-success .bi { font-size: 3rem; color: var(--tp-whatsapp); }
.tp-success h3 { font-family: var(--tp-font-display); margin: .5rem 0; }
.tp-success p { color: var(--tp-muted); }

/* Detalle de alojamiento */
.tp-detail .modal-body { padding: 0; }
.tp-detail-body { padding: 1.75rem; }
.tp-detail .tp-gallery .carousel { border-radius: 0; box-shadow: none; }
.tp-detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; }
@media (max-width: 991.98px) { .tp-detail-grid { grid-template-columns: 1fr; } }
.tp-detail-aside { background: var(--tp-sand); border-radius: var(--tp-radius); padding: 1.35rem; align-self: start; position: sticky; top: 1rem; }
.tp-policy { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid var(--tp-line); font-size: .93rem; }
.tp-policy:last-child { border-bottom: 0; }

/* Toast */
.tp-toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1090; display: grid; gap: .5rem; width: min(92vw, 420px); }
.tp-toast {
  background: var(--tp-ink); color: #fff; border-radius: 14px; padding: .85rem 1rem; display: flex; gap: .65rem; align-items: center;
  box-shadow: var(--tp-shadow-lg); animation: tp-toast-in .25s ease; font-size: .95rem;
}
.tp-toast .bi { font-size: 1.2rem; }
.tp-toast--success .bi { color: #6fe3a0; }
.tp-toast--error .bi { color: #ff9a92; }
@keyframes tp-toast-in { from { opacity: 0; transform: translateY(8px); } }

/* Animación de aparición */
.tp-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.tp-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .tp-reveal { opacity: 1; transform: none; }
}

/* Página sin hero (contenido arranca bajo el header) */
body.tp-no-hero main { padding-top: var(--tp-header-h); }
.tp-page-head { padding: 3rem 0 2rem; background: var(--tp-sand); border-bottom: 1px solid var(--tp-line); }
.tp-page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .5rem; }
.tp-page-head p { color: var(--tp-muted); margin: 0; max-width: 60ch; }
.tp-page-head .tp-breadcrumb { color: var(--tp-muted); }

/* Crédito del desarrollador */
.tp-dev-credit { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem .75rem; margin-top: 1.5rem; font-size: .78rem; color: #8a988f; text-align: center; }
.tp-dev-credit strong { color: #c3cfc8; font-weight: 600; }
.tp-dev-credit-contact {
  display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .7rem; border: 1px solid rgba(255,255,255,.14); border-radius: 999px;
  color: #c3cfc8 !important; transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.tp-dev-credit-contact:hover, .tp-dev-credit-contact:focus-visible { color: #fff !important; border-color: rgba(37,211,102,.55); background: rgba(37,211,102,.1); }
.tp-dev-credit-contact:hover .bi-whatsapp { color: #25d366; }
.tp-dev-credit-phone { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Guía con ícono (sin foto) */
.tp-guide-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--tp-gold-050); color: var(--tp-gold-600); font-size: 1.45rem; margin-bottom: 1rem; }
.tp-guide--icon .tp-guide-body { padding: 1.6rem; }

/* Galería que muestra la foto completa (ideal para fotos verticales) */
.tp-gallery--contain .carousel-item { position: relative; overflow: hidden; }
.tp-gallery--contain .carousel-item img { position: relative; object-fit: contain; z-index: 1; }
.tp-slide-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(28px) brightness(.55) saturate(1.2); }

/* Localidades en celular: dos columnas compactas */
@media (max-width: 575.98px) {
  .tp-towns { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .tp-town { aspect-ratio: 3 / 4; border-radius: 14px; }
  .tp-town-body { padding: .8rem; }
  .tp-town h3 { font-size: 1.05rem; }
  .tp-town-zone { font-size: .62rem; }
  .tp-search .tp-search-field { padding: .45rem .75rem; }
  .tp-search select { font-size: .92rem; text-overflow: ellipsis; }
}
@media (max-width: 575.98px) {
  .tp-amenities { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .tp-amenity { padding: .7rem; gap: .55rem; font-size: .9rem; }
  .tp-amenity .bi { width: 34px; height: 34px; font-size: 1.05rem; }
}

/* Localidad: aviso para propietarios, sub-navegación, datos, historia */
.tp-owner { display: flex; align-items: center; gap: 1rem; margin-top: -2rem; position: relative; z-index: 2; background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: 1rem 1.25rem; box-shadow: var(--tp-shadow); flex-wrap: wrap; }
.tp-owner > div { flex: 1; min-width: 220px; display: flex; flex-direction: column; }
.tp-owner span { color: var(--tp-muted); font-size: .93rem; }
.tp-owner-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--tp-gold-050); color: var(--tp-gold-600); font-size: 1.35rem; flex: none; }
.tp-subnav { position: sticky; top: var(--tp-header-h); z-index: 1020; background: rgba(255,253,249,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--tp-line); margin-top: 1.5rem; }
.tp-subnav .container { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.tp-subnav a { white-space: nowrap; padding: .8rem .9rem; color: var(--tp-ink-soft); text-decoration: none; font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; }
.tp-subnav a:hover { color: var(--tp-forest); border-color: var(--tp-gold); }
.tp-datos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
.tp-dato { background: var(--tp-sand); border-radius: 14px; padding: .8rem 1rem; display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-items: center; }
.tp-dato i { grid-row: span 2; color: var(--tp-gold-600); font-size: 1.3rem; }
.tp-dato span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tp-muted); }
.tp-dato strong { font-size: .95rem; color: var(--tp-ink); }
.tp-grupo { font-family: var(--tp-font-body); font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; display: flex; gap: .5rem; align-items: center; color: var(--tp-forest); }
.tp-texto { font-size: 1.05rem; color: var(--tp-ink-soft); }
.tp-fiestas { background: var(--tp-sand); border-radius: var(--tp-radius-lg); padding: 1.5rem; }
.tp-fiestas h3 { font-family: var(--tp-font-body); font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.tp-fiesta { border-left: 3px solid var(--tp-gold); padding: .2rem 0 .2rem 1rem; margin-bottom: 1rem; }
.tp-fiesta span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tp-gold-600); font-weight: 700; }
.tp-fiesta strong { display: block; color: var(--tp-ink); }
.tp-fiesta p { margin: .2rem 0 0; color: var(--tp-muted); font-size: .93rem; }
.tp-step--plain::before { display: none; }
.tp-curiosidades { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .9rem; }
.tp-curiosidades li { display: flex; gap: .7rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--tp-radius); padding: 1rem; color: #dbe7e0; }
.tp-curiosidades i { color: var(--tp-gold); font-size: 1.2rem; }
.tp-creditos { margin-top: 1rem; font-size: .82rem; color: var(--tp-muted); }
.tp-creditos summary { cursor: pointer; font-weight: 600; }
.tp-creditos ul { margin-top: .5rem; columns: 2; column-gap: 2rem; }
@media (max-width: 767.98px) { .tp-creditos ul { columns: 1; } .tp-owner { margin-top: 1rem; } }
.tp-faq .accordion-item { border: 1px solid var(--tp-line); border-radius: 14px !important; overflow: hidden; margin-bottom: .6rem; }
.tp-faq .accordion-button { font-weight: 650; }
.tp-faq .accordion-button:not(.collapsed) { background: var(--tp-forest-050); color: var(--tp-forest); box-shadow: none; }
