:root {
  --navy: #10234a;
  --navy-soft: #324669;
  --blue: #1f6bdb;
  --purple: #7a4ff5;
  --purple-dark: #6842e8;
  --mint: #62d8bc;
  --yellow: #ffd34e;
  --surface: #ffffff;
  --page: #f6f8fd;
  --line: #e7ebf4;
  --muted: #56698a;
  --shadow: 0 24px 70px rgba(44, 69, 120, .13);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* El header flotante queda sticky sobre cualquier sección a la que se
   navegue por ancla (nav, skip-link, CTA "Ver cómo funciona", etc.) —
   sin esto, el scroll deja el borde superior de la sección tapado
   detrás del header. */
[id] { scroll-margin-top: 110px; }
body {
  margin: 0;
  color: var(--navy);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; background: var(--navy); color: white; padding: 12px 18px; border-radius: 12px; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  width: min(1160px, calc(100% - 32px));
  margin: 14px auto 0;
  padding: 12px 14px 12px 22px;
  display: flex;
  align-items: center;
  gap: 28px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(223,228,241,.82);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(39,61,110,.10);
  backdrop-filter: blur(18px);
}
.brand img { width: 92px; height: 54px; object-fit: contain; }
.site-header nav { margin-left: auto; display: flex; gap: 26px; }
.site-header nav a { text-decoration: none; font-weight: 700; font-size: .94rem; color: var(--navy-soft); }
.site-header nav a:hover { color: var(--purple-dark); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 25px rgba(102,78,232,.25);
  transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 17px 34px rgba(102,78,232,.28); }
.button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.button-secondary { background: white; border-color: #d8deeb; color: var(--navy); box-shadow: none; }
.button-small { min-height: 42px; padding: 0 18px; border-radius: 13px; }

.hero {
  width: min(1240px, calc(100% - 40px));
  min-height: 760px;
  margin: 20px auto 0;
  padding: 95px 30px 70px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: 26px;
}
.hero-copy { max-width: 590px; padding-left: 12px; position: relative; z-index: 2; }
.eyebrow {
  margin: 0 0 12px;
  color: #317eec;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(3rem, 5.4vw, 5.55rem); line-height: .99; letter-spacing: -.058em; }
h2 { margin-bottom: 18px; font-size: clamp(2.05rem, 4vw, 3.75rem); line-height: 1.06; letter-spacing: -.045em; }
h3 { line-height: 1.2; letter-spacing: -.02em; }
.hero-lead { max-width: 570px; color: var(--navy-soft); font-size: 1.19rem; }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 31px; }
.microcopy { margin: 17px 0 0; color: var(--muted); font-size: .83rem; max-width: 510px; }

.hero-visual { position: relative; min-height: 650px; isolation: isolate; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 4% 0 0 5%;
  border-radius: 46% 54% 45% 55% / 56% 34% 66% 44%;
  background: radial-gradient(circle at 30% 24%, rgba(255,255,255,.92), transparent 25%), linear-gradient(145deg, #d8ecff, #dfd7ff 58%, #bff5e6);
  box-shadow: inset 0 0 80px rgba(255,255,255,.65), 0 35px 100px rgba(84,103,180,.20);
  z-index: -2;
}
.soft-orb { position: absolute; border-radius: 50%; filter: blur(3px); opacity: .78; z-index: -1; }
.orb-one { width: 190px; height: 190px; right: -10px; top: 30px; background: #bbf5e4; }
.orb-two { width: 145px; height: 145px; left: 5px; bottom: 45px; background: #e6d8ff; }
.phone { position: absolute; width: 284px; height: auto; border-radius: 40px; box-shadow: 0 28px 65px rgba(34,48,91,.28); border: 7px solid #152038; }
.phone-back { right: 38px; top: 63px; transform: rotate(7deg); }
.phone-front { left: 60px; top: 112px; transform: rotate(-7deg); z-index: 3; }
.mascot { position: absolute; width: 120px; height: auto; right: 8px; bottom: 8px; z-index: 5; border-radius: 26px; filter: drop-shadow(0 14px 20px rgba(44,79,128,.28)); }

.trust-strip {
  width: min(1150px, calc(100% - 40px));
  margin: -10px auto 0;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.trust-strip div { display: flex; align-items: center; gap: 11px; font-size: .91rem; }
.trust-strip span { display: grid; place-items: center; flex: 0 0 35px; height: 35px; border-radius: 50%; background: #edf5ff; color: var(--blue); font-weight: 900; }

.section { width: min(1150px, calc(100% - 40px)); margin: 0 auto; padding: 115px 0 0; }
.section-heading { max-width: 820px; margin-bottom: 44px; }
.section-heading.narrow { max-width: 760px; text-align: center; margin-left: auto; margin-right: auto; }
.section-heading > p:not(.eyebrow), .showcase-copy > p, .appointment-copy > p, .story-copy > p, .trust-section .section-heading > p { color: var(--muted); font-size: 1.08rem; }

.problem-grid, .steps, .benefit-grid, .trust-cards, .pricing-grid { display: grid; gap: 22px; }
.problem-grid { grid-template-columns: repeat(3, 1fr); }
.problem-grid article { min-height: 245px; padding: 30px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.problem-grid article:nth-child(2) { transform: translateY(18px); }
.problem-grid span { display: block; color: var(--purple); font-weight: 900; margin-bottom: 55px; }
.problem-grid h3 { font-size: 1.35rem; margin-bottom: 10px; }
.problem-grid p { color: var(--muted); margin-bottom: 0; }

.how-section { padding-top: 140px; }
.steps { grid-template-columns: repeat(3, 1fr); }
.step-card { position: relative; padding: 28px; min-height: 330px; background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step-card.featured { background: linear-gradient(145deg, #eef7ff, #eee9ff); border-color: #d7dcff; }
.step-number { position: absolute; top: 26px; right: 28px; color: #aab5c9; font-weight: 900; }
.step-icon { width: 84px; height: 84px; margin: 33px 0 48px; display: grid; place-items: center; border-radius: 24px; background: #f0edff; color: var(--purple); font-size: 2rem; font-weight: 900; }
.featured .step-icon { background: var(--purple); color: white; }
.step-card h3 { font-size: 1.65rem; margin-bottom: 10px; }
.step-card p { color: var(--muted); margin: 0; }

.feature-showcase { display: grid; grid-template-columns: .88fr 1.12fr; gap: 70px; align-items: center; padding: 64px; border-radius: 38px; background: linear-gradient(135deg, #e8f6ff, #f1edff 58%, #dff8ef); overflow: hidden; }
.showcase-copy { max-width: 490px; }
.check-list { margin: 29px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; list-style: none; }
.check-list li { position: relative; padding-left: 27px; font-weight: 750; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: #19ad82; }
.screen-stage { position: relative; min-height: 610px; display: grid; place-items: center; }
.screen-stage::before { content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: rgba(255,255,255,.62); }
.screen-stage img { position: relative; width: 320px; height: auto; max-height: 620px; object-fit: cover; object-position: top; border-radius: 41px; border: 7px solid #172239; box-shadow: 0 28px 60px rgba(39,52,91,.25); transform: rotate(4deg); }
.benefit-grid { grid-template-columns: repeat(4, 1fr); margin-top: 24px; }
.benefit-grid article { padding: 26px; background: white; border: 1px solid var(--line); border-radius: 25px; }
.benefit-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 35px; border-radius: 16px; font-size: 1.4rem; font-weight: 900; }
.lavender { background: #eee7ff; color: var(--purple); }
.mint { background: #ddf7ee; color: #11966f; }
.yellow { background: #fff4cc; color: #a77b00; }
.blue { background: #e1efff; color: #247fea; }
.benefit-grid h3 { font-size: 1.15rem; }
.benefit-grid p { color: var(--muted); margin: 0; font-size: .94rem; }

.appointment-section { display: grid; grid-template-columns: .92fr 1.08fr; gap: 84px; align-items: center; }
.appointment-visual { min-height: 650px; display: grid; place-items: center; border-radius: 40px; background: linear-gradient(155deg, #d8f4ee, #e1ecff 58%, #eee4ff); overflow: hidden; }
.appointment-visual img { width: 340px; height: auto; max-height: 610px; object-fit: cover; object-position: top; border: 7px solid #182239; border-radius: 42px; box-shadow: 0 30px 65px rgba(39,55,93,.24); transform: translateY(65px) rotate(-3deg); }
.appointment-copy { max-width: 520px; }
.mini-features { display: flex; flex-wrap: wrap; gap: 9px; margin: 28px 0; }
.mini-features span { padding: 10px 14px; border-radius: 999px; background: white; border: 1px solid var(--line); font-size: .9rem; font-weight: 750; }
.text-link { color: var(--purple-dark); font-weight: 850; text-decoration: none; }
.text-link span { display: inline-block; margin-left: 6px; transition: transform .18s ease; }
.text-link:hover span { transform: translateX(5px); }

.story-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.story-copy { max-width: 500px; }
.quote { margin-top: 30px; padding-left: 22px; border-left: 4px solid var(--mint); color: var(--navy) !important; font-size: 1.13rem !important; font-weight: 760; }
.video-card { padding: 14px; background: white; border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); }
.video-card video { width: 100%; max-height: 520px; border-radius: 20px; background: #dbe5f6; }

.trust-section { padding-bottom: 110px; }
.trust-cards { grid-template-columns: repeat(3, 1fr); }
.trust-cards article { padding: 30px; border-radius: 25px; background: white; border: 1px solid var(--line); }
.trust-cards span { width: 47px; height: 47px; display: grid; place-items: center; margin-bottom: 30px; border-radius: 15px; background: #e6f9f2; color: #139974; font-weight: 900; }
.trust-cards p { color: var(--muted); margin: 0; }

.pricing-section { width: 100%; max-width: none; padding: 105px max(20px, calc((100vw - 1150px) / 2)); background: #101f42; color: white; }
.pricing-section .eyebrow { color: #8dbfff; }
.pricing-section .section-heading > p:not(.eyebrow) { color: #b9c6dc; }
.pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.price-card { position: relative; padding: 34px; display: flex; flex-direction: column; background: white; color: var(--navy); border-radius: 28px; }
.price-card.popular { outline: 3px solid #8b70ff; transform: translateY(-10px); }
.popular-label { position: absolute; top: 0; right: 25px; transform: translateY(-50%); padding: 7px 13px; border-radius: 999px; background: var(--yellow); color: #463500; font-size: .75rem; font-weight: 900; }
.plan-name { margin-bottom: 18px; color: var(--purple-dark); font-weight: 900; font-size: 1.08rem; text-transform: uppercase; letter-spacing: .09em; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price strong { font-size: 2.8rem; line-height: 1; }
.price span { color: var(--muted); font-weight: 700; }
.annual { min-height: 35px; margin: 12px 0 24px; color: var(--muted); }
.price-card > p:not(.plan-name) { color: var(--muted); }
.price-card .button { margin-top: auto; }
.pricing-note { max-width: 850px; margin: 28px auto 0; color: #aebbd1; text-align: center; font-size: .83rem; }

.faq-section { padding-bottom: 110px; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { padding: 0 25px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.faq-list summary { position: relative; padding: 23px 45px 23px 0; cursor: pointer; list-style: none; font-weight: 800; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 17px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #f0edff; color: var(--purple); font-size: 1.35rem; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { max-width: 850px; padding: 0 0 22px; color: var(--muted); }

.download-section {
  width: min(1150px, calc(100% - 40px));
  min-height: 420px;
  margin: 0 auto 70px;
  padding: 58px 64px;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #ddecff, #eef0ff 52%, #d7f8ed);
  border-radius: 38px;
  overflow: hidden;
}
.download-section > div { position: relative; z-index: 2; }
.download-section h2 { max-width: 720px; }
.download-section p:not(.eyebrow) { color: var(--navy-soft); font-size: 1.06rem; }
.download-section > img { width: 150px; height: auto; align-self: end; margin-bottom: 30px; border-radius: 30px; filter: drop-shadow(0 18px 24px rgba(42,70,120,.22)); }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.store-button { width: 214px; padding: 0; display: block; border-radius: 14px; color: white; text-decoration: none; border: 2px solid transparent; overflow: hidden; transition: transform .18s ease; }
.store-button:hover { transform: translateY(-2px); }
.store-button.recommended-store { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,211,78,.22); }
.store-button img { width: 100%; height: auto; }

footer { padding: 40px max(20px, calc((100vw - 1150px) / 2)) 55px; display: grid; grid-template-columns: 140px 1fr auto; gap: 25px 40px; align-items: center; background: white; border-top: 1px solid var(--line); }
.footer-brand img { width: 100px; height: auto; }
footer p { max-width: 620px; margin: 0; color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.footer-links a { color: var(--navy-soft); font-size: .88rem; font-weight: 700; text-decoration: none; }
footer small { grid-column: 2 / -1; color: #96a3b8; }
.mobile-download { display: none; }

@media (max-width: 960px) {
  .site-header nav { display: none; }
  .site-header .button { margin-left: auto; }
  .hero { min-height: auto; padding-top: 70px; grid-template-columns: 1fr; }
  .hero-copy { max-width: 730px; }
  .hero-visual { min-height: 650px; max-width: 700px; width: 100%; margin: 0 auto; }
  .phone-front { left: 16%; }
  .phone-back { right: 13%; }
  .mascot { right: 1%; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .problem-grid, .steps, .trust-cards { grid-template-columns: 1fr; }
  .problem-grid article:nth-child(2), .price-card.popular { transform: none; }
  .problem-grid span { margin-bottom: 28px; }
  .feature-showcase, .appointment-section, .story-section { grid-template-columns: 1fr; }
  .screen-stage { min-height: 580px; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .appointment-copy, .story-copy { max-width: 760px; }
  .appointment-visual { order: 2; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { min-height: 360px; }
  .download-section { grid-template-columns: 1fr; padding-bottom: 36px; }
  .download-section > img { justify-self: center; margin-bottom: 0; }
  footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  footer small { grid-column: auto; }
}

@media (max-width: 620px) {
  body { padding-bottom: 72px; }
  .site-header { top: 8px; width: calc(100% - 20px); margin-top: 8px; padding: 8px 10px 8px 14px; border-radius: 18px; }
  .brand img { width: 74px; height: 44px; }
  .site-header .button { display: none; }
  .hero { width: calc(100% - 28px); padding: 60px 0 25px; }
  h1 { font-size: clamp(2rem, 9vw, 2.75rem); }
  h2 { font-size: 2.25rem; }
  .hero-lead { font-size: 1.04rem; }
  .hero-actions { display: grid; }
  .hero-visual { min-height: 480px; }
  .hero-visual::before { inset: 6% 0 0; }
  .phone { width: 205px; border-width: 5px; border-radius: 30px; }
  .phone-front { left: 5%; top: 90px; }
  .phone-back { right: 5%; top: 52px; }
  .mascot { width: 92px; right: 4%; bottom: 6px; }
  .trust-strip { width: calc(100% - 28px); grid-template-columns: 1fr; }
  .section { width: calc(100% - 28px); padding-top: 85px; }
  .section-heading { margin-bottom: 30px; }
  .problem-grid article, .step-card { min-height: auto; }
  .feature-showcase { padding: 34px 22px; border-radius: 28px; }
  .check-list { grid-template-columns: 1fr; }
  .screen-stage { min-height: 470px; }
  .screen-stage::before { width: 330px; height: 330px; }
  .screen-stage img { width: 245px; max-height: 470px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .appointment-section, .story-section { gap: 38px; }
  .appointment-visual { min-height: 500px; }
  .appointment-visual img { width: 255px; max-height: 470px; }
  .trust-section { padding-bottom: 80px; }
  .pricing-section { padding-top: 80px; padding-bottom: 80px; }
  .price-card { min-height: 340px; }
  .download-section { width: calc(100% - 28px); min-height: 0; padding: 38px 24px; border-radius: 30px; }
  .download-section h2 { font-size: 2.35rem; }
  .store-buttons { display: grid; }
  .store-button { width: 100%; max-width: 290px; }
  .download-section > img { width: 120px; margin-top: 26px; }
  footer { padding-bottom: 40px; }
  .mobile-download { position: fixed; left: 14px; right: 14px; bottom: 10px; z-index: 60; min-height: 54px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, var(--blue), var(--purple)); color: white; text-decoration: none; font-weight: 900; box-shadow: 0 12px 34px rgba(69,69,150,.34); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
