:root {
  --navy: #030923;
  --midnight: #041a53;
  --blue: #0059ff;
  --violet: #0059ff;
  --sky: #0059ff;
  --orange: #0059ff;
  --gold: #4d8bff;
  --ink: #030923;
  --muted: #5b6478;
  --line: #d4dcec;
  --soft: #f3f6fc;
  --paper: #ffffff;
  --dark-card: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 70px rgba(3, 9, 35, 0.18);
  --radius: 8px;
  --font-display: "Satoshi", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-accent: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--soft);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.015em;
}

h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.eyebrow,
.panel-label,
.tab-button,
.pain-grid span,
.case-num,
.hero-proof span,
.result {
  font-family: var(--font-accent);
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: #fff;
  background: var(--blue);
  border-radius: var(--radius);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.scroll-progress {
  position: fixed;
  z-index: 80;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.site-header {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: #fff;
  background: rgba(3, 9, 35, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(3, 9, 35, 0.12);
}

.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  width: auto;
  height: 112px;
  margin: -32px 0;
  object-fit: contain;
}

.brand-logo--dark {
  display: none;
}

.site-header.is-scrolled .brand-logo--light,
.site-header.is-open .brand-logo--light {
  display: none;
}

.site-header.is-scrolled .brand-logo--dark,
.site-header.is-open .brand-logo--dark {
  display: block;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 15px;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  opacity: 0.82;
  transition: opacity 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-item {
  position: relative;
  display: inline-flex;
}

.submenu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 15px;
  font-weight: 700;
  opacity: 0.82;
  transition: opacity 0.2s ease;
}

.submenu-toggle:hover,
.submenu-toggle:focus-visible,
.nav-item.is-open .submenu-toggle {
  opacity: 1;
}

.submenu-caret {
  flex: none;
  transition: transform 0.25s ease;
}

.nav-item:hover .submenu-caret,
.nav-item.is-open .submenu-caret {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 70;
  display: grid;
  gap: 2px;
  min-width: 248px;
  padding: 8px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 26px 60px rgba(3, 9, 35, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s;
}

/* invisible hover bridge across the gap */
.submenu::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu,
.nav-item.is-open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.site-nav .submenu a {
  padding: 11px 14px;
  border-radius: 9px;
  opacity: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav .submenu a::after {
  display: none;
}

.site-nav .submenu a:hover,
.site-nav .submenu a:focus-visible {
  background: var(--soft);
  color: var(--blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-weight: 800;
  padding: 11px 26px;
  border-radius: 999px;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 12px 28px rgba(0, 89, 255, 0.22);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  opacity: 0.4;
  filter: grayscale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}

.lang-flag img {
  display: block;
  width: 24px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(3, 9, 35, 0.25);
}

.lang-flag.is-active {
  opacity: 1;
  filter: none;
}

.lang-flag:hover,
.lang-flag:focus-visible {
  opacity: 1;
  filter: none;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: inherit;
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.site-header.is-open .menu-toggle span:nth-of-type(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .menu-toggle span:nth-of-type(2) {
  transform: translateY(-6px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/imagen_hero.png") right center / cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(95deg, rgba(3, 9, 35, 0.95) 0%, rgba(4, 26, 83, 0.6) 44%, rgba(3, 9, 35, 0.06) 100%);
}

.hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.55fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: 132px 0 70px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.1;
}

.hero-lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.38;
}

.hero-actions,
.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 18px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button::after,
.inline-cta::after {
  content: "\2192";
  margin-left: 10px;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 16px 36px rgba(0, 89, 255, 0.28);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.button.secondary.dark {
  color: var(--midnight);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(4, 26, 83, 0.18);
}

.button.full {
  width: 100%;
}

.hero-pill {
  margin-top: 14px;
  padding: 16px 42px;
  border-radius: 999px;
  font-size: 16px;
  background: linear-gradient(95deg, #0a2bd6 0%, #0059ff 55%, #2f7bff 100%);
  box-shadow: 0 16px 38px rgba(0, 89, 255, 0.42);
}

.hero-pill:hover,
.hero-pill:focus-visible {
  box-shadow: 0 20px 46px rgba(0, 89, 255, 0.52);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-proof span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 700;
}

.hero-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-topline span,
.signal-card span,
.risk-board span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.panel-topline strong {
  padding: 6px 10px;
  border-radius: 999px;
  color: #10204e;
  background: var(--sky);
}

.risk-board {
  display: grid;
  gap: 10px;
}

.risk-board div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(3, 9, 35, 0.44);
}

.risk-board strong {
  color: #fff;
}

.signal-card {
  padding: 18px;
  border-left: 3px solid var(--orange);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.signal-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.section {
  padding: clamp(68px, 9vw, 126px) max(clamp(20px, 5vw, 72px), calc((100vw - 1180px) / 2));
}

.section-copy {
  max-width: 980px;
}

.section-heading {
  max-width: 940px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading p:not(.eyebrow),
.section-copy p,
.roi-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.section-heading.compact {
  max-width: 860px;
}

.problem {
  background: #fff;
}

.compare {
  background:
    linear-gradient(90deg, rgba(3, 9, 35, 0.9) 0%, rgba(4, 26, 83, 0.55) 55%, rgba(3, 9, 35, 0.78) 100%),
    url("assets/porqueavc.png") center / cover;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.pain-grid article {
  min-height: 250px;
  padding: 26px;
  border: 1px solid rgba(4, 26, 83, 0.1);
  border-radius: var(--radius);
  background: #f8f8fc;
}

/* Escalada de contraste: claro → marino → azul, con escalonado descendente. */
.pain-grid article:nth-child(2) {
  margin-top: 32px;
  border-color: transparent;
  background: var(--midnight);
  color: #fff;
}

.pain-grid article:nth-child(3) {
  margin-top: 64px;
  border-color: transparent;
  background: linear-gradient(140deg, var(--blue) 0%, var(--midnight) 92%);
  color: #fff;
}

.pain-grid span {
  display: block;
  margin-bottom: 24px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pain-grid article:nth-child(2) span {
  color: var(--gold);
}

.pain-grid article:nth-child(3) span {
  color: rgba(255, 255, 255, 0.8);
}

.pain-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.pain-grid article:nth-child(2) p,
.pain-grid article:nth-child(3) p {
  color: rgba(255, 255, 255, 0.75);
}

.solution {
  background:
    linear-gradient(180deg, rgba(3, 9, 35, 0.95), rgba(4, 26, 83, 0.92)),
    url("assets/stock-container-yard.jpg") center / cover;
  color: #fff;
}

.solution .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.7);
}

.tabs {
  max-width: 1180px;
  margin: 0 auto;
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.tab-button {
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tab-button:hover,
.tab-button.is-active {
  color: #fff;
  background: var(--blue);
  transform: translateY(-1px);
}

.tab-panel {
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.68fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.tab-panel.is-active {
  display: grid;
}

.tab-panel[hidden] {
  display: none;
}

.panel-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: var(--sky);
  font-size: 13px;
  font-weight: 900;
}

.tab-panel h3 {
  max-width: 620px;
  font-size: clamp(30px, 4vw, 48px);
}

.tab-panel p,
.tab-panel li {
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.55;
}

.tab-panel ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tab-panel li {
  position: relative;
  padding-left: 26px;
}

.tab-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
}

.tab-panel img {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  border-radius: var(--radius);
}

/* Glosa laptop mockup (transparent PNG): float it with a shape-following shadow. */
#tab-glosa img {
  max-height: 440px;
  object-fit: contain;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 30px 55px rgba(3, 9, 35, 0.55));
}

.section.compare {
  padding: 0;
}

.compare-split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
}

.compare-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(52px, 7vw, 120px) clamp(28px, 5vw, 92px);
  color: #fff;
}

.compare-intro .eyebrow {
  color: var(--gold);
}

.compare-intro h2 {
  margin-bottom: 20px;
  font-size: clamp(30px, 3.6vw, 52px);
}

.compare-intro p {
  max-width: 460px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
}

.compare-points {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 72px) clamp(28px, 5vw, 84px);
}

.compare-point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(18px, 2vw, 30px);
  align-items: start;
  padding: clamp(26px, 3.4vw, 42px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.compare-point:first-child {
  padding-top: 0;
}

.compare-point:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.point-marker {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.compare-point h3 {
  margin-bottom: 8px;
  font-size: clamp(20px, 1.9vw, 27px);
  color: #fff;
}

.compare-point p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.55;
}

.roi {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.62fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  background: #fff;
}

.inline-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 900;
}

.calculator,
.lead-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8f8fc;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--midnight);
  font-weight: 900;
}

.optional-tag {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  border: 1px solid #c6d0e2;
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33, 101, 246, 0.14);
}

.result {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--navy);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.result.is-updated {
  transform: scale(1.015);
  box-shadow: 0 18px 42px rgba(3, 9, 35, 0.22);
}

.result.is-placeholder {
  place-items: center;
  min-height: 96px;
  color: var(--muted);
  background: #f4f6fb;
  border: 1px dashed var(--line);
  text-align: center;
}

.result.is-placeholder span {
  max-width: 32ch;
  color: var(--muted);
  font-weight: 500;
}

.result strong {
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.2;
  font-family: var(--font-accent);
  letter-spacing: 0.01em;
}

.result span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 400;
  font-size: 0.95rem;
}

.result.risk-critical {
  background: linear-gradient(135deg, #030923, #0a1f5c);
  border: 1px solid rgba(0, 89, 255, 0.55);
}

.result.risk-critical strong {
  color: #6ea0ff;
}

.result.risk-moderate {
  background: linear-gradient(135deg, #041a53, #073075);
  border: 1px solid rgba(0, 89, 255, 0.35);
}

.result.risk-moderate strong {
  color: #4d8bff;
}

.result.risk-low {
  background: linear-gradient(135deg, #06205f, #0a3287);
  border: 1px solid rgba(0, 89, 255, 0.22);
}

.result.risk-low strong {
  color: #9bbcff;
}

.calc-input-pct {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}

.calc-input-pct span {
  font-weight: 700;
  color: var(--midnight);
  font-size: 1.1rem;
}

.result small {
  color: rgba(255, 255, 255, 0.72);
}

.cases {
  background: var(--soft);
}

.case-carousel {
  --case-gap: clamp(28px, 4.5vw, 64px);
  max-width: 1180px;
  margin: 56px auto 0;
}

.case-list {
  display: flex;
  gap: var(--case-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px;
  margin: -4px;
}

.case-list::-webkit-scrollbar {
  display: none;
}

.case-item {
  flex: 0 0 calc(50% - var(--case-gap) / 2);
  scroll-snap-align: start;
  display: grid;
  gap: 12px;
  align-content: start;
  padding-top: 26px;
  border-top: 1px solid rgba(4, 26, 83, 0.16);
}

.case-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 40px;
}

.case-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(4, 26, 83, 0.22);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}

.case-arrow:hover:not(:disabled) {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.case-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.case-dots {
  display: flex;
  gap: 8px;
}

.case-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(4, 26, 83, 0.18);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.case-dot.is-active {
  background: var(--blue);
  transform: scale(1.25);
}

.case-num {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.case-logo {
  display: flex;
  align-items: center;
  min-height: 44px;
}

/* multiply funde el fondo blanco de los logos con el fondo de la sección */
.case-logo img {
  height: 30px;
  width: auto;
  mix-blend-mode: multiply;
}

.case-logo .logo-solid {
  height: 40px;
  mix-blend-mode: normal;
  border-radius: 8px;
}

.case-item h3 {
  margin: 0;
  font-size: clamp(19px, 1.8vw, 23px);
}

.case-item p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.case-more {
  display: grid;
  gap: 12px;
  animation: case-more-in 0.35s ease;
}

.case-more[hidden] {
  display: none;
}

@keyframes case-more-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.case-result strong {
  color: var(--ink);
}

.case-toggle {
  justify-self: start;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-family: var(--font-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.case-toggle::after {
  content: " →";
}

.case-toggle:hover {
  text-decoration: underline;
}

.case-toggle .case-toggle-less,
.case-item.is-open .case-toggle .case-toggle-more {
  display: none;
}

.case-item.is-open .case-toggle .case-toggle-less {
  display: inline;
}

.case-item.is-open .case-toggle::after {
  content: " ↑";
}

/* ─────────── Lead magnet / eBook 3D ─────────── */
.lead-magnet {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(46% 64% at 80% 50%, rgba(0, 89, 255, 0.1), transparent 72%),
    #fff;
}

.lead-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.lead-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.lead-note {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  opacity: 0.65;
  font-size: 13px;
}

.ebook-stage {
  display: grid;
  place-items: center;
  padding: 30px 0 44px;
}

.ebook-scene {
  position: relative;
  width: min(280px, 64vw);
  perspective: 1100px;
}

.ebook-book {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(var(--ry, -24deg)) rotateX(var(--rx, 6deg));
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  animation: ebookFloat 5.4s ease-in-out infinite;
  will-change: transform;
}

/* dramatic spin-in once revealed */
html.motion-ready .ebook-stage.is-visible .ebook-book {
  animation:
    ebookEnter 1.4s cubic-bezier(0.16, 1, 0.3, 1) both,
    ebookFloat 5.4s ease-in-out 1.4s infinite;
}

@keyframes ebookEnter {
  from {
    transform: rotateY(-110deg) rotateX(12deg) scale(0.88);
  }
}

@keyframes ebookFloat {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -14px;
  }
}

.ebook-pages {
  position: absolute;
  top: 2.5%;
  bottom: 2.5%;
  left: 12px;
  right: -13px;
  background: linear-gradient(90deg, #fff 0%, #e9eef8 78%, #c9d4e8 100%);
  border-radius: 4px 12px 12px 4px;
  transform: translateZ(2px);
  box-shadow: 0 0 0 1px rgba(4, 26, 83, 0.08);
}

.ebook-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -7px;
  width: 22px;
  background: linear-gradient(180deg, #062374, var(--navy));
  border-radius: 8px 0 0 8px;
  transform: translateZ(10px);
}

.ebook-cover {
  position: relative;
  display: grid;
  align-content: space-between;
  aspect-ratio: 3 / 4.15;
  padding: clamp(22px, 2.6vw, 30px);
  color: #fff;
  background: linear-gradient(152deg, var(--midnight) 0%, #0a3bc4 58%, var(--blue) 100%);
  border-radius: 6px 14px 14px 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset -14px 0 32px rgba(3, 9, 35, 0.3);
  overflow: hidden;
  transform: translateZ(20px);
}

.ebook-brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  opacity: 0.85;
}

.ebook-cover strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 2.7vw, 34px);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.ebook-cover em {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ebook-brand,
.ebook-cover em {
  font-family: var(--font-accent);
}

.ebook-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.36) 48%, rgba(255, 255, 255, 0.1) 55%, transparent 64%);
  transform: translateX(-140%);
  animation: ebookShine 4.8s cubic-bezier(0.4, 0, 0.2, 1) 1.6s infinite;
  pointer-events: none;
}

@keyframes ebookShine {
  0% {
    transform: translateX(-140%);
  }
  42%,
  100% {
    transform: translateX(140%);
  }
}

.ebook-shadow {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: -38px;
  height: 30px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(3, 9, 35, 0.34), transparent 72%);
  filter: blur(7px);
  animation: ebookShadow 5.4s ease-in-out infinite;
}

@keyframes ebookShadow {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.9;
  }
  50% {
    transform: scaleX(0.8);
    opacity: 0.55;
  }
}

.founder {
  background: #fff;
}

.founder-head {
  max-width: 1180px;
  margin: 0 auto 52px;
}

.founder-head h2 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 1;
}

.founder-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.founder-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 7;
  isolation: isolate;
}

.founder-stack::before {
  content: "";
  position: absolute;
  inset: 2% -12% -10% 12%;
  z-index: 0;
  background: radial-gradient(55% 55% at 58% 55%, rgba(0, 89, 255, 0.5), rgba(77, 139, 255, 0.22) 55%, transparent 75%);
  filter: blur(28px);
}

/* Las dos fotos son "impresiones" superpuestas; el marco blanco es un
   anillo de box-shadow (no border) para no recortar la imagen. */
.stack-item {
  --matte: 6px;
  position: absolute;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), filter 400ms ease;
}

.stack-item[disabled] {
  cursor: default;
}

.stack-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  transition: box-shadow 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.stack-item--back {
  top: 0;
  left: 0;
  width: 76%;
  z-index: 1;
}

.stack-item--back img {
  object-position: center 40%;
  box-shadow: 0 0 0 var(--matte) #fff, 0 10px 26px rgba(3, 9, 35, 0.12);
}

.stack-item--front {
  right: 0;
  bottom: 0;
  width: 58%;
  z-index: 2;
}

.stack-item--front img {
  box-shadow: 0 0 0 var(--matte) #fff, 0 18px 44px rgba(3, 9, 35, 0.25);
}

.stack-item:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.founder-stack.is-swapped .stack-item--back {
  z-index: 3;
  transform: translate(10px, 12px) scale(1.02);
}

.founder-stack.is-swapped .stack-item--back img {
  box-shadow: 0 0 0 var(--matte) #fff, 0 18px 44px rgba(3, 9, 35, 0.28);
}

.founder-stack.is-swapped .stack-item--front {
  transform: scale(0.985);
  filter: brightness(0.88) saturate(0.92);
}

.founder-stack.is-swapped .stack-item--front img {
  box-shadow: 0 0 0 var(--matte) #fff, 0 8px 20px rgba(3, 9, 35, 0.14);
}

/* Pista única de descubrimiento: la foto trasera asoma una vez tras el reveal. */
.founder-stack.is-visible:not(.has-interacted) .stack-item--back {
  animation: stack-nudge 1.4s ease 1.2s 1 both;
}

@keyframes stack-nudge {
  0%,
  100% {
    transform: translate(0, 0);
  }
  45% {
    transform: translate(6px, 7px);
  }
}

.founder-text {
  display: grid;
  gap: 22px;
  max-width: 620px;
}

.founder-text .founder-lead {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 1.9vw, 27px);
  line-height: 1.4;
}

.founder-text p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: start;
  background:
    radial-gradient(circle at 90% 12%, rgba(0, 89, 255, 0.12), transparent 28%),
    linear-gradient(135deg, #fff, #eef3fc 58%, #fff);
}

.contact-actions,
.contact-assurance {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-pill,
.contact-assurance span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--midnight);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(4, 26, 83, 0.1);
  font-weight: 900;
}

.contact-pill .wa-icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.contact-assurance span {
  color: var(--muted);
  font-size: 14px;
}

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

.lead-form .full,
.lead-form button,
.form-note {
  grid-column: 1 / -1;
}

.form-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.sticky-whatsapp {
  position: fixed;
  z-index: 50;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 18px 40px rgba(0, 89, 255, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sticky-whatsapp .wa-icon {
  width: 30px;
  height: 30px;
}

.sticky-whatsapp:hover,
.sticky-whatsapp:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(0, 89, 255, 0.42);
}

.site-footer {
  padding: clamp(48px, 7vw, 78px) clamp(20px, 5vw, 72px) 0;
  color: #fff;
  background: #12121a;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1.15fr 0.75fr 0.75fr;
  gap: clamp(26px, 4vw, 54px);
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: 42px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-grid img {
  width: 190px;
  height: auto;
  margin: -34px 0 -18px;
}

.footer-grid p,
.footer-grid address {
  color: rgba(255, 255, 255, 0.62);
  font-style: normal;
  line-height: 1.55;
}

.footer-grid strong {
  display: block;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
  color: var(--sky);
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.62);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-reveal],
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="left"] {
  transform: translateX(-36px);
}

[data-reveal="right"] {
  transform: translateX(36px);
}

[data-reveal].is-visible,
[data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: translate(0);
}

[data-reveal-stagger].is-visible > *:nth-child(2) {
  transition-delay: 0.08s;
}

[data-reveal-stagger].is-visible > *:nth-child(3) {
  transition-delay: 0.16s;
}

[data-reveal-stagger].is-visible > *:nth-child(4) {
  transition-delay: 0.24s;
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    justify-self: stretch;
    top: 78px;
    left: 18px;
    right: 18px;
    display: none;
    padding: 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 26px 60px rgba(3, 9, 35, 0.18);
  }

  .site-nav.is-open {
    display: grid;
    gap: 2px;
    transform-origin: top center;
    animation: navDrop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @keyframes navDrop {
    from {
      opacity: 0;
      transform: translateY(-12px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .site-nav a {
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 17px;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: var(--soft);
    color: var(--blue);
  }

  .site-nav a::after {
    display: none;
  }

  .hero-shell,
  .tab-panel.is-active,
  .roi,
  .contact,
  .lead-shell,
  .founder-body {
    grid-template-columns: 1fr;
  }

  .nav-item {
    position: static;
    display: block;
  }

  .submenu-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 17px;
    opacity: 1;
  }

  .submenu-toggle:hover,
  .submenu-toggle:focus-visible {
    background: var(--soft);
    color: var(--blue);
  }

  .submenu,
  .nav-item:hover .submenu,
  .nav-item:focus-within .submenu,
  .nav-item.is-open .submenu {
    position: static;
    display: none;
    min-width: 0;
    padding: 2px 0 8px 14px;
    background: transparent;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .submenu::before {
    display: none;
  }

  .nav-item.is-open .submenu {
    display: grid;
  }

  .site-nav .submenu a {
    font-size: 16px;
  }

  .pain-grid {
    grid-template-columns: 1fr;
  }

  .pain-grid article:nth-child(2),
  .pain-grid article:nth-child(3) {
    margin-top: 0;
  }

  .case-item {
    flex-basis: 100%;
  }

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

  .founder-stack {
    max-width: 480px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 72px;
    padding-inline: 16px;
    gap: 10px;
  }

  .stack-item {
    --matte: 4px;
  }

  .stack-item--back {
    width: 82%;
  }

  .stack-item--front {
    width: 62%;
  }

  .stack-item--front img {
    box-shadow: 0 0 0 var(--matte) #fff, 0 12px 28px rgba(3, 9, 35, 0.22);
  }

  .brand-logo {
    height: 64px;
    margin: -14px 0;
    max-width: 150px;
    object-fit: contain;
    object-position: left center;
  }

  .header-cta {
    display: none;
  }

  .lang-flag {
    width: 34px;
    height: 28px;
  }

  .site-nav {
    top: 72px;
  }

  .hero-shell {
    width: min(100% - 36px, 520px);
    padding-top: 112px;
    padding-bottom: 48px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(3, 9, 35, 0.9), rgba(4, 26, 83, 0.78)),
      url("assets/imagen_hero_r.png") right center / cover;
  }

  h1 {
    font-size: 38px;
    line-height: 1;
  }

  h2 {
    font-size: 34px;
  }

  .hero-lead,
  .section-heading p:not(.eyebrow),
  .section-copy p,
  .roi-copy p,
  .contact-copy p,
  .founder-text .founder-lead,
  .founder-text p {
    font-size: 18px;
  }

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

  .hero-actions,
  .lead-actions {
    display: grid;
  }

  .hero-panel {
    padding: 18px;
  }

  .compare-split,
  .tab-list,
  .lead-form,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .tab-panel {
    padding: 22px;
  }

  .calculator,
  .lead-form {
    padding: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .sticky-whatsapp {
    width: 52px;
    height: 52px;
  }
}

/* ─────────── Motion layer (Clear Street-style) ─────────── */
/* JS drives the lerp scroll; disable native smoothing to avoid double easing. */
html.smooth-scroll {
  scroll-behavior: auto;
}

/* Masked word reveal for large headings (motion-ready = JS active). */
html.motion-ready .split-heading .word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.14em 0.04em;
  margin: -0.14em -0.04em;
}

html.motion-ready .split-heading .word-inner {
  display: inline-block;
  transform: translateY(118%);
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

html.motion-ready .split-heading.is-revealed .word-inner {
  transform: translateY(0);
}

/* Hover micro-interactions (motion only, no color/text changes). */
.pain-grid article,
.tab-panel img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .pain-grid article:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
  }

  .tab-panel.is-active:hover img {
    transform: scale(1.02);
  }

  .compare-point {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .compare-point:hover {
    transform: translateX(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  [data-reveal],
  [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .split-heading .word-inner {
    transform: none !important;
  }
}
