/* =============================================================
   JP Redacciones — v3 "Clean product" (white · periwinkle · navy)
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --bg:      #ffffff;
  --bg-2:    #f5f6fa;
  --bg-3:    #eef0f6;
  --ink:     #0d0f1a;
  --ink-2:   #3b4056;
  --mute:    #7a8099;
  --faint:   #b4b9cb;
  --line:    #e6e8f0;
  --peri:    #8ea6ee;
  --peri-2:  #c3cff6;
  --lav:     #e4e9fc;
  --blue:    #3f5fd6;
  --navy:    #0b1030;
  --navy-2:  #1a2152;

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r: 22px;
  --shadow: 0 1px 2px rgba(13,15,26,.04), 0 12px 32px -14px rgba(13,15,26,.14);
}

/* 2. Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: var(--sans); font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; font-weight: 500; letter-spacing: -.035em; line-height: 1.04; }
::selection { background: var(--peri-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 999; padding: .6rem 1rem; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

/* 3. Shared ---------------------------------------------------- */
.sec { position: relative; width: min(1180px, 100% - 2.5rem); margin-inline: auto; padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tag {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .75rem; border-radius: 99px;
  background: var(--bg-2); border: 1px solid var(--line);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px var(--lav); }
.h2 { margin-top: 1.1rem; font-size: clamp(2rem, 4.4vw, 3.4rem); }
.lead { max-width: 46ch; margin-top: 1rem; color: var(--mute); font-size: .98rem; }
.center .lead { margin-inline: auto; }
.soft { color: var(--faint); }
.pill-mono { display: inline-block; padding: .3rem .6rem; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.pill-ok { color: #1f8a5b; background: #e8f7ef; border-color: #cdeedc; }
.glow { position: absolute; pointer-events: none; z-index: -1; filter: blur(60px); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  height: 44px; padding: 0 1.25rem; border-radius: 99px; font-weight: 500; font-size: .9rem; white-space: nowrap;
  transition: transform .4s var(--ease), background .3s, box-shadow .4s var(--ease), color .3s;
}
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(13,15,26,.6), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-dark:hover { background: var(--navy-2); box-shadow: 0 12px 26px -10px rgba(26,33,82,.7), inset 0 1px 0 rgba(255,255,255,.14); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-soft { background: var(--bg-2); border: 1px solid var(--line); }
.btn-soft:hover { background: var(--bg-3); }
.btn-white { background: #fff; color: var(--ink); }
.btn-sm { height: 36px; padding: 0 1rem; font-size: .82rem; }
.btn-block { width: 100%; }

/* JP mark (holographic) */
.jp, .sf-jp, .st-jp, .cta-mark {
  font-weight: 700; letter-spacing: -.08em; line-height: 1;
  background: linear-gradient(135deg, #8ea6ee 0%, #c9b8f5 30%, #9be3f0 55%, #3f5fd6 80%, #8ea6ee 100%);
  background-size: 220% 220%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: holo 7s ease-in-out infinite alternate;
}

/* 4. Nav ------------------------------------------------------- */
.nav { position: fixed; inset: 14px 0 auto 0; z-index: 100; display: flex; justify-content: center; padding-inline: 1rem; pointer-events: none; }
.nav-pill {
  pointer-events: auto; display: flex; align-items: center; gap: 1.6rem;
  padding: .4rem .4rem .4rem 1rem; border-radius: 99px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(230,232,240,.9); box-shadow: 0 6px 24px -14px rgba(13,15,26,.25);
  transition: box-shadow .4s, background .4s;
}
.nav.is-scrolled .nav-pill { background: rgba(255,255,255,.88); box-shadow: 0 10px 34px -14px rgba(13,15,26,.3); }
.jp { font-size: 1.25rem; }
.nav-links { display: none; gap: 1.4rem; }
.nav-links a { font-size: .85rem; color: var(--ink-2); transition: color .3s; }
.nav-links a:hover { color: var(--blue); }

/* 5. Hero ------------------------------------------------------ */
.hero { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 7.2rem 1.25rem 0; overflow: hidden; }
.glow-hero { top: -10%; left: 50%; width: min(1100px, 140vw); height: 520px; translate: -50% 0; background: radial-gradient(closest-side at 22% 45%, rgba(195,207,246,.9), transparent), radial-gradient(closest-side at 80% 40%, rgba(214,201,248,.75), transparent); opacity: .85; }
.hero-title { margin-top: 1.3rem; font-size: clamp(2.6rem, 6.6vw, 5.2rem); line-height: .98; letter-spacing: -.05em; }
.hero-title .soft { background: linear-gradient(90deg, #6f86d9, #9aaef0 50%, #b9a8ef); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 48ch; margin-top: 1.3rem; color: var(--mute); font-size: 1rem; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.8rem; }

.stage { position: relative; width: 100%; height: clamp(300px, 42vw, 500px); margin-top: clamp(-1.5rem, -2vw, -.5rem); perspective: 1600px; }
.watermark {
  position: absolute; left: 50%; top: 50%; translate: -50% -42%; z-index: -1; white-space: nowrap;
  font-size: clamp(5rem, 21vw, 19rem); font-weight: 600; letter-spacing: -.06em; line-height: 1;
  background: linear-gradient(180deg, #eef0f7 20%, rgba(238,240,247,0) 92%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stage-tilt {
  position: absolute; left: 50%; top: 46%; width: min(440px, 74vw); aspect-ratio: 1.55; margin: 0;
  translate: -50% -50%; transform-style: preserve-3d;
  transform: rotateX(calc(50deg + var(--tx, 0deg))) rotateZ(calc(-24deg + var(--ty, 0deg)));
  transition: transform 1.2s var(--ease);
  animation: float 7s ease-in-out infinite;
}
.sheet { position: absolute; inset: 0; border-radius: 18px; transform-style: preserve-3d; overflow: hidden; }
.sheet-back {
  transform: translate3d(14%, -12%, -50px);
  background: linear-gradient(140deg, #252c66 0%, var(--navy) 60%, #050821 100%);
  box-shadow: 0 30px 60px -20px rgba(11,16,48,.6); padding: 7%;
}
.sheet-back .sheet-mono { color: rgba(195,207,246,.6); }
.sheet-lines { position: absolute; left: 7%; right: 30%; bottom: 14%; display: grid; gap: 8px; }
.sheet-lines i { height: 6px; border-radius: 4px; background: rgba(195,207,246,.16); }
.sheet-front {
  display: flex; flex-direction: column; gap: 6%; padding: 7%;
  background: linear-gradient(135deg, #ffffff 0%, #f1f3fa 45%, #dfe4f2 100%);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: inset 0 1px 0 #fff, 0 40px 70px -30px rgba(13,15,26,.45), 0 8px 18px -10px rgba(13,15,26,.2);
}
.sheet-mono { font-family: var(--mono); font-size: clamp(.5rem, 1.2vw, .62rem); letter-spacing: .1em; color: var(--mute); }
.sf-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.badge-rank { padding: .25rem .55rem; border-radius: 99px; background: var(--ink); color: #fff; font-size: clamp(.55rem, 1.3vw, .7rem); font-weight: 600; letter-spacing: -.01em; }
.badge-rank b { font-weight: 600; }
.sf-title { max-width: 70%; text-align: left; font-size: clamp(.8rem, 2vw, 1.15rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; color: var(--ink); }
.sf-lines { display: grid; gap: 7px; width: 62%; }
.sf-lines i { width: var(--w); height: 5px; border-radius: 3px; background: #dfe3ee; }
.sf-lines i.hl { background: linear-gradient(90deg, var(--peri), #c9b8f5); }
.sf-jp { position: absolute; right: 7%; bottom: 8%; font-size: clamp(2.6rem, 8vw, 5rem); }
.holo {
  position: absolute; right: -10%; top: -30%; width: 55%; height: 160%; rotate: 18deg; pointer-events: none;
  background: linear-gradient(100deg, transparent 10%, rgba(155,227,240,.35) 30%, rgba(201,184,245,.4) 45%, rgba(142,166,238,.35) 60%, transparent 80%);
  mix-blend-mode: multiply; filter: blur(6px); animation: sheen 6s ease-in-out infinite alternate;
}
.stage-shadow { position: absolute; left: 50%; top: 74%; width: min(420px, 70vw); height: 40px; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(13,15,26,.18), transparent); filter: blur(10px); animation: shadow 7s ease-in-out infinite; }

/* 6. Trust marquee --------------------------------------------- */
.trust { padding: 1.5rem 0 1rem; text-align: center; }
.trust-t { font-size: .78rem; color: var(--mute); }
.marquee { margin-top: 1.2rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 34s linear infinite; }
.marquee span { font-size: .95rem; font-weight: 500; color: var(--faint); white-space: nowrap; letter-spacing: -.01em; }

/* 7. Service orbit --------------------------------------------- */
.orbit { display: grid; gap: 2.5rem; align-items: center; width: 100%; margin: 3rem 0 2.5rem; }
.feat { display: grid; gap: 2rem; text-align: center; justify-items: center; }
.feat h3 { font-size: .95rem; letter-spacing: -.02em; font-weight: 500; }
.feat p { margin-top: .3rem; font-size: .82rem; color: var(--mute); max-width: 30ch; }
.stack { position: relative; width: min(360px, 82vw); aspect-ratio: 1.15; margin-inline: auto; }
.st { position: absolute; left: 0; right: 0; height: 64%; border-radius: 18px; transition: transform .9s var(--ease); }
.st-1 { top: 0; background: linear-gradient(150deg, #262d68, var(--navy)); transform: scale(.9); box-shadow: 0 20px 40px -20px rgba(11,16,48,.5); }
.st-2 { top: 13%; background: rgba(241,243,250,.75); border: 1px solid #fff; backdrop-filter: blur(8px); transform: scale(.95); box-shadow: var(--shadow); }
.st-3 { top: 30%; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, #fff, #eef1f9 55%, #e1e6f3); border: 1px solid #fff; box-shadow: inset 0 1px 0 #fff, 0 30px 60px -28px rgba(13,15,26,.4); }
.st-jp { font-size: 4.2rem; }
.stack:hover .st-1 { transform: scale(.9) translateY(-10px); }
.stack:hover .st-3 { transform: translateY(8px); }

/* 8. Why ------------------------------------------------------- */
.why-grid { display: grid; gap: 2.4rem; width: 100%; margin-top: 3rem; }
.why-i { display: grid; justify-items: center; gap: .55rem; }
.ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: .4rem; }
.ico svg { width: 18px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.why-i h3 { font-size: .95rem; letter-spacing: -.02em; }
.why-i p { font-size: .82rem; color: var(--mute); max-width: 30ch; }

/* 9. Bento ----------------------------------------------------- */
.split-head { display: grid; gap: 1.2rem; align-items: end; margin-bottom: 2.4rem; }
.split-side { display: grid; gap: 1rem; justify-items: start; }
.bento { display: grid; gap: .9rem; }
.b { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .4rem; padding: 1.5rem; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); min-height: 260px; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.b:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.b h3 { font-size: 1.25rem; }
.b p { font-size: .84rem; color: var(--mute); max-width: 34ch; }
.b p strong { color: var(--ink); font-weight: 500; }
.b-photo { margin-top: auto; height: 150px; border-radius: 14px; overflow: hidden; }
.b-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); transition: transform 1s var(--ease); }
.b:hover .b-photo img { transform: scale(1.05); }
.chips { margin-top: auto; display: grid; gap: .5rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); overflow: hidden; }
.chips-row { display: flex; gap: .4rem; width: max-content; animation: marquee 22s linear infinite; }
.chips-row.r2 { animation-direction: reverse; animation-duration: 26s; }
.chips span { padding: .45rem .8rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: .74rem; white-space: nowrap; color: var(--ink-2); }
.b-3 { color: #fff; border: 0; background: var(--navy); min-height: 380px; justify-content: flex-start; align-items: center; text-align: center; padding-top: 2rem; }
.b-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; filter: grayscale(.3); transition: transform 1.2s var(--ease); }
.b-3::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--blue); mix-blend-mode: color; opacity: .55; }
.b-3::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.55) 32%, rgba(11,16,48,.0) 60%, rgba(11,16,48,.35)); }
.b-3:hover .b-bg { transform: scale(1.05); }
.b-3-in { position: relative; z-index: 2; display: grid; justify-items: center; gap: .5rem; color: var(--ink); }
.b-3-in p { color: var(--ink-2); }
.b-3-in .btn { margin-top: .6rem; background: var(--ink); color: #fff; }
.cal { margin-top: auto; display: flex; gap: 6px; }
.cal i { flex: 1; height: 38px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.cal i.on { background: var(--lav); border-color: var(--peri-2); }
.cal i.now { background: var(--ink); border-color: var(--ink); }
.b-4 .pill-mono, .b-5 .pill-mono { align-self: flex-start; margin-bottom: .6rem; }
.kpi { display: grid; gap: .3rem; justify-items: start; }
.kpi-l { font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.kpi-n { font-size: 2.6rem; font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.kpi-chart { margin-top: auto; width: 100%; height: auto; overflow: visible; }
.kc-a { fill: rgba(142,166,238,.18); }
.kc-l { fill: none; stroke: var(--blue); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 360; stroke-dashoffset: 0; }
.js .kc-l { stroke-dashoffset: 360; transition: stroke-dashoffset 2s var(--ease) .3s; }
.js .is-in .kc-l { stroke-dashoffset: 0; }

/* 10. Testimonials --------------------------------------------- */
.arrows { display: flex; gap: .4rem; }
.arrows button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); transition: background .3s, color .3s; }
.arrows button:hover { background: var(--ink); color: #fff; }
.tcards { display: grid; grid-auto-flow: column; grid-auto-columns: min(290px, 80vw); gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .5rem; }
.tcards::-webkit-scrollbar { display: none; }
.tc { scroll-snap-align: start; display: flex; flex-direction: column; gap: 1rem; padding: 1.3rem; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); min-height: 250px; }
.tc .pill-mono { align-self: flex-start; }
.tc blockquote { font-size: .92rem; line-height: 1.5; color: var(--ink); letter-spacing: -.01em; }
.tc figcaption { margin-top: auto; display: flex; align-items: center; gap: .7rem; }
.tc b { display: block; font-size: .85rem; font-weight: 500; }
.tc small { font-size: .74rem; color: var(--mute); }
.av { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--peri-2); font-size: .72rem; font-weight: 600; letter-spacing: .02em; }

/* 11. FAQ ------------------------------------------------------ */
.faq-sec { display: grid; gap: 2rem; }
.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: 1rem; padding: 1.25rem 0; font-size: .98rem; font-weight: 500; letter-spacing: -.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-2); font-weight: 400; transition: transform .4s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--lav); }
.faq details p { padding: 0 2.5rem 1.3rem 0; font-size: .88rem; color: var(--mute); }
.faq details[open] p { animation: drop .5s var(--ease); }

/* 12. Plans ---------------------------------------------------- */
.plans-sec { overflow: visible; }
.glow-plans { left: 50%; bottom: 0; width: min(1000px, 130vw); height: 420px; translate: -50% 0; background: radial-gradient(closest-side at 30% 60%, rgba(195,207,246,.85), transparent), radial-gradient(closest-side at 72% 50%, rgba(214,201,248,.7), transparent); }
.plans { display: grid; gap: 1rem; width: 100%; margin-top: 3rem; align-items: center; text-align: left; }
.plan { display: flex; flex-direction: column; gap: .6rem; padding: 1.6rem; border-radius: var(--r); background: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.plan-hot { background: #fff; padding: 2rem 1.6rem; box-shadow: 0 30px 70px -30px rgba(26,33,82,.45); }
.plan-n { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--mute); }
.hot { padding: .2rem .5rem; border-radius: 99px; background: #e8f7ef; color: #1f8a5b; font-size: .62rem; font-weight: 600; }
.plan-p { font-size: 2.2rem; font-weight: 500; letter-spacing: -.05em; line-height: 1.1; }
.plan-p small { font-size: .85rem; font-weight: 400; letter-spacing: 0; color: var(--mute); }
.plan-d { font-size: .8rem; color: var(--mute); }
.plan ul { display: grid; gap: .45rem; margin: .6rem 0 1.4rem; }
.plan li { display: flex; gap: .5rem; font-size: .82rem; color: var(--ink-2); }
.plan li::before { content: "✓"; color: var(--blue); font-weight: 600; }
.plan .btn { margin-top: auto; }

/* 13. CTA / form ----------------------------------------------- */
.cta { padding-top: clamp(5rem, 10vw, 8rem); }
.cta-mark { font-size: 3.4rem; }
.cta-h { margin-top: 1.4rem; font-size: clamp(1.9rem, 4vw, 3rem); }
.form { display: grid; gap: .9rem; width: min(560px, 100%); margin-top: 2.4rem; padding: 1.5rem; border-radius: var(--r); background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px -40px rgba(26,33,82,.4); text-align: left; }
.form-row { display: grid; gap: .9rem; }
.form label { display: grid; gap: .35rem; }
.form label span { font-size: .74rem; font-weight: 500; color: var(--ink-2); }
.form input, .form textarea { width: 100%; padding: .75rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); font: inherit; font-size: .9rem; color: var(--ink); resize: vertical; transition: border-color .3s, box-shadow .3s, background .3s; }
.form input:focus, .form textarea:focus { outline: none; background: #fff; border-color: var(--peri); box-shadow: 0 0 0 4px var(--lav); }
.form .bad input { border-color: #e05a7a; box-shadow: 0 0 0 4px #fde8ee; }
.form-note { text-align: center; font-size: .76rem; color: var(--mute); }
.form-note.ok { color: #1f8a5b; font-weight: 500; }
.cta-alt { margin-top: 1.2rem; font-size: .82rem; color: var(--mute); }
.cta-alt a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--peri-2); text-underline-offset: 3px; }

/* 14. Footer --------------------------------------------------- */
.footer { position: relative; overflow: hidden; padding: 4rem 1.25rem 1.5rem; margin-top: 2rem; }
.footer-wm { position: absolute; left: 50%; bottom: -2%; translate: -50% 0; z-index: -1; white-space: nowrap; font-size: clamp(2.6rem, 12.4vw, 12rem); font-weight: 600; letter-spacing: -.06em; line-height: .8; background: linear-gradient(180deg, #e9ecf5, rgba(233,236,245,.15)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-in { width: min(1180px, 100%); margin-inline: auto; display: grid; gap: 2.5rem; }
.footer-brand { display: grid; gap: 1rem; justify-items: start; }
.footer-h { font-size: 1.5rem; font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
.footer-cols { display: grid; grid-template-columns: repeat(3, auto); gap: 2rem; justify-content: start; }
.footer-cols div { display: grid; gap: .45rem; align-content: start; }
.footer-cols p { font-size: .82rem; font-weight: 500; margin-bottom: .2rem; }
.footer-cols a { font-size: .8rem; color: var(--mute); transition: color .3s; }
.footer-cols a:hover { color: var(--ink); }
.footer-copy { width: min(1180px, 100%); margin: clamp(6rem, 14vw, 11rem) auto 0; font-size: .72rem; color: var(--mute); }

/* 15. Motion --------------------------------------------------- */
.js .reveal { opacity: 0; translate: 0 22px; filter: blur(6px); transition: opacity .9s var(--ease) var(--d, 0s), translate 1s var(--ease) var(--d, 0s), filter .9s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; translate: none; filter: none; }
.js .stage { opacity: 0; transform: translateY(40px) scale(.96); transition: opacity 1.4s var(--ease) .35s, transform 1.6s var(--ease) .35s; }
.js.is-ready .stage { opacity: 1; transform: none; }

@keyframes holo { to { background-position: 100% 100%; } }
@keyframes float { 0%, 100% { translate: -50% -50%; } 50% { translate: -50% -56%; } }
@keyframes shadow { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: .6; scale: .9; } }
@keyframes sheen { to { translate: -60% 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* 16. Responsive ----------------------------------------------- */
@media (min-width: 720px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .split-head { grid-template-columns: 1fr 1fr; }
  .split-side { justify-items: end; text-align: right; }
  .split-side .lead { text-align: right; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-3 { grid-row: span 2; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .footer-in { grid-template-columns: 1fr auto; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .orbit { grid-template-columns: 1fr auto 1fr; gap: 3rem; }
  .feat-l { text-align: right; justify-items: end; }
  .feat-r { text-align: left; justify-items: start; }
  .bento { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto; }
  .b-1 { grid-column: 1; grid-row: 1; }
  .b-2 { grid-column: 2; grid-row: 1; }
  .b-3 { grid-column: 3; grid-row: 1 / span 2; }
  .b-4 { grid-column: 1; grid-row: 2; }
  .b-5 { grid-column: 2; grid-row: 2; }
  .faq-sec { grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
}

/* 18. Hero floating resources ---------------------------------- */
.dots {
  position: absolute; left: 50%; top: 48%; width: min(900px, 120vw); height: 70%; translate: -50% -50%; z-index: -1;
  background-image: radial-gradient(rgba(63,95,214,.22) 1.2px, transparent 1.4px); background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent);
}
.fl { position: absolute; z-index: 2; translate: calc(var(--mx, 0) * var(--k, 1) * 1px) calc(var(--my, 0) * var(--k, 1) * 1px); transition: translate 1s var(--ease); }
.fl-photo { width: clamp(92px, 12vw, 150px); padding: 6px 6px 28px; border-radius: 14px; background: #fff; box-shadow: 0 24px 50px -24px rgba(13,15,26,.45), 0 0 0 1px var(--line); }
.fl-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 9px; filter: saturate(.75); }
.fl-photo span { position: absolute; left: 10px; bottom: 7px; font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.fl-1 { left: 8%; top: 12%; rotate: -8deg; animation: bob 8s ease-in-out infinite; }
.fl-2 { right: 8%; top: 4%; rotate: 7deg; animation: bob 9s ease-in-out infinite -3s; }
.fl-chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; border-radius: 99px; white-space: nowrap;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: 0 14px 30px -18px rgba(13,15,26,.35); font-size: .78rem; color: var(--ink-2);
}
.fl-chip strong { color: var(--ink); font-weight: 600; }
.fl-chip small { font-family: var(--mono); font-size: .58rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); padding-left: .45rem; border-left: 1px solid var(--line); }
.fl-chip svg { width: 14px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; }
.up { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #e8f7ef; color: #1f8a5b; font-size: .72rem; }
.kw-dot { width: 8px; height: 8px; border-radius: 50%; background: #c2771f; box-shadow: 0 0 0 3px #f8ead8; }
.fl-3 { left: 6%; bottom: 14%; animation: bob 7s ease-in-out infinite -1s; }
.fl-4 { right: 6%; bottom: 30%; animation: bob 8s ease-in-out infinite -5s; }
.fl-5 { right: 18%; bottom: 6%; animation: bob 10s ease-in-out infinite -2s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* service stack photos */
.st-ph { position: absolute; z-index: 0; object-fit: cover; border-radius: 14px; border: 5px solid #fff; box-shadow: 0 20px 40px -20px rgba(13,15,26,.4); filter: saturate(.75); transition: transform .9s var(--ease); }
.st-ph-1 { width: 38%; aspect-ratio: 4 / 3; left: -9%; top: -4%; rotate: -9deg; }
.st-ph-2 { width: 42%; aspect-ratio: 2.3; right: -9%; bottom: 2%; rotate: 8deg; z-index: 3; }
.stack:hover .st-ph-1 { transform: translate(-8px, -6px) rotate(-3deg); }
.stack:hover .st-ph-2 { transform: translate(8px, 6px) rotate(3deg); }

/* gallery marquee */
.gallery { overflow: hidden; padding-block: 1rem 2rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.gal-track { display: flex; align-items: center; gap: 1rem; width: max-content; animation: marquee 60s linear infinite; }
.gallery:hover .gal-track { animation-play-state: paused; }
.g { position: relative; flex: none; height: clamp(200px, 26vw, 300px); border-radius: 18px; overflow: hidden; background: var(--bg-2); }
.g-t { aspect-ratio: 4 / 5; }
.g-w { aspect-ratio: 4 / 3; }
.g:nth-child(even) { translate: 0 18px; }
.g img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); transition: transform 1s var(--ease), filter .6s; }
.g:hover img { transform: scale(1.06); filter: saturate(1); }
.g figcaption { position: absolute; left: 10px; bottom: 10px; padding: .3rem .6rem; border-radius: 99px; background: rgba(255,255,255,.9); font-family: var(--mono); font-size: .6rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }

/* bento link */
.kpi-link { margin-top: .3rem; font-size: .78rem; color: var(--blue); }
.kpi-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* 19. Results -------------------------------------------------- */
.results { overflow: visible; }
.glow-res { right: -10%; top: 10%; width: 700px; height: 520px; background: radial-gradient(closest-side, rgba(195,207,246,.75), transparent); }
.res-grid { display: grid; gap: 3rem; align-items: center; }
.seg { display: inline-flex; align-items: center; gap: .3rem; margin-top: 1.8rem; padding: .3rem; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line); }
.seg-l { padding: 0 .6rem 0 .5rem; font-size: .76rem; color: var(--mute); }
.seg button { min-width: 44px; height: 36px; padding: 0 .9rem; border-radius: 99px; font-size: .86rem; font-weight: 500; color: var(--ink-2); transition: background .3s, color .3s, box-shadow .3s; }
.seg button:hover { background: #fff; }
.seg button.on { background: var(--ink); color: #fff; box-shadow: 0 6px 14px -8px rgba(13,15,26,.6); }
.res-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin-top: 1.4rem; }
.res-kpis div { display: grid; gap: .2rem; align-content: start; padding: 1rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.res-kpis dt { font-size: .7rem; color: var(--mute); line-height: 1.3; }
.res-kpis dd { font-size: 1.6rem; font-weight: 500; letter-spacing: -.04em; line-height: 1.1; color: var(--ink); }
.res-kpis dd b { font-weight: 500; }
.res-kpis small { font-size: .66rem; color: var(--mute); }
.res-note { margin-top: 1.1rem; max-width: 56ch; font-size: .72rem; color: var(--mute); line-height: 1.5; }

.res-visual { position: relative; padding: 2.4rem 0 9rem; }
.res-photo { position: absolute; right: -4%; top: 0; width: 62%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; filter: saturate(.7); opacity: .9; }
.chart-card { position: relative; z-index: 2; width: 92%; padding: 1.1rem 1.1rem .8rem; border-radius: 20px; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(26,33,82,.5); }
.cc-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; align-items: center; margin-bottom: .6rem; }
.cc-t { font-size: .86rem; font-weight: 500; }
.cc-legend { display: flex; gap: .9rem; font-size: .7rem; color: var(--ink-2); }
.lg { display: inline-flex; align-items: center; gap: .4rem; }
.lg::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--blue); }
.lg-b::before { background: repeating-linear-gradient(90deg, #c2771f 0 4px, transparent 4px 7px); }
.cc-plot { position: relative; }
.cc-plot svg { width: 100%; height: auto; aspect-ratio: 560 / 300; overflow: visible; display: block; }
.ln-a-static { fill: none; stroke: var(--blue); stroke-width: 2; }
.cc-plot .grid { stroke: var(--line); stroke-width: 1; }
.cc-plot .ax { font-family: var(--mono); font-size: 10px; fill: var(--mute); }
.cc-plot .area { fill: url(#areaGrad); }
.cc-plot .la { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; transition: d .8s var(--ease); }
.cc-plot .lb { fill: none; stroke: #c2771f; stroke-width: 2; stroke-dasharray: 5 4; stroke-linecap: round; }
.cc-plot .end { font-size: 11px; font-weight: 500; fill: var(--ink); }
.cc-plot .end-s { font-size: 10px; fill: var(--mute); }
.cc-plot .xh { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.cc-plot .mk { stroke: #fff; stroke-width: 2; opacity: 0; }
.cc-plot.is-hover .xh, .cc-plot.is-hover .mk { opacity: 1; }
.tip { position: absolute; z-index: 3; pointer-events: none; min-width: 150px; padding: .55rem .7rem; border-radius: 10px; background: var(--ink); color: #fff; font-size: .72rem; line-height: 1.5; box-shadow: 0 12px 26px -10px rgba(13,15,26,.6); opacity: 0; transform: translate(-50%, calc(-100% - 12px)); transition: opacity .2s; }
.cc-plot.is-hover .tip { opacity: 1; }
.tip b { display: block; margin-bottom: .2rem; font-weight: 500; color: var(--peri-2); }
.tip span { display: flex; align-items: center; gap: .4rem; }
.tip span { white-space: nowrap; }
.tip i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.tip i.c2 { background: #c2771f; }
.cc-table { margin-top: .5rem; font-size: .74rem; }
.cc-table summary { cursor: pointer; color: var(--blue); width: max-content; }
.cc-table table { width: 100%; margin-top: .5rem; border-collapse: collapse; }
.cc-table th, .cc-table td { padding: .35rem .4rem; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.cc-table th:first-child, .cc-table td:first-child { text-align: left; }
.cc-table th { font-weight: 500; color: var(--mute); }
.phone-card { position: absolute; z-index: 3; right: 8%; bottom: 0; width: clamp(96px, 10vw, 124px); padding: 6px; border-radius: 22px; background: #fff; box-shadow: 0 30px 60px -24px rgba(13,15,26,.5), 0 0 0 1px var(--line); rotate: 6deg; animation: bob 8s ease-in-out infinite -2s; }
.phone-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 17px; }
.pc-chip { position: absolute; left: -38%; bottom: 14%; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .7rem; border-radius: 99px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 26px -14px rgba(13,15,26,.4); font-size: .72rem; white-space: nowrap; rotate: -6deg; }
.pc-chip strong { font-weight: 600; }

/* FAQ photo card */
.faq-fig { position: relative; margin-top: 2rem; border-radius: 20px; overflow: hidden; }
.faq-fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.75); }
.faq-fig figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: .6rem; padding: .6rem; border-radius: 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.faq-fig figcaption > span:nth-child(2) { flex: 1; display: grid; line-height: 1.25; }
.faq-fig b { font-size: .84rem; font-weight: 500; }
.faq-fig small { font-size: .72rem; color: var(--mute); }

/* responsive for new parts */
@media (max-width: 719px) {
  .fl-photo { width: 84px; padding: 4px 4px 20px; }
  .fl-photo span { font-size: .5rem; bottom: 4px; left: 7px; }
  .fl-1 { left: 2%; top: 4%; }
  .fl-2 { right: 2%; top: 0; }
  .fl-4, .fl-5 { display: none; }
  .fl-3 { left: 50%; bottom: 2%; translate: -50% 0; font-size: .7rem; }
  .res-kpis { grid-template-columns: 1fr; }
  .res-kpis div { grid-template-columns: 1fr auto; align-items: baseline; }
  .res-kpis dd { grid-row: 1 / span 2; grid-column: 2; }
  .chart-card { width: 100%; }
  .res-photo { width: 70%; top: -4%; }
  .phone-card { width: 90px; bottom: 0; right: 6%; }
  .pc-chip { left: auto; right: 70%; }
  .st-ph-1 { left: -8%; } .st-ph-2 { right: -8%; }
}
@media (min-width: 960px) {
  .res-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
}

/* 20. Blog en portada (últimas entradas) ----------------------- */
.home-blog { padding-bottom: 0; }
.home-blog .split-side .btn { justify-self: start; }
.rel-grid { display: grid; gap: 1rem; }
.rel { display: flex; flex-direction: column; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.rel:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.rel-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-3); }
.rel-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78); transition: transform 1s var(--ease), filter .6s; }
.rel:hover .rel-img img { transform: scale(1.06); filter: saturate(1); }
.rel-body { display: grid; gap: .5rem; padding: 1.2rem 1.2rem 1.4rem; }
.rel-body .pill-mono { justify-self: start; }
.rel h3 { font-size: 1.08rem; line-height: 1.25; letter-spacing: -.02em; }
.rel p { font-size: .84rem; color: var(--mute); }
.rel-more { margin-top: .3rem; font-size: .8rem; color: var(--blue); }
@media (min-width: 640px) { .rel-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .home-blog .split-side .btn { justify-self: end; } }
@media (min-width: 960px) { .rel-grid { grid-template-columns: repeat(3, 1fr); } }

/* 17. Reduced motion — only intrusive loops -------------------- */
@media (prefers-reduced-motion: reduce) {
  .stage-tilt, .stage-shadow, .holo, .fl, .phone-card { animation: none; }
  .marquee-track, .chips-row, .gal-track { animation-duration: 120s; }
}
