/* Selector de cartas: el contenedor y el teléfono comparten un máximo de 390px. */
#simulator-host {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.hero-phone-selector {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
  max-width: 390px;
  margin: 0 auto 12px;
  text-align: center;
}

.hero-phone-selector p {
  margin: 0;
  color: #78716c;
  font-size: 13px;
  font-weight: 700;
}

.hero-phone-selector__segments {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 100%;
  max-width: 390px;
  margin-left: auto;
  margin-right: auto;
  padding: 4px;
  border: 1px solid #e4dfd7;
  border-radius: 999px;
  background: #efece6;
}

.hero-phone-selector button {
  box-sizing: border-box;
  display: block;
  min-width: 0;
  padding: 8px 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #756b62;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.hero-phone-selector button:hover { color: #1c1917; }
.hero-phone-selector button:active { transform: scale(.98); }
.hero-phone-selector button.is-active {
  background: #fff;
  color: #1c1917;
  box-shadow: 0 2px 8px rgba(28, 25, 23, .1);
}

.hero-phone-chassis {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 390px;
  height: 692px;
  margin-left: auto;
  margin-right: auto;
  padding: 8px;
  background-color: #141416;
  border: none !important;
  outline: none !important;
  border-radius: 38px;
  box-shadow: 0 20px 50px rgba(28, 25, 23, .16);
  overflow: hidden;
  transition: opacity .2s ease, transform .2s ease;
}

.hero-phone-chassis.is-fading {
  opacity: .28;
  transform: scale(.985);
  animation: sim-morph .2s ease both;
}

.hero-phone-screen {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  background-color: #141416;
  border: none !important;
  outline: none !important;
  border-radius: 30px !important;
  box-shadow: none !important;
  overflow: hidden !important;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.hero-phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  box-shadow: inset 0 0 0 2px #141416;
  pointer-events: none;
  z-index: 50;
}

#hero-phone-iframe,
.hero-phone-chassis iframe {
  position: relative;
  z-index: 0;
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: #141416 !important;
  border: none !important;
  outline: none !important;
  border-radius: 30px !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

.hero-phone-open {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 12px auto 0;
  color: #b83d1b;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.hero-phone-open:hover { text-decoration: underline; }

@keyframes sim-morph {
  from { opacity: .28; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 767px) {
  .hero-phone-selector p { font-size: 12px; }
  .hero-phone-selector button { padding: 8px 4px; font-size: 9px; }
  .hero-phone-chassis { width: 100%; max-width: 390px; height: 692px; padding: 8px; border-radius: 38px; }
}

@media (max-width: 380px) {
  .hero-phone-selector button { padding-inline: 2px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-phone-selector button,
  .hero-phone-chassis { transition: none; }
}
