:root {
  --navy: #16324f;
  --navy-deep: #0f2940;
  --teal: #2ec4b6;
  --teal-dark: #1d8f87;
  --ink: #102a3e;
  --muted: #5d7283;
  --line: #d7e1e8;
  --paper: #ffffff;
  --canvas: #f5f8fa;
  --soft: #e8f8f6;
  --warm: #ff7f50;
  --radius: 6px;
  --shadow: 0 12px 32px rgba(16, 42, 67, 0.12);
  --font: Inter, "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  letter-spacing: 0;
}

a,
button,
summary {
  letter-spacing: 0;
}

a {
  color: inherit;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 10px max(24px, calc((100% - 1180px) / 2));
  color: var(--navy);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-symbol {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--teal);
  border-radius: 4px;
  font-weight: 800;
}

.public-brand strong,
.public-brand small {
  display: block;
}

.public-brand strong {
  font-size: 17px;
}

.public-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.public-navigation {
  display: flex;
  align-items: center;
  gap: 25px;
}

.public-navigation a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: color 120ms ease, background-color 120ms ease;
}

.public-navigation a:hover {
  color: var(--navy);
}

.public-navigation .header-access {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  color: #ffffff;
  background: var(--navy);
  border-radius: 4px;
}

.hero {
  position: relative;
  height: calc(100svh - 116px);
  min-height: 620px;
  max-height: 820px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background-color: var(--navy-deep);
  background-image: url("/assets/erp-emision-certificada.png");
  background-position: right center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(64%, 900px);
  background: rgba(15, 41, 64, 0.96);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 42px 0;
}

.hero-kicker,
.eyebrow {
  margin: 0 0 9px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: 58px;
  line-height: 1.05;
}

.hero-lead {
  max-width: 720px;
  margin: 16px 0 0;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
}

.hero-copy {
  max-width: 610px;
  margin: 16px 0 0;
  color: #dce7ef;
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.button.primary {
  color: #ffffff;
  background: var(--teal-dark);
}

.button.primary:hover {
  background: #167970;
}

.button.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.65);
}

.button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.button.outline {
  color: var(--navy);
  background: transparent;
  border-color: var(--navy);
}

.button.outline:hover {
  background: var(--soft);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 28px;
  margin: 27px 0 0;
  padding: 0;
  list-style: none;
  color: #dce7ef;
  font-size: 13px;
  font-weight: 700;
}

.hero-proof li::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 8px;
  background: var(--teal);
  border-radius: 50%;
}

.first-encounter {
  position: absolute;
  z-index: 4;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.atlas-figure {
  position: absolute;
  z-index: 1;
  right: -340px;
  bottom: 2%;
  width: auto;
  height: 35%;
  aspect-ratio: 2 / 3;
  margin: 0;
  opacity: 0;
}

.atlas-figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.atlas-voice {
  position: absolute;
  z-index: 2;
  top: 13%;
  left: clamp(520px, 44vw, 610px);
  width: min(19vw, 245px);
  color: #ffffff;
  text-shadow: 0 1px 12px rgba(15, 41, 64, 0.42);
  opacity: 0;
  transform: translateY(7px);
  transition:
    opacity 420ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.atlas-name {
  display: block;
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.atlas-name::after {
  content: "";
  width: 34px;
  height: 1px;
  display: inline-block;
  margin: 0 0 3px 9px;
  background: currentColor;
}

#atlas-speech {
  min-height: 4.5em;
  margin: 0;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.48;
  text-wrap: balance;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 170ms ease, transform 170ms ease;
}

.atlas-voice.is-changing #atlas-speech {
  opacity: 0;
  transform: translateY(3px);
}

.first-encounter.is-entering .atlas-figure {
  right: clamp(170px, 22vw, 300px);
  opacity: 1;
  transition:
    opacity 360ms ease,
    right 780ms cubic-bezier(0.22, 1, 0.36, 1),
    height 780ms cubic-bezier(0.22, 1, 0.36, 1),
    bottom 780ms cubic-bezier(0.22, 1, 0.36, 1);
}

.first-encounter.is-speaking .atlas-voice {
  opacity: 1;
  transform: translateY(0);
}

.first-encounter.is-resting .atlas-figure {
  right: clamp(210px, 25vw, 340px);
  bottom: 3%;
  height: 28%;
}

.first-encounter.is-inviting .atlas-figure {
  right: clamp(220px, 26vw, 354px);
}

.first-encounter.is-leaving .atlas-figure {
  right: -340px;
  opacity: 0.98;
  transition:
    right 900ms cubic-bezier(0.32, 0, 0.2, 1),
    opacity 260ms ease 640ms;
}

.first-encounter.is-leaving .atlas-voice {
  opacity: 0;
  transform: translateX(16px);
  transition-delay: 0ms;
}

.hero.is-inviting #begin-journey {
  animation: invitation-breath 1400ms ease-out 1;
}

@keyframes invitation-breath {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 196, 182, 0); }
  45% { box-shadow: 0 0 0 6px rgba(46, 196, 182, 0.2); }
}

.trust-band {
  min-height: 124px;
  display: flex;
  align-items: center;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.section-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-grid p {
  min-height: 64px;
  margin: 0;
  padding: 8px 24px;
  border-left: 1px solid var(--line);
}

.trust-grid p:first-child {
  border-left: 0;
  padding-left: 0;
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 16px;
}

.trust-grid span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.section {
  padding: 88px 0;
}

.section-light {
  background: var(--canvas);
}

.section-ink {
  color: #ffffff;
  background: var(--navy);
}

.section-product {
  background: var(--paper);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading h2,
.final-cta h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.18;
}

.section-heading > p:last-child {
  margin: 13px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.section-heading.inverse > p:last-child {
  color: #d1dfe9;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.benefit-grid article {
  min-height: 230px;
  padding: 28px 24px;
  border-left: 1px solid var(--line);
}

.benefit-grid article:first-child {
  border-left: 0;
}

.item-index {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
}

.benefit-grid h3,
.feature-list h3 {
  margin: 35px 0 9px;
  font-size: 19px;
}

.benefit-grid p,
.feature-list p,
.audience-grid span,
.journey-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.audience-grid article {
  min-height: 165px;
  padding: 27px 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.audience-grid article:last-child {
  border-right: 0;
}

.audience-grid strong,
.audience-grid span {
  display: block;
}

.audience-grid strong {
  min-height: 47px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.35;
}

.audience-grid span {
  color: #cddce7;
}

.journey-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding-right: 24px;
}

.journey-steps li::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 14px;
  width: 20px;
  height: 1px;
  background: var(--line);
}

.journey-steps li:last-child::after {
  display: none;
}

.journey-steps li > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--navy);
  border-radius: 50%;
  font-weight: 800;
}

.journey-steps strong {
  display: block;
  margin: 2px 0 6px;
  font-size: 17px;
}

.product-figure {
  margin: 0;
}

.product-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.feature-list article {
  min-height: 150px;
  padding: 5px 28px 26px 0;
  border-bottom: 1px solid var(--line);
}

.feature-list article:nth-child(3n+2),
.feature-list article:nth-child(3n+3) {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.feature-list h3 {
  margin-top: 24px;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 70px;
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 22px 42px 22px 0;
  color: var(--navy);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 19px;
  right: 4px;
  color: var(--teal-dark);
  font-size: 22px;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0;
  padding: 0 42px 22px 0;
  color: var(--muted);
  line-height: 1.6;
}

.final-cta {
  padding: 64px 0;
  background: var(--soft);
  border-top: 1px solid #cce5e1;
}

.final-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.final-cta p {
  margin: 10px 0 0;
  color: var(--muted);
}

.public-footer {
  padding: 36px 0;
  color: #d6e2eb;
  background: var(--navy-deep);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.footer-content strong,
.footer-content span {
  display: block;
}

.footer-content span {
  margin-top: 5px;
  color: #9fb3c3;
  font-size: 13px;
}

.footer-content nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-content a {
  color: #d6e2eb;
  font-size: 13px;
  text-decoration: none;
}

.footer-content a:hover {
  color: var(--teal);
}

@media (max-width: 960px) {
  .hero-overlay {
    width: 100%;
    background: rgba(15, 41, 64, 0.93);
  }

  .hero {
    min-height: 700px;
    background-position: 72% center;
  }

  .hero-content > :not(.hero-actions):not(.hero-proof),
  .hero-actions,
  .hero-proof {
    max-width: 56%;
  }

  .atlas-figure {
    right: -300px;
    height: 33%;
  }

  .first-encounter.is-entering .atlas-figure {
    right: 12px;
  }

  .first-encounter.is-resting .atlas-figure {
    right: 18px;
    height: 26%;
  }

  .atlas-voice {
    top: 10%;
    right: clamp(170px, 25vw, 235px);
    left: auto;
    width: min(27vw, 235px);
    color: #ffffff;
    text-shadow: 0 1px 12px rgba(15, 41, 64, 0.42);
  }

  .benefit-grid,
  .journey-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .benefit-grid article:nth-child(odd) {
    border-left: 0;
  }

  .benefit-grid article:nth-child(n+3) {
    border-top: 1px solid var(--line);
  }

  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audience-grid article {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .journey-steps {
    gap: 30px 10px;
  }

  .journey-steps li:nth-child(2)::after {
    display: none;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 720px) {
  .public-header {
    min-height: 66px;
    padding: 9px 16px;
  }

  .public-brand small,
  .public-navigation a:not(.header-access) {
    display: none;
  }

  .public-navigation {
    gap: 8px;
  }

  .hero {
    height: calc(100svh - 100px);
    min-height: 760px;
    max-height: none;
    align-items: flex-start;
    background-position: 70% center;
  }

  .hero-content {
    padding: 34px 0 300px;
  }

  .hero-content > :not(.hero-actions):not(.hero-proof),
  .hero-actions,
  .hero-proof {
    max-width: none;
  }

  .hero-content,
  .section-inner {
    width: min(100% - 32px, 1180px);
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-lead {
    font-size: 22px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-proof {
    gap: 10px 16px;
  }

  .atlas-figure {
    right: -240px;
    bottom: 1%;
    height: 31%;
  }

  .first-encounter.is-entering .atlas-figure {
    right: 12px;
  }

  .first-encounter.is-resting .atlas-figure {
    right: 16px;
    bottom: 1.5%;
    height: 25%;
  }

  .atlas-voice {
    top: auto;
    right: auto;
    bottom: 12%;
    left: 16px;
    width: min(52vw, 205px);
    color: #ffffff;
  }

  #atlas-speech {
    min-height: 6.2em;
    font-size: 16px;
    line-height: 1.45;
    text-wrap: pretty;
  }

  .atlas-name {
    color: var(--teal);
  }

  .trust-band {
    min-height: 0;
    padding: 22px 0;
  }

  .trust-grid,
  .benefit-grid,
  .audience-grid,
  .journey-steps,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .trust-grid p,
  .trust-grid p:first-child {
    min-height: 0;
    padding: 13px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .trust-grid p:first-child {
    border-top: 0;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading h2,
  .final-cta h2 {
    font-size: 31px;
  }

  .benefit-grid article,
  .benefit-grid article:nth-child(odd) {
    min-height: 0;
    padding: 25px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .benefit-grid article:first-child {
    border-top: 0;
  }

  .benefit-grid h3 {
    margin-top: 20px;
  }

  .audience-grid article {
    min-height: 0;
    padding: 22px 0;
    border-right: 0;
  }

  .audience-grid strong {
    min-height: 0;
    margin-bottom: 7px;
  }

  .journey-steps {
    gap: 27px;
  }

  .journey-steps li::after {
    display: none;
  }

  .feature-list article,
  .feature-list article:nth-child(3n+2),
  .feature-list article:nth-child(3n+3) {
    min-height: 0;
    padding: 0 0 22px;
    border-left: 0;
  }

  .final-cta-content,
  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-actions {
    width: 100%;
  }

  .final-actions .button {
    flex: 1 1 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .first-encounter .atlas-figure,
  .first-encounter .atlas-voice,
  .first-encounter #atlas-speech {
    transition: none !important;
  }

  .hero.is-inviting #begin-journey {
    animation: none;
    outline: 3px solid rgba(46, 196, 182, 0.32);
    outline-offset: 3px;
  }
}
