/* ==========================================================================
   RAKU IA — hoja de estilos
   Oscuro, profundo y con luz propia. Identidad de marca intacta:
   楽 en Noto Sans JP con degradado cian→azul y RAKUIA en Outfit.
   ========================================================================== */

:root {
  --bg:         #05070c;
  --bg-2:       #070a11;
  --surface:    rgba(255, 255, 255, .035);
  --surface-2:  rgba(255, 255, 255, .065);
  --line:       rgba(255, 255, 255, .09);
  --line-2:     rgba(255, 255, 255, .16);

  --text:       #f1f5fb;
  --soft:       #a6b1c4;
  --dim:        #74809a;

  --blue:       #3b82f6;
  --blue-2:     #2563eb;
  --cyan:       #22d3ee;
  --cyan-2:     #67e8f9;
  --glow:       rgba(59, 130, 246, .5);

  --r-sm: 10px;
  --r:    18px;
  --r-lg: 26px;

  --wrap: 1180px;
  --step: clamp(78px, 9vw, 130px);

  --display: Gabarito, Outfit, "Plus Jakarta Sans", sans-serif;   /* titulares */
  --logo:    Outfit, "Plus Jakarta Sans", sans-serif;             /* solo el logotipo */
  --sans:    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--display);
  margin: 0 0 .4em;
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 700;
}
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; letter-spacing: -.04em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.22rem; letter-spacing: -.02em; }
h4 { font-size: 1rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan-2); text-decoration: none; }
a:hover { color: #fff; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.muted, .section-lead, .lead { color: var(--soft); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--blue); color: #fff; padding: 10px 16px; font-weight: 600;
}
.skip:focus { left: 0; }

/* texto con degradado de marca */
.grad {
  background: linear-gradient(100deg, var(--cyan-2), var(--blue) 65%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  font-size: .76rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan); margin: 0 0 16px;
}

/* --------------------------------------------------------- barra de progreso */

.progress {
  position: fixed; top: 0; left: 0; z-index: 90;
  height: 2px; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 0 12px var(--glow);
  transition: width .1s linear;
}

/* --------------------------------------------------------- botones */

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit; font-family: var(--display); font-weight: 600; font-size: .96rem;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease,
              background-color .2s ease, border-color .2s ease, color .2s ease;
  overflow: hidden;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }

.btn-lg { padding: 17px 32px; font-size: 1.02rem; }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(120deg, var(--blue), var(--cyan) 140%);
  color: #fff;
  box-shadow: 0 6px 24px -6px var(--glow), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,.3); color: #fff; }
/* brillo que cruza el botón al pasar por encima */
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.34); color: #fff; transform: translateY(-2px); }

.link-arrow { font-weight: 600; color: var(--cyan-2); font-family: var(--display); }
.link-arrow span { display: inline-block; transition: transform .22s ease; }
.link-arrow:hover span { transform: translateX(5px); }

/* --------------------------------------------------------- cabecera */

.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(5, 7, 12, .6);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.site-header.is-stuck { background: rgba(5, 7, 12, .9); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

/* logotipo: igual que en rakuia.com */
/* Logotipo: 楽 RAKUIA en una línea y el lema debajo de los dos */
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.brand-fila { display: inline-flex; align-items: center; gap: 9px; }
.brand-lema {
  font-family: var(--sans); font-size: .64rem; font-weight: 500;
  letter-spacing: .015em; line-height: 1; color: var(--soft);
  white-space: nowrap; padding-left: 1px;
}
.brand-mark {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 700; font-size: 2.05rem; line-height: 1;
  background: linear-gradient(to bottom right, var(--cyan-2), #60a5fa);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.brand-name {
  font-family: var(--logo); font-weight: 700;
  font-size: 1.62rem; letter-spacing: -.01em; line-height: 1; color: #fff;
}
.brand-name span {
  background: linear-gradient(to right, #60a5fa, var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav > a { color: var(--soft); font-size: .93rem; font-weight: 500; transition: color .18s ease; }
.nav > a:hover { color: #fff; }
.nav > a.btn { color: #fff; }

.burger {
  display: none; width: 44px; height: 44px; padding: 0;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 18px; height: 1.6px; background: var(--text); border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* --------------------------------------------------------- aurora de fondo */

.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob {
  position: absolute; display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  will-change: transform;
}
.b1 { width: 620px; height: 620px; top: -220px; right: -120px; background: radial-gradient(circle, rgba(59,130,246,.55), transparent 68%); animation: drift1 24s ease-in-out infinite; }
.b2 { width: 520px; height: 520px; top: 120px; right: 220px; background: radial-gradient(circle, rgba(34,211,238,.38), transparent 68%); animation: drift2 30s ease-in-out infinite; }
.b3 { width: 460px; height: 460px; bottom: -180px; left: -120px; background: radial-gradient(circle, rgba(37,99,235,.35), transparent 70%); animation: drift3 34s ease-in-out infinite; }

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60px, 50px) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1.05); } 50% { transform: translate(70px, -40px) scale(.95); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(50px, -60px) scale(1.15); } }

/* rejilla técnica muy tenue */
.grid-lines {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 75%);
}

/* --------------------------------------------------------- hero */

.hero { position: relative; padding: clamp(76px, 11vw, 140px) 0 0; overflow: hidden; }
/* Hero centrado: el titular es el protagonista, sin imagen al lado */
.hero-grid {
  position: relative; z-index: 2;
  display: grid; justify-items: center; text-align: center;
  padding-bottom: clamp(64px, 8vw, 112px);
}
.hero-copy { max-width: 900px; }

.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255,255,255,.04);
  font-size: .8rem; font-weight: 600; color: var(--soft);
  margin: 0 0 24px;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(34,211,238,.6);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34,211,238,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(34,211,238,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
}

.hero h1 { margin-bottom: .32em; font-size: clamp(2.6rem, 7vw, 5.4rem); }
.hero .lead { font-size: clamp(1.04rem, 1.6vw, 1.24rem); max-width: 58ch; margin: 0 auto 36px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }

.trust {
  display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: center;
  list-style: none; margin: 34px 0 0; padding: 0;
  font-size: .9rem; color: var(--dim);
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); flex: none; }
.trust strong { color: var(--text); font-weight: 600; }

/* cinta */
.ticker {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.35);
  overflow: hidden; padding: 15px 0;
}
.ticker-track { display: flex; align-items: center; gap: 26px; width: max-content; animation: slide 48s linear infinite; }
.ticker span { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.ticker i { color: var(--cyan); font-style: normal; font-size: .9rem; opacity: .7; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* --------------------------------------------------------- secciones */

.section { padding: var(--step) 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section-head { max-width: 60ch; margin-bottom: clamp(38px, 4.5vw, 62px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: .3em; }
.section-lead { font-size: 1.04rem; }

/* --------------------------------------------------------- problema */

.problem-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pains { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pains li {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 15px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  color: var(--soft); font-size: .97rem;
  transition: border-color .2s ease, transform .2s ease;
}
.pains li:hover { border-color: var(--line-2); transform: translateX(4px); }
.pains span { color: #ff8888; font-weight: 700; flex: none; line-height: 1.5; }

/* --------------------------------------------------------- tarjetas + foco */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  transition: border-color .25s ease, transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
  overflow: hidden;
}
/* halo que sigue al cursor (lo mueve app.js con --mx/--my) */
[data-spot] .card::before,
[data-spot] .case::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(59,130,246,.14), transparent 62%);
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
[data-spot] .card:hover::before,
[data-spot] .case:hover::before { opacity: 1; }

.card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 22px 50px -24px rgba(0,0,0,.9); }
.card > * { position: relative; z-index: 1; }
.card p { color: var(--soft); font-size: .97rem; }

.ico {
  width: 46px; height: 46px; margin-bottom: 20px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(59,130,246,.22), rgba(34,211,238,.1));
  border: 1px solid rgba(99,160,255,.26);
  color: var(--cyan-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.ico svg { width: 22px; height: 22px; stroke-linecap: round; stroke-linejoin: round; }

.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 25px; font-size: .92rem; color: var(--soft); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 9px; height: 5px;
  border-left: 1.9px solid var(--cyan); border-bottom: 1.9px solid var(--cyan);
  transform: rotate(-45deg);
}

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card-lg { grid-column: span 3; padding: 34px; }
.card-lg h3 { font-size: 1.45rem; }
.bento > .card:not(.card-lg) { grid-column: span 2; }
.bento > .card-cta { grid-column: span 4; }

.card-cta {
  background: linear-gradient(140deg, rgba(59,130,246,.16), rgba(34,211,238,.05));
  border-color: rgba(99,160,255,.3);
  display: flex; flex-direction: column; justify-content: center;
}
.card-cta .link-arrow { margin-top: 12px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }

/* --------------------------------------------------------- casos */

.cases { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.case {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 28px;
  transition: border-color .25s ease, transform .25s cubic-bezier(.2,.8,.2,1);
}
.case:hover { border-color: var(--line-2); transform: translateY(-4px); }
.case > * { position: relative; z-index: 1; }
.case-tag {
  display: inline-block; margin: 0 0 14px;
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan);
  padding: 5px 11px; border-radius: 999px;
  background: rgba(34,211,238,.09); border: 1px solid rgba(34,211,238,.22);
}
.case h3 { margin-bottom: 18px; }
.ba { font-size: .93rem; color: var(--soft); margin-bottom: 12px; padding-left: 14px; border-left: 2px solid var(--line-2); }
.ba:last-child { margin-bottom: 0; border-left-color: var(--cyan); }
.ba .before, .ba .after {
  display: block; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 3px;
}
.ba .before { color: var(--dim); }
.ba .after  { color: var(--cyan); }
.cases-note { text-align: center; margin-top: 34px; color: var(--dim); font-size: .96rem; }

/* --------------------------------------------------------- proceso */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px;
  position: relative;
}
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,.45), rgba(34,211,238,.45), transparent);
}
.steps li { position: relative; padding-top: 68px; }
.step-n {
  position: absolute; top: 0; left: 0;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: .95rem;
  color: var(--cyan-2);
  background: var(--bg);
  border: 1px solid rgba(99,160,255,.35);
  box-shadow: 0 0 0 6px var(--bg), 0 0 24px -6px var(--glow);
}
.steps h3 { margin-bottom: .35em; }
.steps p { color: var(--soft); font-size: .95rem; margin: 0; }

.numbers {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px;
  margin-top: clamp(48px, 6vw, 76px);
  padding: clamp(28px, 3.5vw, 40px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(140deg, rgba(59,130,246,.07), transparent 60%);
  text-align: center;
}
.numbers b {
  display: block;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1; letter-spacing: -.04em;
  background: linear-gradient(120deg, var(--cyan-2), var(--blue));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 8px;
}
.numbers span { font-size: .84rem; color: var(--dim); }

/* --------------------------------------------------------- nosotros */

.person .role {
  color: var(--cyan); font-size: .72rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; margin-bottom: 20px;
}
.stats { display: flex; gap: 30px; padding: 18px 0; margin-bottom: 18px; border-block: 1px solid var(--line); }
.stats b { display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; }
.stats span { font-size: .8rem; color: var(--dim); line-height: 1.35; display: block; }

.values { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 20px; }
.values > div {
  padding: 24px 26px; border-radius: var(--r-sm);
  background: var(--surface);
  border-left: 2px solid var(--cyan);
}
.values h4 { margin-bottom: .3em; }
.values p { color: var(--soft); font-size: .93rem; margin: 0; }

/* --------------------------------------------------------- faq */

.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; }
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 0 22px;
  transition: border-color .2s ease, background-color .2s ease;
}
.faq details[open] { border-color: rgba(99,160,255,.34); background: rgba(59,130,246,.06); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 19px 34px 19px 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 1.04rem; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--soft); font-size: .96rem; padding-bottom: 20px; margin: 0; max-width: 62ch; }

/* --------------------------------------------------------- banda CTA */

.cta-band {
  position: relative; overflow: hidden;
  padding: clamp(66px, 8vw, 110px) 0;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  text-align: center;
}
.cta-band .blob { opacity: .38; }
.cta-band .b1 { top: -260px; right: 10%; }
.cta-band .b2 { top: auto; bottom: -260px; right: auto; left: 12%; }
.cta-inner { position: relative; z-index: 2; }
.cta-band h2 { margin-bottom: .4em; }
.cta-band p { color: var(--soft); margin-bottom: 30px; }

/* --------------------------------------------------------- contacto */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 22px; }
.contact-list li { display: grid; gap: 5px; }
.contact-list .muted { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.contact-list a { font-family: var(--display); font-size: 1.2rem; font-weight: 600; }
.contact-list span:not(.muted) { color: var(--soft); font-size: .95rem; }

.form { padding: clamp(26px, 3vw, 34px); display: grid; gap: 17px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--soft); }
.req { color: var(--cyan); }

input, select, textarea {
  width: 100%;
  padding: 13px 15px;
  background: rgba(0,0,0,.35);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font: inherit; font-size: .96rem;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
textarea { resize: vertical; min-height: 112px; }
input::placeholder, textarea::placeholder { color: #5d6881; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: rgba(99,160,255,.6);
  box-shadow: 0 0 0 3px rgba(59,130,246,.16);
  background: rgba(0,0,0,.5);
}
select {
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%;
  background-size: 6px 6px; background-repeat: no-repeat;
  padding-right: 42px;
}
select option { background: #0a0e17; }

.check { display: flex; gap: 11px; align-items: flex-start; font-size: .87rem; color: var(--soft); }
.check input { width: auto; margin-top: 3px; accent-color: var(--blue); flex: none; }

/* campo trampa: invisible para personas, visible para robots de spam */
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg { font-size: .9rem; margin: 0; min-height: 1.2em; }
.form-msg.ok  { color: #5fe3a1; }
.form-msg.err { color: #ff9a9a; }
.field.invalid input, .field.invalid textarea { border-color: #ff7b7b; }

/* --------------------------------------------------------- pie */

.site-footer { border-top: 1px solid var(--line); padding: clamp(52px, 6vw, 76px) 0 26px; background: var(--bg-2); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: .93rem; }
.site-footer nav { display: flex; flex-direction: column; gap: 10px; }
.site-footer h4 { margin-bottom: 6px; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-family: var(--sans); font-weight: 700; }
.site-footer nav a { color: var(--soft); font-size: .93rem; }
.site-footer nav a:hover { color: #fff; }

.wordmark {
  font-family: var(--logo); font-weight: 800;
  font-size: clamp(3.4rem, 17vw, 15rem); line-height: .8; letter-spacing: -.05em;
  text-align: center; white-space: nowrap; user-select: none;
  margin: clamp(34px, 5vw, 60px) 0 0;
  color: rgba(255,255,255,.05);
}
.wordmark span { color: rgba(59,130,246,.16); }

.footer-bottom {
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .85rem; color: var(--dim);
}
.footer-bottom p { margin: 0; }

/* --------------------------------------------------------- chat + cookies */

.chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 58px; height: 58px; padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(99,160,255,.35);
  background: rgba(8, 12, 20, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 34px -10px rgba(0,0,0,.9);
  cursor: pointer; display: grid; place-items: center;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.chat-fab:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: 0 14px 40px -10px var(--glow); }
.chat-fab img { width: 42px; height: 42px; }
.chat-dot { position: absolute; right: 3px; bottom: 5px; width: 11px; height: 11px; border-radius: 50%; background: #2bd97f; border: 2px solid #080c14; }

.cookie {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 95;
  max-width: 680px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  background: rgba(9, 13, 21, .97);
  border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 19px 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
}
.cookie p { margin: 0; flex: 1 1 280px; font-size: .87rem; color: var(--soft); }
.cookie-actions { display: flex; gap: 10px; flex: none; }
.cookie[hidden] { display: none; }

/* --------------------------------------------------------- entrada suave
   El contenido es visible por defecto; solo se anima si JS marca <html class="js">. */

/* El hero entra con animación CSS pura: aunque el JS no llegue a ejecutarse,
   la animación termina siempre en visible. */
.js .hero .reveal {
  opacity: 0;
  animation: fadeUp .7s cubic-bezier(.2,.8,.2,1) .05s forwards;
}
.js .hero .reveal.d1 { animation-delay: .13s; }
.js .hero .reveal.d2 { animation-delay: .21s; }
.js .hero .reveal.d3 { animation-delay: .29s; }
.js .hero .reveal.d4 { animation-delay: .37s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* El resto de bloques entra al llegar a ellos. La clase 'pending' la pone
   app.js, así que si el JS falla nunca se queda nada escondido. */
.js .reveal.pending { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal, .js .hero .reveal { opacity: 1; transform: none; animation: none; }
}

/* --------------------------------------------------------- páginas legales */

.page { padding: clamp(50px, 7vw, 88px) 0 var(--step); }
.page-body { max-width: 72ch; }
.page-body h2 { font-size: 1.4rem; margin-top: 2em; }
.page-body p, .page-body li { color: var(--soft); }
.page-body ul { padding-left: 20px; }
.page-body li { margin-bottom: .5em; }
.page-body table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .92rem; display: block; overflow-x: auto; white-space: nowrap; }
.page-body th, .page-body td { text-align: left; padding: 11px 13px; border: 1px solid var(--line); }
.page-body th { background: var(--surface); font-weight: 600; }
@media (min-width: 761px) { .page-body table { display: table; white-space: normal; } }
.todo {
  border: 1px dashed rgba(255,190,90,.5);
  background: rgba(255,190,90,.07);
  color: #ffd79a; border-radius: var(--r-sm);
  padding: 15px 17px; font-size: .9rem; margin: 22px 0;
}
.todo strong { color: #ffc46b; }

/* --------------------------------------------------------- responsive */

@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .nav > a { font-size: .89rem; }
}

@media (max-width: 960px) {
  .problem-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .card-lg, .bento > .card:not(.card-lg), .bento > .card-cta { grid-column: span 3; }
  .cases, .grid-3, .grid-2, .values { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .steps::before { display: none; }
  .numbers { grid-template-columns: 1fr 1fr; gap: 28px 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 360px) {
  .brand-lema { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }

  .burger { display: flex; }
  .nav {
    position: fixed; inset: 74px 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5,7,12,.99);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 24px;
    transform: translateY(-10px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav > a { padding: 15px 4px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav > a.nav-cta { margin-top: 16px; border-bottom: none; justify-content: center; }

  .hero { padding-top: 56px; }
  .hero-actions .btn { flex: 1 1 100%; }

  .bento, .cases, .grid-3, .grid-2, .values, .steps, .numbers { grid-template-columns: 1fr; }
  .card-lg, .bento > .card:not(.card-lg), .bento > .card-cta { grid-column: auto; }
  .numbers { gap: 26px; }
  .stats { gap: 22px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .site-footer nav a { padding: 4px 0; }
  .footer-bottom { padding-bottom: 42px; }

  .cookie { left: 12px; right: 12px; bottom: 12px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
  .chat-fab { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .chat-fab img { width: 38px; height: 38px; }

  .blob { filter: blur(70px); opacity: .42; }
}
