/* =========================================================
   DTE Cloud — Landing
   ========================================================= */

:root {
  --ink: #002c48;
  --ink-2: #063b5e;
  --ink-3: #0d4a72;
  --line-dark: rgba(255, 255, 255, .11);
  --paper: #f5f7fa;
  --paper-2: #e6ecf2;
  --line: rgba(0,44,72, .12);
  --text: #0b2233;
  --text-soft: #52677a;
  --text-inv: #f5f7fa;
  --text-inv-soft: #a6bccd;
  --accent: #eb510d;
  --accent-ink: #ffffff;
  --blue: #0061a0;
  --wa: #25d366;

  --radius: 22px;
  --radius-lg: 32px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  --f-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; line-height: 1.02; letter-spacing: -.03em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mono { font-family: var(--f-mono); }

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

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

/* ---------- Botones ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: var(--h); padding: 0 1.4em;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1 var(--f-body);
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { --h: 40px; font-size: 15px; padding: 0 1.1em; }
.btn--lg { --h: 58px; font-size: 17px; padding: 0 1.7em; }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -10px rgba(235,81,13, .6); }
.btn--accent:hover { box-shadow: 0 16px 40px -10px rgba(235,81,13, .8); }
.btn--ghost { background: transparent; color: var(--text-inv); border-color: rgba(255,255,255,.22); }
.btn--ghost:hover { background: rgba(255,255,255,.07); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.03em; color: var(--text-inv); }
.logo__mark { --mark-blue: var(--blue); width: 62px; height: 18px; flex-shrink: 0; overflow: visible; }
.logo__sq { fill: var(--mark-blue); }
.logo__dot { fill: var(--accent); }
.logo:hover .logo__dot:nth-of-type(2) { transform: translateY(-2px); }
.logo__dot { transition: transform .3s var(--ease); }
/* Sobre fondos oscuros el azul se aclara para mantener contraste */
.nav.is-scrolled .logo__mark, .nav.menu-open .logo__mark, .footer .logo__mark { --mark-blue: #3a95d8; }
.logo__text span { color: var(--text-inv-soft); font-weight: 600; }

/* ---------- NAV ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: 14px var(--gutter); transition: padding .3s var(--ease); }
.nav__inner {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: rgba(0,44,72, .0);
  border: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.nav.is-scrolled .nav__inner {
  background: rgba(0,44,72, .72);
  border-color: var(--line-dark);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a:not(.btn) { color: var(--text-inv-soft); font-size: 15px; font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav__links a:not(.btn):hover { color: var(--text-inv); background: rgba(255,255,255,.06); }
.nav__links .btn { margin-left: 8px; }

.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); background: rgba(255,255,255,.05); cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text-inv); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Menú sobre la portada clara (antes de hacer scroll) */
.nav:not(.is-scrolled):not(.menu-open) .logo { color: var(--text); }
.nav:not(.is-scrolled):not(.menu-open) .logo__text span { color: var(--text-soft); }
.nav:not(.is-scrolled):not(.menu-open) .nav__links a:not(.btn) { color: var(--text-soft); }
.nav:not(.is-scrolled):not(.menu-open) .nav__links a:not(.btn):hover { color: var(--text); background: rgba(0,44,72,.06); }
.nav:not(.is-scrolled):not(.menu-open) .nav__toggle { border-color: var(--line); background: rgba(255,255,255,.7); }
.nav:not(.is-scrolled):not(.menu-open) .nav__toggle span { background: var(--text); }

/* ---------- HERO (claro) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fbfcfe 0%, var(--paper) 100%); color: var(--text);
  padding: clamp(120px, 16vh, 170px) 0 clamp(80px, 10vh, 120px);
}
.hero__glow {
  position: absolute; width: 900px; height: 900px; right: -260px; top: -320px;
  background: radial-gradient(closest-side, rgba(0,97,160,.20), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.hero__glow::after {
  content: ""; position: absolute; width: 560px; height: 560px; left: -140px; bottom: -80px;
  background: radial-gradient(closest-side, rgba(235,81,13,.16), transparent 70%);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 80px); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--text-soft);
  padding: 7px 14px 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(235,81,13,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(235,81,13,.5); } 70% { box-shadow: 0 0 0 10px rgba(235,81,13,0); } 100% { box-shadow: 0 0 0 0 rgba(235,81,13,0); } }

.hero__title { font-size: clamp(42px, 5.8vw, 82px); font-weight: 800; margin: 24px 0 24px; }
/* Destacado en naranjo con subrayado azul */
.hl {
  display: inline; color: var(--accent);
  background: linear-gradient(transparent 88%, rgba(0,97,160,.25) 88%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero__lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-soft); max-width: 34ch; }
.hero__lead strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .btn--ghost { color: var(--text); border-color: rgba(0,44,72,.2); background: rgba(255,255,255,.6); }
.hero .btn--ghost:hover { background: #fff; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; color: var(--text-soft); font-size: 14px; }
.hero__chips li { display: inline-flex; align-items: center; gap: 8px; }
.hero__chips li::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 800; }

/* Tarjeta DTE */
.hero__visual { position: relative; padding: 30px 0; }
.dte-card {
  position: relative; z-index: 2;
  background: #fff; color: var(--text);
  border-radius: var(--radius); padding: 24px;
  box-shadow: 0 40px 80px -30px rgba(0,44,72,.35), 0 0 0 1px var(--line);
  transform: rotate(-2deg);
  transition: transform .6s var(--ease);
}
.hero__visual:hover .dte-card { transform: rotate(0deg) translateY(-4px); }
.dte-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.dte-card__type { font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; transition: opacity .3s; }
.dte-card__meta { font-size: 12px; color: var(--text-soft); margin-top: 4px; }
.dte-card__rows { padding: 14px 0; display: grid; gap: 8px; font-size: 14px; }
.row { display: flex; justify-content: space-between; gap: 12px; color: var(--text-soft); }
.row span:last-child { color: var(--text); font-weight: 500; }
.row--total { padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); font-weight: 600; }
.row--total span { color: var(--text) !important; font-size: 16px; font-weight: 700 !important; }
.dte-card__stamp { display: flex; align-items: center; gap: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.dte-card__stamp p { font-size: 11px; color: var(--text-soft); text-transform: uppercase; letter-spacing: .08em; }
.barcode { display: grid; grid-template-columns: repeat(34, 1fr); grid-auto-rows: 4px; gap: 1px; width: 150px; flex-shrink: 0; }
.barcode i { background: var(--ink); border-radius: 1px; }
.barcode i.o { background: transparent; }

.status {
  flex-shrink: 0; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  background: var(--paper-2); color: var(--text-soft); white-space: nowrap;
  transition: background .3s, color .3s;
}
.status[data-state="1"], .status[data-state="2"] { background: #e0eef8; color: #0061a0; }
.status[data-state="3"] { background: var(--accent); color: var(--accent-ink); }

.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 66px; position: relative; z-index: 2; }
.pipeline li {
  position: relative; font-size: 12.5px; font-weight: 500; color: var(--text-soft);
  padding-top: 22px; transition: color .3s;
}
.pipeline li::before { content: ""; position: absolute; top: 6px; left: 0; right: -6px; height: 2px; background: var(--line); }
.pipeline li::after { content: ""; position: absolute; top: 6px; left: 0; width: 0; height: 2px; background: var(--ink); transition: width .7s var(--ease); }
.pipeline__dot { position: absolute; top: 1px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--paper-2); border: 2px solid #c9d4de; z-index: 1; transition: background .3s, border-color .3s, box-shadow .3s; }
.pipeline li.is-done { color: var(--text); }
.pipeline li.is-done::after { width: calc(100% + 6px); }
.pipeline li:last-child::before, .pipeline li:last-child::after { display: none; }
.pipeline li.is-done .pipeline__dot { background: var(--accent); border-color: var(--ink); box-shadow: 0 0 0 5px rgba(235,81,13,.35); }

.float-badge {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  background: rgba(0, 44, 72, .9); color: var(--text-inv);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.6);
  animation: float 6s ease-in-out infinite;
}
.float-badge .ico { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 12px; }
.float-badge--a { top: -6px; right: -14px; }
.float-badge--b { bottom: 80px; left: -30px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- MARQUEE ---------- */
.marquee { overflow: hidden; padding: 30px 0; border-bottom: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; gap: 14px; padding-right: 14px; }
.marquee li {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  padding: 12px 22px 12px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-family: var(--f-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em;
}
.marquee li b { font-family: var(--f-mono); font-size: 13px; font-weight: 600; background: var(--ink); color: var(--accent); padding: 5px 10px; border-radius: 999px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--tight { padding-top: 0; }
.section--dark { background: var(--ink); color: var(--text-inv); border-radius: var(--radius-lg); margin: 0 clamp(0px, 1vw, 14px); }
.section__head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section__head h2 { font-size: clamp(38px, 5.4vw, 72px); font-weight: 800; }
.muted { color: var(--text-soft); }
.section--dark .muted { color: var(--text-inv-soft); }
.kicker {
  display: inline-block; font-family: var(--f-mono); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-soft); margin-bottom: 18px;
}
.kicker::before { content: "// "; color: var(--blue); }
.kicker--accent { color: var(--text-inv-soft); }
.kicker--accent::before { color: var(--accent); }

/* Ciclo */
.cycle { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.cycle__item {
  position: relative; padding: 34px 28px 10px 0;
  border-right: 1px solid var(--line);
  transition: background .3s;
}
.cycle__item + .cycle__item { padding-left: 28px; }
.cycle__item:last-child { border-right: 0; }
.cycle__num { font-family: var(--f-mono); font-size: 13px; color: var(--text-soft); }
.cycle__item h3 { font-size: clamp(34px, 3.6vw, 52px); font-weight: 800; margin: 14px 0 14px; transition: color .3s; }
.cycle__item h3::after { content: "."; color: var(--blue); }
.cycle__item p { color: var(--text-soft); font-size: 16px; }
.cycle__item::before { content: ""; position: absolute; top: -1px; left: 0; height: 3px; width: 0; background: var(--ink); transition: width .5s var(--ease); }
.cycle__item:hover::before { width: 100%; }

/* Versus */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.versus__col { border-radius: var(--radius); padding: clamp(26px, 3.4vw, 40px); }
.versus__col--before { background: var(--paper-2); }
.versus__col--after { background: var(--ink); color: var(--text-inv); }
.versus__label { font-family: var(--f-display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; margin-bottom: 20px; }
.versus__col--after .versus__label { color: var(--accent); }
.versus ul { display: grid; gap: 12px; }
.versus li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; }
.versus__col--before li { color: var(--text-soft); }
.versus__col--before li::before { content: "✕"; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: rgba(0,44,72,.08); color: var(--text-soft); margin-top: 1px; }
.versus__col--after li::before { content: "✓"; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--accent); color: var(--accent-ink); margin-top: 1px; }
.versus__arrow { align-self: center; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 26px; font-weight: 700; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.tile {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .3s, transform .4s var(--ease);
}
.tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(235,81,13,.09), transparent 45%);
}
.tile:hover { border-color: rgba(235,81,13,.35); transform: translateY(-3px); }
.tile:hover::before { opacity: 1; }
.tile h3 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-top: auto; }
.tile p { color: var(--text-inv-soft); font-size: 15.5px; }
.tile__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); margin-bottom: 14px; }
.tile__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile--xl { grid-column: span 2; grid-row: span 2; }
.tile--xl h3 { font-size: clamp(28px, 3vw, 40px); margin-top: 0; }
.tile--xl p { font-size: 17px; max-width: 42ch; }
.tile--wide { grid-column: span 3; }
.tile--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tile--accent p { color: rgba(255,255,255,.88); }
.tile--accent::before { display: none; }
.tile--accent:hover { border-color: var(--accent); }
.tile .tile__big { color: var(--accent-ink); font-family: var(--f-display); font-weight: 800; font-size: 110px; line-height: .85; letter-spacing: -.06em; }

.mini-form { margin-top: auto; padding: 18px; border-radius: 18px; background: var(--ink); border: 1px solid var(--line-dark); display: grid; gap: 10px; }
.mini-form__row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line-dark); font-size: 14px; }
.mini-form__row span { color: var(--text-inv-soft); }
.mini-form__row b { font-weight: 500; text-align: right; }
.mini-form__btn { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 15px; }
.mini-form__btn span { transition: transform .3s var(--ease); }
.tile--xl:hover .mini-form__btn span { transform: translateX(6px); }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step {
  display: flex; flex-direction: column; gap: 40px;
  padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.step:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(0,44,72,.3); }
.step__n {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px;
  font-family: var(--f-display); font-weight: 800; font-size: 30px;
  background: var(--ink); color: var(--accent);
}
.step h3 { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--text-soft); }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.faq .section__head { margin-bottom: 0; position: sticky; top: 110px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(19px, 2vw, 23px); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); font-family: var(--f-body); font-size: 22px; font-weight: 400;
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: var(--accent); border-color: var(--ink); }
.faq details p { padding: 0 50px 24px 0; color: var(--text-soft); }

/* ---------- CONTACTO ---------- */
.contact {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--text-inv);
  padding: clamp(90px, 12vw, 150px) 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.contact__glow {
  position: absolute; width: 1000px; height: 700px; left: 50%; top: -280px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(235,81,13,.18), transparent 70%); pointer-events: none;
}
.contact .wrap { position: relative; }
.contact__head { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.contact__title { font-size: clamp(64px, 13vw, 180px); font-weight: 800; letter-spacing: -.05em; line-height: .9; }
.contact__lead { color: var(--text-inv-soft); font-size: clamp(18px, 1.6vw, 21px); margin-top: 20px; }

.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.channel {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
  padding: 28px; min-height: 180px; border-radius: var(--radius);
  background: var(--ink-2); border: 1px solid var(--line-dark);
  transition: transform .4s var(--ease), border-color .3s, background .3s;
}
.channel::after { content: ""; position: absolute; inset: auto -40% -80% auto; width: 260px; height: 260px; border-radius: 50%; background: var(--c, var(--accent)); opacity: 0; filter: blur(60px); transition: opacity .4s; }
.channel:hover { transform: translateY(-6px); border-color: var(--c, var(--accent)); }
.channel:hover::after { opacity: .35; }
.channel--wa { --c: var(--wa); }
.channel--tel { --c: #4fa3e0; }
.channel--mail { --c: #ff7a3d; }
.channel__label { font-family: var(--f-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--c); }
.channel__value { margin-top: auto; font-family: var(--f-display); font-weight: 700; font-size: clamp(22px, 2.3vw, 30px); letter-spacing: -.02em; word-break: break-word; position: relative; z-index: 1; }
.channel__go { position: absolute; top: 22px; right: 22px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-dark); font-size: 18px; transition: background .3s, color .3s, transform .4s var(--ease); }
.channel:hover .channel__go { background: var(--c); color: var(--ink); transform: rotate(45deg); border-color: transparent; }

.form-card {
  margin-top: 16px; padding: clamp(26px, 4vw, 48px);
  border-radius: var(--radius); background: var(--paper); color: var(--text);
  display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(24px, 4vw, 60px);
}
.form-card__intro h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; }
.form-card__intro p { color: var(--text-soft); margin-top: 12px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; padding: 26px 16px 10px; border-radius: 14px;
  border: 1px solid var(--line); background: #fff; color: var(--text);
  font: 500 16px/1.4 var(--f-body);
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field textarea { min-height: 100px; }
.field label { position: absolute; left: 17px; top: 18px; color: var(--text-soft); font-size: 16px; pointer-events: none; transition: all .2s var(--ease); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0,97,160,.15); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 8px; font-size: 12px; font-weight: 600; }
.field.is-invalid input { border-color: #d9363e; box-shadow: 0 0 0 4px rgba(217,54,62,.12); }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.htmx-request .btn__spinner, .is-sending .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__result { flex: 1 1 260px; font-size: 15px; }
.form__result:empty { display: none; }
.notice { padding: 14px 16px; border-radius: 14px; background: var(--paper-2); }
.notice--ok { background: #e0eef8; color: var(--ink); }
.notice--warn { background: #fff1e0; color: #6a3a00; }
.notice p + p { margin-top: 6px; }
.notice__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.notice__actions a { font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: var(--text-inv-soft); padding: 40px 0 50px; border-top: 1px solid var(--line-dark); }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 40px; align-items: center; }
.footer__tag { font-size: 14px; }
.footer__links { display: flex; gap: 22px; font-size: 14px; font-style: normal; }
abbr[title] { text-decoration: none; cursor: help; }
.footer__links a:hover { color: var(--accent); }
.footer__copy { grid-column: 1 / -1; font-size: 13px; padding-top: 20px; border-top: 1px solid var(--line-dark); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--wa); color: #fff;
  box-shadow: 0 14px 30px -8px rgba(37,211,102,.6);
  transform: scale(0); transition: transform .4s var(--ease);
}
.wa-float.is-visible { transform: scale(1); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; width: 100%; margin: 10px auto 0; }
  .cycle { grid-template-columns: repeat(2, 1fr); }
  .cycle__item:nth-child(2) { border-right: 0; }
  .cycle__item:nth-child(3) { padding-left: 0; }
  .cycle__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--wide { grid-column: auto; }
  .faq { grid-template-columns: 1fr; }
  .faq .section__head { position: static; }
  .form-card { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: calc(100% + 6px); left: var(--gutter); right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px;
    background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: 24px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a:not(.btn) { padding: 14px 16px; font-size: 17px; }
  .nav__links .btn { margin: 8px 0 0; height: 52px; }
  .nav.menu-open .nav__inner { background: rgba(0,44,72,.92); border-color: var(--line-dark); }

  .versus { grid-template-columns: 1fr; }
  .versus__arrow { transform: rotate(90deg); justify-self: center; }
  .steps { grid-template-columns: 1fr; }
  .step { flex-direction: row; align-items: flex-start; gap: 20px; }
  .step__n { flex-shrink: 0; }
  .channels { grid-template-columns: 1fr; }
  .channel { min-height: 140px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__cta .btn { width: 100%; }
  .cycle { grid-template-columns: 1fr; }
  .cycle__item, .cycle__item + .cycle__item { padding: 28px 0 24px; border-right: 0; }
  .cycle__item + .cycle__item { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr; }
  .tile--xl, .tile--wide { grid-column: auto; grid-row: auto; }
  .tile { padding: 24px; }
  .form { grid-template-columns: 1fr; }
  .form__foot .btn { width: 100%; }
  .float-badge--a { right: 0; }
  .float-badge--b { left: 0; }
  .dte-card { padding: 20px; }
  .barcode { width: 110px; }
  .pipeline li { font-size: 11px; }
  .faq details p { padding-right: 0; }
  .marquee li { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
