/* Switzer — Indian Type Foundry, Fontshare Free Font EULA.
   License: ../fonts/switzer/LICENSE-Fontshare-FFL.txt
   Variable font, wght axis 100–900. Self-hosted. */

@font-face {
  font-family: "Switzer";
  src: url("../fonts/switzer/Switzer-Variable.woff2") format("woff2-variations"),
       url("../fonts/switzer/Switzer-Variable.woff")  format("woff-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   RÉDITO — design tokens
   Source of truth: REDITO_Claude_Brand_Messaging_Handoff_v2
   ============================================================ */

:root {
  /* Locked palette. The --redito-* names are the handoff contract
     (redito-design-tokens.css); the short names are the in-sheet aliases. */
  --redito-ink:       #111419;
  --redito-cobalt:    #315BFF;
  --redito-canvas:    #F7F8FA;
  --redito-secondary: #66707A;
  --redito-white:     #FFFFFF;
  --redito-muted:     #8A919A;
  --redito-border:    #E5E8EC;

  --ink:        var(--redito-ink);
  --cobalt:     var(--redito-cobalt);
  --canvas:     var(--redito-canvas);
  --secondary:  var(--redito-secondary);
  --white:      var(--redito-white);
  --muted:      var(--redito-muted);  /* decorative only — 3.18:1 on white, below AA for text */
  --border:     var(--redito-border);

  --redito-font: "Switzer", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --redito-radius-button: 10px;
  --redito-radius-card:   18px;
  --redito-max-width:     1240px;
  --redito-reading-width: 760px;

  --font:          var(--redito-font);
  --radius-button: var(--redito-radius-button);
  --radius-card:   var(--redito-radius-card);
  --max-width:     var(--redito-max-width);
  --reading-width: var(--redito-reading-width);

  --gutter:  clamp(20px, 5vw, 48px);
  --section: clamp(56px, 9vw, 144px);

  /* Type scale */
  --t-hero:    clamp(2.75rem, 1.45rem + 5.6vw, 5.5rem);
  --t-h2:      clamp(2rem, 1.35rem + 2.8vw, 3.5rem);
  --t-h3:      clamp(1.25rem, 1.13rem + 0.55vw, 1.625rem);
  --t-lead:    clamp(1.125rem, 1.06rem + 0.35vw, 1.375rem);
  --t-body:    1.0625rem;
  --t-small:   0.9375rem;
  --t-eyebrow: 0.75rem;
}

/* ============================================================
   Reset & base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html:focus-within { scroll-padding-top: 6.5rem; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--cobalt); color: var(--white); }

@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;
  }
}

/* ============================================================
   Layout primitives
   ============================================================ */

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--white  { background: var(--white); }
.section--ink    { background: var(--ink); color: var(--white); }
.section--hairline { border-top: 1px solid var(--border); }

.reading { max-width: var(--reading-width); }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-button);
  font-weight: 500;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   Typographic devices
   ============================================================ */

/* Eyebrow — the cobalt tick echoes the acute accent over the é. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.75rem;
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 15px;
  height: 4px;
  background: var(--cobalt);
  transform: skewX(-32deg);
}
.section--ink .eyebrow { color: rgba(255, 255, 255, 0.66); }

.h-hero {
  font-size: var(--t-hero);
  letter-spacing: -0.03em;
  line-height: 0.98;
}
.h2   { font-size: var(--t-h2); }
.h3   { font-size: var(--t-h3); letter-spacing: -0.018em; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--secondary);
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.section--ink .lead { color: rgba(255, 255, 255, 0.72); }

.body-copy { color: var(--secondary); text-wrap: pretty; }
.section--ink .body-copy { color: rgba(255, 255, 255, 0.72); }

.small { font-size: var(--t-small); color: var(--secondary); line-height: 1.6; }

/* A short declarative phrase that anchors a column. */
.statement {
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: var(--t-h3);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.25;
  max-width: 15ch;
}

/* Small, quiet clarification set below a block. */
.note {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 70ch;
  font-size: var(--t-small);
  color: var(--secondary);
  line-height: 1.6;
}

.u-narrow { max-width: 18ch; }
.u-mt     { margin-top: 1.5rem; }
.pillars--flush { margin-top: 0; }
.cards--auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Scarce cobalt: reserved for accents, links, and one phrase per view. */
.accent { color: var(--cobalt); }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9375rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  /* `a.btn` heredaba el color de enlace cuando la variante no lo declaraba.
     Va aquí, antes de las variantes, para que cualquiera pueda sobrescribirlo. */
  color: var(--ink);
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn--primary {
  background: var(--ink);
  color: var(--white);
}
.btn--primary:hover { background: var(--cobalt); }

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--secondary:hover { border-color: var(--ink); }

.btn--onink {
  background: var(--white);
  color: var(--ink);
}
.btn--onink:hover { background: var(--cobalt); color: var(--white); }

.btn--sm { padding: 0.625rem 1.125rem; }
.btn--lg { padding: 1.0625rem 1.75rem; font-size: 1rem; }
.btn .ar { display: inline-block; transition: transform .26s cubic-bezier(.22,.61,.36,1); }
.btn:hover .ar { transform: translateX(4px); }
.btn--block { width: 100%; }

/* Text link with a trailing rule */
.link-arrow {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-weight: 500;
  font-size: var(--t-small);
  color: var(--cobalt);
  text-decoration: none;
}
.link-arrow::after { content: "\2192"; transition: transform 0.18s ease; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ============================================================
   Header
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.header[data-scrolled="true"] { border-bottom-color: var(--border); }
.header[data-scrolled="true"] .header__inner { min-height: 66px; }
.header[data-scrolled="true"] .wordmark img { height: 30px; }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 104px;
  transition: min-height .3s cubic-bezier(.22,.61,.36,1);
}

.wordmark { display: inline-flex; align-items: center; }
.wordmark img {
  width: auto; height: 42px;
  transition: height .3s cubic-bezier(.22,.61,.36,1);
}

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.2vw, 2.25rem); }
/* The in-nav CTA is the mobile duplicate; the header action bar owns it on desktop. */
.header__nav .btn { display: none; }
/* `:not(.btn)` keeps these link rules from overriding button colour and padding. */
.nav a:not(.btn) {
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav a:not(.btn):hover { color: var(--cobalt); }

@media (min-width: 901px) {
  .nav a:not(.btn) { position: relative; }
  .nav a:not(.btn)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
    background: var(--cobalt); transform: scaleX(0); transform-origin: left;
    transition: transform .28s cubic-bezier(.22,.61,.36,1);
  }
  .nav a:not(.btn):hover::after,
  .nav a[aria-current="page"]::after { transform: scaleX(1); }
}

.header__actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  font-size: var(--t-small);
  font-weight: 500;
  cursor: pointer;
}

@media (max-width: 900px) {
  .header__nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header__nav[data-open="true"] {
    display: flex;
    position: absolute;
    inset: 76px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--canvas);
    border-bottom: 1px solid var(--border);
  }
  .header__nav[data-open="true"] a:not(.btn) {
    padding: 0.9375rem 0;
    min-height: 24px;
    border-bottom: 1px solid var(--border);
    font-size: 1.0625rem;
  }
  .header__nav[data-open="true"] .btn {
    display: inline-flex;
    margin-top: 1.5rem;
    padding-block: 1rem;
    font-size: 1rem;
  }
  .header__actions .btn { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero { padding-block: clamp(56px, 8vw, 120px) clamp(48px, 7vw, 104px); }

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: end; }
}

.hero__lead { max-width: 34ch; margin-top: clamp(1.75rem, 3vw, 2.5rem); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: clamp(2rem, 3.5vw, 2.75rem);
}

/* Role disclosure — a trust signal, set editorially rather than buried. */
.disclosure {
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
}
.disclosure p { font-size: var(--t-small); line-height: 1.6; color: var(--secondary); }
.disclosure strong { color: var(--ink); font-weight: 500; }

/* ============================================================
   Products — editorial list, business use before mechanics
   ============================================================ */

.solutions { display: grid; gap: 0; margin-top: clamp(2.5rem, 4vw, 3.5rem); }

.solution {
  display: grid;
  gap: 0.5rem 2.5rem;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--border);
  grid-template-columns: minmax(0, 1fr);
}
.solution:last-child { border-bottom: 1px solid var(--border); }

@media (min-width: 860px) {
  .solution {
    grid-template-columns: auto minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }
}

.solution__num {
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--secondary);
  letter-spacing: 0.06em;
}
.solution__use { color: var(--secondary); margin-top: 0.5rem; }
.solution__mech { font-size: var(--t-small); color: var(--secondary); }
.solution__mech strong { color: var(--ink); font-weight: 500; }

/* ============================================================
   Steps
   ============================================================ */

.steps {
  display: grid;
  gap: 0;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.step {
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--border);
}
@media (min-width: 800px) {
  .step { padding: 1.75rem 1.75rem 0 0; }
  .step + .step { padding-left: 0; }
}
@media (max-width: 799px) { .step + .step { margin-top: 1.75rem; } }

.step__num {
  display: block;
  margin-bottom: 0.875rem;
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--cobalt);
}
.step h3 { font-size: 1.125rem; letter-spacing: -0.012em; line-height: 1.25; }
.step p { margin-top: 0.625rem; font-size: var(--t-small); color: var(--secondary); }

/* ============================================================
   Split / editorial asymmetry
   ============================================================ */

.split {
  display: grid;
  gap: clamp(2rem, 4.5vw, 5rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
  .split--balanced { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pillars { margin-top: clamp(2rem, 3vw, 2.75rem); display: grid; gap: 1.5rem; }
.pillar { padding-top: 1.25rem; border-top: 1px solid var(--border); }
.pillar h3 { font-size: 1.0625rem; letter-spacing: -0.01em; }
.pillar p { margin-top: 0.375rem; font-size: var(--t-small); color: var(--secondary); }
.section--ink .pillar { border-top-color: rgba(255, 255, 255, 0.16); }
.section--ink .pillar p { color: rgba(255, 255, 255, 0.66); }

/* ============================================================
   Institutional bridge
   ============================================================ */

.bridge__mark { height: 30px; width: auto; margin-bottom: clamp(2rem, 4vw, 3rem); }

.pullquote {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: var(--t-h3);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.3;
  max-width: 22ch;
}

/* ============================================================
   Cards (Recursos)
   ============================================================ */

.cards {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px)  { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.section--white .card { background: var(--canvas); }
.card h3 { font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.3; }
.card p { font-size: var(--t-small); color: var(--secondary); }

.card__tag {
  align-self: flex-start;
  margin-bottom: 0.25rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
}

/* ============================================================
   Form
   ============================================================ */

.form-panel {
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.section--white .form-panel { background: var(--canvas); }

.field { display: grid; gap: 0.5rem; margin-bottom: 1.25rem; }
.field label { font-size: var(--t-small); font-weight: 500; }
.field .hint { font-size: 0.8125rem; color: var(--secondary); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8125rem 0.9375rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
  font-size: var(--t-small);
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.field textarea { min-height: 116px; resize: vertical; line-height: 1.55; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--muted); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }

.field-row { display: grid; gap: 0 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.form-note {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--secondary);
}

/* ============================================================
   Final CTA
   ============================================================ */

.cta-final { text-align: left; }
.cta-final .h2 { max-width: 16ch; }
.cta-final .lead { max-width: 46ch; margin-top: 1.5rem; }
.cta-final .btn { margin-top: clamp(2rem, 3.5vw, 2.75rem); }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  padding-block: clamp(48px, 6vw, 88px) 2.5rem;
  background: var(--canvas);
  border-top: 1px solid var(--border);
}

.footer__top {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 800px) {
  .footer__top { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
}
@media (max-width: 799px) {
  .footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}

.footer__mark img { height: 24px; width: auto; }
.footer__tag { margin-top: 1.25rem; font-size: var(--t-small); color: var(--secondary); max-width: 26ch; }

.footer h3 {
  margin-bottom: 1rem;
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary);
}
.footer li + li { margin-top: 0.25rem; }
/* Padding keeps these at the WCAG 2.2 24px minimum target size. */
.footer__cols a {
  display: inline-block;
  padding-block: 5px;
  font-size: var(--t-small);
  line-height: 1.4;
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer__cols a:hover { color: var(--ink); }

.footer__legal {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 1.5rem;
}
.footer__legal p { font-size: 0.8125rem; line-height: 1.65; color: var(--secondary); max-width: 88ch; }
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--secondary);
}

/* ============================================================
   Shell — retícula de fondo
   ============================================================ */

.shell { position: relative; isolation: isolate; overflow: clip; }
.shell::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(to right,  var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .5;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
}

/* El nombre nunca se transforma. Va dentro de .brand en cualquier
   contexto con text-transform, para que 'rédito' no se vuelva 'RÉDITO'. */
.brand { text-transform: none; }

/* ============================================================
   Palabra acento — el único color dentro de la tipografía
   ============================================================ */

h1 em, h2 em { font-style: normal; color: var(--cobalt); }
.section--ink h2 em { color: inherit; }   /* cobalt sobre ink queda turbio */

/* ============================================================
   Hero
   ============================================================ */

.hero { position: relative; padding-block: clamp(48px,7vw,104px) clamp(72px,9vw,136px); }
.hero__text { position: relative; z-index: 2; max-width: 640px; }
@media (min-width: 1000px) { .hero__text { max-width: 54%; } }

.hero h1 {
  font-size: clamp(3rem, 1.2rem + 6.4vw, 5.75rem);
  letter-spacing: -0.03em;
  line-height: 0.94;
}
.hero__lead { max-width: 33ch; margin-top: clamp(1.75rem,2.6vw,2.25rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: clamp(2.25rem,3.4vw,3rem); }

/* arte: sangra por la derecha y se funde con el canvas */
.art {
  position: absolute; z-index: 1;
  top: 0; right: 0; bottom: 0; width: 50%;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, #000 46%),
    linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, #000 46%),
    linear-gradient(to bottom, #000 0%, #000 78%, transparent 100%);
  mask-composite: intersect;
}
.art__move, .art__svg { width: 100%; height: 100%; }
.art__svg { display: block; }
@media (max-width: 999px) {
  .art { position: relative; top: 0; right: auto; width: 100%; height: 280px; margin-top: 3rem;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 0%, transparent 100%); }
}

/* piso del hero: el disclosure como estructura */
.floor { position: relative; z-index: 2; border-top: 1px solid var(--border); background: var(--canvas); }
.floor__grid { display: grid; gap: 0; }
@media (min-width: 860px) { .floor__grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.floor__cell { padding: clamp(1.75rem,2.8vw,2.5rem) 0; }
@media (min-width: 860px) {
  .floor__cell { padding-inline: clamp(1.5rem,2.6vw,2.5rem); border-left: 1px solid var(--border); }
  .floor__cell:first-child { padding-left: 0; border-left: 0; }
  .floor__cell:last-child { padding-right: 0; }
}
@media (max-width: 859px) { .floor__cell + .floor__cell { border-top: 1px solid var(--border); } }
.floor__cell p { font-size: .9375rem; line-height: 1.6; color: var(--secondary); }
.floor__cell--lead p { color: var(--ink); font-weight: 500; }
.floor__tick { display: block; width: 15px; height: 4px; margin-bottom: .875rem;
  background: var(--cobalt); transform: skewX(-32deg); transform-origin: left center; }
.floor__cell:not(.floor__cell--lead) .floor__tick { background: var(--muted); }

/* ============================================================
   Ritmo de CTA
   ============================================================ */

.cta-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: clamp(1.75rem, 2.8vw, 2.25rem);
  border-top: 1px solid var(--border);
}
.cta-row p { font-size: var(--t-small); color: var(--secondary); max-width: 42ch; }
.cta-row .btn { margin-left: auto; }
@media (max-width: 640px) { .cta-row .btn { margin-left: 0; width: 100%; } }

.solution__go { margin-top: .875rem; }

/* barra fija de móvil */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
  background: var(--canvas);
  border-top: 1px solid var(--border);
  transform: translateY(110%);
  transition: transform .32s cubic-bezier(.22,.61,.36,1);
}
.sticky-cta[data-show="true"] { transform: none; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ============================================================
   Movimiento — todo dentro del guard de reduced-motion
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {

  .rise { opacity: 0; animation: rise .74s cubic-bezier(.22,.61,.36,1) both; }
  @keyframes rise { from { opacity:0; transform: translateY(15px); } to { opacity:1; transform:none; } }
  .d1{animation-delay:.04s}.d2{animation-delay:.12s}.d3{animation-delay:.20s}
  .d4{animation-delay:.28s}.d5{animation-delay:.40s}.d6{animation-delay:.47s}.d7{animation-delay:.54s}

  .art { animation: artin 1.5s cubic-bezier(.22,.61,.36,1) .06s both; }
  @keyframes artin { from { opacity:0; transform: scale(1.045); } to { opacity:1; transform:none; } }

  .art .rays line { stroke-dasharray: 1000; animation: draw 1.7s cubic-bezier(.22,.61,.36,1) .45s both; }
  @keyframes draw { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }

  @supports (animation-timeline: scroll()) {
    .art__move { animation: parallax linear both; animation-timeline: scroll(root block); animation-range: 0 760px; }
    @keyframes parallax { to { transform: translateY(-52px); } }
  }

  .art__svg { animation: drift 26s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-9px,7px,0) scale(1.012); } }

  .hero h1 em { animation: accent .6s cubic-bezier(.22,.61,.36,1) .72s both; }
  @keyframes accent { from { color: var(--ink); } to { color: var(--cobalt); } }

  .eyebrow::before { transform-origin: left center; animation: tick .52s cubic-bezier(.22,.61,.36,1) .3s both; }
  .floor__tick { animation: tick .52s cubic-bezier(.22,.61,.36,1) .55s both; }
  @keyframes tick { from { transform: skewX(-32deg) scaleX(0); } to { transform: skewX(-32deg) scaleX(1); } }

  .shell::before { animation: gridin 1.6s ease-out .25s both; }
  @keyframes gridin { from { opacity: 0; } to { opacity: .5; } }

  .js [data-reveal] {
    opacity: 0; transform: translateY(20px);
    transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
  }
  .js [data-reveal][data-inview="true"] { opacity: 1; transform: none; }
  .js [data-reveal][style*="--r"] { transition-delay: calc(var(--r) * 80ms); }
}

/* ============================================================
   INTERRUPTOR — banda cobalt en el CTA final
   Añade data-cobalt="on" al <section id="explorar"> para probarla.
   ============================================================ */

.section--white[data-cobalt="on"] { background: var(--cobalt); color: var(--white); }
[data-cobalt="on"] .h2,
[data-cobalt="on"] .lead,
[data-cobalt="on"] .eyebrow { color: var(--white); }
[data-cobalt="on"] .lead { color: rgba(255,255,255,.78); }
[data-cobalt="on"] .eyebrow::before { background: var(--white); }
[data-cobalt="on"] .h2 em { color: rgba(255,255,255,.6); }   /* si no, azul sobre azul */
[data-cobalt="on"] .form-panel { background: var(--white); border-color: transparent; color: var(--ink); }
[data-cobalt="on"] .form-panel .lead,
[data-cobalt="on"] .form-panel .hint,
[data-cobalt="on"] .form-panel .form-note { color: var(--secondary); }
[data-cobalt="on"] .form-panel .btn--primary:hover { background: var(--cobalt); }

/* Consentimiento: casilla + etiqueta, alineadas por la primera línea */
.consent { display: grid; grid-template-columns: auto 1fr; gap: .75rem; align-items: start; margin-bottom: 1.5rem; }
/* El checkbox nativo trae un borde #767676 que no está en la paleta.
   Se dibuja completo para que no entre un octavo color por la puerta de atrás. */
.consent input {
  appearance: none; -webkit-appearance: none;
  position: relative;
  width: 18px; height: 18px; margin: 2px 0 0; flex: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease;
}
.consent input:hover { border-color: var(--muted); }
.consent input:checked { background: var(--cobalt); border-color: var(--cobalt); }
.consent input:checked::after {
  content: "";
  position: absolute; left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(43deg);
}
.consent label { font-size: .875rem; line-height: 1.55; color: var(--secondary); font-weight: 400; }

/* ============================================================
   Anclas gráficas — el lenguaje del hero, recortado distinto,
   para que el cuerpo de la página deje de ser solo texto
   ============================================================ */

.arc { position: relative; pointer-events: none; }
.arc__svg { display: block; width: 100%; height: 100%; }

/* arco de esquina: ocupa la columna que quedaba vacía */
.arc--corner {
  height: clamp(240px, 30vw, 400px);
  margin-top: clamp(2rem, 4vw, 3rem);
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 60%, transparent 100%),
    linear-gradient(to right,  #000 0%, #000 50%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 16%, #000 60%, transparent 100%),
    linear-gradient(to right,  #000 0%, #000 50%, transparent 100%);
  mask-composite: intersect;
}
@media (max-width: 899px) { .arc--corner { display: none; } }

/* numerales grandes: ritmo vertical en la lista de soluciones */
.solution__num {
  font-size: clamp(2.25rem, 3.4vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--muted);
}
@media (max-width: 859px) { .solution__num { font-size: 1.75rem; margin-bottom: .25rem; } }

/* nodos de flujo: cada paso lleva la misma marca que el acento de la é */
.step { position: relative; }
.step::before {
  content: "";
  position: absolute; top: -2px; left: 0;
  width: 15px; height: 4px;
  background: var(--cobalt);
  transform: skewX(-32deg);
  transform-origin: left center;
}

/* ============================================================
   Estados del formulario
   ============================================================ */

/* Honeypot: fuera de pantalla, nunca oculto con display:none
   (algunos bots ignoran los campos ocultos por display). */
.hp {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; white-space: nowrap;
}
.hp input { border: 0; background: transparent; }   /* que no cuele un color de UA */

.form-panel { position: relative; }
.form-done, .form-error { display: none; }

.form-panel[data-state="sent"] form,
.form-panel[data-state="sent"] noscript { display: none; }
.form-panel[data-state="sent"] .form-done { display: block; }

.form-panel[data-state="error"] .form-error { display: block; }
.form-panel[data-state="sending"] form { opacity: .6; pointer-events: none; }

.form-done { outline: none; }
.form-done__tick {
  display: block; width: 22px; height: 6px; margin-bottom: 1.5rem;
  background: var(--cobalt); transform: skewX(-32deg); transform-origin: left center;
}
.form-done h3 { font-size: var(--t-h3); letter-spacing: -0.018em; margin-bottom: .875rem; }
.form-done p { font-size: var(--t-small); line-height: 1.6; color: var(--secondary); }

.form-alt {
  margin-top: 1.75rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: baseline;
}
.form-alt a {
  font-weight: 500; color: var(--cobalt); text-decoration: none;
  padding-block: 4px;                    /* target de 24px */
}
.form-alt a:hover { text-decoration: underline; }

.form-error {
  margin-top: 1.25rem; padding: 1rem 1.125rem;
  border: 1px solid var(--border); border-left: 3px solid var(--cobalt);
  border-radius: var(--radius-button);
  background: var(--white);
}
.form-error p { font-size: var(--t-small); line-height: 1.6; color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .form-panel[data-state="sent"] .form-done { animation: rise .6s cubic-bezier(.22,.61,.36,1) both; }
}

/* ============================================================
   Contacto visible
   ============================================================ */


.footer__contacto { margin-top: 1.5rem; display: grid; gap: .25rem; }
.footer__contacto a {
  display: inline-block;
  padding-block: 5px;
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color .15s ease;
}
.footer__contacto a:hover { color: var(--cobalt); }

/* La barra fija lleva dos acciones: llamar por WhatsApp o ir al formulario */
.sticky-cta { display: flex; gap: .625rem; }
.sticky-cta .btn { flex: 1; justify-content: center; }
@media (min-width: 768px) { .sticky-cta { display: none; } }
