/* Home comercial: composición, jerarquía y adaptación mobile. */
.home {
  --bg: #fafaf7;
  --fg: #142543;
  --muted: #47566d;
  --muted2: #596880;
  --line: #d5ddea;
  --accent: #2459e0;
  --solucion-bg: #eef3fb;
  --home-paper: #fff;
  --home-product-bg: #e3ecfc;
  --home-product-line: #c2d2ec;
  --home-pricing-bg: #e4edff;
  -webkit-font-smoothing: antialiased;
}
html[data-theme="dark"] .home {
  --bg: #101a2b;
  --fg: #f3f5fb;
  --muted: #becbe0;
  --muted2: #a6b6d0;
  --line: #354661;
  --accent: #86acff;
  --solucion-bg: #18263e;
  --home-paper: #1b2a43;
  --home-product-bg: #213658;
  --home-product-line: #415b83;
  --home-pricing-bg: #1c3053;
}
.home .w { max-width: 1240px; padding-inline: 32px; }
.home section[id] { scroll-margin-top: 90px; }
.home a:focus-visible, .home button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.home .btn { border-radius: 8px; min-height: 50px; padding: 13px 22px; gap: 24px; font-size: 15px; }
.home .btn-primary { background: #2459e0; color: #fff; border-color: #2459e0; box-shadow: 0 3px 0 #153d9e; }
.home .btn-primary:hover { background: #194bc8; filter: none; }
.home .site-nav { background: var(--bg); }
.home .site-nav.nav-hidden { transform: none; }
.home .site-nav a[data-umami-event="nav-logo"], .home .site-nav .btn { white-space: nowrap; }
.home .eyebrow { font-size: 12px; font-weight: 700; line-height: 1.6; letter-spacing: .1em; color: var(--muted); }
.home .eyebrow .status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--home-product-bg); }
.home-hero { padding: 66px 0 60px; border-bottom: 1px solid var(--line); }
.hero-layout { display: grid; grid-template-columns: .95fr 1.15fr; gap: 48px; align-items: center; }
.hero-copy, .hero-product { min-width: 0; }
.hero-copy h1 { margin: 22px 0 20px; font-size: clamp(48px, 4.65vw, 68px); font-weight: 650; line-height: 1.02; letter-spacing: -.065em; }
.hero-copy h1 > span { color: var(--accent); }
.hero-description { font-size: 17px; line-height: 1.65; max-width: 380px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 25px; }
.hero-product-link { font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--line); padding-block: 12px; }
.hero-product-link span { margin-left: 6px; }
.hero-trust { font-size: 13px; color: var(--muted); margin-top: 17px; }
.hero-trust > span:first-child { color: #36804a; margin-right: 5px; }
.hero-price-link { display: inline-block; margin-top: 13px; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.hero-product { position: relative; height: 520px; background: var(--home-product-bg); border-radius: 26px 26px 100px 26px; }
.hero-product::before { content: ""; position: absolute; inset: 20px; border: 1px solid var(--home-product-line); border-radius: 16px 16px 85px 16px; pointer-events: none; }
.product-label { position: absolute; top: 29px; left: 30px; right: 30px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; letter-spacing: .1em; font-weight: 600; }
.product-label > span:last-child { font-size: 30px; line-height: 1; }
.hero-desktop { position: absolute; left: -16px; right: 48px; top: 79px; border: 1px solid var(--home-product-line); border-radius: 11px; overflow: hidden; background: #fff; box-shadow: 0 22px 40px -20px #14254366; }
.hero-desktop figcaption { display: flex; gap: 26px; padding: 12px 14px; color: #58656e; font-size: 10px; border-bottom: 1px solid #e1e6e3; }
.browser-dots { font-size: 8px; letter-spacing: 2px; color: #bbc7c2; }
.hero-desktop img { width: 100%; height: 285px; object-fit: cover; object-position: top; display: block; }
.hero-phone { position: absolute; width: 232px; right: -14px; bottom: 42px; background: #fff; border: 5px solid #142543; border-radius: 28px; overflow: hidden; box-shadow: 0 20px 30px -14px #14254388; transform: rotate(5deg); }
.hero-phone figcaption { padding: 12px 5px 8px; font-size: 8px; font-weight: 650; color: #43545d; text-align: center; }
.hero-phone img { width: 100%; height: auto; display: block; }
.hero-product-note { position: absolute; bottom: 62px; left: 28px; display: flex; align-items: center; gap: 10px; color: var(--fg); }
.hero-product-note > span { font-size: 40px; font-weight: 300; }
.hero-product-note p { font-size: 12px; line-height: 1.6; }
.hero-product-caption { position: absolute; left: 28px; bottom: 24px; color: var(--muted); font-size: 11px; }
.section-heading { max-width: 760px; }
.section-heading h2 { margin-top: 17px; font-size: clamp(30px, 3.5vw, 46px); font-weight: 600; line-height: 1.12; letter-spacing: -.045em; text-wrap: balance; }
.section-heading > p:not(.eyebrow) { margin-top: 18px; max-width: 590px; font-size: 16px; color: var(--muted); line-height: 1.65; }
.home-workflow { padding: 72px 0; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; }
.workflow-grid article { border-top: 1px solid var(--line); padding: 26px 28px 0 0; }
.workflow-grid article + article { border-left: 1px solid var(--line); padding-left: 28px; }
.step-number { font-size: 12px; letter-spacing: .1em; font-weight: 700; color: var(--accent); }
.workflow-grid h3 { margin-top: 26px; font-size: 22px; font-weight: 600; letter-spacing: -.04em; }
.workflow-grid p { font-size: 14px; color: var(--muted); line-height: 1.8; margin-top: 13px; }
.workflow-outcome { display: block; margin-top: 25px; font-size: 12px; color: var(--muted); }
.home .tour-section { padding: 72px 0 40px; border-top: 1px solid var(--line); background: var(--solucion-bg); }
.home .tour-stage { margin-top: 0; padding-top: 30px; padding-bottom: 12px; }
.home .tour-stage > .w { max-width: 1240px; padding-inline: 32px; }
.home .tour-grid { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; }
.home .tour-canvas { perspective: none; }
.home .tour-canvas::before { display: none; }
.home .tour-frame, .home .tour-frame:hover { transform: none; grid-template-columns: minmax(0, 1fr); scroll-margin-top: 82px; border-radius: 14px; background: var(--home-paper); box-shadow: 0 18px 48px -30px #14254380; }
.home .tour-frame::after { display: none; }
/* Se dimensiona por la pantalla activa, no por la más alta de las ocultas. */
.home .tour-pane { display: none; min-width: 0; }
.home .tour-pane.on { display: block; }
.home .tour-screen { display: block; }
.home .tour-tab { border-radius: 8px; box-shadow: none; }
.home .tour-tab.active { background: var(--home-paper); box-shadow: none; }
.home .tour-tab-title { font-size: 14px; }
.home .tour-tab-desc { font-size: 12px; }
.home .tour-booking { gap: 30px; padding: 24px; }
.home .tour-phone { width: 280px; box-shadow: 0 14px 30px -18px #14254380; }
.home .tour-booking-steps { min-width: 0; }
.home-invite { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.home-invite h3 { font-size: 22px; line-height: 1.4; font-weight: 600; letter-spacing: -.03em; margin-top: 7px; }
.home-invite .btn { flex-shrink: 0; }
.home-segments { padding: 84px 0; }
.segments-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; }
.segment-links { border-top: 1px solid var(--line); }
.segment-links a { display: grid; grid-template-columns: 1fr 30px; gap: 9px 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.segment-links h3 { font-size: 20px; font-weight: 600; letter-spacing: -.035em; }
.segment-links p { font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 380px; }
.segment-links a > span { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 25px; color: var(--accent); transition: transform .2s; }
.segment-links a:hover > span { transform: translate(3px, -3px); }
.segment-links a:hover h3 { color: var(--accent); }
.home-examples { padding: 70px 0; background: var(--solucion-bg); }
.home #ejemplos-grid { gap: 20px; }
.home #ejemplos-grid .ej-card { flex-basis: calc((100% - 40px) / 3); min-width: 0; border-radius: 10px !important; box-shadow: none; }
.home #ejemplos-grid .ej-card img { height: 240px !important; }
.home .ejf-chip { font-size: 12px !important; padding: 8px 13px !important; }
.home-pricing { padding: 72px 0; background: var(--home-pricing-bg); border-block: 1px solid var(--home-product-line); }
.pricing-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 44px; border: 1px solid var(--home-product-line); border-top: 4px solid var(--accent); border-radius: 16px; background: var(--home-paper); box-shadow: 0 22px 48px -32px #14254380; }
.pricing-layout .eyebrow { color: var(--accent); }
.pricing-layout .section-heading h2 { font-size: clamp(30px, 3vw, 40px); }
.home .price-feats { gap: 22px; }
.home .price-feat { font-size: 14px; }
.home .price-feat-note { font-size: 13px; line-height: 1.7; }
.home-start { padding: 76px 0; color: #f5f7ff; background: #142543; }
.start-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.home-start .eyebrow { color: #b8c9eb; }
.home-start .section-heading h2 { font-size: clamp(35px, 4vw, 52px); }
.home-start .section-heading > p:not(.eyebrow) { color: #c6d2e9; }
.start-options { display: grid; gap: 22px; }
.start-option { border-top: 1px solid #455d83; padding-top: 22px; }
.start-option h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.start-option p { color: #c6d2e9; font-size: 14px; line-height: 1.7; margin-bottom: 18px; }
.home-start .btn-outline { color: #f5f7ff; border-color: #8195b7; }
.home-start .btn-outline:hover { background: #243b60; }
.home-start a:focus-visible { outline-color: #c6d8ff; }
.home .site-footer { padding: 30px 0 100px; }
.home .site-footer .w > div:last-child { flex-wrap: wrap; }
.home #demo-modal { z-index: 1300 !important; }
/* El globo conserva su comportamiento, fuera de la zona del CTA del hero. */
.home .wa-stack { z-index: 45; }

@media (min-width: 1101px) and (prefers-reduced-motion: no-preference) {
  .hero-phone { animation: phone-entrance .7s .15s both; }
  @keyframes phone-entrance {
    from { opacity: 0; transform: translateY(16px) rotate(0); }
    to { opacity: 1; transform: translateY(0) rotate(5deg); }
  }
}
@media (max-width: 1100px) {
  .hero-layout { gap: 28px; }
  .hero-copy h1 { font-size: 54px; }
  .hero-product { height: 470px; }
  .hero-desktop img { height: 245px; }
  .hero-phone { width: 200px; }
  .hero-product-note { left: 22px; bottom: 70px; gap: 5px; }
  .hero-product-note p { font-size: 11px; }
  .home .tour-grid { grid-template-columns: minmax(0, 1fr); }
  .home .tour-menu { margin: 0; padding: 0 0 12px; }
  .home .tour-booking { flex-direction: row; }
  .home .tour-booking-steps { flex-direction: column; align-items: stretch; }
  .home .tour-booking-feats { flex-direction: column; }
  .home .tour-booking-feats b { text-align: left; }
  .home .tour-mob { display: none; }
  .segments-layout, .start-layout { gap: 40px; }
  .pricing-layout { gap: 30px; padding: 30px; }
}
@media (max-width: 1000px) {
  .home .home-nav-links { display: none; }
  .home #mobile-menu-button { display: inline-flex; }
  .home #mobile-menu:not(.hidden) { display: block; }
}
@media (min-width: 768px) and (max-width: 1000px) {
  .hero-layout { gap: 22px; }
  .hero-copy h1 { font-size: 44px; }
  .hero-description { font-size: 15px; }
  .hero-product { height: 440px; }
  .hero-desktop { right: 30px; }
  .hero-desktop img { height: 215px; }
  .hero-phone { width: 176px; }
  .hero-product-note { bottom: 48px; }
  .hero-product-note p { font-size: 10px; }
}
@media (max-width: 767px) {
  .home .w, .home .tour-stage > .w { padding-inline: 22px; }
  .home-hero { padding: 32px 0 30px; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-copy h1 { font-size: clamp(42px, 11vw, 66px); margin: 16px 0 16px; line-height: 1.03; }
  .hero-copy h1 br:first-child { display: none; }
  .hero-copy h1 > span br { display: none; }
  .hero-copy h1 > span { display: block; max-width: 400px; }
  .hero-description { font-size: 15px; line-height: 1.65; max-width: 430px; }
  .hero-actions { gap: 16px; margin-top: 20px; }
  .hero-actions .btn { padding: 12px 17px; gap: 15px; font-size: 14px; }
  .hero-product-link { font-size: 12px; }
  .hero-trust { font-size: 12px; margin-top: 15px; }
  .hero-price-link { margin-top: 12px; }
  .hero-product { height: 355px; max-width: 500px; width: 100%; margin-inline: auto; border-radius: 18px 18px 65px 18px; }
  .hero-product::before { inset: 14px; border-radius: 12px 12px 55px 12px; }
  .product-label { top: 20px; left: 20px; right: 20px; font-size: 9px; }
  .product-label > span:last-child { font-size: 23px; }
  .hero-desktop { left: -5px; right: 24px; top: 55px; }
  .hero-desktop figcaption { font-size: 8px; gap: 18px; padding: 9px; }
  .hero-desktop img { height: 180px; }
  .hero-phone { width: 124px; bottom: 34px; right: 6px; border-width: 4px; border-radius: 18px; transform: rotate(4deg); }
  .hero-phone figcaption { font-size: 6px; padding: 8px 2px 5px; }
  .hero-product-note { bottom: 47px; left: 18px; gap: 8px; }
  .hero-product-note > span { font-size: 28px; }
  .hero-product-note p { font-size: 10px; }
  .hero-product-caption { bottom: 17px; left: 18px; right: 18px; font-size: 10px; }
  .section-heading h2 { font-size: 31px; }
  .section-heading > p:not(.eyebrow) { font-size: 14px; }
  .home-workflow, .home .tour-section, .home-segments, .home-examples, .home-pricing, .home-start { padding-block: 48px; }
  .workflow-grid { grid-template-columns: 1fr; margin-top: 26px; }
  .workflow-grid article, .workflow-grid article + article { padding: 22px 0; border-left: 0; }
  .workflow-grid article:last-child { padding-bottom: 0; }
  .workflow-grid h3 { margin-top: 10px; }
  .workflow-grid p { margin-top: 10px; }
  .workflow-outcome { margin-top: 12px; }
  .home .tour-stage { padding: 25px 0 0; }
  .home .tour-screen {
    width: min(240px, 66vw);
    margin: 22px auto;
    border: 10px solid #0f172a;
    border-radius: 38px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 14px 30px -18px #14254380;
  }
  .home .tour-screen .tour-img { height: auto; max-height: none; object-fit: contain; }
  /* Navegación fuera de la captura para no tapar los controles del producto. */
  .home .tour-frame-bar { height: 48px; padding-inline: 52px; }
  .home .tour-frame-bar .tour-dot { display: none; }
  .home .tour-url { margin-left: 0; }
  .home .tour-arrow { top: 24px; width: 34px; height: 34px; }
  .home .tour-booking { flex-direction: column; padding: 22px 16px; gap: 18px; }
  .home .tour-phone { width: min(240px, 66vw); }
  .home .tour-booking-steps { flex-direction: row; align-items: center; }
  .home .tour-booking-feats { flex-direction: row; }
  .home .tour-booking-feats b { text-align: center; }
  .home .tour-bstep { font-size: 12px; min-height: 40px; }
  .home-invite { padding: 28px 0; flex-direction: column; align-items: flex-start; gap: 18px; }
  .home-invite h3 { font-size: 22px; }
  .segments-layout, .start-layout, .pricing-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .segment-links a { padding: 20px 0; }
  .segment-links h3 { font-size: 18px; }
  .home #ejemplos-grid .ej-card { flex-basis: 82%; }
  .home #ejemplos-grid .ej-card img { height: 230px !important; }
  .home .ejf-arrow { width: 36px; height: 36px; }
  .home .ejf-prev { left: -12px; }
  .home .ejf-next { right: -12px; }
  .home #ejemplos-filters { gap: 7px !important; }
  .home .ejf-chip { font-size: 12px !important; padding: 8px 11px !important; }
  .pricing-layout { padding: 26px 22px; }
  .home .price-feats { grid-template-columns: 1fr; gap: 15px; }
  .home .price-feat { font-size: 14px; }
  .home #idx-ag-inc, .home #idx-ag-dec { width: 44px !important; height: 44px !important; }
  .home .site-footer .w { gap: 22px !important; }
  .home .site-footer .w > div:last-child > span { flex-basis: 100%; }
  .home.hero-actions-visible .wa-stack, .home.hero-actions-visible .mobile-cta-bar { visibility: hidden; pointer-events: none; }
}
@media (max-width: 360px) {
  .home .w, .home .tour-stage > .w { padding-inline: 18px; }
  .hero-copy h1 { font-size: 39px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { padding-inline: 12px; font-size: 13px; }
  .hero-product-link { font-size: 11px; }
  .hero-product { height: 330px; }
  .hero-desktop img { height: 155px; }
  .hero-phone { width: 110px; }
  .hero-product-note { left: 14px; }
  .hero-product-note p { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
