/* ===========================================================================
   VISOR 3D DEL LOTE (#tu-lote) · complemento de js/lote3d.js
   Solo aplica cuando el JS monto el lienzo (.lotev--3d); si no hay WebGL
   siguen los SVG con los estilos de estilos.css.
   =========================================================================== */
.lotev--3d .lotev__marco{
  /* fondo lino de estudio: claro arriba, apenas mas calido abajo */
  background: radial-gradient(120% 90% at 50% 38%, #f8f6f1 0%, #f5f3ed 55%, #ece8de 100%);
}

.lotev__lienzo{
  display: block; width: 100%; height: 100%;
  /* el gesto vertical sigue siendo scroll de la pagina; el horizontal gira */
  touch-action: pan-y;
  cursor: grab;
  opacity: 0;
  transition: opacity .6s ease;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none; user-select: none;
}
.lotev__lienzo--listo{ opacity: 1; }
.lotev__lienzo--arrastre{ cursor: grabbing; }

/* la nota deja de ser marca de maqueta: ahora es la pista de giro */
.lotev--3d .lotev__nota{
  border-style: solid; border-color: rgba(35,48,27,.09);
  background: rgba(255,255,255,.86);
  pointer-events: none;
  transition: opacity .5s ease;
}
.lotev--3d .lotev__nota--fuera{ opacity: 0; }

/* chapa y sello no estorban el arrastre */
.lotev--3d .lotev__chapa,
.lotev--3d .lotev__sello{ pointer-events: none; }

/* ===========================================================================
   TARJETAS DE PARAMETROS (45% / 50% / 5·3·2 m)
   Foto a sangre arriba que se funde al papel, icono iso fino y cifra grande.
   Selectores con #tu-lote: ronda3.css carga despues de esta hoja.
   =========================================================================== */
#tu-lote .lotecifras{
  list-style: none; padding: 0;
  margin: clamp(2.6rem, 1.6rem + 3vw, 4.2rem) auto 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 30px);
}
#tu-lote .lotecifra{
  position: relative; overflow: hidden; margin: 0; padding: 0;
  display: flex; flex-direction: column;
  background: #fbfaf6;
  border: 1px solid rgba(35,48,27,.1);
  border-radius: var(--radio-ak, 4px);
  box-shadow: 0 10px 30px -18px rgba(35,48,27,.35);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s ease;
}
#tu-lote .lotecifra:hover{ transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(35,48,27,.45); }
#tu-lote .lotecifra__foto{
  position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden;
}
#tu-lote .lotecifra__foto img{
  display: block; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.02); transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
}
#tu-lote .lotecifra:hover .lotecifra__foto img{ transform: scale(1.07); }
/* degradado de la foto al papel de la tarjeta */
#tu-lote .lotecifra__foto::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(251,250,246,0) 38%, rgba(251,250,246,.55) 74%, #fbfaf6 100%);
}
#tu-lote .lotecifra__cuerpo{
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; align-items: center;
  margin-top: -2.6rem;
  padding: 0 clamp(18px, 2vw, 28px) clamp(22px, 2.4vw, 30px);
  text-align: center;
}
#tu-lote .lotecifra__ico{
  width: 2.6rem; height: 2.6rem; color: var(--verde-medio, #586a3c);
  margin-bottom: .55rem;
}
#tu-lote .lotecifra--verde .lotecifra__ico{ color: var(--verde-profundo, #1d3a09); }
#tu-lote .lotecifra__n{
  font-family: var(--display, 'Playfair Display', serif); font-weight: 500; line-height: 1;
  font-size: clamp(2.5rem, 1.6rem + 2.4vw, 3.4rem);
  font-variant-numeric: lining-nums;
  color: #8a6a3e;
  background: var(--acento-lujo, none);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}
#tu-lote .lotecifra__t{
  margin-top: .55rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--verde-profundo, #1d3a09); text-align: center;
}
#tu-lote .lotecifra__d{
  margin: .85rem 0 0; max-width: 34ch;
  font-size: .9rem; line-height: 1.6; color: var(--texto-tenue-o, #5b6150);
  text-align: justify; text-align-last: center; hyphens: manual;
}

/* la frase debajo de las tarjetas: con aire y centrada */
#tu-lote .lote-frase{
  max-width: 62ch;
  margin: clamp(2.8rem, 1.8rem + 3vw, 4.4rem) auto clamp(.6rem, 1vw, 1rem);
}
#tu-lote .lote-frase p{
  font-family: var(--display, 'Playfair Display', serif);
  font-size: clamp(1.08rem, .98rem + .45vw, 1.32rem); line-height: 1.6;
  color: var(--texto-oscuro, #23301b);
  text-align: justify; text-align-last: center;
  -webkit-hyphens: auto; hyphens: auto;
}
/* en pantallas anchas cabe en una sola linea */
@media (min-width: 1360px){
  #tu-lote .lote-frase{ max-width: none; }
  #tu-lote .lote-frase p{ white-space: nowrap; font-size: 16.5px; text-align: center; }
}

@media (max-width: 860px){
  #tu-lote .lotecifras{ grid-template-columns: 1fr; max-width: 460px; }
}

@media (prefers-reduced-motion: reduce){
  #tu-lote .lotecifra, #tu-lote .lotecifra__foto img{ transition: none; }
  #tu-lote .lotecifra:hover{ transform: none; }
  #tu-lote .lotecifra:hover .lotecifra__foto img{ transform: scale(1.02); }
  .lotev__lienzo,
  .lotev--3d .lotev__nota{ transition: none; }
}

/* ===========================================================================
   RONDA 27-nov-2026 (Tash) · pestañas arriba, globo compuesto, íconos 2x
   Con «html #tu-lote» porque ronda3.css y r3/r4 cargan después.
   =========================================================================== */
/* --- pestañas ARRIBA del modelo, grandes y visibles ------------------------ */
html #tu-lote .lotev__tabs{
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(8px, 1vw, 14px);
  margin: 0 0 clamp(14px, 1.6vw, 22px);
}
html #tu-lote .lotev__tab{
  min-width: 13.5rem;
  padding: .95rem 1.7rem;
  border-radius: 3px;
  font-family: 'Montserrat', var(--texto, sans-serif);
  font-size: .98rem; font-weight: 600; letter-spacing: .015em; line-height: 1.25;
  text-align: center; text-align-last: auto;
  background: #fbfaf6; border: 1px solid rgba(35,48,27,.22);
  box-shadow: 0 6px 18px -12px rgba(35,48,27,.45);
  transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
html #tu-lote .lotev__tab:hover{ border-color: rgba(166,135,104,.75); box-shadow: 0 10px 22px -14px rgba(35,48,27,.55); }
html #tu-lote .lotev__tab--on{
  background: var(--verde-profundo, #1d3a09); border-color: var(--verde-profundo, #1d3a09);
  color: var(--texto-claro, #fff);
}
/* chapa y pista con esquinas casi rectas */
html #tu-lote .lotev__chapa,
html #tu-lote .lotev__nota{ border-radius: 3px; }

/* --- globo «202–543 m² de superficie»: todo centrado dentro del círculo --- */
html #tu-lote .lotev__sello{
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0; padding: 0 12px; box-sizing: border-box;
  width: clamp(122px, 10.5vw, 142px); aspect-ratio: 1; border-radius: 50%;
  text-align: center; text-align-last: center;
}
html #tu-lote .lotev__sello b{
  display: block; white-space: nowrap; text-align: center;
  font-size: clamp(22px, 1.9vw, 27px); letter-spacing: -.005em; line-height: 1;
}
html #tu-lote .lotev__sello span{
  display: block; max-width: none; margin: 0;
  font-family: 'Montserrat', var(--texto, sans-serif);
  font-size: 9.5px; font-weight: 700; letter-spacing: .14em; line-height: 1.4;
  text-transform: uppercase;
  text-align: center !important; text-align-last: center !important;
}
html #tu-lote .lotev__sello span::before{
  content: ""; display: block; width: 22px; height: 1px; margin: 8px auto 7px;
  background: currentColor; opacity: .35;
}

/* --- íconos de las tarjetas: el doble (72 → 144 px) ------------------------ */
html #tu-lote .lotecifra__ico{ width: 144px !important; height: 144px !important; margin-bottom: .4rem; }
html #tu-lote .lotecifra__cuerpo{ margin-top: -4.6rem; }

@media (max-width: 760px){
  html #tu-lote .lotev__tabs{
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px;
  }
  html #tu-lote .lotev__tab{
    min-width: 0; padding: .8rem .4rem; font-size: .8rem; letter-spacing: 0;
  }
  html #tu-lote .lotev__sello{ width: 94px; padding: 0 7px; right: 12px; bottom: 12px; }
  html #tu-lote .lotev__sello b{ font-size: 17px; }
  html #tu-lote .lotev__sello span{ font-size: 7.5px; letter-spacing: .12em; line-height: 1.35; }
  html #tu-lote .lotev__sello span::before{ margin: 5px auto 4px; width: 16px; }
  html #tu-lote .lotecifra__ico{ width: 124px !important; height: 124px !important; }
  html #tu-lote .lotecifra__cuerpo{ margin-top: -4rem; }
}
@media (prefers-reduced-motion: reduce){
  html #tu-lote .lotev__tab{ transition: none; }
}
