/* ============ Tokens — estilo "SaaS tecnológico" con la gama de azules + ocre de Magda ============ */
:root {
  --paper: #eef1f6;
  --paper-2: #e3e8f0;
  --white: #ffffff;
  --line: #d3dae5;

  --ink: #1e2a4a;
  --ink-soft: #4a4e57;
  --ink-faint: #7c879b;

  --accent: #4e6690;
  --accent-deep: #384d75;
  --accent-soft: #9fadc7;
  --deep: #141d33;
  --deep-2: #0b0f1e;
  --ocre: #c17f2e;

  --cream: #e7ecf4;
  --cream-soft: #9fadc7;

  --radius: 10px;
  --radius-sm: 6px;
  --max: 1200px;
  --gutter: 1.75rem;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --fs-h1: clamp(2.5rem, 5.4vw, 4rem);
  --fs-h2: clamp(1.9rem, 3.6vw, 2.7rem);
  --fs-h3: 1.3rem;
  --fs-body: 1.03rem;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
p,
li,
blockquote {
  text-align: justify;
  -webkit-hyphens: manual;
  hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
}
p,
blockquote {
  margin: 0;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  filter: blur(1px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease),
    filter 0.8s var(--ease);
}
.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}
.reveal-group > * {
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* ============ Dinamismo: progreso, texto partido, tilt, magnético ============ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: transparent;
  pointer-events: none;
}
.scroll-progress .bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ink), var(--accent), var(--ocre));
  transition: width 0.1s linear;
}

.hero h1 .word {
  display: inline-block;
}
.js-ready .hero h1 .word {
  opacity: 0;
  transform: translateY(0.5em) rotate(1.5deg);
  filter: blur(4px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease),
    filter 0.7s var(--ease);
}
.js-ready .hero h1 .word.in {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
  filter: blur(0);
}

.tilt-el {
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.btn-magnetic {
  transition:
    transform 0.18s var(--ease),
    background 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.num[data-count] {
  font-variant-numeric: tabular-nums;
}

/* ============ Buttons & pills ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.2s var(--ease),
    background 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
.btn-glow {
  background: linear-gradient(135deg, var(--ink), var(--deep));
  color: #fff;
  box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--ink) 65%, transparent);
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--ink) 75%, transparent);
}
.btn-outline-dark {
  background: transparent;
  color: var(--cream);
  border-color: rgba(231, 236, 244, 0.3);
}
.btn-outline-dark:hover {
  border-color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
}
.btn-outline-light {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline-light:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-white {
  background: var(--white);
  color: var(--ink);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, 0.35);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

/* ============ Header ============ */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  gap: 1.5rem;
  min-width: 0;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex: none;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  flex: none;
  min-width: 0;
}
.brand .mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 0.95rem;
  flex: none;
}
.brand .txt {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand .name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
}
.brand .sub {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.nav-divider {
  width: 1px;
  height: 1.6rem;
  background: var(--line);
  flex: none;
}
.nav-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-tag:hover {
  color: var(--ink);
}
@media (max-width: 640px) {
  .nav-divider,
  .nav-tag {
    display: none;
  }
  .nav {
    gap: 0.5rem;
    padding: 0.7rem 1rem;
  }
  .nav-right {
    gap: 0.4rem;
  }
  .brand {
    gap: 0.5rem;
  }
  .brand .mark {
    width: 1.9rem;
    height: 1.9rem;
    font-size: 0.85rem;
  }
  .brand .name {
    font-size: 0.95rem;
  }
  .btn-sm {
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }
  .menu-toggle {
    padding: 0.45rem 0.6rem;
  }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
  transition: right 0.28s var(--ease);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a:hover::after {
  right: 0;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: none;
  min-width: 0;
}
.btn-sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
}
.btn-sm svg {
  width: 1rem;
  height: 1rem;
}
.menu-toggle {
  display: none;
}
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
    background: none;
    border: 1px solid var(--line);
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
  }
}
@media (max-width: 560px) {
  .btn-outline-light.btn-sm {
    display: none;
  }
}
@media (max-width: 480px) {
  .nav {
    padding: 0.65rem 0.9rem;
  }
  .brand .sub {
    display: none;
  }
  .btn {
    padding: 0.6rem 0.95rem;
    font-size: 0.8rem;
  }
}
@media (max-width: 400px) {
  .nav-cta-label {
    display: none;
  }
  .nav-cta {
    padding: 0.5rem 0.6rem;
  }
}
@media (max-width: 380px) {
  .brand .name {
    font-size: 0.88rem;
  }
  .btn-sm {
    padding: 0.45rem 0.75rem;
    font-size: 0.76rem;
  }
}

/* ============ Hero (light, on-brand) ============ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  padding: 5rem 0 4rem;
  isolation: isolate;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.hero-glow.g1 {
  width: 34rem;
  height: 34rem;
  top: -16rem;
  right: -8rem;
  background: var(--accent);
  opacity: 0.2;
}
.hero-glow.g2 {
  width: 24rem;
  height: 24rem;
  bottom: -12rem;
  left: -8rem;
  background: var(--ocre);
  opacity: 0.12;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(30, 42, 74, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 42, 74, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, black 30%, transparent 75%);
}
.hero .wrap {
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 auto 1.75rem;
  box-shadow: 0 12px 26px -20px rgba(20, 29, 51, 0.35);
}
.hero-badge .stars {
  color: var(--ocre);
  letter-spacing: 0.05em;
}
.hero h1 {
  font-size: var(--fs-h1);
  line-height: 1.1;
  max-width: 18ch;
  margin: 0 auto;
  color: var(--ink);
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--accent), var(--ocre) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  max-width: 46ch;
  margin: 1.5rem auto 0;
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.25rem;
  flex-wrap: wrap;
}

.trust-strip {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.trust-strip .lbl {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
}
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}
.trust-logos span {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}
.trust-logos span:hover {
  color: var(--ink);
}

.trust-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.trust-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-soft);
  box-shadow: 0 10px 22px -18px rgba(20, 29, 51, 0.35);
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}
.trust-chips .chip:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  color: var(--ink);
  box-shadow: 0 16px 28px -18px rgba(20, 29, 51, 0.4);
}
.trust-chips .chip svg {
  width: 1rem;
  height: 1rem;
  color: var(--ocre);
  flex: none;
}

.footer-compliance {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.35rem;
  flex-wrap: wrap;
}
.footer-compliance .pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--cream-soft);
}
.footer-compliance .pill svg {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--ocre);
  flex: none;
}

/* ============ Marquee ticker ============ */
.marquee-strip {
  background: linear-gradient(100deg, var(--ink), var(--accent-deep) 55%, var(--accent) 100%);
  overflow: hidden;
  padding: 1.15rem 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}
.marquee-track .item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 2.25rem;
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: 1.2rem;
  color: #fff;
  white-space: nowrap;
}
.marquee-track .item .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ocre);
  flex: none;
}
@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ============ Sections ============ */
section {
  position: relative;
  padding: 6.5rem 0;
}
section.light {
  background: var(--paper);
}
section.alt {
  background: var(--white);
}
section.dark {
  background: linear-gradient(160deg, var(--ink), var(--deep) 130%);
  color: var(--cream);
}
.sec-head {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.sec-head .eyebrow {
  color: var(--accent);
  justify-content: center;
  width: 100%;
}
.dark .sec-head .eyebrow {
  color: var(--accent-soft);
}
.sec-head h2 {
  font-size: var(--fs-h2);
  line-height: 1.15;
  margin-top: 1rem;
}
.dark .sec-head h2 {
  color: #fff;
}
.sec-head p {
  color: var(--ink-soft);
  margin-top: 1.1rem;
  font-size: 1.05rem;
}
.dark .sec-head p {
  color: var(--cream-soft);
}

/* ============ Feature highlight banner ============ */
.highlight-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 760px) {
  .highlight-banner {
    grid-template-columns: 1fr;
  }
}
.highlight-cell {
  background: var(--white);
  padding: 2.75rem;
}
.highlight-cell .ic {
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--accent) 32%, #fff) 0%,
    color-mix(in srgb, var(--accent) 8%, var(--paper)) 100%
  );
  color: var(--accent-deep);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -8px 12px -8px color-mix(in srgb, var(--accent) 45%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.highlight-cell .ic svg {
  width: 1.4rem;
  height: 1.4rem;
}
.highlight-cell h3 {
  font-size: 1.35rem;
}
.highlight-cell p {
  color: var(--ink-soft);
  margin-top: 0.85rem;
}
.highlight-cell.dark {
  background: linear-gradient(160deg, var(--ink), var(--deep) 130%);
  color: var(--cream);
}
.highlight-cell.dark .ic {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-soft);
}
.highlight-cell.dark p {
  color: var(--cream-soft);
}
.highlight-cell .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.highlight-cell.dark .link-arrow {
  color: var(--accent-soft);
}

.context-closing {
  max-width: 720px;
  margin: 2.75rem auto 0;
  text-align: center;
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* ============ Fuentes normativas ============ */
.sources-prose {
  position: relative;
  margin: 4rem auto 0;
  max-width: 820px;
  padding: 2.6rem 2.6rem 2.4rem;
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    var(--white) 0%,
    color-mix(in srgb, var(--paper-2) 55%, var(--white)) 100%
  );
  border: 1px solid var(--line);
  box-shadow:
    0 30px 60px -42px rgba(20, 29, 51, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s ease;
}
.sources-prose::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--ocre) 100%);
  border-radius: 5px 0 0 5px;
}
.sources-prose::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -12%;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 14%, transparent) 0%,
    transparent 70%
  );
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.sources-prose:hover {
  transform: translateY(-3px);
  box-shadow:
    0 40px 70px -40px rgba(20, 29, 51, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.sources-prose .sources-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: color-mix(in srgb, var(--accent) 10%, var(--white));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  margin: 0 0 1.75rem;
  box-shadow: 0 6px 16px -10px color-mix(in srgb, var(--accent) 50%, transparent);
}
.sources-prose .sources-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ocre);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ocre) 22%, transparent);
}
.sources-prose p {
  font-family: var(--sans);
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--ink-soft);
  text-align: justify;
  -webkit-hyphens: manual;
  hyphens: manual;
  overflow-wrap: normal;
  word-break: normal;
  margin: 0 0 1.15rem 0;
}
.sources-prose p:last-child {
  margin-bottom: 0;
}
.sources-prose a {
  position: relative;
  color: var(--accent-deep);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 0.18em;
  word-break: break-word;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1.5px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition:
    color 0.28s ease,
    background-size 0.32s var(--ease);
}
.sources-prose a:hover {
  color: var(--accent);
  background-size: 100% 1.5px;
}
.sources-prose a:active {
  color: var(--ocre);
}

/* ============ About split (photo + text) ============ */
.about-split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 3.25rem;
  align-items: center;
  margin-bottom: 3.75rem;
}
@media (max-width: 860px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
.about-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--deep);
  box-shadow: 0 34px 64px -32px rgba(20, 29, 51, 0.4);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(0.1) contrast(1.04);
  display: block;
}
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(11, 15, 30, 0.6));
  pointer-events: none;
}
.about-photo .badge {
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  bottom: 1.15rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  font-weight: 600;
}
.about-text {
  text-align: left;
}
.about-text .eyebrow {
  justify-content: flex-start;
}
.about-text h2 {
  font-size: var(--fs-h2);
  line-height: 1.15;
  margin-top: 1rem;
}
.about-text p {
  color: var(--ink-soft);
  margin-top: 1.1rem;
  font-size: 1.05rem;
}

/* ============ Value props (3-col) ============ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 860px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
}
.value-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -30px rgba(20, 29, 51, 0.28);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.value-card .ic {
  width: 3rem;
  height: 3rem;
  border-radius: 10px;
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--accent) 32%, #fff) 0%,
    color-mix(in srgb, var(--accent) 8%, var(--paper)) 100%
  );
  color: var(--accent-deep);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -8px 12px -8px color-mix(in srgb, var(--accent) 45%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.value-card .ic svg {
  width: 1.4rem;
  height: 1.4rem;
}
.value-card h3 {
  font-size: 1.2rem;
}
.value-card p {
  color: var(--ink-soft);
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.stats-row {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-row div {
  text-align: center;
  padding: 2rem 1rem;
  border-right: 1px solid var(--line);
}
.stats-row div:last-child {
  border-right: none;
}
@media (max-width: 700px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
  .stats-row div {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .stats-row div:last-child {
    border-bottom: none;
  }
}
.stats-row .num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--accent);
}
.stats-row .cap {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.5rem;
}

/* ============ Método — texto fijo + tarjetas apiladas al hacer scroll ============ */
.method-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 3.5rem;
  align-items: start;
  margin-top: 3.5rem;
}
@media (max-width: 900px) {
  .method-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .method-pin {
    position: static;
    margin-bottom: 0.5rem;
  }
}

.method-pin {
  position: sticky;
  top: 6.5rem;
  align-self: start;
}
.method-pin .k {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.method-pin h3 {
  font-size: 1.7rem;
  color: #fff;
  margin-top: 0.85rem;
  line-height: 1.25;
}
.method-pin p {
  color: var(--cream-soft);
  margin-top: 1rem;
  max-width: 34ch;
}
.method-progress {
  display: flex;
  gap: 0.5rem;
  margin-top: 2.25rem;
}
.method-progress .dash {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  position: relative;
}
.method-progress .dash::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent-soft), var(--ocre));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.method-progress .dash.active::after {
  transform: scaleX(1);
}
.method-flex-note {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1.75rem;
  padding: 1rem 1.15rem;
  background: rgba(193, 127, 46, 0.1);
  border: 1px solid rgba(193, 127, 46, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--cream-soft);
}
.method-flex-note svg {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  color: var(--ocre);
}
.method-flex-note strong {
  color: #fff;
}

.method-stack {
  display: flex;
  flex-direction: column;
}
.method-card-wrap {
  position: sticky;
  top: 6.5rem;
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding-bottom: 3rem;
}
.method-card-wrap[data-card="1"] {
  z-index: 1;
}
.method-card-wrap[data-card="2"] {
  z-index: 2;
}
.method-card-wrap[data-card="3"] {
  z-index: 3;
}
.method-card-wrap[data-card="4"] {
  z-index: 4;
}
.method-card {
  width: 100%;
  background: linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 130%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: 0 44px 80px -32px rgba(4, 7, 16, 0.85);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s ease;
}
.method-card .idx {
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--accent-soft);
  opacity: 0.55;
}
.method-card h4 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.7rem;
  color: #fff;
  margin-top: 0.5rem;
}
.method-card p {
  max-width: 52ch;
  margin: 1.15rem 0 0;
  color: var(--cream-soft);
}
.method-card ul {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}
.method-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--cream-soft);
}
.method-card li svg {
  flex: none;
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  color: var(--ocre);
}
@media (max-width: 640px) {
  .method-card {
    padding: 2.1rem;
  }
  .method-card-wrap {
    min-height: 52vh;
  }
}

/* ============ Servicios — cards con badges ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -30px rgba(20, 29, 51, 0.28);
}
.service-card .badge {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ocre) 16%, var(--paper));
  color: var(--ocre);
}
.service-card .ic {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 10px;
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--accent) 32%, #fff) 0%,
    color-mix(in srgb, var(--accent) 8%, var(--paper)) 100%
  );
  color: var(--accent-deep);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -8px 12px -8px color-mix(in srgb, var(--accent) 45%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}
.service-card .ic svg {
  width: 1.35rem;
  height: 1.35rem;
}
.service-card h3 {
  font-size: 1.08rem;
  line-height: 1.3;
}
.service-card p {
  color: var(--ink-soft);
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

/* ============ Comparación — tarjetas enfrentadas ============ */
.compare-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
  max-width: 620px;
  margin-inline: auto;
}
.compare-card {
  border-radius: var(--radius);
  padding: 2.25rem;
}
.compare-card.them {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.compare-card.us {
  background: linear-gradient(160deg, var(--accent-deep), var(--ink) 130%);
  border: 1px solid color-mix(in srgb, var(--accent-soft) 45%, transparent);
  box-shadow: 0 44px 76px -34px rgba(4, 7, 16, 0.65);
}
.compare-card .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.9rem;
  flex-wrap: wrap;
}
.compare-card .head-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
}
.compare-card .head-label svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--cream-soft);
  flex: none;
}
.compare-card.us .head-label svg {
  color: var(--ocre);
}
.compare-card .badge-win {
  background: var(--ocre);
  color: var(--deep-2);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}
.compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.05rem;
}
.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  line-height: 1.4;
}
.compare-list li svg {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
}
.compare-card.them .compare-list li {
  color: var(--cream-soft);
}
.compare-card.them .compare-list li svg {
  color: rgba(255, 255, 255, 0.32);
}
.compare-card.us .compare-list li {
  color: #fff;
  font-weight: 500;
}
.compare-card.us .compare-list li svg {
  color: var(--ocre);
}

/* ============ Trust / security banner ============ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 860px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.trust-card {
  text-align: center;
  padding: 1.5rem;
}
.trust-card .ic {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.trust-card .ic svg {
  width: 1.4rem;
  height: 1.4rem;
}
.trust-card h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.98rem;
  color: #fff;
}
.trust-card p {
  color: var(--cream-soft);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* ============ Testimonial ============ */
.testimonial-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  box-shadow: 0 30px 60px -36px rgba(20, 29, 51, 0.25);
}
.testimonial-card .quote-ic {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.5rem;
  color: var(--accent);
  opacity: 0.5;
}
.testimonial-card blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}
.testimonial-card .attrib {
  margin-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}
.testimonial-card .av {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--ink));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  overflow: hidden;
  flex: none;
}
.testimonial-card .av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.testimonial-card .name {
  font-weight: 700;
  text-align: left;
}
.testimonial-card .role {
  font-size: 0.85rem;
  color: var(--ink-faint);
  text-align: left;
}
.testimonial-card .verified {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--paper));
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
}

/* ============ Recurso ============ */
.resource-card {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem;
  flex-wrap: wrap;
}
.resource-card .ic {
  flex: none;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 12px;
  background: linear-gradient(
    155deg,
    color-mix(in srgb, var(--accent) 32%, #fff) 0%,
    color-mix(in srgb, var(--accent) 8%, var(--paper)) 100%
  );
  color: var(--accent-deep);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -8px 12px -8px color-mix(in srgb, var(--accent) 45%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
}
.resource-card .ic svg {
  width: 1.7rem;
  height: 1.7rem;
}
.resource-card .body {
  flex: 1;
  min-width: 220px;
}
.resource-card h3 {
  font-size: 1.15rem;
}
.resource-card p {
  color: var(--ink-soft);
  margin-top: 0.4rem;
  font-size: 0.92rem;
}

/* ============ Final CTA ============ */
.final-cta {
  background: radial-gradient(
    120% 140% at 80% 0%,
    var(--accent-deep) 0%,
    var(--ink) 45%,
    var(--deep) 100%
  );
  color: #fff;
  text-align: center;
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}
.final-cta .wrap {
  position: relative;
  z-index: 1;
}
.final-cta h2 {
  font-size: var(--fs-h2);
  max-width: 20ch;
  margin: 0 auto;
  color: #fff;
}
.final-cta p {
  color: var(--cream-soft);
  max-width: 46ch;
  margin: 1.1rem auto 0;
}
.final-cta .hero-cta-row {
  margin-top: 2rem;
}
.final-badges {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.final-badges .pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--cream-soft);
}

/* ============ Footer ============ */
footer.site {
  background: var(--deep-2);
  color: var(--cream-soft);
  padding: 3.5rem 0 2rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-brand .name {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: #fff;
}
.footer-brand .sub {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.footer-social a {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-soft);
  text-decoration: none;
  transition: all 0.2s ease;
}
.footer-social a:hover {
  border-color: var(--accent-soft);
  color: #fff;
}
.footer-social svg {
  width: 1rem;
  height: 1rem;
}
.footer-cols {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 1.1rem;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-col a {
  text-decoration: none;
  color: var(--cream-soft);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  padding-top: 1.5rem;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.to-top {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-soft);
  text-decoration: none;
  transition: all 0.2s ease;
}
.to-top:hover {
  border-color: var(--accent-soft);
  color: #fff;
}

/* ============ Refinamiento de layout tipo SaaS moderno (inspirado en AI SaaS) ============ */
:root {
  --radius: 20px;
  --radius-sm: 12px;
}

/* Más aire entre secciones */
section {
  padding: 7.5rem 0;
}
@media (max-width: 700px) {
  section {
    padding: 4.75rem 0;
  }
}

/* Encabezados de sección: titular a la izquierda, bajada a la derecha */
@media (min-width: 981px) {
  .sec-head {
    max-width: none;
    margin: 0 0 4.25rem;
    text-align: left;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    column-gap: 4rem;
    align-items: end;
  }
  .sec-head .eyebrow {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    width: auto;
  }
  .sec-head h2 {
    grid-column: 1;
    grid-row: 2;
    margin-top: 1rem;
    max-width: 16ch;
  }
  .sec-head p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    align-self: end;
  }
  .final-cta .sec-head {
    text-align: center;
  }
}

/* Hero asimétrico: contenido a la izquierda, tarjeta flotante a la derecha */
@media (min-width: 981px) {
  .hero {
    padding: 6.5rem 0 5.5rem;
  }
  .hero .wrap {
    text-align: left;
    display: grid;
    grid-template-columns: 1.08fr 0.82fr;
    column-gap: 4.5rem;
    align-items: center;
  }
  .hero-badge {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 1.6rem;
    justify-self: start;
  }
  .hero h1 {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    max-width: 15ch;
  }
  .hero-lead {
    grid-column: 1;
    grid-row: 3;
    margin: 1.5rem 0 0;
    max-width: 44ch;
  }
  .hero-cta-row {
    grid-column: 1;
    grid-row: 4;
    justify-content: flex-start;
    margin-top: 2.1rem;
  }
  .trust-strip {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: center;
    margin: 0;
    padding: 2.25rem;
    border: 1px solid var(--line);
    border-top: 1px solid var(--line);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 40px 70px -40px rgba(20, 29, 51, 0.4);
  }
  .trust-strip .lbl {
    text-align: left;
  }
  .trust-chips {
    justify-content: flex-start;
  }
  .trust-chips .chip {
    box-shadow: none;
  }
}

/* Tarjetas más suaves y con elevación tipo SaaS */
.value-card,
.service-card,
.testimonial-card,
.resource-card,
.method-card,
.compare-card,
.highlight-banner {
  border-radius: var(--radius);
}
.value-card,
.service-card {
  box-shadow: 0 18px 40px -34px rgba(20, 29, 51, 0.35);
}
.value-card:hover,
.service-card:hover {
  box-shadow: 0 34px 60px -32px rgba(20, 29, 51, 0.3);
}

/* Botones con presencia y sombra progresiva */
.btn {
  padding: 0.95rem 1.7rem;
}
.btn-outline-light {
  background: var(--white);
  box-shadow: 0 14px 30px -26px rgba(20, 29, 51, 0.6);
}
.btn-outline-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px -22px rgba(20, 29, 51, 0.45);
}

/* Reveal con un matiz de escala, más cercano al ritmo de la referencia */
.js-ready .reveal {
  transform: translateY(28px) scale(0.985);
  transition-duration: 0.9s;
}
.js-ready .reveal.is-visible {
  transform: translateY(0) scale(1);
}
.reveal-group > * {
  transition-delay: calc(var(--i, 0) * 110ms);
}
@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal,
  .js-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* Formulario de contacto */
.contact-form {
  max-width: 640px;
  margin: 2.75rem auto 0;
  text-align: left;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(6px);
}
.cf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
}
.cf-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.cf-field.cf-full {
  grid-column: 1 / -1;
}
.cf-field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cream-soft);
}
.cf-field input,
.cf-field select,
.cf-field textarea {
  font: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  width: 100%;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    background 0.25s;
}
.cf-field select {
  appearance: none;
}
.cf-field select option {
  color: var(--ink);
}
.cf-field textarea {
  resize: vertical;
  min-height: 110px;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--accent-soft);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}
.cf-error {
  color: #ffb4a8;
  font-size: 0.85rem;
  margin: 1rem 0 0;
}
.cf-submit {
  margin-top: 1.5rem;
  width: 100%;
  justify-content: center;
}
@media (max-width: 640px) {
  .cf-grid {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 1.5rem;
  }
}

/* Contacto: centrar la fila de botones en la sección final */
.final-cta .hero-cta-row {
  justify-content: center;
}

/* Hero con imagen de fondo completa (banner 1920x600) */
.hero {
  background-image: url("/images/hero-banner.png");
  background-repeat: no-repeat;
  background-position: top right;
  background-size: 100% auto;
  background-color: #f5efea;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(193, 127, 46, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(78, 102, 144, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero .hero-glow {
  display: none;
}
.hero h1 {
  font-size: clamp(1.9rem, 3vw, 2.75rem);
}

@media (min-width: 981px) {
  .hero {
    padding: 4rem 0 3.5rem;
  }
  .hero .wrap {
    grid-template-columns: minmax(0, 40rem) 1fr;
  }
  .hero-badge {
    margin-bottom: 1.15rem;
  }
  .hero-lead {
    margin-top: 1.1rem;
  }
  .hero .hero-cta-row {
    margin-top: 1.6rem;
  }
  .trust-strip {
    grid-column: 1 / -1;
    grid-row: 5;
    justify-self: center;
    align-self: start;
    width: fit-content;
    max-width: 100%;
    margin-top: 1.5rem;
    padding: 1.25rem 1.75rem;
  }
}

/* Mobile/tablet: velo claro detrás del texto para mantener contraste */
@media (max-width: 980px) {
  .hero {
    background-size: cover;
    background-position: 72% center;
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(247, 244, 238, 0.82), rgba(247, 244, 238, 0.7));
    pointer-events: none;
  }
}

/* ============ Trayectoria: centrada dentro del hero ============ */
@media (min-width: 981px) {
  .trust-strip {
    text-align: center;
  }
  .trust-strip .lbl {
    text-align: center;
  }
  .trust-chips {
    justify-content: center;
  }
  .trust-logos {
    justify-content: center;
  }
}

/* ============ Ajustes responsive globales ============ */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}
img,
svg,
video {
  max-width: 100%;
  height: auto;
}
.wrap {
  width: 100%;
}
h1,
h2,
h3,
p,
li {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  -webkit-hyphens: manual;
}

/* Enlaces largos de fuentes: que nunca desborden */
.sources-prose a,
.source-link,
a[href^="http"] {
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 1024px) {
  :root {
    --gutter: 1.5rem;
  }
  .hero h1 {
    max-width: 22ch;
  }
}

@media (max-width: 980px) {
  .hero {
    padding: 3.5rem 0 3rem;
  }
  .hero .wrap {
    text-align: center;
  }
  .hero-lead {
    font-size: 1.05rem;
  }
  .trust-strip {
    margin-top: 2.5rem;
    padding-top: 2rem;
  }
  .trust-chips {
    gap: 0.6rem;
  }
  .trust-logos {
    gap: 2rem;
  }
  .sec-head {
    text-align: center;
    margin-bottom: 3rem;
  }
}

@media (max-width: 700px) {
  :root {
    --gutter: 1.15rem;
  }
  .hero h1 {
    font-size: clamp(1.6rem, 7.2vw, 2.1rem);
    max-width: 100%;
  }
  .hero-lead {
    max-width: 100%;
    text-align: justify;
    -webkit-hyphens: manual;
    hyphens: manual;
    overflow-wrap: normal;
    word-break: normal;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta-row .btn {
    width: 100%;
    justify-content: center;
  }
  .trust-chips .chip {
    font-size: 0.9rem;
    padding: 0.5rem 0.9rem;
  }
  .marquee-strip {
    padding: 0.9rem 0;
  }
  .method-card-wrap {
    min-height: auto;
  }
  .stats-row div {
    padding: 1.25rem 0;
  }
  p,
  li,
  blockquote {
    text-align: justify;
    -webkit-hyphens: manual;
    hyphens: manual;
    overflow-wrap: normal;
    word-break: normal;
  }
}

@media (max-width: 560px) {
  .trust-logos {
    gap: 1.25rem;
  }
  .trust-logos span {
    font-size: 1.05rem;
  }
  .footer-compliance {
    justify-content: flex-start;
  }
  .contact-form {
    padding: 1.25rem;
  }
}

/* ============ Sobre mí — panel oscuro ============ */
#contexto {
  padding-bottom: 2.5rem;
}
section:has(.about-head) {
  padding-top: 2.25rem;
}
.about-head {
  margin-bottom: 1.75rem;
}
.about-head .sec-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.about-head .eyebrow {
  justify-content: flex-start;
  color: var(--accent);
}
.about-head h2 {
  font-size: var(--fs-h2);
  line-height: 1.15;
  margin-top: 0.6rem;
  color: var(--ink);
}
.about-panel {
  display: grid;
  grid-template-columns: 45% 55%;
  background: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 3.75rem;
  box-shadow: 0 34px 64px -32px rgba(20, 29, 51, 0.45);
}
.about-panel-text {
  padding: 4rem 3rem;
}
.about-panel-text .eyebrow {
  justify-content: flex-start;
  color: rgba(237, 239, 234, 0.65);
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}
.about-panel-sub {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: #edefea;
  margin-top: 0.85rem !important;
  margin-bottom: 1.5rem;
  text-align: left;
}
.about-panel-text p {
  color: rgba(237, 239, 234, 0.78);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-top: 1rem;
}
.about-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.about-chips span {
  border: 1px solid rgba(237, 239, 234, 0.28);
  color: #edefea;
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}
.about-panel-photo {
  position: relative;
  min-height: 100%;
}
.about-panel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: none;
}
@media (max-width: 860px) {
  .about-panel {
    grid-template-columns: 1fr;
  }
  .about-panel-text {
    padding: 2rem 1.5rem;
  }
  .about-panel-photo {
    height: 420px;
  }
}

/* ---- Servicios: franja de asesoría y áreas terapéuticas ---- */
.advisory-band {
  margin-top: 2.5rem;
  background: #1e2a4a;
  border-radius: 12px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.advisory-copy {
  max-width: 62ch;
}
.advisory-eyebrow {
  display: block;
  font-family: "Public Sans", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: #9fb0cc;
  margin-bottom: 0.5rem;
}
.advisory-band h3 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 24px;
  color: #f7f5f1;
  margin: 0 0 0.5rem;
}
.advisory-band p {
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 15px;
  color: #c9d2e0;
  margin: 0;
  text-align: left;
}
.advisory-btn {
  flex: none;
  background: #0096c7;
  color: #fff;
  border-radius: 8px;
  padding: 14px 22px;
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  box-shadow: 0 6px 18px rgba(0, 150, 199, 0.25);
}
.advisory-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 150, 199, 0.35);
}

.areas-band {
  margin-top: 1.5rem;
  padding: 24px 4px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.areas-label {
  font-family: "Public Sans", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: #5a6b85;
  white-space: nowrap;
}
.areas-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.area-chip {
  font-family: "Public Sans", system-ui, sans-serif;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 20px;
  background: #e3ecf4;
  color: #1e2a4a;
  transition: transform 0.2s ease;
}
.area-chip.dark {
  background: #1e2a4a;
  color: #f7f5f1;
}
.area-chip:hover {
  transform: translateY(-2px);
}

/* ============ PREMIUM REVEAL ANIMATIONS — Scroll-driven visuals ============ */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  filter: blur(1px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Stagger effect for reveal groups */
.js-ready .reveal-group > * {
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* ============ HERO SECTION DEPTH — Visual layering via overlay ============ */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(193, 127, 46, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(78, 102, 144, 0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}
.hero .wrap {
  position: relative;
  z-index: 2;
}

/* ============ HERO TITLE WORD ANIMATION ============ */
.hero h1 .word {
  opacity: 0;
  transform: translateY(8px);
  display: inline-block;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero h1 .word.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ CARD HOVER ENHANCEMENTS — 3D tilt + depth ============ */
.value-card,
.service-card,
.highlight-cell,
.trust-card,
.method-card,
.resource-card {
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
  position: relative;
}
.value-card.tilt-el:hover,
.service-card.tilt-el:hover,
.highlight-cell.tilt-el:hover,
.trust-card.tilt-el:hover,
.method-card.tilt-el:hover,
.resource-card.tilt-el:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12),
              0 0 1px rgba(255, 255, 255, 0.1);
}

/* ============ BUTTON MAGNETIC EFFECTS ============ */
.btn-magnetic {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* ============ IMAGE PARALLAX & HOVER ============ */
.about-panel-photo {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.3s ease;
  position: relative;
  overflow: hidden;
}
.about-panel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (hover: hover) {
  .about-panel-photo:hover img {
    transform: scale(1.04);
  }
}

/* ============ NAVBAR SCROLL HIDE/SHOW ============ */
.site {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
}
.site.hide {
  transform: translateY(-100%);
  box-shadow: none;
}
.site.show {
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ============ COUNTER ANIMATIONS ============ */
.num[data-count] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

@media (max-width: 720px) {
  .advisory-band {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  .advisory-btn {
    width: 100%;
    text-align: center;
  }
}

