/* ─── TOKENS ─── */
:root {
  --navy:       #0B2447;
  --navy-light: #19376D;
  --accent:     #E8A838;
  --accent-dim: #F5D087;
  --wa-green:   #25D366;
  --wa-dark:    #128C7E;
  --bg:         #FAFAF8;
  --surface:    #FFFFFF;
  --border:     #E8E8E3;
  --text:       #0D1117;
  --muted:      #6B7280;
  --danger:     #EF4444;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.14), 0 4px 16px rgba(0,0,0,.08);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
details summary { cursor: pointer; list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* ─── LAYOUT ─── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 760px; }

/* ─── TYPOGRAPHY ─── */
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 700; line-height: 1.3; }
p  { line-height: 1.65; }

em { font-style: italic; color: var(--accent); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 100px;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), opacity .18s;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); opacity: .9; }

.btn--whatsapp {
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 4px 18px rgba(37,211,102,.35);
}
.btn--whatsapp:hover { box-shadow: 0 8px 28px rgba(37,211,102,.45); }

.btn--sm  { font-size: .875rem; padding: 9px 18px; }
.btn--lg  { font-size: 1rem;    padding: 14px 28px; }
.btn--xl  { font-size: 1.1rem;  padding: 18px 36px; }

/* ─── SECTION BASE ─── */
.section { padding: 100px 0; }
.section--light { background: #F4F4EF; }
.section--dark  { background: var(--navy); color: #fff; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2  { margin-bottom: 12px; }
.section-sub { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

.section-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy-light);
  background: rgba(11,36,71,.08);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section--dark .section-tag,
.section-tag--light {
  color: var(--accent);
  background: rgba(232,168,56,.15);
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,250,248,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.nav.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.logo-mark {
  width: 32px; height: 32px;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: 0;
}

/* ─── HERO ─── */
.hero {
  min-height: 100svh;
  padding: 120px 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(232,168,56,.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.badge {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero__headline { margin-bottom: 20px; color: var(--navy); }

.hero__sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 48px;
}

.hero__trust {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 500;
}

.hero__brands { margin-top: 0; }

.brand-label {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
  display: block;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.brands-row { display: flex; gap: 8px; flex-wrap: wrap; }

.brand-pill {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy-light);
  background: rgba(11,36,71,.07);
  padding: 4px 14px;
  border-radius: 100px;
  border: 1px solid rgba(11,36,71,.12);
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--muted);
  margin-top: 48px;
  padding-left: 24px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ─── PHONE MOCKUP ─── */
.hero__phone {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  width: 300px;
  background: #1C1C1E;
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 32px 80px rgba(0,0,0,.4),
    0 8px 24px rgba(0,0,0,.2);
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 5px;
  background: #333;
  border-radius: 100px;
}

.phone-screen {
  background: #E5DDD5;
  border-radius: 32px;
  overflow: hidden;
  margin-top: 10px;
}

.chat-header {
  background: #075E54;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 36px; height: 36px;
  background: var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--navy);
  font-size: .95rem;
  flex-shrink: 0;
}

.chat-info { display: flex; flex-direction: column; }
.chat-name  { font-size: .9rem; font-weight: 700; color: #fff; line-height: 1; }
.chat-status { font-size: .7rem; color: rgba(255,255,255,.7); margin-top: 2px; }

.chat-body {
  padding: 12px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 260px;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23b3b3b3' fill-opacity='0.06'%3E%3Cpath d='M20 0l20 20-20 20L0 20z'/%3E%3C/g%3E%3C/svg%3E");
}

.bubble {
  max-width: 84%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: .82rem;
  line-height: 1.45;
  word-break: break-word;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
}
.bubble.visible {
  opacity: 1;
  transform: translateY(0);
}

.bubble--in {
  background: #fff;
  align-self: flex-start;
  border-top-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.bubble--out {
  background: #DCF8C6;
  align-self: flex-end;
  border-top-right-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
}
.typing-indicator span {
  width: 6px; height: 6px;
  background: var(--muted);
  border-radius: 50%;
  animation: typing 1.2s ease-in-out infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: .2s; }
.typing-indicator span:nth-child(3) { animation-delay: .4s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(1); opacity: .5; }
  40%           { transform: scale(1.3); opacity: 1; }
}

/* ─── PAIN GRID ─── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pain-icon { font-size: 2.2rem; margin-bottom: 16px; }
.pain-card h3 { margin-bottom: 10px; }
.pain-card p  { color: var(--muted); font-size: .95rem; }

/* ─── STEPS ─── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
}

.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  align-items: start;
}

.step__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
  padding-top: 4px;
}

.step__content h3 { margin-bottom: 8px; }
.step__content p  { color: var(--muted); }

.step-connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin-left: 35px;
}

/* ─── TECH SECTION ─── */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.section--dark h2 { color: #fff; }
.section--dark p  { color: rgba(255,255,255,.75); }

.tech-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tech-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .95rem;
  color: rgba(255,255,255,.85);
}

.tech-list svg {
  width: 18px; height: 18px;
  stroke: var(--wa-green);
  flex-shrink: 0;
}

/* Prediction Card */
.prediction-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.pred-header {
  background: rgba(255,255,255,.06);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.pred-label { font-size: .78rem; color: rgba(255,255,255,.6); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.pred-badge {
  font-size: .7rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--navy);
  padding: 2px 8px;
  border-radius: 100px;
}

.pred-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }

.pred-baby { display: flex; flex-direction: column; gap: 2px; }
.pred-name  { font-weight: 700; color: #fff; font-size: 1rem; }
.pred-talla { font-size: .82rem; color: rgba(255,255,255,.55); }

.pred-bar-wrap { display: flex; flex-direction: column; gap: 6px; }

.pred-bar {
  height: 8px;
  background: rgba(255,255,255,.1);
  border-radius: 100px;
  position: relative;
  overflow: visible;
}

.pred-fill {
  height: 100%;
  background: var(--danger);
  border-radius: 100px;
  transition: width 1s var(--ease-out);
}

.pred-alert-mark {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid rgba(239,68,68,.4);
  box-shadow: 0 0 0 4px rgba(239,68,68,.15);
  animation: pulse-danger 1.5s ease-in-out infinite;
}

@keyframes pulse-danger {
  0%, 100% { box-shadow: 0 0 0 4px rgba(239,68,68,.15); }
  50%       { box-shadow: 0 0 0 8px rgba(239,68,68,.05); }
}

.pred-labels {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: rgba(255,255,255,.45);
}
.pred-warning { color: #FCA5A5; font-weight: 600; }

.pred-message {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.05);
  border-left: 3px solid var(--accent);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.55;
}
.pred-message strong { color: #fff; }

.pred-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.pred-btn {
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  transition: opacity .15s;
}
.pred-btn:hover { opacity: .85; }
.pred-btn--yes { background: var(--wa-green); color: #fff; }
.pred-btn--no  { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }

/* ─── BENEFITS ─── */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.benefit-icon { font-size: 1.8rem; margin-bottom: 14px; }
.benefit-card h4 { margin-bottom: 8px; }
.benefit-card p  { font-size: .9rem; color: var(--muted); }

/* ─── TESTIMONIALS ─── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial__stars { color: var(--accent); font-size: 1rem; letter-spacing: 2px; }
.testimonial p { color: var(--muted); font-size: .95rem; font-style: italic; flex: 1; }

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.author-avatar {
  width: 40px; height: 40px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

.testimonial__author strong { display: block; font-size: .9rem; }
.testimonial__author span   { font-size: .78rem; color: var(--muted); }

/* ─── FAQ ─── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.faq-item[open] { box-shadow: var(--shadow-md); }

.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: .98rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .25s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.65;
}

/* ─── CTA FINAL ─── */
.cta-final {
  background: linear-gradient(135deg, var(--navy) 0%, #1a4a8a 100%);
  color: #fff;
  text-align: center;
  padding: 120px 0;
}

.cta-final__inner h2 { color: #fff; margin-bottom: 16px; }
.cta-final__inner p  { color: rgba(255,255,255,.7); font-size: 1.1rem; margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-legal { font-size: .8rem; color: rgba(255,255,255,.4); margin-top: 20px; margin-bottom: 0; }
.cta-legal a { color: rgba(255,255,255,.6); text-decoration: underline; }

/* ─── FOOTER ─── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.55);
  padding: 48px 0 32px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer__brand .logo-mark { background: rgba(255,255,255,.1); color: #fff; }
.footer__brand .logo-text { color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer__brand p { font-size: .85rem; max-width: 300px; }

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__links a {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  transition: color .15s;
}
.footer__links a:hover { color: #fff; }

.footer__legal { font-size: .75rem; color: rgba(255,255,255,.3); }

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .6s var(--ease-out),
    transform .6s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero__grid      { grid-template-columns: 1fr; }
  .hero__phone     { display: none; }
  .hero__sub       { max-width: 100%; }
  .hero__actions   { align-items: center; }
  .hero__headline  { text-align: center; }
  .hero__brands    { text-align: center; }
  .hero__brands .brands-row { justify-content: center; }
  .badge           { display: block; text-align: center; }

  .pain-grid          { grid-template-columns: 1fr; }
  .benefits-grid      { grid-template-columns: 1fr 1fr; }
  .testimonials-grid  { grid-template-columns: 1fr; }
  .tech-grid          { grid-template-columns: 1fr; }
  .tech-grid .tech__visual { display: none; }
}

@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 44px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .steps { gap: 0; }
  .hero { padding: 100px 0 60px; }
  .hero__headline { text-align: left; }
  .hero__actions  { align-items: flex-start; }
  .badge          { text-align: left; display: inline-block; }
  .hero__brands   { text-align: left; }
  .hero__brands .brands-row { justify-content: flex-start; }
}
