/* ==========================================================
   PRODUCTO DESTACADO — Global Firmness Set sobre pedestal de mármol
   (foto Higgsfield + profundidad en WebGL, interactivo; página de inicio)
   Para quitarlo: borra la carpeta assets/exp-3d y el bloque
   <!-- EXP-3D:START --> … <!-- EXP-3D:END --> de index.html.
   ========================================================== */
.x3d { position: relative; isolation: isolate; overflow: hidden; margin: 0 10px; border-radius: 48px; padding: 56px var(--pad) 40px;
  background: radial-gradient(60% 55% at 70% 45%, #fbe9e4 0%, rgba(251, 233, 228, 0) 70%), radial-gradient(45% 45% at 15% 85%, rgba(124, 183, 67, .14), rgba(124, 183, 67, 0) 70%), linear-gradient(180deg, #f6efe6, #f2eadf); }
.x3d__in { max-width: 1232px; margin: 0 auto; display: grid; gap: 8px; align-items: center; }
.x3d__copy { position: relative; z-index: 2; display: grid; gap: 14px; justify-items: start; }
.x3d__copy .h2 { margin: 0; }
.x3d__copy p { margin: 0; max-width: 42ch; color: var(--text); }
.x3d__brand { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #9c8656; }
.x3d__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 15px; }
.x3d__price strong { font-size: 26px; font-weight: 500; color: var(--ink); }
.x3d__price s { color: #9a948c; }
.x3d__price span { width: 100%; font-size: 13px; letter-spacing: .04em; color: #9c8656; }
.x3d__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.x3d__stage { position: relative; height: 460px; margin: 0 calc(-1 * var(--pad)); display: grid; place-items: center; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.x3d.is-dragging .x3d__stage { cursor: grabbing; }
.x3d__aura { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(50px); opacity: .7; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 214, 196, .9), rgba(217, 191, 140, .35) 45%, rgba(217, 191, 140, 0) 70%); animation: x3dAura 9s ease-in-out infinite alternate; }
@keyframes x3dAura { from { transform: scale(.92); opacity: .55; } to { transform: scale(1.06); opacity: .85; } }
.x3d__float { position: relative; width: min(100%, 440px); aspect-ratio: 1; animation: x3dFloat 6s ease-in-out infinite; }
@keyframes x3dFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.x3d__view { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.x3d__photo, .x3d__canvas, .x3d__video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 84%, transparent 100%); mask-image: radial-gradient(closest-side, #000 84%, transparent 100%); }
.x3d__photo { object-fit: cover; transform-origin: 50% 50%; }
.x3d__video { object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.x3d__canvas { opacity: 0; }
.x3d.is-video .x3d__video { opacity: 1; }
.x3d.is-frames .x3d__canvas { opacity: 1; }
.x3d.is-3d .x3d__photo { opacity: 0; transition: opacity .6s ease .4s; }

/* hotspots */
.x3d__dot { position: absolute; left: 0; top: 0; will-change: transform; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; border-radius: 50%; cursor: pointer; z-index: 2;
  border: 1.5px solid rgba(255, 255, 255, .95); background: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(60, 30, 20, .25); transition: opacity .35s, background .3s, box-shadow .3s; opacity: 0; }
.x3d__dot::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px rgba(255, 236, 214, .9); }
.x3d__dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .8); animation: x3dPing 2.4s ease-out infinite; }
@keyframes x3dPing { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.x3d.is-3d .x3d__dot, .x3d.is-photo .x3d__dot { opacity: 1; }
.x3d__dot:hover, .x3d__dot:focus-visible { background: rgba(255, 255, 255, .5); box-shadow: 0 0 0 4px rgba(255, 255, 255, .35), 0 4px 16px rgba(60, 30, 20, .25); outline: none; }
.x3d__dot[aria-expanded="true"] { background: rgba(156, 134, 86, .55); }
.x3d__dot[aria-expanded="true"]::after { animation: none; opacity: 0; }
.x3d__dot.is-off { opacity: 0 !important; pointer-events: none; }

.x3d__dust { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.x3d__dust i { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: #e3c890; box-shadow: 0 0 8px 2px rgba(227, 200, 144, .7); opacity: 0; animation: x3dDust 7s linear infinite; }
@keyframes x3dDust { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: .9; } 80% { opacity: .6; } 100% { transform: translateY(-420px) scale(1.1); opacity: 0; } }

/* hint */
.x3d__hint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13px; white-space: nowrap; color: var(--ink);
  background: rgba(253, 251, 247, .8); border: 1px solid rgba(184, 165, 124, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: none; transition: opacity .6s; z-index: 2; }
.x3d__hint svg { width: 16px; height: 16px; fill: none; stroke: #9c8656; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: x3dSwipe 1.8s ease-in-out infinite; }
@keyframes x3dSwipe { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
.x3d.is-touched .x3d__hint { opacity: 0; }

/* product card */
.x3d__card { position: absolute; left: 50%; bottom: 10px; z-index: 3; width: min(calc(100% - 32px), 360px); padding: 18px 20px 14px; border-radius: 22px; cursor: auto; text-align: left;
  background: rgba(253, 251, 247, .9); border: 1px solid rgba(184, 165, 124, .35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 18px 50px rgba(60, 40, 20, .18);
  transform: translate(-50%, 14px); opacity: 0; transition: opacity .35s ease, transform .45s var(--ease, ease); }
.x3d__card.is-on { opacity: 1; transform: translate(-50%, 0); }
.x3d__card h3 { margin: 2px 0 6px; font-size: 21px; line-height: 1.15; font-weight: 400; color: var(--ink); }
.x3d__card p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text); }
.x3d__card .x3d__card-k { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #9c8656; }
.x3d__card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(184, 165, 124, .3); font-size: 14px; }
.x3d__card-foot a { color: var(--green-deep, #3d6b1f); text-decoration: none; font-weight: 500; }
.x3d__close { position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; font-size: 22px; line-height: 1; color: #8a7d6a; cursor: pointer; }
.x3d__close:hover { background: rgba(184, 165, 124, .15); }

/* product chips */
.x3d__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.x3d__chip { padding: 8px 14px; border-radius: 999px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer;
  background: rgba(253, 251, 247, .7); border: 1px solid rgba(184, 165, 124, .4); transition: background .25s, color .25s, border-color .25s; }
.x3d__chip:hover { border-color: #9c8656; }
.x3d__chip[aria-pressed="true"] { background: #2b2622; border-color: #2b2622; color: #fdfbf7; }

@media (prefers-reduced-motion: reduce) { .x3d__aura, .x3d__float, .x3d__dust i, .x3d__dot::after, .x3d__hint svg { animation: none; } }

@media (min-width: 600px) { .x3d__float { width: min(100%, 520px); } }
@media (min-width: 900px) {
  .x3d { margin: 0 20px; border-radius: 64px; padding: 40px var(--pad); }
  .x3d__in { grid-template-columns: .9fr 1.1fr; gap: 0 24px; }
  .x3d__copy { grid-row: 1 / span 2; }
  .x3d__stage { height: 600px; margin: 0; }
  .x3d__float { width: min(100%, 580px); }
  .x3d__chips { grid-column: 2; margin-top: -6px; }
  .x3d__card { left: auto; right: 4px; bottom: 40px; transform: translate(0, 14px); }
  .x3d__card.is-on { transform: translate(0, 0); }
}
@media (max-width: 599px) { .x3d__dot { width: 24px; height: 24px; margin: -12px 0 0 -12px; } .x3d__dot::before { inset: 7px; } }
@media (max-width: 899px) { .x3d__price { justify-content: center; text-align: center; } }
