/* Vitrina de equipos: MacBook Pro e iPhone 17 Pro Max dibujados en CSS con capturas reales del Portal (static/img/portal,
   en claro y oscuro: se muestra la del tema activo). La usan /portal y el inicio. Las medidas van en unidades del contenedor
   (cqw) para que los equipos escalen juntos en cualquier ancho. */
.pv-vitrina { --oscuro: block; --claro: none; position: relative; width: min(1040px, calc(100% - 32px)); margin: 56px auto 0; padding: 0 5% 0 0;
  container-type: inline-size; animation: pv-entra 1.1s cubic-bezier(.2, .8, .2, 1) .2s both; }
@keyframes pv-entra { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
:root[data-theme="light"] .pv-vitrina { --oscuro: none; --claro: block; }
.pv-vitrina .dv-oscuro { display: var(--oscuro); } .pv-vitrina .dv-claro { display: var(--claro); }
.pv-vitrina img { width: 100%; height: auto; }
.pv-pie { margin: 4.5cqw 0 0; text-align: center; font-size: 13px; color: var(--muted); }

/* MacBook Pro: tapa con marco negro y cámara; base de aluminio con la muesca para abrirla */
.dv-mac { position: relative; width: 88cqw; }
.dv-mac-tapa { position: relative; padding: 1.6cqw 1.6cqw 2.2cqw; border-radius: 2.4cqw 2.4cqw .6cqw .6cqw; background: #08090a;
  box-shadow: inset 0 0 0 .14cqw #3a3b40, inset 0 0 0 .3cqw #111214, 0 3cqw 6cqw rgba(0, 0, 0, .35); }
.dv-mac-cam { position: absolute; z-index: 2; top: .5cqw; left: 50%; width: 9cqw; height: 1.4cqw; margin-left: -4.5cqw; border-radius: 0 0 .7cqw .7cqw; background: #08090a; }
.dv-mac-cam::after { content: ""; position: absolute; left: 50%; top: .3cqw; width: .55cqw; height: .55cqw; margin-left: -.27cqw; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a4a5a, #0b0d10 70%); }
.dv-mac-pantalla { overflow: hidden; border-radius: .9cqw .9cqw .3cqw .3cqw; background: #0e0f11; }
.dv-mac-pantalla img { display: block; }
.dv-mac-base { position: relative; width: 104%; margin-left: -2%; height: 1.9cqw; border-radius: 0 0 2.4cqw 2.4cqw / 0 0 1.6cqw 1.6cqw;
  background: linear-gradient(#d9dadd, #b9bbc0 45%, #8d9096); box-shadow: inset 0 .12cqw 0 rgba(255, 255, 255, .7); }
.dv-mac-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 15%; height: 45%; transform: translateX(-50%); border-radius: 0 0 1cqw 1cqw;
  background: linear-gradient(#a7a9ae, #c8cacd); }
:root[data-theme="dark"] .dv-mac-base { background: linear-gradient(#5a5c61, #3d3f43 45%, #232427); box-shadow: inset 0 .12cqw 0 rgba(255, 255, 255, .25); }
:root[data-theme="dark"] .dv-mac-base::before { background: linear-gradient(#2a2b2e, #3d3f43); }

/* iPhone 17 Pro Max: marco de aluminio, pantalla con Dynamic Island, barra de estado y botones laterales */
.dv-iphone { --w: 21cqw; position: absolute; right: 0; bottom: 4cqw; width: var(--w); aspect-ratio: 78 / 163.4; padding: calc(var(--w) * .035);
  border-radius: calc(var(--w) * .165); background: linear-gradient(135deg, #9fa2a8, #4b4d52 30%, #2c2d31 60%, #7d8086);
  box-shadow: 0 calc(var(--w) * .1) calc(var(--w) * .2) rgba(0, 0, 0, .45), inset 0 0 0 calc(var(--w) * .006) rgba(255, 255, 255, .35);
  animation: pg-flota 8s ease-in-out infinite; }
:root[data-theme="light"] .dv-iphone { background: linear-gradient(135deg, #e9eaed, #b8bbc1 30%, #d3d5da 60%, #a2a5ab); }
.dv-iphone-pantalla { position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--w) * .135); background: #0e0f11;
  box-shadow: 0 0 0 calc(var(--w) * .012) #050505; display: flex; flex-direction: column; }
:root[data-theme="light"] .dv-iphone-pantalla { background: #ffffff; }
.dv-iphone-pantalla img { display: block; flex: 1; min-height: 0; object-fit: cover; object-position: top; }
.dv-estado { position: relative; flex: 0 0 auto; height: calc(var(--w) * .135); display: flex; align-items: center; justify-content: space-between;
  padding: 0 calc(var(--w) * .1) 0 calc(var(--w) * .12); color: #fff; font: 600 calc(var(--w) * .052)/1 -apple-system, "SF Pro Text", "Inter", sans-serif; }
:root[data-theme="light"] .dv-estado { color: #000; }
.dv-isla { position: absolute; left: 50%; top: calc(var(--w) * .035); width: calc(var(--w) * .3); height: calc(var(--w) * .085); transform: translateX(-50%);
  border-radius: calc(var(--w) * .05); background: #000; }
.dv-iconos { display: flex; align-items: center; gap: calc(var(--w) * .018); }
.dv-iconos svg { height: calc(var(--w) * .036); width: auto; fill: currentColor; }
.dv-iconos svg:last-child { height: calc(var(--w) * .042); }
.dv-btn { position: absolute; width: calc(var(--w) * .014); border-radius: calc(var(--w) * .01); background: linear-gradient(90deg, #5a5c61, #9a9da3); }
:root[data-theme="light"] .dv-btn { background: linear-gradient(90deg, #9fa2a8, #d6d8dc); }
.dv-accion { left: calc(var(--w) * -.011); top: 18%; height: 4.5%; }
.dv-vol1 { left: calc(var(--w) * -.011); top: 25%; height: 7.5%; }
.dv-vol2 { left: calc(var(--w) * -.011); top: 34%; height: 7.5%; }
.dv-power { right: calc(var(--w) * -.011); top: 27%; height: 11%; }
.dv-camara { right: calc(var(--w) * -.011); top: 52%; height: 6%; }

@media (max-width: 640px) {
  .pv-vitrina { margin-top: 40px; padding-right: 0; }
  .dv-mac { width: 100cqw; }
  .dv-iphone { --w: 30cqw; right: -2cqw; bottom: -8cqw; }
  .pv-pie { margin-top: 12cqw; }
}
@media (prefers-reduced-motion: reduce) { .dv-iphone { animation: none; } }
