/* Marco de celular realista (estilo iPhone / Dynamic Island) */

.phone-frame {
  --phone-metal-hi: #4a4260;
  --phone-metal-mid: #2a2438;
  --phone-metal-lo: #14101c;
  --phone-bezel: #050505;
  --phone-screen-w: 390px;
  --phone-screen-h: 844px;
  position: relative;
  flex-shrink: 0;
  width: fit-content;
  max-width: 100%;
  padding: 11px;
  border-radius: 52px;
  background:
    linear-gradient(
      152deg,
      var(--phone-metal-hi) 0%,
      var(--phone-metal-mid) 28%,
      #1c1728 62%,
      var(--phone-metal-lo) 100%
    );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 0 0 2px #0a0810,
    inset 0 1px 1px rgba(255, 255, 255, 0.28),
    inset 0 -2px 3px rgba(0, 0, 0, 0.5),
    0 18px 36px rgba(0, 0, 0, 0.22),
    0 40px 70px -18px rgba(0, 0, 0, 0.4);
}

.phone-frame__btn {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, #3a3348 0%, #1a1524 55%, #2c2638 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.35);
}

.phone-frame__btn--silent {
  left: -3px;
  top: 108px;
  width: 3px;
  height: 26px;
  border-radius: 2px 0 0 2px;
}

.phone-frame__btn--vol-up {
  left: -3px;
  top: 152px;
  width: 3px;
  height: 44px;
  border-radius: 2px 0 0 2px;
}

.phone-frame__btn--vol-down {
  left: -3px;
  top: 208px;
  width: 3px;
  height: 44px;
  border-radius: 2px 0 0 2px;
}

.phone-frame__btn--power {
  right: -3px;
  top: 176px;
  width: 3px;
  height: 68px;
  border-radius: 0 2px 2px 0;
}

.phone-frame__bezel {
  position: relative;
  padding: 3px;
  border-radius: 42px;
  background: var(--phone-bezel);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(0, 0, 0, 0.6);
}

.phone-frame__island {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 50;
  width: 102px;
  height: 30px;
  transform: translateX(-50%);
  border-radius: 20px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.phone-frame__island-camera {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #3a4a6a 0%, #1a2238 45%, #0a0e18 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.phone-frame__island-camera::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #4a6a9a 0%, #0d1424 70%);
}

.phone-frame__screen {
  position: relative;
  overflow: hidden;
  width: var(--phone-screen-w);
  height: var(--phone-screen-h);
  max-width: 100%;
  border-radius: 40px;
  background: #fff;
  isolation: isolate;
}

/* Misma “pantalla” en ambas demos: sin barras de scroll visibles */
.phone-frame__screen,
.phone-frame__screen * {
  scrollbar-width: none;
}

.phone-frame__screen::-webkit-scrollbar,
.phone-frame__screen *::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.phone-frame__home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 40;
  width: 108px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.phone-frame--light-indicator .phone-frame__home-indicator {
  background: rgba(255, 255, 255, 0.35);
}

/* Barra de estado: proveedor, señal, Wi‑Fi y batería */
.phone-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 18px 4px;
  min-height: 44px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #111;
  position: relative;
  z-index: 20;
  flex-shrink: 0;
  user-select: none;
  pointer-events: none;
}

.phone-status-bar__left,
.phone-status-bar__right {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.phone-status-bar__right {
  justify-content: flex-end;
}

.phone-status-bar__time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.phone-status-bar__carrier {
  font-weight: 600;
  white-space: nowrap;
}

.phone-status-bar__left i,
.phone-status-bar__right i {
  font-size: 0.85rem;
  line-height: 1;
}

.phone-status-bar__battery-level {
  font-variant-numeric: tabular-nums;
  font-size: 0.68rem;
  font-weight: 700;
}

.phone-status-bar__battery {
  position: relative;
  width: 22px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  opacity: 0.95;
  box-sizing: border-box;
}

.phone-status-bar__battery::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -4px;
  width: 2px;
  height: 5px;
  transform: translateY(-50%);
  border-radius: 0 1px 1px 0;
  background: currentColor;
}

.phone-status-bar__battery-fill {
  position: absolute;
  top: 1.5px;
  left: 1.5px;
  bottom: 1.5px;
  width: 68%;
  border-radius: 1px;
  background: currentColor;
}

.phone-status-bar--on-brand {
  color: #fff;
  background: transparent;
  padding: 14px 16px 0;
  min-height: 36px;
}

@media (max-width: 480px) {
  .phone-frame {
    width: 100%;
    max-width: 100%;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .phone-frame__btn,
  .phone-frame__island,
  .phone-frame__home-indicator {
    display: none;
  }

  .phone-frame__bezel {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .phone-frame__screen {
    border-radius: 0;
  }
}
