/* Teléfono CSS 3D inspirado en la referencia del usuario.
   Todo queda limitado al encabezado: no altera las apps ni las demás secciones. */
.hero {
  background:
    radial-gradient(40% 62% at 78% 44%, rgba(169, 217, 196, .48), transparent 72%),
    radial-gradient(42% 60% at 12% 10%, rgba(255, 253, 250, .35), transparent 75%),
    #DDEFE6;
}
.hero .hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .85fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
  padding-top: calc(var(--nav-h) + 2.5rem);
  padding-bottom: 3rem;
}
.hero-intro { min-width: 0; }
.hero .profile-lockup { gap: 1.25rem; margin-bottom: 1.75rem; }
.hero .profile-lockup > img { width: 76px; height: 76px; border-radius: 16px; flex: none; }
.hero h1 { font-size: var(--heading-brand-size); text-shadow: none; }
.hero .hero-copy { max-width: 34rem; font-size: clamp(1.05rem, 1.4vw, 1.3rem); }
.hero .hero-actions { margin-top: 1.75rem; }
.hero-whatsapp svg { width: 20px; height: 20px; flex: none; }
.hero .hero-featured { gap: .6rem; }
.hero .hero-featured-label { flex-basis: 100%; }
.hero .hero-feature { flex-wrap: wrap; }

.hero-phone {
  position: relative;
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #1F1E1C;
}
.hero-phone-heading { display: grid; gap: .2rem; margin-bottom: 1.1rem; }
.hero-phone-heading a { font-size: 1rem; font-weight: 780; text-decoration: none; }
.hero-phone-heading a:hover { color: #356B58; }
.hero-phone-heading > span { font-size: .78rem; color: #40574C; }
.hero-phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  perspective: 1500px;
  padding: 3rem 1rem 3rem;
}
.hero-phone-stage::before {
  content: "";
  position: absolute;
  width: 85%;
  height: 80%;
  top: 8%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(120, 186, 160, .27), transparent 68%);
  pointer-events: none;
}
.hero-phone-stage::after {
  content: "";
  position: absolute;
  bottom: .35rem;
  width: 66%;
  height: 24px;
  border-radius: 50%;
  background: rgba(34, 56, 45, .16);
  filter: blur(12px);
  pointer-events: none;
}
.hero-phone-rig {
  position: relative;
  z-index: 1;
  width: clamp(200px, 17vw, 236px);
  transform-style: preserve-3d;
  transform: rotateX(var(--phone-x, 6deg)) rotateY(var(--phone-y, -10deg)) rotateZ(30deg);
  transition: transform .18s cubic-bezier(.16, 1, .3, 1);
}
.hero-phone-body {
  position: relative;
  padding: 8px;
  border: 1px solid #535F59;
  border-radius: 38px;
  background: linear-gradient(145deg, #53645B 0%, #202D26 36%, #111A15 66%, #586C60 100%);
  box-shadow:
    -16px 24px 42px rgba(28, 45, 35, .22),
    inset 0 1px 1px rgba(255, 253, 250, .65),
    inset 0 -1px 2px rgba(0, 0, 0, .6);
  transform-style: preserve-3d;
}
.hero-phone-body::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid #66766D;
  background: linear-gradient(90deg, #708176, #26362B 70%, #52645A);
  transform: translateZ(-9px) translateX(6px) translateY(3px);
}
.hero-phone-screen {
  position: relative;
  aspect-ratio: 9 / 20;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .8);
  border-radius: 29px;
  background: #F4F8FB;
  transform: translateZ(1px);
}
.hero-phone-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.hero-phone-camera {
  position: absolute;
  z-index: 2;
  top: 2px;
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  border: 1px solid #4B5C52;
  border-radius: 50%;
  background: #101713;
}
.hero-phone-hardware {
  position: absolute;
  left: -4px;
  top: 104px;
  width: 3px;
  height: 32px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(#84958A, #3A4D40);
  box-shadow: 0 42px 0 #485D4F;
}
.hero-phone-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: .3rem; }
.hero-phone-controls button {
  min-height: 44px;
  padding: .4rem .85rem;
  border: 1px solid #5E806D;
  border-radius: 999px;
  background: #EFF6F1;
  color: #356B58;
  font: inherit;
  font-size: .82rem;
  font-weight: 720;
  cursor: pointer;
}
.hero-phone-controls button:hover { background: #DDEFE6; }
.hero-phone-controls button[aria-pressed="true"] { color: #FFFDFA; background: #4F7868; border-color: #4F7868; }
.hero-phone-controls button[aria-pressed="true"]:hover { background: #426757; }
.hero-phone :focus-visible { outline: 3px solid #356B58; outline-offset: 4px; }
.hero-phone-caption { margin: .7rem 0 0; max-width: 28rem; min-height: 1.6em; font-size: .8rem; color: #40574C; }

@media (min-width: 761px) and (max-height: 760px) {
  .hero .hero-shell { padding-top: calc(var(--nav-h) + 1.75rem); padding-bottom: 2rem; }
  .hero-phone-rig { width: 190px; }
  .hero-phone-heading { margin-bottom: .7rem; }
  .hero-phone-stage { padding-top: 2rem; padding-bottom: 2.25rem; }
  .hero h1 { font-size: var(--heading-brand-size); }
}
@media (max-width: 1100px) {
  .hero .hero-shell { grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 2rem; }
  .hero .profile-lockup { gap: .9rem; }
  .hero .profile-lockup > img { width: 60px; height: 60px; border-radius: 13px; }
}
@media (max-width: 980px) {
  .hero .hero-shell { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; padding-top: calc(var(--nav-h) + 2rem); padding-bottom: 2.5rem; }
  .hero .hero-copy { max-width: 100%; }
  .hero .hero-feature { flex: 1 1 100%; }
  .hero-phone-rig { width: clamp(146px, calc(50vw - 18px), 236px); }
  .hero-phone-heading { margin-bottom: .6rem; }
  .hero-phone-stage { padding-inline: .5rem; }
  .hero-phone-caption { max-width: 100%; }
}
@media (max-width: 360px) {
  .hero .profile-lockup > img { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-phone-rig { transition: none; }
}
@media (prefers-contrast: more) {
  .hero-phone-controls button { border-color: #356B58; }
}
