/* Sección "Recorridos de propiedades" de la página de Ciego (26/11). Usa las mismas tarjetas que "Lo que hace hoy";
   esto agrega la grilla de tres, la comparación antes/después y el visor 360. */
.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.rec-card .showcase-card-body h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.rec-card .showcase-card-body p { margin: 0; color: var(--ciego-muted); font-size: 0.94rem; line-height: 1.6; }
.rec-media {
  position: relative;
  height: 320px;
  background: #F0ECE4;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.rec-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.rec-chip {
  position: absolute; top: 12px; z-index: 3;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(26, 24, 22, 0.72); color: #F5F2EB;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
  pointer-events: none;
}

/* 01: la misma foto, antes y después. La foto real se recorta hasta la barra. */
.rec-comparar { --corte: 50%; touch-action: pan-y; }
.rec-comparar .rec-antes { clip-path: inset(0 calc(100% - var(--corte)) 0 0); z-index: 1; }
.rec-comparar .rec-linea {
  position: absolute; top: 0; bottom: 0; left: var(--corte); z-index: 2;
  width: 2px; margin-left: -1px; background: #F5F2EB; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(26, 24, 22, 0.15);
}
.rec-comparar .rec-linea::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  background: #F5F2EB; box-shadow: 0 4px 14px rgba(26, 24, 22, 0.25);
  background-image: linear-gradient(90deg, transparent 13px, var(--ciego-gold) 13px, var(--ciego-gold) 15px, transparent 15px, transparent 25px, var(--ciego-gold) 25px, var(--ciego-gold) 27px, transparent 27px);
}
.rec-comparar input[type="range"] {
  position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none;
}
.rec-comparar input[type="range"]:focus-visible + .rec-linea::after { outline: 2px solid var(--ciego-gold); outline-offset: 3px; }
.rec-chip-izq { left: 12px; }
.rec-chip-der { right: 12px; }

/* 02: visor 360 (se gira arrastrando; mientras nadie lo toca, gira despacio solo). */
.rec-360 { cursor: grab; touch-action: pan-y; }
.rec-360:active { cursor: grabbing; }
.rec-360 canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rec-360 .rec-chip { left: 12px; }

/* 03: el recorrido, con su botón. */
.rec-card .rec-accion { margin-top: 1.25rem; }
.rec-card .rec-accion .btn { width: 100%; justify-content: center; }

@media (max-width: 1000px) {
  .rec-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .rec-media { height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-card.rec-card:hover { transform: none; }
}
