:root {
  --blue: #0768be;
  --navy: #082b4c;
  --green: #00a88f;
  --ink: #102a43;
  --muted: #617487;
  --line: #d7e1e8;
  --paper: #f3f1ea;
  --system: #0768be;
  --system-dark: #082b4c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: Inter, Arial, sans-serif; background: #fff; }
a { color: inherit; text-decoration: none; }

.system-topbar {
  min-height: 34px;
  padding: 8px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--navy);
  color: #c8d8e6;
  font-size: 10px;
  letter-spacing: .04em;
}

.system-topbar div { display: flex; gap: 22px; }

.system-header {
  height: 78px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  gap: 36px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  box-shadow: inset 0 -1px var(--line);
  backdrop-filter: blur(14px);
}

.system-brand { display: flex; align-items: center; gap: 11px; white-space: nowrap; }
.system-brand img { width: 38px; height: 38px; object-fit: contain; }
.system-brand span { display: flex; flex-wrap: wrap; width: 112px; font-size: 17px; line-height: 1; letter-spacing: -.04em; }
.system-brand b { margin-left: 4px; color: var(--blue); }
.system-brand small { width: 100%; margin-top: 5px; color: #718596; font-size: 7px; letter-spacing: .08em; text-transform: uppercase; }

.system-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.system-nav a { color: #365066; font-size: 12px; font-weight: 700; }
.system-nav a:hover { color: var(--blue); }
.system-nav .quote-link { padding: 12px 17px; background: var(--blue); color: #fff; }
.system-menu { display: none; margin-left: auto; border: 0; background: none; }
.system-menu i { display: block; width: 23px; height: 2px; margin: 5px 0; background: var(--ink); }

.product-hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 112px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, .92fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 2px 2px, rgba(7, 104, 190, .09) 1px, transparent 1.2px) 24px 24px / 36px 36px,
    linear-gradient(125deg, #f7f8f8 0%, #fff 58%, #edf2f4 100%);
}

.product-hero-copy {
  position: relative;
  z-index: 3;
  padding: clamp(65px, 9vh, 105px) 6vw 190px 7vw;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: clamp(48px, 8vh, 85px);
  color: var(--system-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.back-link span { transition: transform .2s; }
.back-link:hover span { transform: translateX(-4px); }
.product-kicker { color: var(--system); font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }

.product-hero h1 {
  max-width: 830px;
  margin: 18px 0 22px;
  font-size: clamp(54px, 7vw, 102px);
  line-height: .88;
  letter-spacing: -.075em;
}

.product-hero h1 span { display: block; color: var(--system); }
.product-lead { max-width: 650px; color: #52697c; font-size: 17px; line-height: 1.65; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.system-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--system);
  background: var(--system);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: transform .2s, box-shadow .2s;
}

.system-button:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--system-dark); }
.system-button.secondary { background: transparent; color: var(--system-dark); }
.system-button.whatsapp { background: var(--green); border-color: var(--green); color: #fff; }
.system-button.whatsapp:hover { background: #08bc9f; }

.product-hero-visual {
  position: relative;
  z-index: 3;
  min-height: 680px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg, var(--system-dark), var(--system));
}

.product-hero-visual::before {
  content: "";
  position: absolute;
  inset: 5%;
  border: 1px solid rgba(255, 255, 255, .24);
  transform: rotate(7deg);
}

.product-hero-visual::after {
  content: attr(data-index);
  position: absolute;
  right: -20px;
  bottom: -60px;
  color: rgba(255, 255, 255, .07);
  font-size: clamp(180px, 25vw, 360px);
  font-weight: 800;
  letter-spacing: -.12em;
}

.product-logo-card {
  position: relative;
  z-index: 3;
  width: min(74%, 470px);
  min-height: 290px;
  display: grid;
  place-items: center;
  padding: 55px;
  background: #fff;
  box-shadow: 18px 18px 0 rgba(0, 20, 42, .28);
}

.product-logo-card img { width: 100%; max-height: 185px; object-fit: contain; }
.product-visual-note { position: absolute; z-index: 4; right: 6%; bottom: 10%; padding: 15px 18px; background: var(--green); color: #fff; }
.product-visual-note b, .product-visual-note span { display: block; }
.product-visual-note b { font-size: 12px; }
.product-visual-note span { margin-top: 3px; font-size: 9px; }

.product-ribbons { position: absolute; z-index: 5; left: 0; bottom: -1px; width: 100%; height: 145px; pointer-events: none; }

.chapter-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--system-dark);
  color: #fff;
}

.chapter-strip article { min-height: 145px; padding: 30px 4vw; box-shadow: inset -1px 0 rgba(255, 255, 255, .17); }
.chapter-strip small { color: #77e1d1; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.chapter-strip b { display: block; margin-top: 13px; font-size: 17px; line-height: 1.25; }

.system-section { position: relative; padding: 120px 7vw; }
.system-section::before { content: attr(data-chapter); position: absolute; top: 30px; left: 7vw; color: rgba(16, 42, 67, .46); font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 8vw; align-items: end; }
.section-heading h2 { max-width: 780px; margin: 0; font-size: clamp(44px, 5.5vw, 76px); line-height: .98; letter-spacing: -.06em; }
.section-heading h2 span { color: var(--system); }
.section-heading p { max-width: 520px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.feature-showcase {
  position: relative;
  isolation: isolate;
  height: clamp(340px, 42vw, 540px);
  margin: 58px 0 0;
  overflow: hidden;
  background: var(--system-dark);
  box-shadow: 14px 14px 0 rgba(8, 43, 76, .12);
}

.feature-showcase picture,
.feature-showcase img {
  display: block;
  width: 100%;
  height: 100%;
}

.feature-showcase img {
  object-fit: cover;
  transition: transform 1s cubic-bezier(.2, .75, .25, 1);
}

.feature-showcase::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 28, 57, .92) 0%, rgba(5, 28, 57, .48) 28%, transparent 68%);
  pointer-events: none;
}

.feature-showcase:hover img {
  transform: scale(1.025);
}

.feature-showcase figcaption {
  position: absolute;
  z-index: 2;
  right: 34px;
  bottom: 30px;
  left: 34px;
  color: #fff;
}

.feature-showcase figcaption small {
  display: block;
  margin-bottom: 9px;
  color: #72ead8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
}

.feature-showcase figcaption strong {
  display: block;
  max-width: 900px;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.feature-grid { counter-reset: feature; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 65px; box-shadow: inset 1px 0 #aebcc6, inset 0 1px #aebcc6; }
.feature-showcase + .feature-grid { margin-top: 34px; }
.feature-card { counter-increment: feature; position: relative; min-height: 230px; padding: 65px 34px 32px; background: var(--paper); box-shadow: inset -1px -1px #aebcc6; }
.feature-card:nth-child(3n + 2) { background: #eef5f5; }
.feature-card:nth-child(3n) { background: #eaf0f5; }
.feature-card::before { content: "0" counter(feature); position: absolute; top: 25px; left: 34px; color: var(--system); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.feature-card h3 { margin: 0 0 12px; font-size: 20px; letter-spacing: -.035em; }
.feature-card p { margin: 0; color: #526a7d; font-size: 13px; line-height: 1.65; }

.audience-section { overflow: hidden; background: linear-gradient(135deg, var(--system-dark), var(--system)); color: #fff; }
.audience-section::before { color: rgba(255, 255, 255, .62); }
.audience-section::after { content: "IDEAL PARA"; position: absolute; right: -2%; top: 70px; color: rgba(255, 255, 255, .045); font-size: clamp(90px, 13vw, 190px); font-weight: 800; letter-spacing: -.08em; }
.audience-section .section-heading { position: relative; z-index: 2; }
.audience-section .section-heading h2 span { color: #72ead8; }
.audience-section .section-heading p { color: #c6d9e7; }
.audience-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 60px; }
.audience-card { min-height: 190px; padding: 27px; background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }
.audience-card span { width: 34px; height: 34px; display: grid; place-items: center; background: var(--green); font-size: 12px; font-weight: 800; }
.audience-card h3 { margin: 28px 0 9px; font-size: 17px; }
.audience-card p { margin: 0; color: #c4d7e5; font-size: 12px; line-height: 1.55; }

.system-switcher { background: #f3f1ea; }
.switch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 60px; box-shadow: inset 1px 0 #afbdc6, inset 0 1px #afbdc6; }
.switch-card { min-height: 165px; display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 18px; padding: 22px; background: rgba(255, 255, 255, .65); box-shadow: inset -1px -1px #afbdc6; transition: background .2s; }
.switch-card:hover, .switch-card.active { background: #fff; }
.switch-card.active { box-shadow: inset 6px 0 var(--system), inset -1px -1px #afbdc6; }
.switch-card img { width: 100%; height: 75px; object-fit: contain; }
.switch-card small { color: var(--system); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.switch-card b { display: block; margin-top: 7px; font-size: 14px; line-height: 1.25; }

.product-cta { position: relative; overflow: hidden; min-height: 550px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8vw; padding: 100px 7vw; background: var(--system-dark); color: #fff; }
.product-cta::after { content: "↗"; position: absolute; right: 4%; top: -80px; color: rgba(255, 255, 255, .055); font-size: 360px; font-family: Georgia, serif; }
.product-cta > div, .product-cta > a { position: relative; z-index: 2; }
.product-cta small { color: #72ead8; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
.product-cta h2 { max-width: 770px; margin: 18px 0; font-size: clamp(46px, 6vw, 82px); line-height: .95; letter-spacing: -.065em; }
.product-cta p { max-width: 620px; color: #bbcfdd; line-height: 1.65; }
.product-cta .system-button { min-width: 210px; background: var(--green); border-color: var(--green); }

.system-pager { display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.pager-link { min-height: 135px; padding: 30px 7vw; display: flex; flex-direction: column; justify-content: center; box-shadow: inset 0 -1px var(--line); }
.pager-link + .pager-link { align-items: flex-end; text-align: right; box-shadow: inset 1px 0 var(--line), inset 0 -1px var(--line); }
.pager-link small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pager-link b { margin-top: 8px; color: var(--blue); font-size: 16px; }

.system-footer { padding: 55px 7vw 25px; background: #061b31; color: #fff; }
.system-footer-main { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 60px; padding-bottom: 45px; }
.system-footer h3 { margin: 0 0 14px; font-size: 18px; }
.system-footer p, .system-footer a { color: #9fb5c5; font-size: 11px; line-height: 1.7; }
.system-footer nav { display: flex; flex-direction: column; gap: 7px; }
.system-footer-bottom { padding-top: 20px; display: flex; justify-content: space-between; color: #718da1; font-size: 9px; box-shadow: inset 0 1px rgba(255, 255, 255, .12); }

/* Entradas suaves para las fichas de sistemas. */
.hero-slide,
.scroll-slide {
  will-change: opacity, transform;
}

.hero-slide {
  opacity: 0;
  transition: opacity .9s cubic-bezier(.2, .75, .25, 1), transform .9s cubic-bezier(.2, .75, .25, 1);
}

.hero-slide.slide-from-left {
  transform: translateX(-54px);
}

.hero-slide.slide-from-right {
  transform: translateX(54px);
}

.motion-ready .hero-slide {
  opacity: 1;
  transform: translateX(0);
}

.motion-ready .product-hero-visual.hero-slide {
  transition-delay: 120ms;
}

.scroll-slide {
  opacity: 0;
  transition: opacity .72s cubic-bezier(.2, .75, .25, 1), transform .72s cubic-bezier(.2, .75, .25, 1);
  transition-delay: var(--slide-delay, 0ms);
}

.scroll-slide.slide-from-left {
  transform: translateX(-42px);
}

.scroll-slide.slide-from-right {
  transform: translateX(42px);
}

.scroll-slide.slide-from-bottom {
  transform: translateY(34px);
}

.scroll-slide.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

@media (max-width: 950px) {
  .system-nav { display: none; }
  .system-menu { display: block; }
  .system-header.open .system-nav { position: absolute; top: 77px; right: 0; left: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 18px 5vw; background: #fff; box-shadow: 0 18px 35px rgba(8, 43, 76, .16); }
  .system-header.open .system-nav a { width: 100%; padding: 11px 0; }
  .product-hero { grid-template-columns: 1fr; }
  .product-hero-copy { padding-bottom: 180px; }
  .product-hero-visual { min-height: 560px; }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .audience-grid, .switch-grid { grid-template-columns: repeat(2, 1fr); }
  .product-cta { grid-template-columns: 1fr; }
  .product-cta > .system-button { justify-self: start; }
}

@media (max-width: 620px) {
  .system-topbar { display: none; }
  .system-header { height: 68px; padding: 0 24px; }
  .system-brand img { width: 34px; height: 34px; }
  .system-header.open .system-nav { top: 67px; }
  .product-hero { min-height: 0; }
  .product-hero-copy { padding: 48px 24px 125px; }
  .back-link { margin-bottom: 52px; }
  .product-hero h1 { font-size: 54px; }
  .product-lead { font-size: 15px; }
  .product-actions .system-button { width: 100%; }
  .product-hero-visual { min-height: 430px; }
  .product-logo-card { width: 82%; min-height: 220px; padding: 35px; }
  .product-visual-note { right: 0; bottom: 7%; }
  .product-ribbons { height: 100px; }
  .chapter-strip { grid-template-columns: 1fr; }
  .chapter-strip article { min-height: 0; padding: 24px; }
  .system-section { padding: 95px 24px 80px; }
  .system-section::before { top: 25px; left: 24px; }
  .section-heading h2 { font-size: 42px; }
  .feature-showcase { height: 320px; margin-top: 42px; box-shadow: 8px 8px 0 rgba(8, 43, 76, .12); }
  .feature-showcase figcaption { right: 20px; bottom: 22px; left: 20px; }
  .feature-showcase figcaption strong { font-size: 24px; }
  .feature-grid { grid-template-columns: 1fr; margin-top: 45px; }
  .feature-showcase + .feature-grid { margin-top: 26px; }
  .feature-card { min-height: 0; }
  .audience-grid, .switch-grid { grid-template-columns: 1fr; margin-top: 45px; }
  .product-cta { min-height: 0; padding: 85px 24px; }
  .product-cta h2 { font-size: 45px; }
  .product-cta .system-button { width: 100%; }
  .system-pager { grid-template-columns: 1fr; }
  .pager-link + .pager-link { align-items: flex-start; text-align: left; box-shadow: inset 0 -1px var(--line); }
  .system-footer { padding: 50px 24px 22px; }
  .system-footer-main { grid-template-columns: 1fr; gap: 28px; }
  .system-footer-bottom { flex-direction: column; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-slide, .scroll-slide { opacity: 1 !important; transform: none !important; }
}

/* Tipografía accesible para todas las fichas de sistemas. */
.system-topbar { font-size: 13px; }
.system-brand small { font-size: 10px; }
.system-nav a { font-size: 14px; }
.back-link, .product-kicker { font-size: 13px; }
.product-lead { font-size: 19px; }
.system-button { font-size: 14px; }
.product-visual-note b { font-size: 15px; }
.product-visual-note span { font-size: 12px; }
.chapter-strip small { font-size: 11px; }
.chapter-strip b { font-size: 20px; }
.system-section::before { font-size: 10px; }
.section-heading p { font-size: 17px; }
.feature-card::before { font-size: 12px; }
.feature-card h3 { font-size: 23px; }
.feature-card p { font-size: 16px; }
.audience-card span { font-size: 14px; }
.audience-card h3 { font-size: 20px; }
.audience-card p { font-size: 16px; }
.switch-card small { font-size: 11px; }
.switch-card b { font-size: 17px; }
.product-cta small { font-size: 12px; }
.product-cta p { font-size: 18px; }
.pager-link small { font-size: 11px; }
.pager-link b { font-size: 18px; }
.system-footer p, .system-footer a { font-size: 14px; }
.system-footer-bottom { font-size: 12px; }
