/* ============================================================
   VARIMY · LANDING PAGE
   Paleta basada en el logo del cerebro (multicolor)
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --text: #1d2230;
  --text-soft: #5b6577;
  --muted: #98a0ad;

  /* Paleta tomada del cerebro del logo */
  --teal: #2bc4b5;
  --teal-2: #1ea99c;
  --teal-light: #6fcda6;

  --coral: #e84d5f;
  --coral-light: #ee818e;

  --yellow: #f1c742;
  --green: #6fcda6;

  --blue: #2b47a0;
  --blue-2: #1f3680;

  --plum: #533472;
  --plum-2: #6b2a73;

  --brand-purple: #533472;
  --brand-purple-2: #432560;
  --brand-purple-dark: #2c1949;

  --line: rgba(20, 25, 40, 0.08);
  --line-2: rgba(20, 25, 40, 0.12);

  --shadow-sm: 0 1px 2px rgba(15, 22, 36, 0.06), 0 1px 3px rgba(15, 22, 36, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 22, 36, 0.08), 0 2px 6px rgba(15, 22, 36, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 22, 36, 0.14), 0 4px 14px rgba(15, 22, 36, 0.08);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --container: 1240px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

/* Garantizamos que el atributo `hidden` SIEMPRE oculta el elemento.
   (Por defecto las reglas CSS con `display: flex/grid/etc.` lo sobrescriben). */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  overflow-x: hidden;
}

/* Wrapper de secciones tipo "card" con márgenes blancos y esquinas redondeadas */
.section-card {
  margin: 16px clamp(14px, 2.5vw, 32px);
  border-radius: clamp(20px, 2.2vw, 32px);
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

/* CUSTOM CURSOR */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity .25s, transform .15s ease-out;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #ffffff;
  border-radius: 50%;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  transition: transform .25s ease-out, width .25s, height .25s, border-color .25s;
}
.cursor-ring.is-hover { width: 60px; height: 60px; border-color: var(--teal); }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 36px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: padding .25s ease, background .25s, border-color .25s;
}
.nav.is-scrolled {
  padding: 10px 36px;
  background: rgba(255,255,255,0.88);
  border-bottom-color: var(--line);
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  transition: opacity .2s, transform .2s;
}
.nav__logo:hover { opacity: .85; transform: translateY(-1px); }
.nav__logo {
  position: relative;
  height: 28px;
}
.nav__logo-img {
  height: 28px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(15,22,36,0.05));
  transition: opacity .4s ease, transform .4s ease;
}
.nav__logo-img--icon {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%) scale(0.78);
  opacity: 0;
  pointer-events: none;
}
.nav.is-past-hero .nav__logo-img--full {
  opacity: 0;
  transform: translateX(-8px);
}
.nav.is-past-hero .nav__logo-img--icon {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
.nav.is-scrolled .nav__logo-img { height: 26px; }
.nav.is-scrolled .nav__logo { height: 26px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}
.nav__links a { transition: color .2s; position: relative; }
.nav__links a:hover { color: var(--text); }
.nav__links a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }
.nav__cta {
  background: var(--text);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background .2s, transform .2s;
}
.nav__cta:hover {
  background: var(--brand-purple);
  transform: translateY(-1px);
}
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform .25s, opacity .25s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translate(0,7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translate(0,-7px) rotate(-45deg); }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 36px 100px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .7;
  pointer-events: none;
}
.hero__poly polygon {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: drawLine 2.8s ease forwards;
}
.hero__poly polygon:nth-child(1)  { animation-delay: .05s; }
.hero__poly polygon:nth-child(2)  { animation-delay: .10s; }
.hero__poly polygon:nth-child(3)  { animation-delay: .15s; }
.hero__poly polygon:nth-child(4)  { animation-delay: .20s; }
.hero__poly polygon:nth-child(5)  { animation-delay: .25s; }
.hero__poly polygon:nth-child(6)  { animation-delay: .30s; }
.hero__poly polygon:nth-child(7)  { animation-delay: .35s; }
.hero__poly polygon:nth-child(8)  { animation-delay: .40s; }
.hero__poly polygon:nth-child(9)  { animation-delay: .45s; }
.hero__poly polygon:nth-child(10) { animation-delay: .50s; }
.hero__poly polygon:nth-child(11) { animation-delay: .55s; }
.hero__poly polygon:nth-child(12) { animation-delay: .60s; }
.hero__poly polygon:nth-child(13) { animation-delay: .65s; }
.hero__poly polygon:nth-child(14) { animation-delay: .70s; }
.hero__poly polygon:nth-child(15) { animation-delay: .75s; }
.hero__poly polygon:nth-child(16) { animation-delay: .80s; }
.hero__poly polygon:nth-child(17) { animation-delay: .85s; }
.hero__poly polygon:nth-child(18) { animation-delay: .90s; }
.hero__poly polygon:nth-child(19) { animation-delay: .95s; }
.hero__poly polygon:nth-child(20) { animation-delay: 1s; }
.hero__poly polygon:nth-child(21) { animation-delay: 1.05s; }
.hero__poly polygon:nth-child(22) { animation-delay: 1.10s; }
.hero__poly polygon:nth-child(23) { animation-delay: 1.15s; }
.hero__poly polygon:nth-child(24) { animation-delay: 1.20s; }
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero__blob--1 {
  width: 540px; height: 540px;
  background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
  top: 8%; left: -140px;
  opacity: .45;
  animation: float 14s ease-in-out infinite;
}
.hero__blob--2 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--coral) 0%, transparent 70%);
  bottom: -12%; right: -140px;
  opacity: .42;
  animation: float 18s ease-in-out infinite reverse;
}
.hero__blob--3 {
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--brand-purple) 0%, transparent 70%);
  top: 40%; right: 18%;
  opacity: .28;
  animation: float 22s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(40px, -30px); }
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(43,196,181, 0.1);
  color: var(--teal-2);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  margin-bottom: 28px;
  border: 1px solid rgba(43,196,181,0.2);
  animation: fadeUp .9s .2s ease both;
}
.hero__badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(43,196,181,.4);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43,196,181,.5); }
  70% { box-shadow: 0 0 0 12px rgba(43,196,181,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,196,181,0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  max-width: 14ch;
  animation: fadeUp 1s .35s ease both;
}
.hero__title-accent {
  background: linear-gradient(120deg, var(--brand-purple) 0%, var(--teal) 60%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-soft);
  max-width: 56ch;
  margin: 0 0 36px;
  animation: fadeUp 1s .5s ease both;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 1s .65s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  transition: transform .2s, box-shadow .2s, background .25s, color .25s;
  cursor: pointer;
}
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary {
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover {
  background: var(--brand-purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn--ghost {
  background: rgba(20,25,40,.04);
  color: var(--text);
}
.btn--ghost:hover {
  background: rgba(20,25,40,.08);
}

.hero__stats {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 48px;
  animation: fadeUp 1s .8s ease both;
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--text);
  letter-spacing: -.02em;
}
.stat__label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-soft);
  border-radius: 999px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 3px; height: 8px;
  background: var(--text-soft);
  border-radius: 999px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 14px); }
}

/* CAMPOS */
.campos {
  position: relative;
  background: linear-gradient(135deg, #1d2c5e 0%, #1b3c84 45%, #16306e 100%);
  color: #fff;
  padding: 120px 36px;
  overflow: hidden;
}
.campos::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(43,196,181,0.18), transparent 45%),
    radial-gradient(circle at 95% 90%, rgba(232,77,95,0.12), transparent 50%);
  pointer-events: none;
}
.campos__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
  z-index: 0;
}
.campos__brain {
  height: 92%;
  max-height: 740px;
  width: auto;
  opacity: .95;
  filter: drop-shadow(0 30px 80px rgba(15,22,36,.45));
  animation: brainFloat 14s ease-in-out infinite;
  transform-origin: center right;
  will-change: transform;
}
@keyframes brainFloat {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  25%  { transform: translate(-6px, -10px) rotate(-0.5deg) scale(1.012); }
  50%  { transform: translate(2px, -3px) rotate(0.3deg) scale(1.02); }
  75%  { transform: translate(-3px, 8px) rotate(-0.2deg) scale(1.01); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}
.campos__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
}
.campos__header {
  max-width: 720px;
  margin-bottom: 56px;
}
.campos__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  margin: 0 0 16px;
}
.campos__sub {
  color: rgba(255,255,255,0.75);
  font-size: 17px;
  margin: 0;
}

.campos__tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  margin-bottom: 40px;
  border: 1px solid rgba(255,255,255,0.12);
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  font-size: 14px;
  border: 0;
  border-radius: 999px;
  transition: all .25s;
}
.tab:hover { color: #fff; }
.tab.is-active {
  background: #fff;
  color: var(--brand-purple-2);
}

/* Pipeline */
.pipeline {
  display: none;
  animation: fadeIn .4s ease;
}
.pipeline.is-active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.pipeline__row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.pipeline__label {
  position: relative;
}
.pipeline__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .15em;
  color: rgba(255,255,255,0.55);
}
.pipeline__label h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.6vw, 38px);
  letter-spacing: .04em;
  font-weight: 700;
  margin: 6px 0 8px;
  white-space: nowrap;
  background: linear-gradient(120deg, #ffffff 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pipeline__label p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin: 0;
  font-style: italic;
}

.pipeline__steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}
.step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: transform .3s ease, background .3s, border-color .3s;
  cursor: default;
}
.step:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(43,196,181, 0.45);
}
.step__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(43,196,181,.2), rgba(232,77,95,.18));
  color: #fff;
  margin-bottom: 16px;
}
.step:hover .step__icon {
  box-shadow: 0 0 0 4px rgba(43,196,181,.12);
}
.step__icon--wide {
  width: 108px;
  gap: 10px;
  padding: 0 14px;
  justify-content: space-between;
}
.step__icon--wide .step__mic {
  flex: 0 0 auto;
}
.step__icon--wide .step__wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 28px;
  width: 36px;
}
.step__icon--wide .step__wave i {
  display: block;
  width: 4px;
  background: var(--teal);
  border-radius: 2px;
  animation: wave 1.4s ease-in-out infinite;
}
.step__icon--wide .step__wave i:nth-child(1) { height: 30%; animation-delay: .0s; }
.step__icon--wide .step__wave i:nth-child(2) { height: 80%; animation-delay: .15s; }
.step__icon--wide .step__wave i:nth-child(3) { height: 50%; animation-delay: .3s; }
.step__icon--wide .step__wave i:nth-child(4) { height: 100%; animation-delay: .45s; }
.step__icon--wide .step__wave i:nth-child(5) { height: 35%; animation-delay: .6s; }
.step h4 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0 0 6px;
  font-weight: 600;
}
.step p {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.45;
}
.step__arrow {
  color: rgba(255,255,255,0.4);
  font-size: 24px;
  font-weight: 300;
  transition: transform .25s, color .25s;
}
.pipeline.is-active .step__arrow {
  animation: arrowPulse 2.5s ease-in-out infinite;
}
@keyframes arrowPulse {
  0%, 100% { transform: translateX(0); color: rgba(255,255,255,0.4); }
  50% { transform: translateX(6px); color: var(--teal); }
}

@keyframes wave {
  0%, 100% { transform: scaleY(.4); }
  50% { transform: scaleY(1); }
}

.campos__cta {
  display: flex;
  justify-content: flex-end;
  margin-top: 60px;
}
.campos__cta .btn--primary {
  background: var(--brand-purple-dark);
}
.campos__cta .btn--primary:hover {
  background: var(--teal-2);
}

/* SECTION COMMONS */
.section-header {
  max-width: var(--container);
  margin: 0 auto 56px;
  text-align: center;
}
.section-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-2);
  background: rgba(43,196,181,.10);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(34px, 4vw, 52px);
  margin: 0 0 14px;
  color: var(--brand-purple-dark);
  line-height: 1.1;
}
.section-sub {
  color: var(--text-soft);
  font-size: 17px;
  max-width: 60ch;
  margin: 0 auto;
}
.section-header--invert .section-title { color: #fff; }
.section-header--invert .section-sub { color: rgba(255,255,255,0.7); }
.section-header--invert .section-eyebrow {
  color: var(--teal);
  background: rgba(43,196,181,.18);
}

/* VERSIONES */
.versiones {
  padding: 120px 36px;
  background: var(--bg);
  position: relative;
}
.versions__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.version-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s, border-color .3s;
  overflow: hidden;
}
.version-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 60% at 100% 0%, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.version-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 18px 40px -20px var(--accent);
}
.version-card:hover::before { opacity: 1; }
.version-card__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--accent);
  margin-bottom: 14px;
}
.version-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
.version-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -.01em;
}
.version-card > p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.5;
}
.version-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.version-card__list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text);
}
.version-card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .7;
}

.incidencia {
  max-width: var(--container);
  margin: 56px auto 0;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 28px 32px;
  background: linear-gradient(135deg, rgba(83,52,114,0.06) 0%, rgba(43,196,181,0.06) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.incidencia::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--brand-purple), var(--teal));
}
.incidencia__icon {
  flex: 0 0 60px;
  width: 60px; height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--brand-purple);
  box-shadow: var(--shadow-sm);
}
.incidencia strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--text);
  margin-bottom: 4px;
}
.incidencia p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

/* AGENTES */
.agentes {
  position: relative;
  padding: 120px 36px;
  background: linear-gradient(180deg, #2e0f1a 0%, #4a1828 55%, #2e0f1a 100%);
  color: #fff;
  overflow: hidden;
}
.agentes__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 15%, rgba(232,77,95,0.45), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(238,42,123,0.25), transparent 50%),
    radial-gradient(circle at 55% 50%, rgba(83,52,114,0.18), transparent 60%);
  pointer-events: none;
}
.agentes > * { position: relative; }

/* AGENTS ACCORDION */
.agents__accordion {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.agent-block {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .25s, background .25s;
}
.agent-block[open] {
  background: rgba(255,255,255,0.05);
  border-color: rgba(43,196,181,0.35);
}
.agent-block__head {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 48px 1fr auto 28px;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  user-select: none;
}
.agent-block__head::-webkit-details-marker { display: none; }
.agent-block__head:hover { background: rgba(255,255,255,0.03); }

.agent-block__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(43,196,181,0.12);
  color: var(--teal);
  transition: background .25s, color .25s;
}
.agent-block[data-block="terapia"] .agent-block__icon { background: rgba(232,77,95,0.14); color: var(--coral); }
.agent-block[data-block="entorno"] .agent-block__icon { background: rgba(179,168,255,0.18); color: #b3a8ff; }
.agent-block[data-block="identidad"] .agent-block__icon { background: rgba(241,199,66,0.18); color: var(--yellow); }
.agent-block[data-block="sensorial"] .agent-block__icon { background: rgba(111,205,166,0.18); color: var(--green); }

.agent-block__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.agent-block__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  letter-spacing: -.01em;
}
.agent-block__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.agent-block__count {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
}
.agent-block__chevron {
  color: rgba(255,255,255,0.55);
  transition: transform .3s ease, color .25s;
  display: inline-flex;
}
.agent-block[open] .agent-block__chevron {
  transform: rotate(180deg);
  color: var(--teal);
}

.agent-block__body {
  padding: 4px 24px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  animation: blockFadeIn .35s ease;
}
@keyframes blockFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.agent {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 18px 18px 16px;
  transition: transform .25s ease, background .25s, border-color .25s;
}
.agent:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(43,196,181,0.45);
}
.agent__num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .15em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}
.agent h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -.01em;
}
.agent p {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}
.agent--featured {
  background: linear-gradient(135deg, rgba(83,52,114,0.20), rgba(43,196,181,0.16));
  border-color: rgba(43,196,181,0.4);
}

.accessibility {
  max-width: 920px;
  margin: 56px auto 0;
  text-align: center;
  padding: 36px 28px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
}
.accessibility h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 0 0 8px;
  color: #fff;
}
.accessibility > p {
  margin: 0 0 20px;
  color: rgba(255,255,255,0.65);
  font-size: 14.5px;
}
.accessibility__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(43,196,181,0.10);
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid rgba(43,196,181,0.2);
}

/* AVANCES */
.avances {
  padding: 120px 36px;
  background: var(--bg-soft);
}

.avances__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 320px;
  gap: 24px;
  align-items: stretch;
}

/* MEDIA CARDS (vídeo y artículo) */
.media-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: box-shadow .3s, transform .3s, border-color .3s;
  color: inherit;
  text-decoration: none;
}
.media-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: rgba(43,196,181,.4);
}

.media-card__player,
.media-card__cover {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0f1320;
}
.media-card__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-card__cover {
  background: linear-gradient(135deg, var(--brand-purple-2) 0%, var(--brand-purple) 55%, var(--brand-purple-dark) 100%);
  display: flex;
  align-items: flex-end;
  padding: 22px;
  color: #fff;
}
.media-card__cover--image {
  background: #0f1320;
}
.media-card__cover--image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.media-card:hover .media-card__cover--image img {
  transform: scale(1.04);
}
.media-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,19,32,0.25) 0%, rgba(15,19,32,0) 35%, rgba(15,19,32,0.65) 100%);
}
.media-card__cover-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(43,196,181,0.35), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(232,77,95,0.30), transparent 55%);
  opacity: .8;
}
.media-card__source {
  position: absolute;
  top: 22px; left: 22px;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  letter-spacing: -.01em;
}
.media-card__source strong { color: var(--yellow); }
.media-card__source span { font-weight: 400; font-size: 15px; opacity: .9; }
.media-card__date {
  position: absolute;
  top: 22px; right: 22px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  background: rgba(0,0,0,0.2);
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.media-card__quote {
  position: absolute;
  bottom: 18px; right: 18px;
  color: rgba(255,255,255,0.18);
  transform: rotate(180deg);
}

.media-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.media-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.media-card__badge--video {
  background: rgba(232,77,95,0.10);
  color: var(--coral);
}
.media-card__badge--article {
  background: rgba(83,52,114,0.10);
  color: var(--brand-purple);
}
.media-card__title {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
  margin: 2px 0 0;
}
.media-card__desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}
.media-card__cta {
  margin-top: auto;
  padding-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--teal-2);
  transition: gap .2s, color .2s;
}
.media-card:hover .media-card__cta {
  gap: 10px;
  color: var(--brand-purple);
}

/* CTA Sidebar */
.avances__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-btn {
  width: 100%;
  padding: 18px 22px;
  border: 0;
  border-radius: 14px;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  font-family: var(--font-display);
  box-shadow: 0 6px 14px -8px rgba(43,196,181,0.6);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.cta-btn:hover {
  background: var(--teal-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -10px rgba(43,196,181,0.7);
}

.avances__sign {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 4px 4px;
  border-top: 1px dashed var(--line-2);
}
.avances__sign img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(83,52,114,0.18));
}
.avances__sign strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--text);
  letter-spacing: -.01em;
}
.avances__sign span {
  display: block;
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 2px;
}

/* SOCIAL pills (en sidebar Avances + encima del logo final) */
.avances__social {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 4px 6px;
}
.avances__social-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.avances__social-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.social-pill {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, color .25s, border-color .25s;
}
.social-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.social-pill > * { position: relative; z-index: 1; }
.social-pill--ig::before {
  background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
}
.social-pill--tw::before {
  background: linear-gradient(135deg, #0f1419 0%, #1d9bf0 100%);
}
.social-pill:hover {
  transform: translateY(-2px);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-md);
}
.social-pill:hover::before { opacity: 1; }
.social-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* FOOTER */
.footer {
  background: #0f1320;
  color: rgba(255,255,255,.75);
  padding: 70px 36px 24px;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand {
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer__brain {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(43,196,181,0.25));
}
.footer__brand strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -.01em;
}
.footer__brand p {
  margin: 4px 0 0;
  font-size: 14px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer__cols h5 {
  color: #fff;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer__cols a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  transition: color .2s;
}
.footer__cols a:hover { color: var(--teal); }
.footer__bottom {
  max-width: var(--container);
  margin: 24px auto 0;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer__social {
  display: flex;
  gap: 8px;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.75);
  transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.footer__social a:hover {
  background: rgba(43,196,181,0.18);
  border-color: rgba(43,196,181,0.5);
  color: var(--teal);
  transform: translateY(-2px);
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 28, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .25s ease;
}
.modal__card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: modalIn .35s cubic-bezier(.2,.8,.2,1.1);
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(20,25,40,.06);
  border: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: var(--text);
  transition: background .2s;
}
.modal__close:hover { background: rgba(20,25,40,.12); }
.modal__card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--text);
}
.modal__card > p {
  margin: 0 0 20px;
  color: var(--text-soft);
  font-size: 14px;
}
.modal__mail {
  color: var(--teal-2);
  font-weight: 600;
  border-bottom: 1px dashed currentColor;
  padding-bottom: 1px;
  transition: color .2s;
}
.modal__mail:hover { color: var(--brand-purple); }
.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.form input,
.form select,
.form textarea {
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg-soft);
  font: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  font-weight: 400;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(43,196,181,.12);
}
.form textarea { resize: vertical; }
.form button { align-self: flex-start; margin-top: 6px; }
.form__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 30px 0;
  color: var(--teal-2);
  font-weight: 600;
}
.form__success svg {
  background: rgba(43,196,181,.12);
  border-radius: 50%;
  padding: 8px;
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  padding: 14px 22px;
  background: var(--text);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity .3s, transform .3s;
  z-index: 300;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast[hidden] { display: none; }

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1080px) {
  .avances__grid {
    grid-template-columns: 1fr 1fr;
  }
  .avances__cta { grid-column: 1 / -1; flex-direction: row; padding: 0; }
  .avances__cta .cta-btn { flex: 1; }
  .avances__logo { flex: 1; min-height: 96px; }
}
@media (max-width: 1080px) {
  .versions__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .nav { padding: 14px 20px; }
  .nav.is-scrolled { padding: 10px 20px; }
  .nav__links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    gap: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav__links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav__links a {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
  }
  .nav__cta { margin: 8px auto; max-width: 200px; }
  .nav__toggle { display: flex; }

  .hero { padding: 110px 20px 80px; }
  .hero__pattern { opacity: .10; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stat__num { font-size: 28px; }
  .stat__label { font-size: 11px; }

  .campos { padding: 80px 20px; }
  .pipeline__row { grid-template-columns: 1fr; gap: 24px; }
  .pipeline__steps { grid-template-columns: 1fr; }
  .step__arrow { transform: rotate(90deg); justify-self: center; }
  .campos__cta { justify-content: stretch; }
  .campos__cta .btn { width: 100%; justify-content: center; }
  .campos__brain { display: none; }

  .avances { padding: 80px 20px; }
  .avances__grid { grid-template-columns: 1fr; }
  .avances__cta { flex-direction: column; }

  .versiones { padding: 80px 20px; }
  .versions__grid { grid-template-columns: 1fr; }
  .incidencia {
    flex-direction: column;
    padding: 24px;
    gap: 16px;
  }
  .agentes { padding: 80px 20px; }
  .agent-block__head {
    grid-template-columns: 40px 1fr auto;
    gap: 12px;
    padding: 16px 18px;
  }
  .agent-block__chevron { display: none; }
  .agent-block__icon { width: 40px; height: 40px; }
  .agent-block__body { grid-template-columns: 1fr; padding: 0 18px 20px; }
  .agent-block__name { font-size: 15px; }
  .agent-block__desc { font-size: 12px; }
  .agent-block__count { font-size: 11px; padding: 4px 9px; }

  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  .footer { padding: 60px 20px 20px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================================
   PÁGINAS LEGALES (privacidad / aviso-legal / cookies)
   ======================================================== */
.legal-page {
  background: var(--bg);
  color: var(--text);
}
.legal {
  max-width: 860px;
  margin: 0 auto;
  padding: 140px clamp(20px, 4vw, 40px) 80px;
}
.legal__inner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 10px 40px rgba(15,22,36,0.05);
}
.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  margin: 12px 0 8px;
  letter-spacing: -0.02em;
}
.legal h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 40px 0 12px;
  color: var(--brand-purple, var(--text));
  letter-spacing: -0.01em;
}
.legal h2:first-of-type { margin-top: 32px; }
.legal p,
.legal li {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text);
}
.legal ul {
  padding-left: 22px;
  margin: 10px 0 18px;
}
.legal li { margin-bottom: 8px; }
.legal a {
  color: var(--teal, #2bc4b5);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.legal a:hover { color: var(--coral, #e84d5f); }
.legal__meta {
  color: var(--text-muted, #666);
  font-size: 14px;
  margin: 0 0 8px;
}
.legal__back {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.legal__back a {
  text-decoration: none;
  font-weight: 600;
}
.legal-page .footer { padding: 24px clamp(20px, 4vw, 40px); }
.legal-page .footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.footer__legal-links {
  display: inline-flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer__legal-links a {
  color: inherit;
  text-decoration: none;
  font-size: 13px;
  opacity: 0.75;
  transition: opacity .2s;
}
.footer__legal-links a:hover { opacity: 1; }

/* Botón pequeño usado en el nav de páginas legales */
.btn--small {
  padding: 8px 16px;
  font-size: 13px;
}

/* Checkbox de consentimiento RGPD en formularios */
.form__consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 4px 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted, #555);
}
.form__consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--teal, #2bc4b5);
  cursor: pointer;
}
.form__consent a {
  color: var(--teal, #2bc4b5);
  text-decoration: underline;
}

