/* Integra Muebles · Portada del celular (prefijo pm-): recorrido de cámara por cada foto. Las piezas de texto y botones (pt-) vienen de portada.css. */
.pm { position: relative; display: flex; flex-direction: column; height: calc(100svh - 68px); min-height: 540px; max-height: 1180px; overflow: hidden; isolation: isolate; background: #150e09; color: #fdf8ee; }

.pm-lienzo { position: relative; flex: 1; min-height: 260px; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: translate .35s cubic-bezier(.23, 1, .32, 1); }
.pm-lienzo::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(0deg, #150e09 0, rgba(21, 14, 9, .72) 9%, rgba(21, 14, 9, 0) 26%); }
.pm-d { position: absolute; inset: 0; overflow: hidden; visibility: hidden; background: #150e09; }
.pm-d.prev { visibility: visible; z-index: 1; }
.pm-d.on { visibility: visible; z-index: 3; }
.pm-camara { position: absolute; left: 0; top: 0; }
.pm-foto { display: block; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.pm.ya .pm-d.on { animation: pt-entra .85s cubic-bezier(.77, 0, .175, 1) .06s both; }
.pm.ya.atras .pm-d.on { animation-name: pm-entra-atras; }
.pm-filo { position: absolute; inset: 0; z-index: 2; background: #fcc500; pointer-events: none; visibility: hidden; }
.pm-filo.pasa { visibility: visible; animation: pt-barre .85s cubic-bezier(.77, 0, .175, 1) both; }
.pm.atras .pm-filo.pasa { animation-name: pm-barre-atras; }

.pm-punto { position: absolute; z-index: 5; width: 0; height: 0; color: #1b1a17; text-decoration: none; }
.pm-punto i { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; }
.pm-punto i::before, .pm-punto i::after { content: ""; position: absolute; left: 14px; top: 14px; width: 16px; height: 16px; border-radius: 50%; }
.pm-punto i::before { background: #fcc500; box-shadow: 0 0 0 3px #fffaf0, 0 4px 14px rgba(0, 0, 0, .5); }
.pm-punto i::after { box-shadow: 0 0 0 2px #fffaf0; opacity: 0; }
.pm-d.on .pm-punto i::after { animation: pt-late 2.2s ease-out infinite; }
.pm-punto b { position: absolute; left: -1px; bottom: 11px; width: 2px; height: 34px; background: #fffaf0; box-shadow: 0 0 8px rgba(0, 0, 0, .4); }
.pm-punto span { position: absolute; left: 0; bottom: 44px; translate: -50% 0; display: block; padding: 13px 16px; border-radius: 14px; background: #fffaf0; font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6); transition: scale .16s ease-out; }
.pm-punto span::after { content: " ›"; font-size: 18px; }
.pm-punto:active span { scale: .96; }
.pm-punto.abajo b { bottom: auto; top: 11px; }
.pm-punto.abajo span { bottom: auto; top: 44px; }

/* Las barras van en su propia franja, arriba de la foto: ninguna etiqueta puede encimarse. */
.pm-arriba { position: relative; z-index: 6; flex: none; display: flex; align-items: center; gap: 12px; padding: 6px 12px 6px 16px; }
.pm-tabs { display: flex; flex: 1; gap: 8px; }
.pm-tab { display: flex; flex: 1; flex-direction: column-reverse; justify-content: center; gap: 7px; height: 44px; padding: 0; border: 0; background: none; font: inherit; font-size: 12px; font-weight: 700; text-align: left; color: rgba(253, 248, 238, .72); text-shadow: 0 1px 6px rgba(0, 0, 0, .7); cursor: pointer; }
.pm-tab[aria-current] { color: #fffaf0; }
.pm-tab i { display: block; width: 100%; height: 4px; border-radius: 3px; overflow: hidden; background: rgba(255, 250, 240, .34); }
.pm-tab b { display: block; height: 100%; background: #fcc500; transform: scaleX(0); transform-origin: 0 50%; }
.pm-tab[aria-current] b { transform: scaleX(1); }
.pm.auto .pm-tab[aria-current] b { animation: pt-llena var(--dura, 7s) linear both; }
.pm.quieta .pm-tab b { animation-play-state: paused !important; }
.pm .pt-pausa { background: rgba(21, 14, 9, .6); color: #fffaf0; }

.pm-textos { position: relative; z-index: 5; display: grid; align-items: end; margin-top: -26px; padding: 0 18px max(18px, env(safe-area-inset-bottom)); pointer-events: none; }
.pm-textos .pt-t.on { pointer-events: auto; }
.pm .pt-t :is(h1, h2) { margin: 0; max-width: 17ch; font-size: clamp(34px, 10.6vw, 60px); font-weight: 800; line-height: .98; letter-spacing: -.012em; text-wrap: balance; color: inherit; }
.pm .pt-t p { margin: 12px 0 0; max-width: 40ch; font-size: 16px; line-height: 1.45; color: rgba(253, 248, 238, .88); text-shadow: none; }
.pm .pt-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.pm .pt-b { height: 54px; padding: 0 10px; border-radius: 18px; font-size: 15px; text-align: center; line-height: 1.15; }
.pm .pt-b--1 { background: #fcc500; color: #1b1a17; }
.pm .pt-b--2 { color: #fdf8ee; box-shadow: inset 0 0 0 1.5px rgba(253, 248, 238, .45); }
.pm :is(a, button):focus-visible { outline: 3px solid #fcc500; outline-offset: 2px; }
.pm .pm-punto:focus-visible { outline: none; }
.pm-punto:focus-visible span { outline: 3px solid #fcc500; outline-offset: 2px; }

@media (min-width: 600px) { .pm-textos { width: 100%; max-width: 660px; margin-inline: auto; } }
@media (max-height: 700px) { .pm .pt-t p { display: none; } .pm .pt-t :is(h1, h2) { font-size: 34px; max-width: 16ch; } .pm .pt-botones { margin-top: 12px; } .pm .pt-b { height: 48px; } }
/* «Reducir movimiento»: sin viajes ni barridos, pero el carrusel sigue con fundidos. Gana a la regla general que apaga toda animación. */
@media (prefers-reduced-motion: reduce) {
  .pm-filo { display: none; }
  .pm-lienzo { transition: none; }
  .pm.auto .pm-tab[aria-current] b { animation: pt-llena var(--dura, 7s) linear both !important; }
  .pm.auto.quieta .pm-tab[aria-current] b { animation-play-state: paused !important; }
  .pm.ya .pm-d.on { animation: pt-funde .7s ease both !important; }
}

@keyframes pm-entra-atras { from { clip-path: polygon(-40% 0, -20% 0, 0 100%, -20% 100%); } to { clip-path: polygon(-40% 0, 121% 0, 101% 100%, -20% 100%); } }
@keyframes pm-barre-atras { from { clip-path: polygon(-24% 0, 0 0, 20% 100%, -4% 100%); } to { clip-path: polygon(124% 0, 128% 0, 108% 100%, 104% 100%); } }
