/* =========================================================
   PBTECH — HERO IPHONE 3D | v2.0.0
   Estilos completamente encapsulados dentro de #pb-iphone-hero.
   No depende del panel "CSS adicional" de WordPress.
   ========================================================= */

#pb-iphone-hero {
  --pbi-bg: #03050b;
  --pbi-panel: rgba(12, 18, 31, 0.66);
  --pbi-line: rgba(255, 255, 255, 0.11);
  --pbi-text: #f7f9ff;
  --pbi-soft: #aab5c9;
  --pbi-blue: #4ecbff;
  --pbi-purple: #8d7cff;
  --pbi-orange: #ff8b4d;

  position: relative;
  isolation: isolate;
  width: 100dvw !important;
  max-width: none !important;
  min-height: min(820px, calc(100svh - 66px));
  margin-right: calc(50% - 50dvw) !important;
  margin-left: calc(50% - 50dvw) !important;
  overflow: hidden;
  color: var(--pbi-text);
  background:
    radial-gradient(circle at 75% 42%, rgba(70, 92, 255, 0.16), transparent 31%),
    radial-gradient(circle at 58% 74%, rgba(0, 174, 255, 0.10), transparent 28%),
    linear-gradient(125deg, #02040a 0%, #050917 58%, #09051a 100%);
  font-family: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  contain: paint;
}

#pb-iphone-hero,
#pb-iphone-hero * {
  box-sizing: border-box;
}

#pb-iphone-hero a {
  color: inherit;
  text-decoration: none;
}

.pbi-hero__ambient {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 34%, #000 84%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 34%, #000 84%, transparent);
}

.pbi-hero__inner {
  width: min(calc(100% - 48px), 1400px);
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(54px, 7vw, 104px) 0 clamp(48px, 6vw, 84px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
  align-items: center;
  gap: clamp(32px, 5vw, 88px);
}

.pbi-hero__content {
  position: relative;
  z-index: 4;
  max-width: 650px;
  animation: pbi-content-in 0.78s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.pbi-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: #8ddcff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.18em;
}

.pbi-hero__eyebrow span {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pbi-blue), var(--pbi-purple));
  box-shadow: 0 0 14px rgba(78, 203, 255, 0.65);
}

.pbi-hero__content h1 {
  max-width: 720px;
  margin: 0;
  color: var(--pbi-text);
  font-size: clamp(58px, 6.2vw, 104px);
  font-weight: 760;
  line-height: 0.88;
  letter-spacing: -0.068em;
}

.pbi-hero__content h1 strong {
  display: block;
  margin-top: 14px;
  color: transparent;
  font-weight: inherit;
  background: linear-gradient(105deg, #ffffff 2%, #7dcfff 37%, #9787ff 69%, #ff9365 106%);
  -webkit-background-clip: text;
  background-clip: text;
}

.pbi-hero__lead {
  max-width: 590px;
  margin: 30px 0 0;
  color: var(--pbi-soft);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.65;
}

.pbi-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.pbi-button {
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pbi-button:hover,
.pbi-button:focus-visible {
  transform: translateY(-2px);
}

.pbi-button:focus-visible {
  outline: 2px solid #75d8ff;
  outline-offset: 3px;
}

.pbi-button--primary {
  color: #04101b !important;
  background: linear-gradient(105deg, #65dbff, #7399ff 58%, #a983ff);
  box-shadow: 0 14px 34px rgba(63, 145, 255, 0.25);
}

.pbi-button--primary:hover,
.pbi-button--primary:focus-visible {
  box-shadow: 0 18px 40px rgba(63, 145, 255, 0.36);
}

.pbi-button--secondary {
  color: #eef4ff !important;
  border-color: rgba(142, 177, 255, 0.28);
  background: rgba(9, 16, 30, 0.56);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pbi-button--secondary:hover,
.pbi-button--secondary:focus-visible {
  border-color: rgba(78, 203, 255, 0.48);
  background: rgba(14, 27, 49, 0.78);
}

.pbi-hero__assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 22px;
  margin: 26px 0 0;
  padding: 0;
  color: #c3ccdc;
  list-style: none;
  font-size: 12px;
  font-weight: 650;
}

.pbi-hero__assurances li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pbi-hero__assurances li span {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #72ddff;
  border: 1px solid rgba(78, 203, 255, 0.38);
  border-radius: 50%;
  background: rgba(35, 161, 255, 0.11);
  font-size: 11px;
}

.pbi-stage {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: clamp(540px, 48vw, 690px);
  overflow: hidden;
  border: 1px solid var(--pbi-line);
  border-radius: clamp(30px, 4vw, 54px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), transparent 35%),
    rgba(6, 10, 21, 0.58);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  animation: pbi-stage-in 0.9s 0.08s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.pbi-stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 17%;
  right: 17%;
  bottom: 12%;
  height: 34px;
  border-radius: 50%;
  background: rgba(27, 85, 160, 0.30);
  filter: blur(22px);
  pointer-events: none;
}

.pbi-stage__halo {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 52%;
  width: min(76%, 570px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 35%, rgba(255, 255, 255, 0.14), transparent 36%),
    radial-gradient(circle, rgba(97, 105, 255, 0.26), rgba(28, 125, 255, 0.09) 49%, transparent 71%);
  filter: blur(1px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pbi-stage__orbit {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 52%;
  width: 68%;
  aspect-ratio: 1;
  border: 1px solid rgba(113, 179, 255, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(68deg) rotateZ(-10deg);
  pointer-events: none;
}

.pbi-stage__orbit--two {
  width: 82%;
  border-color: rgba(150, 113, 255, 0.10);
  transform: translate(-50%, -50%) rotateX(72deg) rotateZ(24deg);
}

.pbi-stage__topline {
  position: absolute;
  z-index: 4;
  top: 22px;
  right: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.pbi-stage__status,
.pbi-stage__hint {
  min-height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c7d2e7;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(5, 10, 21, 0.56);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.pbi-stage__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #68dcff;
  box-shadow: 0 0 12px rgba(104, 220, 255, 0.9);
}

.pbi-stage__hint {
  color: #9aa8c1;
  letter-spacing: 0.04em;
  text-transform: none;
}

.pbi-stage__model {
  position: absolute;
  z-index: 2;
  inset: 44px 0 70px;
  width: 100%;
  height: auto;
  min-height: 0;
  background: transparent;
  cursor: grab;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition: opacity 0.55s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  --progress-bar-color: #5cd7ff;
  --progress-bar-height: 3px;
}

.pbi-stage__fallback {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 52%;
  width: min(72%, 520px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background: #ffffff;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.30),
    0 0 80px rgba(103, 104, 255, 0.16);
  transform: translate(-50%, -50%);
  transition: opacity 0.45s ease, transform 0.55s ease;
  pointer-events: none;
}

.pbi-stage__fallback img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pbi-stage__fallback.is-hidden {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
}

.pbi-stage__model:active {
  cursor: grabbing;
}

.pbi-stage__model.is-ready {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pbi-stage__model::part(default-progress-bar) {
  display: none;
}

.pbi-loader {
  position: absolute;
  z-index: 6;
  top: 50%;
  left: 50%;
  width: min(240px, 52%);
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  transform: translate(-50%, -50%);
  transition: opacity 0.28s ease;
}

.pbi-loader span {
  display: block;
  width: var(--pbi-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pbi-blue), var(--pbi-purple), var(--pbi-orange));
  box-shadow: 0 0 18px rgba(78, 203, 255, 0.6);
  transition: width 0.18s ease;
}

.pbi-loader.is-complete {
  opacity: 0;
  pointer-events: none;
}

.pbi-stage__controls {
  position: absolute;
  z-index: 5;
  right: 22px;
  bottom: 21px;
  left: 22px;
  display: flex;
  justify-content: center;
  gap: 9px;
}

.pbi-stage__controls button {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #dbe5f6;
  border: 1px solid rgba(129, 174, 255, 0.20);
  border-radius: 12px;
  background: rgba(5, 11, 24, 0.72);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.pbi-stage__controls button:hover,
.pbi-stage__controls button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(78, 203, 255, 0.48);
  background: rgba(12, 29, 53, 0.88);
}

.pbi-stage__controls button:focus-visible {
  outline: 2px solid #75d8ff;
  outline-offset: 2px;
}

.pbi-stage__instruction {
  position: absolute;
  z-index: 4;
  right: 20px;
  bottom: 72px;
  left: 20px;
  margin: 0;
  color: #8290a9;
  text-align: center;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.03em;
  pointer-events: none;
}

.pbi-stage__instruction span {
  margin-right: 5px;
  color: #61d7ff;
}

.pbi-stage__error {
  width: min(360px, calc(100% - 48px));
  margin: auto;
  padding: 18px;
  color: #d5deed;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(8, 13, 24, 0.82);
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
}

@keyframes pbi-content-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pbi-stage-in {
  from { opacity: 0; transform: translateY(28px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1120px) {
  .pbi-hero__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
    gap: 32px;
  }

  .pbi-hero__content h1 {
    font-size: clamp(54px, 7vw, 78px);
  }

  .pbi-stage {
    min-height: 570px;
  }
}

@media (max-width: 900px) {
  #pb-iphone-hero {
    min-height: 0;
  }

  .pbi-hero__inner {
    width: min(calc(100% - 32px), 720px);
    padding: 58px 0 44px;
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .pbi-hero__content {
    max-width: 680px;
    text-align: center;
  }

  .pbi-hero__eyebrow,
  .pbi-hero__actions,
  .pbi-hero__assurances {
    justify-content: center;
  }

  .pbi-hero__content h1 {
    font-size: clamp(60px, 11.6vw, 88px);
  }

  .pbi-hero__lead {
    margin-right: auto;
    margin-left: auto;
  }

  .pbi-stage {
    width: min(100%, 650px);
    min-height: 610px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  #pb-iphone-hero {
    width: 100vw !important;
    margin-right: calc(50% - 50vw) !important;
    margin-left: calc(50% - 50vw) !important;
    background:
      radial-gradient(circle at 50% 61%, rgba(70, 92, 255, 0.17), transparent 30%),
      linear-gradient(155deg, #02040a, #060919 60%, #09051a);
  }

  .pbi-hero__ambient {
    background-size: 52px 52px;
  }

  .pbi-hero__inner {
    width: calc(100% - 24px);
    padding: 42px 0 28px;
    gap: 30px;
  }

  .pbi-hero__eyebrow {
    margin-bottom: 16px;
    font-size: 10px;
  }

  .pbi-hero__content h1 {
    font-size: clamp(48px, 15.5vw, 68px);
    line-height: 0.91;
  }

  .pbi-hero__content h1 strong {
    margin-top: 9px;
  }

  .pbi-hero__lead {
    margin-top: 22px;
    padding: 0 8px;
    font-size: 15px;
    line-height: 1.58;
  }

  .pbi-hero__actions {
    margin-top: 25px;
    display: grid;
    grid-template-columns: 1fr;
  }

  .pbi-button {
    width: 100%;
    min-height: 52px;
  }

  .pbi-hero__assurances {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    font-size: 9px;
  }

  .pbi-hero__assurances li {
    flex-direction: column;
    gap: 6px;
    line-height: 1.25;
  }

  .pbi-stage {
    min-height: 500px;
    border-radius: 28px;
  }

  .pbi-stage__model {
    inset: 38px 0 76px;
  }

  .pbi-stage__fallback {
    width: min(78%, 390px);
  }

  .pbi-stage__topline {
    top: 15px;
    right: 15px;
    left: 15px;
  }

  .pbi-stage__status,
  .pbi-stage__hint {
    min-height: 28px;
    padding: 0 9px;
    font-size: 8px;
  }

  .pbi-stage__instruction {
    bottom: 70px;
    font-size: 9px;
  }

  .pbi-stage__controls {
    right: 14px;
    bottom: 15px;
    left: 14px;
  }
}

@media (max-width: 380px) {
  .pbi-stage {
    min-height: 460px;
  }

  .pbi-stage__hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pbi-hero__content,
  .pbi-stage {
    animation: none;
  }

  .pbi-stage__model,
  .pbi-button,
  .pbi-stage__controls button {
    transition-duration: 0.01ms !important;
  }
}

@supports not (width: 100dvw) {
  #pb-iphone-hero {
    width: 100vw !important;
    margin-right: calc(50% - 50vw) !important;
    margin-left: calc(50% - 50vw) !important;
  }
}
