/* ============================================================
   Home — secciones propias (sobre brand.css)
   ============================================================ */

/* ---------- Hero: foto enmarcada que se abre al scrollear ---------- */
.hero { padding: 0 calc(var(--m, 20) * 1px); }
.hero__card { position: relative; height: calc(100vh - var(--nav-h) - 20px); height: calc(100svh - var(--nav-h) - 20px); min-height: 600px; max-height: min(880px, 50vw); border-radius: calc(var(--r, 24) * 1px); overflow: hidden; background: #E9D9C8; }
/* Foto 21:9: el hero toma como máximo 50vw de alto y se corre a la derecha para que la pared quede detrás del texto */
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(calc(1.06 - var(--p, 0) * .06)); transform-origin: 40% 50%; }
/* Velo claro detrás del copy (arriba a la derecha) para que el título azul contraste con cualquier foto */
.hero__card::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse 70% 75% at 88% 22%, rgba(247, 246, 242, .82), rgba(247, 246, 242, .45) 45%, rgba(247, 246, 242, 0) 75%), linear-gradient(180deg, rgba(247, 246, 242, .35), rgba(247, 246, 242, 0) 45%); }
.hero__copy { position: absolute; z-index: 2; top: 11%; right: 6%; max-width: 640px; text-align: right; }
.hero__copy h1 { font-size: clamp(40px, 5.4vw, 78px); line-height: 1.02; color: var(--blue); }
.hero__copy p { margin: 18px 0 26px; font-size: 19px; color: var(--ink); }
/* El subtítulo cae sobre el horizonte (zona oscura): vidrio claro para asegurar contraste AA */
@media (min-width: 861px) {
  .hero__copy p { display: inline-block; padding: 6px 12px; border-radius: var(--radius); background: rgba(247, 246, 242, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}
.hero__ctas { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.hero__pills { position: absolute; z-index: 2; right: 6%; bottom: 7%; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.hero__pills a { font-size: 14px; font-weight: 500; color: var(--white); text-decoration: none; background: rgba(15, 27, 51, .28); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .35); padding: 9px 15px; border-radius: 999px; transition: background .18s; }
.hero__pills a:hover { background: rgba(15, 27, 51, .45); }

/* Con JS: el hero queda fijo mientras el scroll avanza el video (frames en un canvas) hasta la pantalla de la app */
.hero__video, .hero__app, .hero__feature { display: none; }
.hero--scrub { height: 250vh; } /* 1,5 pantallas de scroll para todo el video */
.hero--scrub .hero__card { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); max-height: none; background: var(--paper); }
.hero--scrub .hero__bg { opacity: calc(1 - var(--app, 0)); }
.hero--scrub .hero__video { display: block; position: absolute; left: 0; top: var(--top, 0px); width: 100%; height: calc(100% - var(--top, 0px)); opacity: 0; transform: scale(calc(1.06 - var(--p, 0) * .06)); transform-origin: 40% 50%; }
.hero--scrub .hero__video.is-on { opacity: 1; }
.hero--scrub .hero__card::after, .hero--scrub .hero__copy, .hero--scrub .hero__pills { opacity: calc(1 - var(--fade, 0)); }
.hero--scrub.is-faded .hero__copy, .hero--scrub.is-faded .hero__pills { visibility: hidden; }
.hero--scrub .hero__app { display: block; position: absolute; inset: 0; z-index: 3; overflow: hidden; opacity: var(--app, 0); pointer-events: none; }
.hero--scrub .appmock { position: absolute; top: 0; left: 0; transform-origin: 0 0; overflow: hidden; box-shadow: 0 30px 80px rgba(15, 27, 51, calc(var(--shift, 0) * .18)), 0 0 0 1px rgba(15, 27, 51, calc(var(--shift, 0) * .08)); }
.hero--scrub .hero__feature { display: block; position: absolute; z-index: 4; left: 8%; top: 50%; width: min(38%, 480px); opacity: clamp(0, calc((var(--shift, 0) - .35) / .65), 1); transform: translate(calc((1 - var(--shift, 0)) * -24px), -50%); visibility: hidden; }
.hero--scrub.is-shifted .hero__feature { visibility: visible; }
.hero__feature h2 { font-size: clamp(30px, 3vw, 42px); line-height: 1.1; color: var(--blue); }
.hero__feature ul { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.hero__feature li { border-bottom: 1px solid var(--line); }
.hero__feature a { display: block; padding: 16px 0; color: var(--muted); text-decoration: none; transition: color .18s; }
.hero__feature a:hover { color: var(--ink); }
.hero__feature b { display: block; font-family: var(--ff-display); font-weight: 600; font-size: 18px; color: var(--ink); margin-bottom: 2px; }
.hero__new { display: inline-block; vertical-align: middle; margin-left: 6px; font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--white); background: var(--blue); border-radius: 999px; padding: 2px 8px; }
@media (max-width: 860px) {
  /* Mobile: arranca con el texto arriba y la foto abajo; al scrollear la foto (después el video) crece hasta llenar la tarjeta */
  /* Con el dedo cada swipe recorre más que la rueda del mouse: menos recorrido para que en dos swipes llegue a la app */
  .hero--scrub { height: 200vh; }
  .hero--scrub .hero__card { display: block; }
  .hero--scrub .hero__copy { position: absolute; z-index: 2; top: 0; left: 0; right: 0; background: #F3E7DA; }
  .hero--scrub .hero__bg { position: absolute; left: 0; right: 0; top: var(--top, 0px); height: calc(100% - var(--top, 0px)); }
  .hero--scrub .hero__feature { left: 20px; right: 20px; top: 28px; width: auto; transform: translateY(calc((1 - var(--shift, 0)) * -16px)); }
  .hero__feature h2 { font-size: 28px; }
  .hero__feature ul { margin-top: 18px; }
  .hero__feature a { padding: 10px 0; }
  .hero__feature b { font-size: 16px; margin: 0; }
  .hero__feature span { display: none; }
}
.appmock a { font-family: inherit; letter-spacing: normal; text-decoration: none; }
.appmock .am-h1, .appmock .am-h2, .appmock .am-h3, .appmock .am-h4 { line-height: 1.1; }
.appmock { --navy: #0F1B33; --blue: #1446A0; --ink: #1F2937; --muted: #6B7280; --line: #E5E7EB; --soft: #F3F4F8; --chip: #2B4C7E; width: 1920px; height: 1068px; background: #fff; font-family: Poppins, sans-serif; color: var(--ink); text-align: left; line-height: 1.5; }
.appmock * { box-sizing: border-box; margin: 0; padding: 0; }
.appmock svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.appmock .am-nav { height: 88px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 120px; gap: 40px; }
.appmock .am-logo { font-size: 34px; font-weight: 600; color: var(--blue); letter-spacing: -.5px; }
.appmock .am-logo i { font-style: italic; font-weight: 500; }
.appmock .am-menu { display: flex; gap: 22px; font-size: 18px; color: #374151; }
.appmock .am-menu span { display: flex; align-items: center; gap: 8px; }
.appmock .am-right { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.appmock .am-bell { position: relative; color: #111; }
.appmock .am-bell b { position: absolute; top: -10px; right: -9px; background: #DC2626; color: #fff; font-size: 11px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; }
.appmock .am-studio { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 10px 16px; font-size: 18px; font-weight: 500; }
.appmock .am-avatar { width: 36px; height: 36px; border-radius: 50%; background: #6366F1; }
.appmock .am-page { padding: 40px 120px 0; display: grid; grid-template-columns: 286px 1fr; column-gap: 32px; }
.appmock .am-back { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 500; margin-left: 14px; }
.appmock .am-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; margin: 36px 0 30px; }
.appmock .am-head .am-ico { width: 62px; height: 62px; border-radius: 8px; background: #EEF0F4; display: grid; place-items: center; }
.appmock .am-head .am-ico svg { width: 30px; height: 30px; }
.appmock .am-head .am-h1 { font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1.15; }
.appmock .am-head p { font-size: 20px; color: #4B5563; }
.appmock .am-activo { margin-left: auto; align-self: flex-start; background: var(--navy); color: #fff; font-size: 15px; font-weight: 600; padding: 4px 14px; border-radius: 999px; }
.appmock .am-side .am-h4 { font-size: 15px; letter-spacing: 1px; color: #4B5563; font-weight: 600; margin: 4px 0 10px 15px; }
.appmock .am-side a { display: block; font-size: 18px; color: #374151; padding: 12px 15px; border-radius: 4px; }
.appmock .am-side a.am-on { background: #EEF0F7; color: var(--navy); font-weight: 500; }
.appmock .am-side .am-h4 + a { margin-top: 0; }
.appmock .am-side .am-gap { height: 34px; }
.appmock .am-main .am-h2 { font-size: 23px; font-weight: 600; color: var(--navy); }
.appmock .am-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.appmock .am-btn-dark { background: var(--navy); color: #fff; font-size: 18px; font-weight: 500; padding: 12px 20px; border-radius: 4px; display: flex; gap: 14px; align-items: center; }
.appmock .am-timeline { position: relative; padding-left: 70px; }
.appmock .am-timeline::before { content: ''; position: absolute; left: 33px; top: 30px; bottom: 0; width: 2px; background: #D1D5DB; }
.appmock .am-dot { position: absolute; left: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #9CA3AF; }
.appmock .am-card { border: 3px solid var(--navy); border-radius: 10px; padding: 26px 26px 26px; margin-bottom: 36px; position: relative; }
.appmock .am-tags { display: flex; gap: 10px; }
.appmock .am-tag { font-size: 14px; font-weight: 600; padding: 4px 14px; border-radius: 999px; color: #fff; }
.appmock .am-tag.am-k { background: var(--navy); letter-spacing: 1px; }
.appmock .am-tag.am-b { background: var(--chip); }
.appmock .am-card .am-h3 { font-size: 22px; font-weight: 600; margin-top: 8px; color: var(--navy); }
.appmock .am-dates { font-size: 18px; color: #4B5563; }
.appmock .am-tools { position: absolute; top: 26px; right: 26px; display: flex; gap: 8px; }
.appmock .am-tools span { border: 1px solid var(--line); border-radius: 4px; padding: 8px 14px; font-size: 18px; display: flex; gap: 10px; align-items: center; }
.appmock .am-tools .am-del { color: #DC2626; }
.appmock .am-checks { margin-top: 18px; background: var(--soft); border-radius: 6px; padding: 10px 18px; display: flex; gap: 22px; font-size: 16px; }
.appmock .am-checks span { display: flex; align-items: center; gap: 8px; }
.appmock .am-ok { width: 20px; height: 20px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; }
.appmock .am-ok svg { width: 12px; height: 12px; color: #fff; stroke-width: 3; }
.appmock .am-no { width: 20px; height: 20px; border-radius: 50%; background: #D1D5DB; }
.appmock .am-checks .am-muted { color: var(--muted); }
.appmock .am-actions { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.appmock .am-actions span { height: 52px; border-radius: 4px; display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 19px; font-weight: 500; }
.appmock .am-actions .am-o { border: 2px solid var(--navy); color: var(--navy); }
.appmock .am-actions .am-f { background: var(--navy); color: #fff; }
.appmock .am-card.am-small { border: 1px solid var(--line); padding: 20px 26px; display: flex; align-items: center; gap: 22px; }
.appmock .am-card.am-small .am-h3 { font-size: 18px; font-weight: 500; margin: 0; }
.appmock .am-card.am-small .am-dates { font-size: 15px; }
.appmock .am-card.am-small .am-chev { margin-left: auto; }

@media (max-width: 860px) {
  /* Mobile: el texto arriba sobre el color de la tarjeta y la foto abajo (no de fondo), para no tapar al contador */
  .hero__card { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; background: #F3E7DA; }
  .hero__card::after { display: none; }
  .hero__bg { position: relative; order: 2; display: block; height: 400px; }
  .hero__bg img { object-position: 50% 66%; } /* foto vertical: encuadre que entra de la cabeza al escritorio aun con poca altura (iPhone con barras de Safari) */
  .hero__copy { position: relative; order: 1; top: auto; right: auto; max-width: none; padding: 40px 24px 28px; text-align: center; }
  .hero__copy h1 { font-size: clamp(36px, 10vw, 52px); }
  .hero__copy p { font-size: 17px; }
  .hero__ctas { justify-content: center; }
  .hero__pills { display: none; } /* tapaban la foto; la lista de productos aparece al final del video */
}

.anchor-alias { position: absolute; }


/* ---------- Secciones de producto ---------- */
.prod { padding: 110px 0; border-top: 1px solid var(--line); }
.prod--first { position: relative; border-top: 0; }
.prod__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.prod--flip .prod__inner { grid-template-columns: 1.2fr 1fr; }
.prod--flip .prod__text { order: 2; }
.prod h2 { font-size: clamp(32px, 3.6vw, 42px); line-height: 1.08; margin: 12px 0 16px; }
.prod__lead { color: var(--muted); font-size: 17px; line-height: 1.55; }
.prod__list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; }
.prod__list li { display: flex; gap: 10px; }
.prod__list li::before { content: '✓'; color: var(--blue); font-weight: 600; }
.prod__meta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.prod__meta a:not(.btn) { color: var(--blue); }
.fine { font-size: 13px; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.fine a { color: var(--ink); }
@media (max-width: 1023px) {
  .prod__inner, .prod--flip .prod__inner { grid-template-columns: 1fr; gap: 40px; }
  .prod--flip .prod__text { order: 0; }
}

/* Caja de precio de Contabilidad */
.price-box { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--blue-soft); border-radius: 16px; padding: 20px 22px; margin-bottom: 22px; }
.price-box__old { color: var(--muted); font-size: 16px; }
.price-box__big { font-family: var(--ff-display); font-weight: 600; font-size: 36px; line-height: 1; margin: 2px 0 4px; }
.price-box__unit { color: var(--muted); font-size: 14px; }
.price-box__off { background: var(--ink); color: var(--white); border-radius: 999px; padding: 10px 16px; font-weight: 600; font-size: 13px; text-align: center; line-height: 1.3; }

/* UI recreada: estilos base en brand.css. Acá solo la animación de entrada. */
/* Entrada de las UIs: solo se ocultan si hay JS (clase puesta en <head>) */
html.js .ui { opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .8s ease, transform .9s var(--ease); }
html.js .ui .ui__row { opacity: 0; transform: translateX(-8px); transition: opacity .5s ease, transform .5s ease; }
html.js .ui .ui__bar i { width: 0; transition: width 1.2s ease .4s; }
html.js .ui.is-in { opacity: 1; transform: none; }
html.js .ui.is-in .ui__row { opacity: 1; transform: none; }
html.js .ui.is-in .ui__row:nth-child(2) { transition-delay: .3s; }
html.js .ui.is-in .ui__row:nth-child(3) { transition-delay: .6s; }
html.js .ui.is-in .ui__row:nth-child(4) { transition-delay: .9s; }
html.js .ui.is-in .ui__row:nth-child(5) { transition-delay: 1.2s; }
html.js .ui.is-in .ui__bar i { width: var(--v); }

@media (prefers-reduced-motion: reduce) {
  html.js .ui, html.js .ui .ui__row { opacity: 1; transform: none; transition: none; }
  html.js .ui .ui__bar i { width: var(--v); transition: none; }
  .hero__bg img { transform: none; }
  .rotator { transition: none; }
}

/* ---------- Facturación ---------- */
.extra { padding: 70px 0; border-top: 1px solid var(--line); }
.extra__box { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 32px; }
.extra h3 { font-size: 22px; margin: 6px 0 4px; }

/* ---------- FAQ: las primeras 5 a la vista, el resto detrás de "Ver más" (sólo si corre home.js) ---------- */
html.js .faq:not(.is-open) .faq-item--more { display: none; }
.faq__toggle { margin-top: 28px; }

/* ---------- CTA final: el cierre del título rota entre beneficios ---------- */
.rotator { display: inline-block; transition: opacity .3s ease, transform .3s ease; }
.rotator.is-out { opacity: 0; transform: translateY(-.25em); }

/* ---------- Precios ---------- */
.pricing { padding: 110px 0; border-top: 1px solid var(--line); }
.pricing h2 { font-size: clamp(32px, 4vw, 44px); margin-top: 10px; }
.pricing__lead { color: var(--muted); margin-top: 10px; max-width: 620px; }
.pricing__plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; align-items: stretch; }
.pricing__plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pricing__plan--featured { border-color: var(--blue); }
.pricing__plan--soon .pricing__big { color: var(--muted); }
.pricing__plan h3 { font-size: 22px; }
.pricing__plan .btn { margin-top: auto; align-self: flex-start; }
.pricing__badge { position: absolute; top: 24px; right: 20px; font-size: 11px; font-weight: 600; background: var(--blue); color: var(--white); padding: 3px 8px; border-radius: 999px; }
.pricing__badge--soon { background: var(--ink); }
.pricing__for { color: var(--muted); font-size: 14px; min-height: 2.8em; }
.pricing__big { font-family: var(--ff-display); font-weight: 600; font-size: 34px; line-height: 1.1; margin-top: 6px; }
.pricing__unit { color: var(--muted); font-size: 13px; }
.pricing__plus { font-size: 14px; font-weight: 600; margin-top: 10px; }
.pricing__list { margin: 8px 0 14px; font-size: 14px; }
.pricing__list a { color: var(--blue); }
.pricing__emision { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; align-items: center; margin-top: 20px; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pricing__emision h3 { font-size: 22px; margin-bottom: 6px; }
.pricing__tiers { list-style: none; padding: 0; margin: 0; }
.pricing__tiers li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pricing__tiers li:last-child { border-bottom: 0; }
.pricing__tiers b { font-family: var(--ff-display); font-weight: 600; font-size: 20px; }
.pricing__tiers small { color: var(--muted); font-size: 13px; }
.pricing__tiers li > span:last-child { text-align: right; white-space: nowrap; }
.pricing__tiers em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 2px 8px; border-radius: 999px; margin-left: 6px; white-space: nowrap; }
.pricing__fine { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.pricing__fine a { color: var(--blue); }
@media (max-width: 1100px) { .pricing__plans { grid-template-columns: 1fr 1fr; } }
/* Mobile: los planes son un carrusel deslizable (asoma el siguiente) en vez de 4 tarjetas apiladas */
.pricing__dots { display: none; }
@media (max-width: 760px) {
  .pricing__plans { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 24px; margin: 32px -24px 0; padding: 4px 24px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pricing__plans::-webkit-scrollbar { display: none; }
  .pricing__plan { flex: 0 0 84%; scroll-snap-align: start; }
  .pricing__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
  .pricing__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: width .2s, background .2s; }
  .pricing__dots button[aria-current="true"] { width: 22px; background: var(--blue); }
}
@media (max-width: 760px) { .pricing__emision { grid-template-columns: 1fr; } .pricing__for { min-height: 0; } .pricing__tiers li { align-items: center; } .pricing__tiers li > span:last-child small { display: block; } }

/* ---------- Video ---------- */
.video { padding: 110px 0; border-top: 1px solid var(--line); }
.video h2 { font-size: clamp(32px, 4vw, 44px); margin: 10px 0 32px; }
.video__frame { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink); }
.video__frame iframe { width: 100%; height: 100%; border: 0; }
