/* ═══════════════════════════════════════════════════════════════════════
   Portal público de propiedades — editorial premium.
   La foto manda y el diseño desaparece: fondo cálido, tipografía grande y
   liviana, mucho aire, reglas finas en vez de cajas. Todo prefijado .ip-.
   ═══════════════════════════════════════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --ip-bg:    #faf9f7;   /* crema, no blanco puro: descansa la vista */
  --ip-bg2:   #f2f0ec;
  --ip-ink:   #16150f;
  --ip-ink2:  #6b675e;
  --ip-ink3:  #a5a09a;
  --ip-linea: rgba(22,21,15,.13);
  --ip-oro:   #b08d4f;   /* acento cálido del rubro inmobiliario */
  --ip-verde: #1f7a45;
  --ip-font:  -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --ip-ease:  cubic-bezier(.16, 1, .3, 1);
  --ip-max:   1280px;
}
html { scroll-behavior: smooth; background: var(--ip-bg); }
body {
  font-family: var(--ip-font); background: var(--ip-bg); color: var(--ip-ink);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button, input, select { font-family: inherit; }
button { cursor: pointer; }
a { color: inherit; }

/* Aparición al hacer scroll. Sólo se oculta si el JS corre (clase .js). */
.js .ip-rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ip-ease), transform .8s var(--ip-ease); }
.js .ip-rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .ip-rv { opacity: 1; transform: none; transition: none; } }

.ip-wrap { max-width: var(--ip-max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* Etiqueta chica en mayúsculas espaciadas: la firma del estilo editorial */
.ip-eyebrow {
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; color: var(--ip-ink3);
}

/* ── Barra de navegación ──────────────────────────────────────────────── */
.ip-topbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(250,249,247,.82);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--ip-linea);
}
.ip-topbar-in {
  max-width: var(--ip-max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px);
  height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.ip-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
/* El logo del cliente suele venir con aire alrededor: a 40px de alto el
   monograma quedaba mucho más chico que el nombre al lado. Se le da casi todo
   el alto de la barra. */
.ip-brand img { height: 56px; width: auto; max-width: 190px; object-fit: contain; }
.ip-brand-name { font-size: 17px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.1; }
.ip-brand-sub { font-size: 9.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ip-ink3); margin-top: 3px; }
.ip-nav { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.ip-nav a {
  font-size: 12px; letter-spacing: .13em; text-transform: uppercase; font-weight: 600;
  color: var(--ip-ink2); text-decoration: none; padding: 6px 0; position: relative;
}
.ip-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ip-ink); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ip-ease);
}
.ip-nav a:hover { color: var(--ip-ink); }
.ip-nav a:hover::after { transform: scaleX(1); }
.ip-social { display: flex; gap: 14px; align-items: center; }
.ip-social a { font-size: 17px; opacity: .6; transition: opacity .2s; text-decoration: none; }
.ip-social a:hover { opacity: 1; }
.ip-burger { display: none; background: none; border: none; font-size: 22px; color: var(--ip-ink); }

/* ── Portada: foto a sangre, titular a la izquierda ───────────────────── */
.ip-hero { position: relative; min-height: 86svh; display: flex; align-items: center; overflow: hidden; }
.ip-hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.1);
  transition: opacity 1.5s ease, transform 2.8s var(--ip-ease);
}
.ip-hero.in .ip-hero-bg { opacity: 1; transform: scale(1); }
.ip-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,9,6,.82) 0%, rgba(10,9,6,.55) 45%, rgba(10,9,6,.15) 100%);
}
.ip-hero-in {
  position: relative; z-index: 2; color: #fff;
  max-width: var(--ip-max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); width: 100%;
  transition: opacity 1.1s ease .3s, transform 1.1s var(--ip-ease) .3s;
}
.js .ip-hero-in { opacity: 0; transform: translateY(24px); }
.js .ip-hero.in .ip-hero-in { opacity: 1; transform: none; }
.ip-hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.6rem); font-weight: 500; letter-spacing: -.035em;
  line-height: 1.08; max-width: 16ch; margin-top: 18px;
}
.ip-hero p { font-size: clamp(15px, 1.5vw, 18px); line-height: 1.6; max-width: 52ch; margin-top: 22px; color: rgba(255,255,255,.86); }
.ip-hero .ip-eyebrow { color: rgba(255,255,255,.7); }
.ip-cta-hero {
  display: inline-block; margin-top: 34px; padding: 17px 40px;
  border: 1px solid rgba(255,255,255,.6); color: #fff; text-decoration: none;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  transition: background .35s var(--ip-ease), color .35s var(--ip-ease), border-color .35s;
}
.ip-cta-hero:hover { background: #fff; color: var(--ip-ink); border-color: #fff; }

/* ── Secciones ────────────────────────────────────────────────────────── */
.ip-sec { padding: clamp(60px, 9vh, 110px) 0; }
.ip-sec.alt { background: var(--ip-bg2); }
.ip-sec-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  padding-bottom: 22px; margin-bottom: clamp(28px, 4vw, 46px); border-bottom: 1px solid var(--ip-linea);
}
.ip-sec-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; margin-top: 10px; }
.ip-verlink {
  font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  text-decoration: none; white-space: nowrap; padding-bottom: 4px; border-bottom: 1px solid var(--ip-ink);
  transition: gap .3s; display: inline-flex; gap: 8px; align-items: center;
}
.ip-verlink:hover { gap: 14px; }

/* ── Filtros ──────────────────────────────────────────────────────────── */
.ip-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 32px; }
.ip-ops { display: flex; border: 1px solid var(--ip-linea); }
.ip-op {
  padding: 10px 20px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; background: transparent; border: none; color: var(--ip-ink2);
  transition: background .3s var(--ip-ease), color .3s;
}
.ip-op + .ip-op { border-left: 1px solid var(--ip-linea); }
.ip-op:hover { color: var(--ip-ink); }
.ip-op.active { background: var(--ip-ink); color: var(--ip-bg); }
.ip-filter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ip-filter-row select, .ip-filter-row input {
  padding: 10px 14px; font-size: 13.5px; background: transparent;
  border: 1px solid var(--ip-linea); color: var(--ip-ink); outline: none;
  transition: border-color .25s;
}
.ip-filter-row select:focus, .ip-filter-row input:focus { border-color: var(--ip-ink); }
.ip-filter-row input::placeholder { color: var(--ip-ink3); }
.ip-count { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ip-ink3); margin-left: auto; }

/* ── Grilla y tarjetas editoriales ────────────────────────────────────── */
.ip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: clamp(24px, 3vw, 44px); }
.ip-loading, .ip-empty { grid-column: 1 / -1; text-align: center; padding: 80px 20px; color: var(--ip-ink3); font-size: 15px; }
.ip-card { cursor: pointer; }
.ip-card-img {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: var(--ip-bg2) center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  transition: transform 1s var(--ip-ease);
}
.ip-card:hover .ip-card-img { transform: scale(1.02); }
.ip-ph { font-size: 40px; opacity: .2; }
.ip-badges { position: absolute; top: 14px; left: 14px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.ip-badge {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  padding: 7px 13px; background: rgba(22,21,15,.82); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ip-badge.destacada { background: var(--ip-oro); }
.ip-badge.vendida, .ip-badge.alquilada { background: var(--ip-verde); }
.ip-card-body { padding-top: 18px; }
.ip-card-loc { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ip-ink3); font-weight: 600; }
.ip-card-title { font-size: 18px; font-weight: 400; margin-top: 8px; line-height: 1.35; letter-spacing: -.012em; }
.ip-card-foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--ip-linea);
}
.ip-card-price { font-size: 21px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ip-card-price small { font-size: 12px; color: var(--ip-ink3); font-weight: 400; }
.ip-card-specs { font-size: 12px; color: var(--ip-ink2); text-align: right; }

/* ── Bloque de tasación ───────────────────────────────────────────────── */
.ip-tasar { position: relative; overflow: hidden; text-align: center; color: #fff; padding: clamp(70px, 12vh, 130px) 0; }
.ip-tasar-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.ip-tasar::after { content: ''; position: absolute; inset: 0; background: rgba(10,9,6,.68); }
.ip-tasar-in { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; padding: 0 24px; }
.ip-tasar h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; margin-top: 12px; }
.ip-tasar p { margin-top: 16px; color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.6; }
.ip-tasar .ip-eyebrow { color: rgba(255,255,255,.65); }
.ip-tasar-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.ip-btn-out, .ip-btn-fill {
  padding: 16px 34px; font-size: 11.5px; letter-spacing: .15em; text-transform: uppercase;
  font-weight: 600; text-decoration: none; transition: all .35s var(--ip-ease);
}
.ip-btn-fill { background: #fff; color: var(--ip-ink); }
.ip-btn-fill:hover { background: var(--ip-oro); color: #fff; }
.ip-btn-out { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.ip-btn-out:hover { background: rgba(255,255,255,.14); }

/* ── Pie ──────────────────────────────────────────────────────────────── */
.ip-footer { background: var(--ip-ink); color: rgba(255,255,255,.72); padding: clamp(50px, 8vh, 80px) 0 0; }
.ip-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.ip-footer h4 { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 16px; font-weight: 600; }
.ip-footer p, .ip-footer a { font-size: 14px; line-height: 1.9; text-decoration: none; }
.ip-footer a:hover { color: #fff; }
.ip-footer-brand .ip-brand-name, .ip-footer-brand .ip-brand-sub { color: #fff; }
.ip-footer-desc { margin-top: 16px; max-width: 32ch; color: rgba(255,255,255,.6); font-size: 13.5px; line-height: 1.7; }
.ip-footer-links { display: flex; flex-direction: column; }
.ip-footer-bottom {
  margin-top: clamp(40px, 6vh, 64px); padding: 24px 0 30px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12px; color: rgba(255,255,255,.45);
}
.ip-footer-bottom a { font-size: 12px; }

/* ── Botón flotante de WhatsApp ───────────────────────────────────────── */
.ip-wa-float {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 300;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 26px; text-decoration: none;
  box-shadow: 0 8px 28px -6px rgba(37,211,102,.55); transition: transform .3s var(--ip-ease);
}
.ip-wa-float:hover { transform: scale(1.08); }

/* ── Ficha de la propiedad ────────────────────────────────────────────── */
.ip-modal { display: none; position: fixed; inset: 0; z-index: 500; background: rgba(22,21,15,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ip-modal.open { display: flex; align-items: flex-end; justify-content: center; }
.ip-sheet {
  background: var(--ip-bg); width: 100%; max-width: 1000px; max-height: 94svh;
  overflow-y: auto; position: relative; animation: ipUp .5s var(--ip-ease);
}
@keyframes ipUp { from { transform: translateY(50px); opacity: 0; } to { transform: none; opacity: 1; } }
.ip-sheet-close {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  width: 40px; height: 40px; border: none; border-radius: 50%;
  background: rgba(250,249,247,.9); color: var(--ip-ink); font-size: 17px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ip-gallery-main {
  position: relative; aspect-ratio: 16/9; background: var(--ip-bg2);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
/* La tira de fotos. El arrastre y el encaje los hace el navegador: se mueve con
   el dedo, con la inercia del sistema, y queda calzada en la foto más cercana
   al soltar. Moverla a mano con JS nunca se siente igual. */
.ip-track {
  display: flex; width: 100%; height: 100%;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.ip-track::-webkit-scrollbar { display: none; }
.ip-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.ip-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  cursor: zoom-in; user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
}
/* Contador y lupa: sin esto nada indica que la foto se puede abrir ni que hay
   más de una. */
.ip-gal-n, .ip-gal-lupa {
  position: absolute; z-index: 2; background: rgba(22,21,15,.55); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em;
  padding: 5px 11px; border-radius: 999px; pointer-events: none;
}
.ip-gal-lupa { pointer-events: auto; cursor: zoom-in; }
.ip-gal-n { left: 14px; bottom: 14px; font-variant-numeric: tabular-nums; }
.ip-gal-lupa { right: 14px; bottom: 14px; font-size: 13px; padding: 5px 9px; }
.ip-gal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 40px; height: 56px; border: none; cursor: pointer; font-size: 26px;
  background: rgba(250,249,247,.82); color: var(--ip-ink);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .2s;
}
.ip-gallery-main:hover .ip-gal-nav { opacity: 1; }
.ip-gal-nav.prev { left: 0; }
.ip-gal-nav.next { right: 0; }
/* En el celular no hay hover y las flechas estorban: ahí se pasa deslizando. */
@media (hover: none) { .ip-gal-nav { display: none; } }
.ip-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px clamp(20px, 4vw, 44px) 0; }
.ip-thumb {
  flex: 0 0 84px; height: 60px; cursor: pointer; background: var(--ip-bg2) center/cover no-repeat;
  opacity: .45; transition: opacity .3s; border: 1px solid transparent;
}
.ip-thumb:hover { opacity: .8; }
.ip-thumb.active { opacity: 1; border-color: var(--ip-ink); }
.ip-detail { padding: clamp(26px, 4vw, 50px); }
.ip-detail-price { font-size: clamp(28px, 4.4vw, 42px); font-weight: 500; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.ip-detail-exp { font-size: 14px; color: var(--ip-ink2); margin-top: 6px; }
.ip-detail-title { font-size: clamp(19px, 2.2vw, 25px); font-weight: 400; margin-top: 14px; letter-spacing: -.015em; line-height: 1.3; }
.ip-detail-loc { color: var(--ip-ink2); margin-top: 10px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.ip-detail h4 { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ip-ink3); margin: 38px 0 14px; font-weight: 600; }
.ip-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin-top: 32px; border-top: 1px solid var(--ip-linea); }
.ip-spec { padding: 20px 8px; text-align: center; border-bottom: 1px solid var(--ip-linea); border-right: 1px solid var(--ip-linea); }
.ip-spec:last-child { border-right: none; }
.ip-spec b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.ip-spec small { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ip-ink3); }
.ip-desc { line-height: 1.75; color: var(--ip-ink2); font-size: 15.5px; white-space: pre-wrap; }
.ip-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ip-chip { font-size: 12px; padding: 8px 15px; border: 1px solid var(--ip-linea); color: var(--ip-ink2); }
.ip-mapa { width: 100%; display: block; border: 1px solid var(--ip-linea); }
/* El mapa lleva a Google Maps. Se avisa con una etiqueta al pasar por encima:
   una imagen que no dice que es un link, nadie la toca. */
.ip-mapa-link { position: relative; display: block; margin-top: 8px; text-decoration: none; }
.ip-mapa-ir {
  position: absolute; right: 10px; bottom: 10px; padding: 6px 12px; border-radius: 999px;
  background: rgba(250,249,247,.94); color: var(--ip-ink); font-size: 11.5px; font-weight: 600;
  letter-spacing: .04em; box-shadow: 0 2px 10px rgba(22,21,15,.16);
  opacity: 0; transform: translateY(4px); transition: opacity .2s var(--ip-ease), transform .2s var(--ip-ease);
}
.ip-mapa-link:hover .ip-mapa-ir { opacity: 1; transform: none; }
/* En el celular no hay hover: se muestra siempre. */
@media (hover: none) { .ip-mapa-ir { opacity: 1; transform: none; } }
.ip-cta { position: sticky; bottom: 0; background: linear-gradient(180deg, transparent, var(--ip-bg) 26%); padding-top: 10px; }
.ip-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin: 24px 0 6px; padding: 19px 24px; text-decoration: none;
  font-size: 12px; letter-spacing: .15em; text-transform: uppercase; font-weight: 600;
  transition: background .3s;
}
.ip-btn-wa { background: var(--ip-ink); color: #fff; }
.ip-btn-wa:hover { background: var(--ip-oro); }
/* Compartir: secundario al lado del de WhatsApp — el objetivo principal sigue
   siendo que consulten, no que compartan. */
.ip-btn-share { background: transparent; color: var(--ip-ink); border: 1px solid var(--ip-linea); }
.ip-btn-share:hover { border-color: var(--ip-ink); }

@media (max-width: 900px) {
  .ip-nav { display: none; }
  .ip-burger { display: block; }
  .ip-nav.abierto {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 84px; left: 0; right: 0; background: var(--ip-bg);
    border-bottom: 1px solid var(--ip-linea); padding: 8px 0;
  }
  .ip-nav.abierto a { padding: 14px clamp(20px, 4vw, 48px); }
  .ip-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 620px) {
  /* La ficha ocupa la pantalla entera: la franja gris del fondo se comía un
     cuarto del alto para no mostrar nada. */
  .ip-sheet { max-height: 100svh; min-height: 100svh; }
  .ip-modal.open { align-items: stretch; }
  .ip-sheet-close { top: max(12px, env(safe-area-inset-top)); right: 12px; }
  /* El botón de WhatsApp queda fijo abajo y tapa lo que pasa por atrás: se le
     deja aire al final para poder leer hasta la última línea. */
  .ip-detail { padding-bottom: 96px; }
  .ip-cta { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .ip-btn { margin: 14px 0 6px; }

  .ip-topbar-in { height: 68px; }
  .ip-brand img { height: 46px; max-width: 140px; }
  .ip-nav.abierto { top: 68px; }
  .ip-grid { grid-template-columns: 1fr; }
  .ip-footer-grid { grid-template-columns: 1fr; }
  .ip-social { display: none; }
  .ip-count { width: 100%; margin: 4px 0 0; }
}


/* ── Visor de fotos a pantalla completa ──────────────────────────────
   Cuelga del body: un position:fixed dentro de la hoja scrolleable se
   movería con ella. */
.ip-visor {
  position: fixed; inset: 0; z-index: 900; display: none;
  align-items: center; justify-content: center; background: rgba(10,9,6,.96);
}
.ip-visor.open { display: flex; }
.ip-vtrack {
  display: flex; width: 100%; height: 100%;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  scrollbar-width: none;
}
.ip-vtrack::-webkit-scrollbar { display: none; }
/* Con la foto ampliada se corta el paso a la siguiente: si no, arrastrar para
   recorrerla cambiaría de imagen. */
.ip-vtrack.ampliada { overflow: hidden; }
.ip-vslide {
  flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center;
}
.ip-vslide img {
  max-width: 100vw; max-height: 100svh; object-fit: contain; cursor: zoom-in;
  transition: transform .2s var(--ip-ease); user-select: none; -webkit-user-drag: none;
}
.ip-visor-x, .ip-visor-nav {
  position: absolute; z-index: 2; border: none; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.13); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}
.ip-visor-x {
  top: max(16px, env(safe-area-inset-top)); right: 16px;
  width: 42px; height: 42px; border-radius: 50%; font-size: 17px;
}
.ip-visor-nav { top: 50%; transform: translateY(-50%); width: 46px; height: 68px; font-size: 30px; }
.ip-visor-nav.prev { left: 10px; }
.ip-visor-nav.next { right: 10px; }
.ip-visor-nav[hidden] { display: none; }
.ip-visor-x:hover, .ip-visor-nav:hover { background: rgba(255,255,255,.24); }
@media (hover: none) { .ip-visor-nav { display: none; } }
.ip-visor-pie {
  position: absolute; bottom: max(20px, env(safe-area-inset-bottom)); left: 0; right: 0;
  text-align: center; color: rgba(255,255,255,.8); font-size: 13px; font-weight: 600;
  letter-spacing: .06em; pointer-events: none;
}


/* ── Tour virtual 360 ────────────────────────────────────────────────
   Se ve embebido en la ficha y se agranda a pantalla completa con una clase:
   mover el iframe de lugar en el DOM lo recarga, y el visitante perdería el
   punto del recorrido donde estaba. */
.ip-tour-box {
  position: relative; width: 100%; aspect-ratio: 16/10;
  background: #0e0d0a; border: 1px solid var(--ip-linea); overflow: hidden;
}
.ip-tour-box iframe { width: 100%; height: 100%; border: 0; display: block; }

.ip-tour-box.ampliado {
  position: fixed; inset: 0; z-index: 950; aspect-ratio: auto;
  width: 100vw; height: 100svh; max-width: none; border: 0;
}

.ip-tour-full, .ip-tour-cerrar {
  position: absolute; z-index: 2; width: 40px; height: 40px; border: none; border-radius: 50%;
  cursor: pointer; background: rgba(14,13,10,.62); color: #fff; font-size: 16px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ip-tour-full:hover, .ip-tour-cerrar:hover { background: rgba(14,13,10,.85); }
.ip-tour-full { right: 12px; bottom: 12px; }
/* La X sólo existe cuando está a pantalla completa; el botón de ampliar, sólo
   cuando no lo está. */
.ip-tour-cerrar { display: none; top: max(12px, env(safe-area-inset-top)); right: 12px; }
.ip-tour-box.ampliado .ip-tour-cerrar { display: block; }
.ip-tour-box.ampliado .ip-tour-full { display: none; }

/* Activar el giro. Sólo aparece en un teléfono: en una computadora no hay
   sensores que leer. */
.ip-tour-giro {
  position: absolute; z-index: 2; left: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 7px;
  padding: 9px 14px; border: none; border-radius: 999px; cursor: pointer;
  background: rgba(14,13,10,.62); color: #fff; font-family: inherit;
  font-size: 12px; font-weight: 600; letter-spacing: .03em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ip-tour-giro[hidden] { display: none; }
.ip-tour-giro.on { background: var(--ip-oro); }
.ip-giro-ico { font-size: 14px; line-height: 1; }
