/* El edificio en 3D: composición como en la referencia (ver edificio-3d.js) */
.b3d-sec { overflow: hidden; }
.b3d-head { text-align: center; margin-bottom: clamp(8px, 2vw, 20px); }
.b3d-head .eyebrow { justify-content: center; }
.b3d-title { margin: 14px auto 0; max-width: 18ch; font-family: var(--f-display); font-weight: 500; font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1; letter-spacing: -.035em; }

.b3d-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 48px); align-items: center; }
.b3d-col { display: flex; flex-direction: column; gap: 34px; }
.b3d-col--l { text-align: right; align-items: flex-end; }
.b3d-point { max-width: 30ch; }
.b3d-n { display: block; margin-bottom: 10px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.b3d-point h3 { margin: 0 0 10px; font-family: var(--f-body); font-weight: 400; font-size: clamp(19px, 1.6vw, 23px); letter-spacing: -.01em; }
.b3d-point p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

.b3d-stats { display: flex; gap: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.b3d-stats div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.b3d-stats b { font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 4.6vw, 64px); line-height: .9; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.b3d-stats span { font-size: 13px; color: var(--muted); }

/* Escenario 3D */
.b3d-stage { position: relative; height: clamp(460px, 74vh, 760px); touch-action: none; cursor: grab; }
.b3d-stage:active { cursor: grabbing; }
.b3d-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; outline: none; }
.b3d-fallback { position: absolute; inset: 12% 8%; width: 84%; height: 76%; object-fit: cover; border-radius: 18px; opacity: 0; transition: opacity .4s; }
.b3d-stage.is-fallback .b3d-fallback { opacity: 1; }
.b3d-stage.is-fallback { cursor: default; touch-action: auto; }
.b3d-loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font-size: 14px; color: var(--muted); pointer-events: none; }
.b3d-loading[hidden] { display: none; }
.b3d-hint {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 16px; white-space: nowrap;
  border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 13px;
  pointer-events: none; opacity: 0; transition: opacity .5s;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.b3d-hint svg { width: 16px; height: 16px; }
.b3d-stage.is-ready .b3d-hint { opacity: 1; }
.b3d-stage.is-touched .b3d-hint { opacity: 0; }

/* Sello circular que gira + enlace */
.b3d-seal-row { display: flex; align-items: center; gap: 22px; padding-top: 26px; border-top: 1px solid var(--line); }
.b3d-seal { width: 112px; height: 112px; flex: none; animation: b3d-spin 22s linear infinite; }
.b3d-seal text { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; fill: var(--muted); }
.b3d-seal circle { fill: #fff; }
.b3d-link { color: var(--ink); font-size: 17px; text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid currentColor; }
.b3d-link span { display: inline-block; transition: transform .25s; }
.b3d-link:hover span { transform: translateX(4px); }
.b3d-quote { margin: 0; font-family: var(--f-display); font-size: clamp(19px, 1.7vw, 24px); line-height: 1.25; letter-spacing: -.015em; }
@keyframes b3d-spin { to { transform: rotate(360deg); } }

/* Datos del edificio, en fila debajo */
.b3d-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: clamp(28px, 4vw, 56px) 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.b3d-facts dt { margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.b3d-facts dd { margin: 0; font-size: 15px; line-height: 1.5; }

@media (max-width: 1024px) {
  .b3d-grid { grid-template-columns: 1fr 1fr; }
  .b3d-stage { grid-column: 1 / -1; order: -1; height: clamp(420px, 62vh, 620px); }
  .b3d-col--l { text-align: left; align-items: flex-start; }
  .b3d-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .b3d-grid { grid-template-columns: 1fr; gap: 36px; }
  .b3d-stage { height: 440px; margin: 0 calc(var(--gl) * -1); }
  .b3d-stats { gap: 22px; }
  .b3d-facts { grid-template-columns: 1fr; gap: 18px; }
}
@media (prefers-reduced-motion: reduce) { .b3d-seal { animation: none; } }

/* Anillo de entrega (como el "35 % obra en curso" de la referencia) */
.b3d-ring { position: relative; width: min(100%, 230px); aspect-ratio: 1; padding-top: 0; }
.b3d-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.b3d-ring__track { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .12); stroke-width: 2; }
.b3d-ring__arc { fill: none; stroke: #f3efe8; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.65, 0, .35, 1); }
.b3d-ring__txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.b3d-ring__txt p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .85); }
.b3d-ring__num { display: flex; align-items: baseline; gap: 4px; margin-bottom: 8px !important; }
.b3d-ring__num b { font-family: var(--f-display); font-weight: 400; font-size: 64px; line-height: .9; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.b3d-ring__num span { font-size: 17px; color: rgba(255, 255, 255, .7); }
.b3d-ring__sub { color: var(--muted) !important; }

/* Ubicación con el icono en círculo */
.b3d-place { display: flex; align-items: center; gap: 18px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.b3d-place__pin { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); transition: background-color .25s, border-color .25s; }
.b3d-place__pin svg { width: 20px; height: 20px; }
.b3d-place:hover .b3d-place__pin { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .5); }
.b3d-place__txt { display: flex; flex-direction: column; gap: 4px; }
.b3d-place__txt b { font-weight: 400; font-size: clamp(19px, 1.6vw, 22px); letter-spacing: -.01em; }
.b3d-place__txt small { font-size: 13.5px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .b3d-ring__arc { transition: none; } }
