.vista-showcase {
  position: relative;
  max-width: 1340px;
  margin: 0 auto;
  padding: 48px 32px 16px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  gap: 92px;
}

/* Capa SVG de líneas punteadas curvas */
.vista-connectors-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 18;
  overflow: visible;
  transition: opacity 0.22s ease;
}

.vista-connectors-svg.is-fading {
  opacity: 0;
}

.vista-cards-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 125px;
  z-index: 10;
  contain: layout style;
  transition: opacity 0.2s ease;
}

.vista-cards-col.is-fading {
  opacity: 0;
}

.vista-cards-col--right {
  padding-left: 20px;
}

/* Bloques de texto limpios sin tarjeta ni backdrop-filter para máxima fluidez */
.vista-glass-card {
  position: relative;
  min-height: 96px;
  padding: 14px 16px;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.vista-card-num {
  display: none;
}

.vista-card-body {
  min-width: 0;
}

.vista-glass-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.vista-glass-text {
  margin: 0;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.5;
  color: #1e293b;
}

.vista-center-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 12;
  contain: layout style;
}

.vista-phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.vista-anchors-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
}

.vista-anchor {
  position: absolute;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-size: 0;
  line-height: 0;
}

.vista-live-callout {
  display: none !important;
}

/* Botones de navegación laterales */
.vista-nav-controls {
  position: absolute;
  right: -56px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 22;
}

.vista-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 6px 16px -6px rgba(15, 23, 42, 0.16);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.vista-nav-btn:hover:not(:disabled) {
  transform: scale(1.07);
  color: #84cc16;
  border-color: rgba(132, 204, 22, 0.45);
  box-shadow:
    0 14px 28px -8px rgba(15, 23, 42, 0.28),
    0 0 0 2px rgba(132, 204, 22, 0.14);
}

.vista-nav-btn:active:not(:disabled) {
  transform: scale(0.95);
}

.vista-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.vista-step-dots {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
}

.vista-step-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.3);
  cursor: pointer;
  transition: all 0.22s ease;
}

.vista-step-dot.is-active {
  height: 18px;
  background: #84cc16;
}

/* Marco exterior titanio iPhone 15 Pro Max */
.iphone15pm-shell {
  position: relative;
  width: 378px;
  height: 776px;
  padding: 4px;
  border-radius: 58px;
  background: linear-gradient(145deg, #6e6c68 0%, #3a3937 25%, #1f1e1d 55%, #4a4845 85%, #75726d 100%);
  box-shadow:
    0 30px 70px -18px rgba(15, 23, 42, 0.45),
    0 12px 28px -10px rgba(15, 23, 42, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  user-select: none;
}

/* Botones físicos laterales */
.iphone15pm-btn {
  position: absolute;
  background: linear-gradient(180deg, #5a5854 0%, #2b2a28 50%, #52504c 100%);
  border-radius: 3px;
  z-index: 1;
}

.iphone15pm-btn-action {
  left: -3px;
  top: 122px;
  width: 3px;
  height: 30px;
  border-radius: 3px 0 0 3px;
}

.iphone15pm-btn-vol-up {
  left: -3px;
  top: 176px;
  width: 3px;
  height: 54px;
  border-radius: 3px 0 0 3px;
}

.iphone15pm-btn-vol-down {
  left: -3px;
  top: 244px;
  width: 3px;
  height: 54px;
  border-radius: 3px 0 0 3px;
}

.iphone15pm-btn-power {
  right: -3px;
  top: 198px;
  width: 3px;
  height: 82px;
  border-radius: 0 3px 3px 0;
}

/* Bisel negro ultrafino característico del 15 Pro Max */
.iphone15pm-bezel {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 8px;
  border-radius: 54px;
  background: #08080a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 2;
}

/* Pantalla frontal */
.iphone15pm-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 46px;
  background: #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Barra superior con Dynamic Island */
.iphone15pm-status-bar {
  position: relative;
  height: 46px;
  flex-shrink: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 22px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  z-index: 20;
}

.iphone15pm-time {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #0f172a;
  line-height: 1;
}

/* Dynamic Island */
.iphone15pm-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 98px;
  height: 27px;
  background: #000000;
  border-radius: 999px;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 9px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.iphone15pm-camera-lens {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2d4368 0%, #0d1321 60%, #05070c 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.iphone15pm-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.iphone15pm-signal {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 10px;
}

.iphone15pm-signal i {
  display: block;
  width: 2.5px;
  background: #0f172a;
  border-radius: 1px;
}

.iphone15pm-signal i:nth-child(1) { height: 4px; }
.iphone15pm-signal i:nth-child(2) { height: 6px; }
.iphone15pm-signal i:nth-child(3) { height: 8px; }
.iphone15pm-signal i:nth-child(4) { height: 10px; }

.iphone15pm-battery {
  position: relative;
  width: 21px;
  height: 11px;
  border: 1.4px solid rgba(15, 23, 42, 0.45);
  border-radius: 3.5px;
  padding: 1.5px;
  display: flex;
  align-items: center;
}

.iphone15pm-battery::after {
  content: "";
  position: absolute;
  right: -3.2px;
  top: 50%;
  transform: translateY(-50%);
  width: 1.8px;
  height: 4px;
  background: rgba(15, 23, 42, 0.45);
  border-radius: 0 1px 1px 0;
}

.iphone15pm-battery i {
  display: block;
  width: 100%;
  height: 100%;
  background: #0f172a;
  border-radius: 1.5px;
}

.iphone15pm-content {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  background: #ffffff;
  overflow: hidden;
  contain: layout paint;
}

.iphone15pm-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
  pointer-events: none;
  user-select: none;
}

/* Barra inferior Home Indicator */
.iphone15pm-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.22);
  z-index: 20;
  pointer-events: none;
}

.vista-owner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.1);
  color: #334155;
  font-size: 13.5px;
  line-height: 1.2;
}

.vista-owner-badge strong {
  color: #0f172a;
  font-weight: 700;
}

.vista-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  flex-shrink: 0;
}

/* Tablets y pantallas medianas */
@media (max-width: 1180px) {
  .vista-showcase {
    gap: 52px;
    padding: 40px 20px 16px;
  }

  .vista-nav-controls {
    right: -46px;
  }
}

/* Tablet y Móvil (<= 991px): puntos blancos interactivos y señalización encima de la vista en vivo */
@media (max-width: 991px) {
  .vista-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 14px 16px;
  }

  .vista-connectors-svg,
  .vista-cards-col--left,
  .vista-cards-col--right {
    display: none;
  }

  .vista-center-stage {
    order: 1;
    gap: 14px;
  }

  .vista-nav-controls {
    right: -50px;
  }

  .vista-anchor {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ffffff;
    color: #0f172a;
    border: 2px solid #84cc16;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.24);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    z-index: 18;
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  }

  .vista-anchor.is-active {
    background: #84cc16;
    color: #ffffff;
    border-color: #ffffff;
    transform: translate(-50%, -50%) scale(1.14);
    box-shadow: 0 0 0 4px rgba(132, 204, 22, 0.3), 0 4px 12px rgba(15, 23, 42, 0.28);
    z-index: 22;
  }

  .vista-live-callout {
    display: block !important;
    position: absolute;
    left: 12px;
    right: 12px;
    z-index: 28;
    background: #ffffff;
    color: #0f172a;
    border: 1.5px solid #84cc16;
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
    pointer-events: auto;
  }

  .vista-live-callout[hidden] {
    display: none !important;
  }

  .vista-live-callout.is-top {
    top: 10px;
    bottom: auto;
  }

  .vista-live-callout.is-bottom {
    bottom: 16px;
    top: auto;
  }

  .vista-live-callout-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
  }

  .vista-live-callout-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #84cc16;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .vista-live-callout-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    flex: 1;
    min-width: 0;
  }

  .vista-live-callout-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    flex-shrink: 0;
  }

  .vista-callout-nav,
  .vista-callout-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #f8fafc;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
  }

  .vista-callout-nav:hover,
  .vista-callout-close:hover {
    background: #e2e8f0;
  }

  .vista-live-callout-text {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.42;
    color: #334155;
  }
}

/* Móvil (<= 520px): escala GPU del iPhone y controles centrados debajo */
@media (max-width: 520px) {
  .vista-phone-wrap {
    flex-direction: column;
    width: 310px;
    height: auto;
    min-height: 636px;
    margin: 0 auto;
  }

  .vista-phone-wrap .iphone15pm-shell {
    position: relative;
    top: auto;
    left: auto;
    align-self: flex-start;
    transform: scale(0.82);
    transform-origin: top left;
    margin-bottom: -140px;
  }

  .vista-nav-controls {
    position: static;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin-top: 14px;
  }

  .vista-step-dots {
    flex-direction: row;
    padding: 0 6px;
  }

  .vista-step-dot.is-active {
    width: 18px;
    height: 8px;
  }
}

/* Móviles muy pequeños (<= 360px) */
@media (max-width: 360px) {
  .vista-phone-wrap {
    width: 272px;
    min-height: 558px;
  }

  .vista-phone-wrap .iphone15pm-shell {
    transform: scale(0.719);
    margin-bottom: -218px;
  }
}
