/* ==========================================================
   KardLab · landing
   Misma familia que KardiaStudio y KardLoop:
   Outfit (títulos) + Inter (texto), tinta/blanco/arena y un solo rojo.
   ========================================================== */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0B0B0B;
  --ink-2: #141414;
  --ink-3: #1A1A1A;
  --paper: #FFFFFF;
  --sand: #E9E1D3;
  --sand-soft: #F4F0E8;
  --accent: #D1321A;
  --accent-hi: #E8462C;
  --accent-deep: #9E2B25;
  --mute: #57534C;
  --mute-dark: #A8A29A;
  --rule: rgba(11, 11, 11, .12);
  --rule-dark: rgba(255, 255, 255, .14);

  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --maxw: 1200px;
  --gut: clamp(20px, 4vw, 32px);
  --sec: clamp(72px, 10vw, 128px);
  --radius: 28px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand-soft);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--ink); color: var(--sand); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); transition: top .2s; }
.skip:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px;
  font: 500 .78rem/1.5 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--mute);
}
.eyebrow::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Botones ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px; border: 1px solid transparent; border-radius: 999px;
  font: 500 .98rem/1.1 var(--font-body); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .4s var(--ease-out), background-color .3s var(--ease-soft), color .3s var(--ease-soft), border-color .3s var(--ease-soft), box-shadow .4s var(--ease-out);
}
.btn svg { transition: transform .4s var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--sm { --h: 42px; padding: 0 20px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--ink-3); box-shadow: 0 14px 30px -14px rgba(11, 11, 11, .55); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hi); box-shadow: 0 16px 34px -14px rgba(209, 50, 26, .7); }
.btn--paper { background: var(--sand); color: var(--ink); }
.btn--paper:hover { background: #fff; }
.btn--line { background: transparent; color: var(--paper); border-color: var(--rule-dark); }
.btn--line:hover { border-color: rgba(255, 255, 255, .5); }
.btn[aria-busy="true"] { opacity: .65; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; margin-top: 8px; }
.link-arrow svg { transition: transform .4s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Cabecera ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); transition: background-color .35s var(--ease-soft), box-shadow .35s var(--ease-soft), backdrop-filter .35s; }
.top.is-scrolled { background: rgba(244, 240, 232, .8); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--rule); }
.top-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 46px; width: auto; margin-left: -6px; }
.nav { display: flex; gap: 32px; margin-left: auto; margin-right: 8px; }
.nav a { font-size: .95rem; font-weight: 500; text-decoration: none; color: var(--mute); transition: color .25s; position: relative; }
.nav a:hover { color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.nav a:hover::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + clamp(32px, 6vw, 72px)) 0 clamp(56px, 8vw, 96px); background: var(--sand-soft); position: relative; overflow: clip; }
.hero::before { /* trazo de luz suave detrás del formulario */
  content: ""; position: absolute; right: -10%; top: -20%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(209, 50, 26, .09), transparent 70%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: start; position: relative; }
.hero-copy { padding-top: clamp(8px, 3vw, 40px); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 5.2rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.035em; }
.hero h1 .u { position: relative; white-space: nowrap; }
.hero h1 .h1-b { display: block; }
.hero h1 .u::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.05em; height: .08em; background: var(--accent); border-radius: 99px; transform-origin: left; animation: draw 1s .7s var(--ease-out) both; }
.lead { margin-top: 28px; max-width: 34em; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--mute); }
.ticks { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.ticks li { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border: 1px solid var(--rule); border-radius: 999px; background: rgba(255, 255, 255, .6); font-size: .92rem; font-weight: 500; }
.ticks li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.3 2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

.hero-copy > * { animation: rise .9s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .18s; }
.hero-copy > :nth-child(4) { animation-delay: .28s; }
.hero-form { animation: rise 1s .2s var(--ease-out) both; }

/* ---------- Tarjeta del formulario ---------- */
.card { position: relative; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 40px 80px -48px rgba(11, 11, 11, .35); }
.card-head h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.card-head p { margin-top: 8px; color: var(--mute); font-size: .98rem; }
.lead-form { margin-top: 26px; display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .86rem; font-weight: 500; }
.field label em { font-style: normal; color: var(--mute); font-weight: 400; }
input[type=text], input[type=tel], select, textarea {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid rgba(11, 11, 11, .2); border-radius: 14px; background: #fff;
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 76px; padding: 14px 16px; resize: vertical; line-height: 1.45; }
select { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%230B0B0B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
input::placeholder, textarea::placeholder { color: #9a948a; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(11, 11, 11, .08); }
.err { display: none; font-size: .8rem; color: var(--accent-deep); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--accent-deep); }
.field.is-invalid .err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: .86rem; line-height: 1.45; color: var(--mute); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.check a { color: var(--ink); text-underline-offset: 3px; }
.form-err { display: none; padding: 12px 14px; border-radius: 12px; background: #fbe9e6; color: var(--accent-deep); font-size: .9rem; }
.form-err.is-on { display: block; }
.micro { text-align: center; font-size: .82rem; color: var(--mute); }

.done { padding: 8px 0; text-align: left; outline: none; }
.done[hidden] { display: none; }
.done-ic { color: var(--accent); margin-bottom: 18px; }
.done-title { font-size: 1.7rem; margin-bottom: 10px; }
.done p { color: var(--mute); margin-bottom: 22px; }
.done--dark .done-title { color: #fff; }
.done--dark p { color: var(--mute-dark); }

/* ---------- Tira ---------- */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; border-block: 1px solid var(--rule-dark); }
.ticker-track { display: flex; width: max-content; gap: 0; animation: slide 38s linear infinite; }
.ticker span { padding: 18px 34px; font: 500 .8rem/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--mute-dark); white-space: nowrap; display: inline-flex; align-items: center; gap: 34px; }
.ticker span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- Secciones ---------- */
section[id] { position: relative; }
.sec-head h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
.sec-lead { margin-top: 20px; max-width: 36em; font-size: 1.08rem; color: var(--mute); }
.sec-head .sec-lead + .sec-lead { margin-top: 14px; }

/* Ejemplos */
.show { background: var(--ink); color: var(--paper); padding: var(--sec) 0; overflow: clip; }
.show .eyebrow { color: var(--mute-dark); }
.show .sec-lead { color: var(--mute-dark); }
.phone {
  position: relative; width: min(100%, 264px); aspect-ratio: 390 / 844; margin-inline: auto; padding: 8px;
  border-radius: 40px; background: linear-gradient(150deg, #34332f, #0c0c0c 55%, #1b1b1b);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 50px 90px -40px rgba(0, 0, 0, .95), 0 0 80px -30px rgba(209, 50, 26, .35);
  transform: translate3d(0, var(--py, 0px), 0); transition: box-shadow .5s var(--ease-out);
  will-change: transform;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 33px; background: #0b0b0b; }
.tag { justify-self: start; margin-bottom: 8px; padding: 5px 10px; border: 1px solid var(--rule-dark); border-radius: 999px; font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-dark); }
.show-note { margin-top: clamp(40px, 6vw, 64px); text-align: center; color: var(--mute-dark); font-size: .98rem; }
.show-note a { margin-inline: 6px; color: var(--paper); font-weight: 500; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .35); }
.show-note a:hover { text-decoration-color: var(--accent); }

/* Cómo funciona */
.steps { background: var(--paper); padding: var(--sec) 0; }
.steps-list { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.steps-list li { position: relative; padding: 28px clamp(16px, 2vw, 28px) 8px 0; display: flex; flex-direction: column; align-items: flex-start; }
.steps-list li + li { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--rule); }
.steps-list .n { display: block; font: 300 clamp(2.6rem, 4.4vw, 4rem)/1 var(--font-display); letter-spacing: -0.04em; color: var(--accent); margin-bottom: 26px; }
.steps-list h3 { font-size: 1.4rem; margin-bottom: 10px; }
.steps-list p { color: var(--mute); font-size: .98rem; margin-bottom: 24px; }
.when { display: inline-block; margin-top: auto; align-self: flex-start; transform: translateY(0); padding: 5px 12px; border-radius: 999px; background: var(--sand-soft); font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }

/* Quiénes somos */
.about { background: var(--paper); padding: var(--sec) 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; background: var(--sand); filter: saturate(.9); }
.person figcaption { margin-top: 16px; display: grid; gap: 3px; font-size: .9rem; color: var(--mute); line-height: 1.45; }
.person strong { font: 600 1.2rem/1.2 var(--font-display); color: var(--ink); }
.person:nth-child(2) { margin-top: 40px; }

/* Preguntas */
.faq { background: var(--sand-soft); padding: var(--sec) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.faq .sec-head h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font: 600 1.15rem/1.3 var(--font-display); letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ink); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 8v12M8 14h12' stroke='%230B0B0B' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/100% no-repeat; transition: transform .4s var(--ease-out), background-color .3s; }
.faq-list details[open] summary::after { transform: rotate(45deg); background-color: var(--sand); }
.faq-list details p { padding: 0 52px 26px 0; color: var(--mute); max-width: 40em; }

/* Cierre */
.final { background: var(--ink); color: var(--paper); padding: var(--sec) 0; position: relative; overflow: clip; }
.final::before { content: ""; position: absolute; left: -10%; bottom: -40%; width: 60vw; height: 60vw; max-width: 780px; max-height: 780px; background: radial-gradient(closest-side, rgba(209, 50, 26, .22), transparent 70%); pointer-events: none; }
.final-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.final h2 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1; }
.final-copy p { margin-top: 22px; max-width: 28em; font-size: 1.15rem; color: var(--mute-dark); }
.final-form { padding: clamp(22px, 3vw, 32px); border: 1px solid var(--rule-dark); border-radius: var(--radius); background: rgba(255, 255, 255, .04); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.final-form .lead-form { margin-top: 0; }
.final-form .field label { color: var(--paper); }
.final-form input[type=text], .final-form input[type=tel] { background: rgba(255, 255, 255, .06); border-color: var(--rule-dark); color: #fff; }
.final-form input::placeholder { color: #7d776e; }
.final-form input:focus { border-color: var(--sand); box-shadow: 0 0 0 4px rgba(233, 225, 211, .14); }
.final-form .err { color: #ff8a77; }
.final-form .field.is-invalid input { border-color: #ff8a77; }
.check--dark, .check--dark a { color: var(--mute-dark); }
.check--dark a { color: var(--paper); }
.final-form .check input { accent-color: var(--sand); }
.final-form .form-err { background: rgba(255, 107, 87, .14); color: #ffb1a5; }

/* Pie */
.foot { background: var(--ink-2); color: var(--paper); padding: 56px 0 28px; border-top: 1px solid var(--rule-dark); }
.foot-in { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px; }
.foot-brand img { height: 34px; width: auto; }
.foot-brand p { margin-top: 14px; font-size: .9rem; color: var(--mute-dark); }
.foot-brand a { color: var(--paper); text-underline-offset: 3px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; max-width: 520px; justify-content: flex-end; }
.foot-nav a { font-size: .9rem; color: var(--mute-dark); text-decoration: none; transition: color .2s; }
.foot-nav a:hover { color: var(--paper); }
.foot-copy { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--rule-dark); font-size: .8rem; color: #7d776e; }

/* Barra fija móvil */
.sticky { position: fixed; inset: auto 0 0 0; z-index: 40; padding: 12px var(--gut) calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, rgba(11, 11, 11, .35), transparent); transform: translateY(110%); transition: transform .5s var(--ease-out); display: none; pointer-events: none; }
.sticky .btn { pointer-events: auto; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); }
.sticky.is-on { transform: none; }

/* Cookies */
.consent { position: fixed; z-index: 60; left: var(--gut); right: var(--gut); bottom: 16px; max-width: 560px; margin-inline: auto; padding: 18px 20px; display: grid; gap: 14px; border: 1px solid var(--rule-dark); border-radius: 20px; background: rgba(20, 20, 20, .94); color: var(--paper); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); font-size: .9rem; }
.consent[hidden] { display: none; }
.consent p { color: var(--mute-dark); }
.consent b { color: var(--paper); }
.consent a { color: var(--paper); }
.consent-btns { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- Animación de entrada ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js .rv.is-in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes slide { to { transform: translateX(-50%); } }

/* Solo se frena lo realmente intrusivo; las microinteracciones se mantienen. */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .phone { transform: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-top: 0; }
  .about-grid, .faq-grid, .final-in { grid-template-columns: minmax(0, 1fr); }
  .steps-list { grid-template-columns: 1fr 1fr; }
  .steps-list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps-list li:nth-child(n + 3) { border-top: 1px solid var(--rule); margin-top: 28px; }
  .people { max-width: 560px; }
}
@media (max-width: 820px) {
  .sticky { display: block; }
}
@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; }
  .gives { grid-template-columns: 1fr; }
  .steps-list { grid-template-columns: 1fr; }
  .steps-list li, .steps-list li + li { padding-left: 0; border-left: 0; }
  .steps-list li + li { border-top: 1px solid var(--rule); margin-top: 24px; }
  .steps-list li:nth-child(n + 3) { margin-top: 24px; }
  .foot-nav { justify-content: flex-start; }
  .faq-list details p { padding-right: 0; }
  .consent-btns { justify-content: stretch; }
  .consent-btns .btn { flex: 1; }
}


/* ==========================================================
   Iconos tipo "app", énfasis y secciones nuevas
   ========================================================== */
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico--sm { width: 18px; height: 18px; stroke-width: 2; }

.app {
  display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px;
  background: var(--ink); color: #fff; font-size: 1.35rem;
  box-shadow: 0 12px 26px -14px rgba(11, 11, 11, .55), inset 0 1px 0 rgba(255, 255, 255, .16);
  transition: transform .5s var(--ease-out);
}
.app--red { background: linear-gradient(160deg, var(--accent-hi), var(--accent)); }
.app--sand { background: var(--sand); color: var(--ink); }
.app--lg { width: 68px; height: 68px; border-radius: 21px; font-size: 1.75rem; }

/* Énfasis: negritas con contraste y rotulador rojo que se "dibuja" */
strong, b { font-weight: 600; color: var(--ink); }
.show strong, .final strong, .consent b { color: #fff; }
.mk {
  font-weight: inherit; padding-inline: .06em; margin-inline: -.06em;
  background: linear-gradient(transparent 62%, rgba(209, 50, 26, .3) 62% 93%, transparent 93%) no-repeat;
  background-size: 0% 100%; transition: background-size 1.1s .35s var(--ease-out);
}
.no-js .mk, .is-in .mk, .mk.is-in { background-size: 100% 100%; }
.show .mk, .final .mk { background-image: linear-gradient(transparent 62%, rgba(209, 50, 26, .55) 62% 93%, transparent 93%); }

/* Hero: fila de "apps" */
.dock { margin-top: 40px; }
.dock-t { margin-bottom: 14px; font: 500 .78rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.dock ul { display: flex; flex-wrap: wrap; gap: 16px 20px; }
.dock li { display: grid; justify-items: center; gap: 9px; width: 74px; text-align: center; font-size: .78rem; font-weight: 500; color: var(--mute); }
.dock li:hover .app { transform: translateY(-5px) scale(1.05); }
.hero-copy > :nth-child(5) { animation-delay: .38s; }

/* Para tu negocio */
.niches { background: var(--paper); padding: var(--sec) 0; }
.nx { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.nx-tabs { display: grid; gap: 8px; }
.nx-tabs button {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 0 18px;
  border: 1px solid var(--rule); border-radius: 18px; background: transparent; cursor: pointer; text-align: left;
  font: 500 .98rem/1.2 var(--font-body); color: var(--ink);
  transition: background-color .3s var(--ease-soft), color .3s var(--ease-soft), border-color .3s, transform .4s var(--ease-out);
}
.nx-tabs button .ico { font-size: 1.3rem; color: var(--mute); transition: color .3s; }
.nx-tabs button:hover { border-color: var(--ink); transform: translateX(3px); }
.nx-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; transform: none; }
.nx-tabs button[aria-selected="true"] .ico { color: var(--accent-hi); }
.nx-panels { padding: clamp(24px, 3.4vw, 44px); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--sand-soft); }
.nx-panel[hidden] { display: none; }
.js .nx-panel:not([hidden]) { animation: rise .55s var(--ease-out) both; }
.nx-lead { font: 600 clamp(1.45rem, 2.5vw, 2.1rem)/1.2 var(--font-display); letter-spacing: -0.02em; }
.nx-apps { margin-top: 26px; display: grid; gap: 12px; }
.nx-apps li { display: flex; gap: 18px; align-items: flex-start; padding: 18px; border: 1px solid rgba(11, 11, 11, .07); border-radius: 20px; background: #fff; transition: transform .5s var(--ease-out), box-shadow .4s var(--ease-out); }
.nx-apps li:hover { transform: translateX(4px); box-shadow: 0 22px 40px -30px rgba(11, 11, 11, .45); }
.nx-apps li:hover .app { transform: scale(1.06) rotate(-3deg); }
.nx-apps div strong { display: block; font: 600 1.1rem/1.3 var(--font-display); letter-spacing: -0.01em; }
.nx-apps div span { display: block; margin-top: 4px; color: var(--mute); font-size: .95rem; line-height: 1.5; }
.nx-cta { margin-top: 28px; }

/* Ejemplos: dos apps grandes */
.duo { margin-top: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.duo-item { display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: center; }
.phone--lg { width: 100%; max-width: 270px; }
.duo-txt h3 { margin: 12px 0 12px; font-size: clamp(1.55rem, 2.3vw, 2.1rem); color: #fff; }
.duo-txt p { color: var(--mute-dark); }
.tag { display: inline-block; margin: 0; }
.bul { margin-top: 20px; display: grid; gap: 9px; }
.bul li { position: relative; padding-left: 26px; font-size: .96rem; color: #ddd8cf; }
.bul li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.3 2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

@media (max-width: 1100px) {
  .duo { grid-template-columns: minmax(0, 1fr); }
  .duo-item { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); max-width: 760px; margin-inline: auto; }
}
@media (max-width: 1024px) {
  .nx { grid-template-columns: minmax(0, 1fr); }
  .nx-tabs { min-width: 0; display: flex; overflow-x: auto; gap: 8px; margin-inline: calc(var(--gut) * -1); padding: 2px var(--gut) 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .nx-tabs::-webkit-scrollbar { display: none; }
  .nx-tabs button { flex: none; width: auto; min-height: 50px; padding: 0 18px; white-space: nowrap; scroll-snap-align: start; }
  .nx-tabs button:hover { transform: none; }
}
@media (max-width: 640px) {
  .duo-item { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .phone--lg { max-width: 250px; margin-inline: auto; }
  .dock li { width: 62px; }
  .nx-apps li { padding: 16px; gap: 14px; }
}

/* Franja bajo "Cómo funciona": lo que pasa después del lanzamiento */
.steps-after { margin-top: clamp(32px, 4vw, 52px); display: flex; align-items: center; gap: 22px; padding: 20px 24px; border-radius: 24px; background: var(--sand-soft); border: 1px solid var(--rule); }
.steps-after-icons { display: flex; gap: 10px; flex: none; }
.steps-after p { font-size: 1.02rem; color: var(--mute); }
@media (max-width: 640px) { .steps-after { flex-direction: column; align-items: flex-start; gap: 16px; } }
