body.home-page {
  background: #070706;
  color: #f2f2f2;
  overflow-x: hidden;
}

.home-page .site-header,
.home-page .site-header.is-scrolled {
  background: rgba(7, 7, 6, 0.78);
  border-bottom-color: rgba(242, 242, 242, 0.06);
  box-shadow: none;
  color: #f2f2f2;
}

.home-page .brand,
.home-page .site-nav a:not(.btn) { color: rgba(242, 242, 242, 0.72); }
.home-page .site-nav a:not(.btn):hover { color: #f2f2f2; }
.home-page .nav-toggle span { background: #f2f2f2; }
.home-page .brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
}
.home-page .brand-mark img { width: 24px; height: 24px; }

.home-page .btn-primary { background: #f2f2f2; color: #111; }
.home-page .btn-primary:hover { background: #fff; }
.home-page .btn-secondary {
  border-color: rgba(242, 242, 242, 0.18);
  color: #f2f2f2;
  background: transparent;
}
.home-page .btn-secondary:hover { background: rgba(242, 242, 242, 0.06); }

.home-kicker {
  margin: 0;
  color: #e5415f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 3rem;
  background:
    radial-gradient(700px 420px at 80% 10%, rgba(229, 65, 95, 0.16), transparent 60%),
    radial-gradient(520px 320px at 10% 90%, rgba(238, 217, 255, 0.08), transparent 55%),
    #070706;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.home-hero h1 {
  margin: 0.45rem 0 0;
  max-width: 10ch;
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.home-hero h1 em { font-style: italic; color: #e5415f; }

.home-lede {
  max-width: 38ch;
  margin-top: 1.1rem;
  color: #a1a1aa;
  font-size: 1.12rem;
}

.home-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

.section-block { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-block h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4.6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.section-block h2 span { color: #a1a1aa; font-weight: 500; }
.section-lead {
  max-width: 620px;
  margin: 1rem 0 0;
  color: #a1a1aa;
  font-size: 1.05rem;
  white-space: pre-line;
}

.motion-grid { display: grid; gap: 1rem; margin-top: 1.6rem; }
.motion-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.motion-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.motion-card {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid rgba(242, 242, 242, 0.08);
  background: linear-gradient(180deg, rgba(242, 242, 242, 0.05), rgba(242, 242, 242, 0.015));
  padding: 8px;
}

.motion-frame {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(242, 242, 242, 0.04);
  background: #0e0c0b;
  aspect-ratio: 588 / 334;
}

.motion-frame.short { aspect-ratio: 381 / 190; }
.motion-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.motion-body { display: flex; gap: 0.85rem; padding: 1.05rem 0.7rem 0.85rem; }
.motion-index {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(242, 242, 242, 0.12);
  background: rgba(242, 242, 242, 0.06);
  font-size: 0.82rem;
  font-weight: 600;
}
.motion-body h3 { margin: 0; font-size: 1.12rem; letter-spacing: -0.02em; }
.motion-body p { margin: 0.3rem 0 0; color: #a1a1aa; font-size: 0.92rem; }

.check-list { margin: 0.7rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.35rem; }
.check-list li { color: #d4d4d8; font-size: 0.9rem; }
.check-list li::before { content: "✓  "; color: #e5415f; }

.phone-caption { margin: 0.8rem 0 0; text-align: center; color: #71717a; font-size: 0.8rem; }

.device-stage { display: grid; justify-items: center; }
.device {
  width: 300px;
  height: 600px;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45));
}
.device-flat { width: 270px; height: 560px; }
.device-shell {
  height: 100%;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(160deg, #6e6e73, #1c1c1e 28%, #0a0a0a 70%, #3a3a3c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.device-screen {
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #efe7de;
  display: flex;
  flex-direction: column;
  position: relative;
}
.device-island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 104px;
  height: 20px;
  transform: translateX(-50%);
  background: #0c0c0c;
  border-radius: 20px;
  z-index: 3;
}
.wa-top {
  margin-top: 28px;
  background: #075e54;
  color: white;
  padding: 8px 12px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wa-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.wa-avatar img { width: 20px; height: 20px; }
.wa-top strong { display: block; font-size: 0.92rem; line-height: 1.1; }
.wa-top small { display: flex; align-items: center; gap: 0.3rem; opacity: 0.85; font-size: 0.68rem; }
.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7dffb3;
  animation: blink 2.4s infinite;
}
.chat-thread {
  flex: 1;
  overflow: auto;
  padding: 12px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #efe7de;
}
.bubble {
  max-width: 88%;
  padding: 7px 9px 4px 10px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #111;
  animation: pop-in 0.35s ease;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
}
.bubble p { margin: 0; }
.bubble time { display: flex; justify-content: flex-end; gap: 3px; margin-top: 2px; font-size: 0.62rem; color: #667781; }
.bubble-out { align-self: flex-end; background: #d9fdd3; border-bottom-right-radius: 3px; }
.bubble-in { align-self: flex-start; background: white; border-bottom-left-radius: 3px; }
.ticks { color: #53bdeb; letter-spacing: -0.12em; }
.choice-row { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 4px; }
.choice-row span {
  background: white;
  color: #075e54;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 600;
}
.typing-bubble { align-self: flex-start; display: flex; gap: 4px; background: white; border-radius: 14px; padding: 10px 12px; }
.typing-bubble span { width: 6px; height: 6px; border-radius: 50%; background: #8d979e; animation: typing 1s infinite; }
.typing-bubble span:nth-child(2) { animation-delay: 0.15s; }
.typing-bubble span:nth-child(3) { animation-delay: 0.3s; }
.wa-compose { display: flex; gap: 6px; padding: 8px; background: #f0ebe4; }
.composer-text { flex: 1; min-height: 34px; border-radius: 18px; background: white; padding: 8px 12px; font-size: 0.78rem; color: #111; }
.composer-text:empty::before { content: "Mensaje"; color: #8696a0; }
.composer-send { width: 34px; height: 34px; border-radius: 50%; background: #075e54; display: grid; place-items: center; flex: none; }

.stage {
  position: relative;
  margin-top: 1.8rem;
  border-radius: 28px;
  border: 1px solid rgba(242, 242, 242, 0.08);
  background:
    radial-gradient(500px 220px at 50% 30%, rgba(229, 65, 95, 0.18), transparent 70%),
    #0e0c0b;
  padding: 1.2rem 1rem 1.4rem;
}
.story-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1rem; align-items: center; }
.story-tabs { display: grid; gap: 0.5rem; }
.story-tab {
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(242, 242, 242, 0.1);
  background: rgba(242, 242, 242, 0.03);
  color: white;
  padding: 0.9rem 1rem;
  cursor: pointer;
}
.story-tab b { display: block; }
.story-tab span { display: block; margin-top: 0.2rem; color: #a1a1aa; font-size: 0.8rem; }
.story-tab[aria-pressed="true"] { background: #f2f2f2; color: #111; }
.story-tab[aria-pressed="true"] span { color: #52525b; }
.story-stage { position: relative; min-height: 620px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; justify-items: center; }
.story-arc { position: absolute; left: 10%; right: 10%; top: 16%; width: 80%; height: 160px; pointer-events: none; }
.story-arc path { fill: none; stroke: rgba(229, 65, 95, 0.9); stroke-width: 2.5; stroke-dasharray: 7 9; }
.phone-label { margin: 0.55rem 0 0; text-align: center; color: #a1a1aa; font-size: 0.82rem; }
.bridge-card {
  position: absolute;
  z-index: 5;
  width: 176px;
  min-height: 70px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.7rem;
  border-radius: 16px;
  background: #fff;
  color: #111;
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: 0 16px 40px rgba(229, 65, 95, 0.35);
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.home-page .faq-item { background: rgba(242, 242, 242, 0.04); border-color: rgba(242, 242, 242, 0.1); color: #f2f2f2; }
.home-page .faq-item p { color: #d4d4d8; }
.home-page .faq-item a { color: #fff; text-decoration: underline; }

.home-final { text-align: center; padding: clamp(4rem, 8vw, 6rem) 0 5rem; }
.home-final h2 {
  margin: 0 auto;
  max-width: 14ch;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  letter-spacing: -0.05em;
  line-height: 0.96;
  font-weight: 800;
}
.home-final p { color: #a1a1aa; margin-top: 0.8rem; }

.hello-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 54px;
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  border-radius: 999px;
  background: #f2f2f2;
  color: #111;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.hello-float i {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  font-style: normal;
}

@keyframes pop-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes typing { 40% { transform: translateY(-3px); opacity: 1; } }
@keyframes blink { 70% { box-shadow: 0 0 0 7px rgba(125, 255, 179, 0); } }

@media (max-width: 1100px) {
  .home-page .nav-toggle { display: block; }
  .home-page .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 40;
    background: #111;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
  }
  .home-page .site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .home-page .header-cta { width: 100%; margin-top: 0.4rem; }
  .motion-grid.four { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .home-hero-grid,
  .motion-grid.three,
  .story-layout,
  .story-stage { grid-template-columns: 1fr; }
  .home-hero h1 { max-width: none; }
  .story-stage { min-height: auto; gap: 1.2rem; }
  .story-arc { display: none; }
  .motion-grid.four { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .bubble, .online-dot, .typing-bubble span { animation: none; }
}
