/* =========================================================
   Nexia Health — Estilos de la landing (index.html)
   Builds on styles.css tokens/components.
   ========================================================= */
html { scroll-padding-top: 80px; }
body.landing { background: #fff; }

/* ---------- Motion: brief, triggered once when entering the viewport ---------- */
/* Hidden only when JS is running, so content never stays invisible */
.js .reveal, .js .fade-in { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js .reveal.is-in, .js .fade-in.is-in { opacity: 1; transform: none; }

/* ---------- Shared bits ---------- */
.eyebrow--wide { letter-spacing: .32em; font-weight: 600; color: var(--navy-700); font-size: 12px; }
.section-title { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.03em; color: var(--navy-900); }

.btn--outline-green { background: #fff; color: var(--green-700); border: 1.5px solid var(--green-600); }
.btn--outline-green:hover { background: rgba(14,159,126,.06); transform: translateY(-2px); }
.btn--primary:hover { transform: translateY(-2px); }

.tile { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-size: 18px; flex-shrink: 0; }
.tile--lg { width: 60px; height: 60px; border-radius: 16px; font-size: 28px; }
.tile--green { background: #dcf5ec; color: var(--green-600); }
.tile--blue { background: #e1ecfd; color: #2563eb; }
.tile--gray { background: #e8edf3; color: var(--navy-700); }

/* ---------- NAV ---------- */
.mobile-menu button.btn { margin-top: 14px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(28px, 4vw, 56px)) 0 clamp(36px, 4.5vw, 60px);
  background:
    radial-gradient(900px 500px at 0% 100%, rgba(14,159,126,.08), transparent 60%),
    linear-gradient(180deg, #fff 0%, #f3f8fa 100%);
}
.hero__inner { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero__title { font-size: clamp(40px, 4.6vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; color: var(--navy-900); margin: 4px 0 18px; padding-bottom: .06em; }
.hero__title .accent { display: block; }
.hero__lead { font-size: clamp(16.5px, 1.25vw, 18.5px); line-height: 1.6; color: var(--muted); max-width: 500px; margin-bottom: 30px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__cta .btn { min-width: 190px; }

.hero__visual { position: relative; }
.hero__photo { border-radius: 24px; overflow: hidden; aspect-ratio: 16 / 11; box-shadow: 0 30px 60px -30px rgba(15,43,76,.4); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; animation: settle 2.4s var(--ease-out) both; }
@keyframes settle { from { transform: scale(1.05); } }

.checklist {
  position: absolute; top: 9%; right: 4%; width: min(210px, 40%); padding: 16px 18px 14px;
  background: rgba(255,255,255,.97); border-radius: 14px; box-shadow: 0 20px 40px -18px rgba(15,43,76,.45);
}
.checklist__title { font-weight: 700; font-size: 14px; color: var(--navy-800); padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.checklist ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--navy-800); }
.tick { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #b9c6d3; flex-shrink: 0; }
.checklist li.is-done .tick { background: var(--green-600); border-color: var(--green-600); }
.checklist li.is-done .tick::after {
  content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
/* Ticks complete one after another on load */
.js .checklist li.is-done .tick { animation: tick .5s var(--ease-out) both; }
.js .checklist li:nth-child(1) .tick { animation-delay: .9s; }
.js .checklist li:nth-child(2) .tick { animation-delay: 1.1s; }
.js .checklist li:nth-child(3) .tick { animation-delay: 1.3s; }
@keyframes tick { from { background: transparent; border-color: #b9c6d3; transform: scale(.6); } }

/* ---------- Illustrative app window ---------- */
.app {
  display: grid; grid-template-columns: 27% 1fr; flex: 1; min-height: 290px; border-radius: 12px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); font-size: 11px; color: var(--navy-800);
  box-shadow: 0 8px 20px -14px rgba(15,43,76,.3);
  will-change: transform;
}
.app__side { display: flex; flex-direction: column; gap: 2px; padding: 12px 6px; background: #f7fafc; border-right: 1px solid var(--line); }
.app__side > span:not(.app__logo) { position: relative; display: flex; align-items: center; gap: 6px; padding: 6px 6px; font-size: 9.5px; border-radius: 6px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app__side .ic { font-size: 12px; }
.app__side .is-active { color: var(--green-700) !important; font-weight: 700; }
.app__side .is-active::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 6px; background: #dcf5ec; box-shadow: inset 2px 0 0 var(--green-600); transform-origin: left; }
.app__side > span { isolation: isolate; }
.app__logo { display: grid; font-weight: 800; letter-spacing: .22em; font-size: 10px; padding: 2px 7px 12px; color: var(--navy-900); }
.app__logo small { font-size: 5.5px; letter-spacing: .6em; font-weight: 600; }
.app__main { padding: 12px; min-width: 0; }
.app__top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.app__top strong { font-size: 13px; }

.app__search { display: flex; align-items: center; gap: 6px; padding: 6px 8px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 6px; color: #94a3b8; }
.app__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.app__table th { text-align: left; font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 4px 4px 6px; border-bottom: 1px solid var(--line); }
.app__table th:last-child, .app__table td:last-child { text-align: right; }
.app__table th:last-child { width: 36%; }
.app__table td { font-size: 10.5px; padding: 6px 4px; border-bottom: 1px solid #eef2f6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chip { display: inline-block; padding: 3px 8px; border-radius: 999px; font-weight: 700; font-size: 9.5px; }
.chip--ok { background: #dcf5ec; color: var(--green-700); }
.chip--warn { background: #fdf0d2; color: #9a6400; }
.chip--idle { background: #eef2f6; color: var(--muted); }

/* Progress summary inside the app windows */
.meter { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; margin-bottom: 10px; padding: 8px; border-radius: 8px; background: #f7fafc; }
.meter > span { font-weight: 600; color: var(--muted); font-size: 10px; }
.meter strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.meter__bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: #e3eaf1; overflow: hidden; }
.meter__bar b { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--green-700), var(--green-400)); transform-origin: left; }

/* ---------- RESOURCES (bigger cards) ---------- */
.resources { padding-block: 0 clamp(40px, 5vw, 64px); }
.resources__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.rcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rcard {
  display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,43,76,.04), 0 12px 32px -20px rgba(15,43,76,.3), 0 0 0 1px var(--line);
  transition: translate .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.rcard:hover { translate: 0 -8px; box-shadow: 0 34px 60px -28px rgba(15,43,76,.45), 0 0 0 1px rgba(14,159,126,.4); }
.rcard:focus-visible { outline: 3px solid var(--green-600); outline-offset: 4px; }
.rcard__media { aspect-ratio: 16 / 10; overflow: hidden; }
.rcard__media img { width: 100%; height: 100%; object-fit: cover; }
.rcard__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; flex: 1; }
.rcard__tag { align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); background: #e4f6ef; padding: 5px 10px; border-radius: 999px; }
.rcard h3 { font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--navy-900); letter-spacing: -0.015em; }
.rcard p { font-size: 15.5px; color: var(--muted); margin-bottom: 6px; }
.rcard .link { margin-top: auto; }

/* ---------- CTA BAND ---------- */
.cta { padding-block: 16px clamp(56px, 7vw, 88px); }
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px); border-radius: 20px; color: #fff;
  background: linear-gradient(110deg, var(--navy-900) 0%, #123a63 100%);
}
.cta-band::before {
  content: ""; position: absolute; z-index: -1; right: 8%; top: -60%; width: 420px; height: 260%;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0)); transform: rotate(28deg);
}
.cta-band__title { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px; }
.cta-band p { font-size: 18px; color: rgba(226,236,246,.85); }
.cta-band .btn { min-height: 60px; padding: 0 30px; font-size: 16px; background: var(--green-600); }
.cta-band .btn:hover { background: var(--green-700); }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer__links { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--navy-800); }
.footer__links a:hover { color: var(--green-700); }
.footer__links span { color: var(--muted); }

/* ---------- DEMO DIALOG ---------- */
.demo-dialog {
  width: min(560px, calc(100vw - 32px)); padding: 32px; border: 0; border-radius: 20px; color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(6,26,51,.5);
}
.demo-dialog[open] { animation: pop .35s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.demo-dialog::backdrop { background: rgba(6,26,51,.45); backdrop-filter: blur(4px); }
.demo-dialog h2 { font-size: 26px; font-weight: 800; color: var(--navy-900); margin-bottom: 6px; }
.demo-dialog__lead { color: var(--muted); margin-bottom: 20px; }
.demo-dialog__close { position: absolute; top: 12px; right: 12px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--navy-800); }
.field input, .field select {
  height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid #cfd9e3; font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(14,159,126,.15); }
.field input[aria-invalid="true"] { border-color: #d92d20; }
.form .btn { grid-column: 1 / -1; }
.form__status { grid-column: 1 / -1; min-height: 1.4em; font-size: 14px; font-weight: 600; text-align: center; }
.form__status.is-ok { color: var(--green-700); }
.form__status.is-error { color: #d92d20; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { max-width: 640px; }
  .rcards { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
}
@media (max-width: 720px) {
  .hero__cta .btn { min-width: 0; flex: 1 1 100%; }
  .checklist { top: auto; bottom: -20px; right: 12px; width: 190px; padding: 12px 14px; }
  .hero__visual { margin-bottom: 20px; }
  .resources__head { flex-direction: column; align-items: flex-start; }
  .form { grid-template-columns: 1fr; }
  .demo-dialog { padding: 24px 18px; }
  .cta-band .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .fade-in { opacity: 1 !important; transform: none !important; }
  .rcard:hover { translate: none; }
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.audience { margin-top: 22px; font-size: 14.5px; color: var(--muted); max-width: 460px; }
.caption { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 14px; }
.eyebrow--light { color: var(--green-300); }
button.link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* ---------- PAINS ---------- */
.pains-section { padding-block: clamp(36px, 4vw, 52px); background: #f3f8fa; border-block: 1px solid var(--line); }
.pains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.pains li { display: flex; gap: 16px; align-items: flex-start; }
.pains__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #fff; color: #b45309; font-size: 22px; flex-shrink: 0; box-shadow: 0 0 0 1px var(--line); }
.pains strong { display: block; font-size: 17px; color: var(--navy-900); margin-bottom: 4px; }
.pains p { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ---------- ACREDITA360 ---------- */
.product { padding-block: clamp(64px, 7.5vw, 104px); }
.product__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.product .section-title { margin-bottom: 12px; }
.product__lead { font-size: 18px; color: var(--muted); line-height: 1.55; margin-bottom: 24px; max-width: 520px; }
.checks { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-soft); line-height: 1.5; }
.checks strong { color: var(--navy-900); }
.checks .ic { flex-shrink: 0; margin-top: 3px; padding: 3px; width: 22px; height: 22px; border-radius: 50%; background: #dcf5ec; color: var(--green-700); stroke-width: 3; }
.product__visual { margin: 0; }
.app--lg { min-height: 360px; font-size: 12px; box-shadow: 0 40px 70px -40px rgba(15,43,76,.5), 0 0 0 1px var(--line); border: 0; border-radius: 16px; }
.app--lg .app__side > span:not(.app__logo) { font-size: 11px; padding: 8px; }
.app--lg .app__main { padding: 18px; }
.app--lg .app__top strong { font-size: 15px; }
.app--lg .app__table td { font-size: 12px; padding: 9px 4px; }
.app--lg .app__table th:last-child { width: 26%; }
.app--lg .chip { font-size: 10.5px; }
.app--lg .meter > span { font-size: 11.5px; }
.app--lg .meter strong { font-size: 16px; }

/* ---------- STEPS ---------- */
.steps-section { padding-block: 0 clamp(64px, 7.5vw, 96px); }
.steps-section .section-title { margin-bottom: 36px; max-width: 760px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 26px 22px 24px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 30px -22px rgba(15,43,76,.3); }
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; right: -16px; width: 12px; height: 12px;
  border-top: 2px solid #b9c6d3; border-right: 2px solid #b9c6d3; transform: rotate(45deg);
}
.steps__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy-900); color: var(--green-300); font-weight: 800; font-size: 17px; margin-bottom: 16px; }
.steps h3 { font-size: 18px; color: var(--navy-900); margin-bottom: 8px; letter-spacing: -0.01em; }
.steps p { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ---------- NETWORK (multi-site) ---------- */
.network-section { padding-block: 0 clamp(64px, 7.5vw, 96px); }
.network {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px 56px; align-items: center;
  padding: clamp(28px, 4.5vw, 56px); border-radius: 24px; color: #fff;
  background: radial-gradient(600px 300px at 100% 0%, rgba(44,207,159,.16), transparent 70%), linear-gradient(120deg, var(--navy-900), #123a63);
}
.network__title { font-size: clamp(28px, 3.2vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin: 6px 0 16px; }
.network__copy p:last-child { font-size: 17px; color: rgba(226,236,246,.85); line-height: 1.6; }
.network__panel { padding: 22px; border-radius: 16px; background: #fff; color: var(--navy-800); box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.network__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-weight: 700; font-size: 15px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.network__head small { font-weight: 500; font-size: 12px; color: var(--muted); }
.network ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.network li { display: grid; grid-template-columns: 140px 1fr 44px; align-items: center; gap: 12px; font-size: 14px; }
.network li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.network li b { position: relative; height: 8px; border-radius: 8px; background: #e3eaf1; overflow: hidden; }
.network li b::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--green-700), var(--green-400)); transform-origin: left; transition: transform 1s var(--ease-out) .2s; }
.network li b.is-warn::before { background: linear-gradient(90deg, #d97706, #fbbf24); }
.network li b.is-risk::before { background: linear-gradient(90deg, #dc2626, #f87171); }
.js .network:not(.is-in) li b::before { transform: scaleX(0); }
.network li em { font-style: normal; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- COMING SOON ---------- */
.soon-section { padding-block: 0 clamp(64px, 7.5vw, 96px); }
.soon-section .section-title { margin-bottom: 28px; }
.soon { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.soon__card { display: flex; gap: 20px; align-items: flex-start; padding: 26px; border-radius: 18px; border: 1.5px dashed #c9d6e2; background: #fafcfd; }
.soon__card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 22px; color: var(--navy-900); margin-bottom: 6px; }
.soon__card p { font-size: 15.5px; color: var(--muted); margin-bottom: 14px; }
.tag-soon { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #9a6400; background: #fdf0d2; padding: 4px 9px; border-radius: 999px; }

/* ---------- SECURITY ---------- */
.security { padding-block: clamp(64px, 7.5vw, 96px); background: #f3f8fa; border-block: 1px solid var(--line); }
.security__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px 64px; align-items: end; margin-bottom: 36px; }
.security__head > p { font-size: 17px; color: var(--muted); }
.secure { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.secure li { padding: 24px 22px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.secure__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #e1ecfd; color: #1d4ed8; font-size: 22px; margin-bottom: 16px; }
.secure h3 { font-size: 17px; color: var(--navy-900); margin-bottom: 6px; }
.secure p { font-size: 15px; color: var(--muted); line-height: 1.5; }

/* ---------- ABOUT ---------- */
.about { padding-block: clamp(64px, 7.5vw, 96px); }
.aboutbox { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: center; }
.aboutbox__text { display: grid; gap: 16px; }
.aboutbox__text p { font-size: 17px; color: var(--muted); line-height: 1.65; }
@media (min-width: 1101px) { .aboutbox__text { padding-top: 30px; } }

/* ---------- FAQ ---------- */
.faq-section { padding-block: 0 clamp(64px, 7.5vw, 96px); }
.faq-section__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px 64px; align-items: start; }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0;
  list-style: none; cursor: pointer; font-weight: 700; font-size: 17px; color: var(--navy-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--green-700); }
.faq summary .ic { flex-shrink: 0; color: var(--green-700); transition: transform .3s var(--ease-out); }
html:not(.js) .faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 40px 20px 0; font-size: 16px; color: var(--muted); line-height: 1.6; }

/* ---------- RESOURCES ---------- */
.rcard--soon { opacity: .85; }
.rcard--soon:hover { translate: none; box-shadow: 0 1px 2px rgba(15,43,76,.04), 0 12px 32px -20px rgba(15,43,76,.3), 0 0 0 1px var(--line); }
.rcard--soon .rcard__tag { color: #9a6400; background: #fdf0d2; }

/* ---------- FOOTER ---------- */
.footer { padding: 56px 0 28px; background: var(--navy-950); color: rgba(226,236,246,.78); }
.footer .logo { color: #fff; }
.footer .logo__sub { color: var(--green-300); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand p { margin-top: 16px; font-size: 15px; max-width: 280px; line-height: 1.55; }
.footer h3 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.footer__grid nav, .footer__grid > div:last-child { display: grid; align-content: start; gap: 10px; font-size: 15px; }
.footer a:hover { color: var(--green-300); }
.footer small { font-size: 11px; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.1); }
.footer__icon { display: inline-flex; align-items: center; gap: 8px; }
.footer__place { font-size: 14px; opacity: .8; }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 22px; font-size: 13.5px; }
.footer__legal nav { display: flex; gap: 20px; }

/* ---------- Form: six fields in the dialog ---------- */
.landing .form__status a { color: inherit; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .product__inner, .network, .aboutbox, .faq-section__inner, .security__head { grid-template-columns: 1fr; }
  .steps, .secure { grid-template-columns: 1fr 1fr; }
  .steps li::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .pains, .soon, .steps, .secure, .footer__grid { grid-template-columns: 1fr; }
  .pains { gap: 22px; }
  .soon__card { flex-direction: column; padding: 22px; }
  .app--lg { grid-template-columns: 1fr; min-height: 0; }
  .app--lg .app__side { display: none; }
  .network li { grid-template-columns: minmax(0, 1.3fr) 1fr 36px; gap: 10px; font-size: 13px; }
  .network__panel { padding: 18px 16px; }
  .faq details p { padding-right: 0; }
}

/* =========================================================
   MOTION — scroll effects (only with JS; off with reduced motion)
   ========================================================= */

/* Cascades: each card waits its turn (--d is set in landing.js) */
.js .landing .reveal { transition-delay: var(--d, 0ms); }

/* Nav without backdrop blur: re-blurring the page under a fixed bar on every scroll frame
   is expensive. At 92% white the blur was barely visible; 97% looks the same. */
.landing .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,.97); }

/* Reading progress under the nav */
.progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--green-600), var(--green-400));
  transform: scaleX(0); transform-origin: left; pointer-events: none;
}

/* Hero: photo and floating card drift at different speeds */
.hero__photo, .hero .checklist { will-change: transform; }

/* Pains: icons pop in after their card */
.js .pains .pains__icon { transform: scale(.4) rotate(-14deg); opacity: 0; transition: transform .6s cubic-bezier(.34,1.56,.64,1), opacity .3s; transition-delay: calc(var(--d, 0ms) + .2s); }
.js .pains .is-in .pains__icon { transform: none; opacity: 1; }

/* Acredita360 screen: tilted back on the way in, flat in the middle, then builds piece by piece */
.product__visual { perspective: 1400px; }
.js .product__visual .app { transform-origin: 50% 100%; } /* rotate/scale set from landing.js */
.js .product__visual [data-seq] {
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
  transition-delay: calc(.25s + var(--i, 0) * 45ms);
}
.js .product__visual .app__side [data-seq] { transform: translateX(-10px); }
.js .product__visual .chip { opacity: 0; transform: scale(.4); transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .3s; transition-delay: calc(.75s + var(--i, 0) * 90ms); }
.js .product__visual .meter__bar b { transform: scaleX(0); transition: transform 1.1s var(--ease-out) .5s; }
.js .product__visual .app__side .is-active::before { transform: scaleX(0); transition: transform .45s var(--ease-out) .45s; }
.js .product__visual.is-in [data-seq],
.js .product__visual.is-in .chip { opacity: 1; transform: none; }
.js .product__visual.is-in .meter__bar b,
.js .product__visual.is-in .app__side .is-active::before { transform: none; }

/* Checks next to the product: tick in one by one */
.js .checks li { opacity: 0; transform: translateX(-12px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.js .checks li:nth-child(2) { transition-delay: .1s; }
.js .checks li:nth-child(3) { transition-delay: .2s; }
.js .checks li:nth-child(4) { transition-delay: .3s; }
.js .is-in .checks li { opacity: 1; transform: none; }

/* Steps: a line runs through the numbers and fills with the scroll */
.steps { position: relative; }
.steps::before, .steps::after {
  content: ""; position: absolute; z-index: 1; top: 45px; height: 3px; border-radius: 3px; pointer-events: none;
  left: 42px; right: calc((100% - 60px) / 4 - 42px);
}
.steps::before { background: #dde6ee; }
.steps::after { background: linear-gradient(90deg, var(--green-700), var(--green-400)); transform: scaleX(var(--fill, 0)); transform-origin: left; }
.steps li:not(:last-child)::after { display: none; }
.steps__n { position: relative; z-index: 2; transition: background-color .4s, color .4s, transform .5s cubic-bezier(.34,1.56,.64,1), box-shadow .4s; }
.js .steps li:not(.is-lit) .steps__n { background: #fff; color: var(--muted); box-shadow: inset 0 0 0 2px #dde6ee; }
.js .steps li.is-lit .steps__n { background: var(--green-600); color: #fff; transform: scale(1.08); box-shadow: 0 0 0 6px rgba(14,159,126,.15); }
.js .steps li h3 { transition: color .4s; }
.js .steps li:not(.is-lit) h3 { color: var(--ink-soft); }

/* Network: bars fill one after another, percentages count up */
.network li:nth-child(2) b::before { transition-delay: .32s; }
.network li:nth-child(3) b::before { transition-delay: .44s; }
.network li:nth-child(4) b::before { transition-delay: .56s; }
.network li:nth-child(5) b::before { transition-delay: .68s; }
.network__panel { will-change: transform; }

/* Security: icons pop after their card */
.js .secure .secure__icon { transform: scale(.5); opacity: 0; transition: transform .6s cubic-bezier(.34,1.56,.64,1), opacity .3s; transition-delay: calc(var(--d, 0ms) + .25s); }
.js .secure .is-in .secure__icon { transform: none; opacity: 1; }

/* "Nosotros": title lights up word by word with the scroll */
.js .split .w { opacity: .15; transition: opacity .35s ease; }
.js .split .w.is-lit { opacity: 1; }

/* CTA: a soft shine crosses the band when it appears */
.cta-band::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.13) 50%, transparent 65%);
  transform: translateX(-110%);
}
.js .cta-band.is-in::after { animation: shine 1.8s .5s var(--ease-out) both; }
@keyframes shine { to { transform: translateX(110%); } }

/* Hover (desktop): cards lift and a light follows the pointer */
.has-spot { transition: translate .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.js .landing .reveal.has-spot, .js .landing .rcard.reveal {
  transition: opacity .7s var(--ease-out) var(--d, 0ms), transform .7s var(--ease-out) var(--d, 0ms),
              translate .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.has-spot:hover {
  translate: 0 -5px;
  background-image: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 50%), rgba(14,159,126,.09), transparent 70%);
  box-shadow: 0 0 0 1px rgba(14,159,126,.35), 0 24px 44px -26px rgba(15,43,76,.4);
}

@media (max-width: 1100px) {
  .steps::before, .steps::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .pains .pains__icon, .js .secure .secure__icon, .js .checks li,
  .js .product__visual [data-seq], .js .product__visual .chip { opacity: 1 !important; transform: none !important; }
  .js .product__visual .meter__bar b, .js .product__visual .app__side .is-active::before, .js .product__visual .app { transform: none !important; }
  .js .steps li:not(.is-lit) .steps__n { background: var(--navy-900); color: var(--green-300); box-shadow: none; }
  .js .steps li:not(.is-lit) h3 { color: var(--navy-900); }
  .steps::after { transform: none; }
  .js .network li b::before { transform: none !important; }
  .js .cta-band.is-in::after { animation: none; }
  .has-spot:hover { translate: none; }
}

/* =========================================================
   FAQ — smooth accordion (animation in landing.js)
   ========================================================= */
.faq details { position: relative; transition: background-color .35s var(--ease-out); border-radius: 0; }
.faq details::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px;
  background: var(--green-600); transform: scaleY(0); transition: transform .4s var(--ease-out);
}
.faq summary { padding: 22px 4px 22px 0; transition: color .25s, padding-left .4s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.faq summary:focus-visible { outline: 3px solid var(--green-600); outline-offset: 2px; border-radius: 8px; }
.faq summary .ic {
  width: 34px; height: 34px; padding: 8px; border-radius: 50%;
  background: #e9f7f2; color: var(--green-700); stroke-width: 2.4;
  transition: transform .45s cubic-bezier(.34,1.56,.64,1), background-color .3s, color .3s, box-shadow .3s;
}
.faq summary:hover .ic { background: #d3f1e5; box-shadow: 0 0 0 5px rgba(14,159,126,.08); }
.faq summary:active .ic { transform: scale(.86); }
/* Open state (class for JS so it reacts immediately; [open] covers no-JS) */
html:not(.js) .faq details[open] summary .ic,
.faq details.is-open summary .ic { transform: rotate(135deg); background: var(--green-600); color: #fff; }
.faq details.is-open summary:active .ic { transform: rotate(135deg) scale(.86); }
.faq details.is-open { background: linear-gradient(90deg, #f3faf7, transparent 85%); }
.faq details.is-open::before { transform: scaleY(1); }
.faq details.is-open summary { color: var(--green-700); padding-left: 18px; }
.faq__a { overflow: hidden; }
.faq details .faq__a p { padding: 0 48px 22px 18px; }
@media (max-width: 720px) {
  .faq details .faq__a p { padding: 0 8px 20px 18px; }
}

/* =========================================================
   SECTION BANDS — full-width backgrounds that separate sections
   Hero (as is) · light-blue bands · white · dark-blue bands
   ========================================================= */
:root {
  --band-pad: clamp(64px, 7.5vw, 96px);
  --band-light: linear-gradient(180deg, #e6effb 0%, #dde9f8 100%);
  --band-light-line: #cfdff2;
  --band-dark:
    radial-gradient(900px 420px at 85% 0%, rgba(44,207,159,.18), transparent 70%),
    linear-gradient(115deg, #0a2342 0%, #0f2f56 55%, #14467a 100%);
}

/* Light-blue bands: Problemas · Cómo funciona · Seguridad · Preguntas frecuentes */
.pains-section, .steps-section, .security, .faq-section {
  background: var(--band-light);
  border-block: 1px solid var(--band-light-line);
  padding-block: var(--band-pad);
}

/* White sections in between */
.product, .soon-section, .about, .resources { padding-block: var(--band-pad); background: #fff; }

/* Dark-blue bands, edge to edge: Multi-establecimiento · CTA */
.network-section { padding-block: var(--band-pad); background: var(--band-dark); color: #fff; }
.network-section .network { background: none; padding: 0; border-radius: 0; }
.cta { padding-block: clamp(56px, 6vw, 80px); background: var(--band-dark); }
.cta .cta-band { background: none; padding: 0; border-radius: 0; }
.cta .cta-band::before { display: none; }
.footer { border-top: 1px solid rgba(255,255,255,.08); }

/* Problemas: title + cards like Seguridad (blue icons, same hover) */
.pains-head { margin-bottom: 32px; }
.pains { gap: 20px; }
.pains li {
  flex-direction: column; gap: 16px; padding: 24px 22px;
  background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px #d6e3f3;
}
.pains__icon { width: 48px; height: 48px; border-radius: 12px; background: #e1ecfd; color: #1d4ed8; font-size: 22px; box-shadow: none; }
.pains strong { font-size: 17px; margin-bottom: 6px; }

/* Cards and lines tuned to the light-blue bands */
.steps li, .secure li { box-shadow: 0 0 0 1px #d6e3f3; }
.steps::before { background: #c9d9ee; }
.faq-section .faq { border-top-color: #c9d9ee; }
.faq-section .faq details { border-bottom-color: #c9d9ee; }
.faq-section .faq details.is-open { background: linear-gradient(90deg, #d6e6f8, transparent 85%); }
.js .steps li:not(.is-lit) .steps__n { box-shadow: inset 0 0 0 2px #c9d9ee; }

/* Cards and illustrative panels: normal arrow cursor (no text I-beam on hover).
   Links and buttons inside keep their pointer. */
.landing :is(.pains li, .steps li, .secure li, .soon__card, .rcard--soon, .app, .network__panel, .checklist) { cursor: default; }
.landing :is(.pains li, .steps li, .secure li, .soon__card, .rcard--soon) :is(a, button) { cursor: pointer; }
