/* =========================================================
   Sofilab — estilos
   Paleta y tokens editables en :root
   ========================================================= */
:root {
  --cream: #fbf8f1;
  --cream-2: #f3eee2;
  --ink: #101d36;
  --ink-deep: #0a1426;
  --ink-2: #46506a;
  --muted: #8a877f;
  --line: #e6e0d2;
  --white: #fff;

  --lime: #c8f169;
  --sky: #9fd3ff;
  --peach: #ffb98a;
  --lilac: #cdb8ff;
  --yellow: #ffe066;
  --pink: #ff8fb8;
  --green: #4cc38a;
  --blue: #3b6cff;
  --orange: #ff7a2f;

  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 32px -12px rgba(20,20,20,.18);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.03em; line-height: 1.02; margin: 0; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: 110px 0; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 700; max-width: 18ch; }
.center { text-align: center; margin-inline: auto; justify-content: center; }
.narrow { max-width: 20ch; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ink-2); background: var(--white); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .92rem; padding: 10px 18px; border-radius: 999px;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--white); box-shadow: inset 0 -3px 0 rgba(255,255,255,.12); }
.btn--dark:hover { background: var(--ink-deep); box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); }
.btn--light { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.btn--ghost { border: 1px solid var(--line); background: transparent; }
.btn--ghost:hover { background: var(--white); }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.link-arrow { font-weight: 600; border-bottom: 2px solid var(--ink); padding-bottom: 2px; }

/* ---------- Anuncio ---------- */
.announce {
  background: var(--ink); color: #eee; font-size: .85rem; text-align: center;
  padding: 10px 16px; display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap;
}
.announce__pill { background: var(--lime); color: var(--ink); font-weight: 700; padding: 2px 10px; border-radius: 999px; font-size: .75rem; }
.announce__link { color: var(--lime); font-weight: 600; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,248,241,.82); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.is-scrolled { border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.04em; }
.nav__menu { display: flex; gap: 4px; align-items: center; }
.nav__item { position: relative; }
.nav__link { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .93rem; display: inline-flex; gap: 6px; align-items: center; }
.nav__link:hover { background: var(--cream-2); }
.chev { font-size: .7rem; transition: transform .2s; }
.nav__actions { display: flex; align-items: center; gap: 8px; }

.drop {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 300px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; display: flex; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease;
}
.drop--wide { min-width: 860px; left: -40px; }
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.has-drop:hover .chev { transform: rotate(180deg); }
.drop__col { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.drop__col h6 { margin: 4px 10px 8px; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.drop__col a { padding: 10px; border-radius: 12px; display: flex; flex-direction: column; }
.drop__col a:hover { background: var(--cream); }
.drop__col b { font-weight: 600; font-size: .92rem; }
.drop__col small { color: var(--muted); font-size: .8rem; }

.burger { display: none; width: 40px; height: 40px; border-radius: 999px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: .3s; }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; min-height: 760px;
  background: linear-gradient(180deg, #cfe9ff 0%, #e8f4ff 45%, var(--cream) 100%);
  display: flex; align-items: center; padding: 100px 0 160px;
}
.hero__content { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.6rem); font-weight: 800; letter-spacing: -0.05em; }
.hero__sub { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 36ch; margin: 26px 0 34px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.install { margin-top: 42px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.install__label { font-size: .82rem; color: var(--ink-2); font-weight: 500; }
.install__box {
  display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.75); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 14px; padding: 8px 8px 8px 18px;
}
.install__box code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; }
.copy { background: var(--ink); color: #fff; border-radius: 10px; padding: 7px 12px; font-size: .8rem; font-weight: 600; }

/* escena 3D-ish */
.hero__scene { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hill { position: absolute; border-radius: 50%; }
.hill--1 { width: 140%; height: 420px; left: -20%; bottom: -260px; background: radial-gradient(ellipse at 50% 0%, #a6e07a, #6cbf55 60%); }
.hill--2 { width: 90%; height: 360px; right: -30%; bottom: -220px; background: radial-gradient(ellipse at 40% 0%, #bdeb8f, #7fcc5c 60%); }
.sun { position: absolute; width: 160px; height: 160px; border-radius: 50%; top: 70px; right: 12%; background: radial-gradient(circle at 35% 35%, #fff6b0, #ffd84d 60%, #ffb92e); filter: blur(.3px); box-shadow: 0 0 80px 20px rgba(255,216,77,.35); }

.ball {
  position: absolute; border-radius: 50%;
  box-shadow: inset -14px -18px 30px rgba(0,0,0,.18), inset 10px 12px 24px rgba(255,255,255,.55), 0 30px 40px -20px rgba(0,0,0,.25);
  animation: float 7s ease-in-out infinite;
}
.b1 { width: 110px; height: 110px; left: 7%; top: 22%; background: var(--pink); }
.b2 { width: 70px; height: 70px; left: 17%; bottom: 22%; background: var(--yellow); animation-delay: -2s; }
.b3 { width: 90px; height: 90px; right: 8%; bottom: 28%; background: var(--blue); animation-delay: -4s; }
.b4 { width: 46px; height: 46px; right: 24%; top: 56%; background: var(--orange); animation-delay: -1s; }
.b5 { width: 56px; height: 56px; left: 26%; top: 12%; background: var(--lilac); animation-delay: -3s; }
.b6 { width: 34px; height: 34px; right: 30%; top: 16%; background: var(--green); animation-delay: -5s; }
.tube {
  position: absolute; left: -40px; bottom: 140px; width: 260px; height: 60px; border-radius: 40px;
  background: linear-gradient(180deg, #ffd0e2, #ff8fb8 60%, #e46a98); transform: rotate(-18deg);
  box-shadow: inset 0 -10px 20px rgba(0,0,0,.12), 0 20px 30px -18px rgba(0,0,0,.3);
}
.cube {
  position: absolute; right: 14%; top: 34%; width: 72px; height: 72px; border-radius: 16px;
  background: linear-gradient(135deg, #d6ff8a, var(--lime) 50%, #8ec53a); transform: rotate(18deg);
  box-shadow: inset -8px -10px 18px rgba(0,0,0,.15), 0 24px 30px -16px rgba(0,0,0,.3);
  animation: spin 14s linear infinite;
}
.ring {
  position: absolute; left: 12%; top: 52%; width: 90px; height: 90px; border-radius: 50%;
  border: 18px solid var(--sky); box-shadow: inset 0 0 0 2px rgba(255,255,255,.4), 0 18px 26px -14px rgba(0,0,0,.3);
  animation: float 9s ease-in-out infinite reverse;
}
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-22px) } }
@keyframes spin { to { transform: rotate(378deg) } }

/* ---------- Logos ---------- */
.logos { padding: 50px 0 20px; text-align: center; }
.logos__title { color: var(--muted); font-size: .92rem; margin: 0 0 26px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.logo-ph { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: #b5b0a3; letter-spacing: -0.02em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Testimonios ---------- */
.t-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 40px; }
.t-controls { display: flex; gap: 10px; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 1.1rem; transition: .2s; }
.round-btn:hover { background: var(--ink); color: #fff; }
.t-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.t-track::-webkit-scrollbar { display: none; }
.t-card {
  flex: 0 0 min(400px, 85%); scroll-snap-align: start; border-radius: var(--radius-lg); padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between; min-height: 320px;
}
.t-card p { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; margin: 0; }
.t-card footer { display: flex; gap: 12px; align-items: center; margin-top: 28px; }
.t-card footer b { display: block; font-size: .95rem; } .t-card footer small { color: var(--ink-2); }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .85rem; }
.c-lime { background: var(--lime); } .c-sky { background: var(--sky); } .c-peach { background: var(--peach); }
.c-lilac { background: var(--lilac); } .c-yellow { background: var(--yellow); }

/* ---------- Stats ---------- */
.stats { background: var(--ink); color: #fff; padding: 64px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.stat { display: flex; flex-direction: column; gap: 6px; border-left: 1px solid #2a3a5c; padding-left: 20px; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; color: var(--lime); letter-spacing: -0.04em; }
.stat__label { color: #bbb; font-size: .92rem; }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 28px; }
.tab { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-weight: 500; font-size: .92rem; transition: .2s; }
.tab:hover { border-color: var(--ink); }
.tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-panel {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px;
}
.tab-panel__text h3 { font-size: 2rem; margin-bottom: 14px; }
.tab-panel__text p { color: var(--ink-2); margin: 0 0 24px; }
.fade { animation: fadeUp .45s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

.mock { background: var(--cream); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: .85rem; }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--white); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #e3ddcf; }
.mock__bar span { margin-left: 10px; font-weight: 600; color: var(--ink-2); }
.mock__row { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1fr; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.mock__row--head { font-weight: 600; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; background: var(--white); }
.mock__row span { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.dot { width: 20px; height: 20px; border-radius: 6px; display: inline-block; background: #ddd; flex: none; }
.d1 { background: var(--pink); } .d2 { background: var(--sky); } .d3 { background: var(--lime); } .d4 { background: var(--yellow); } .d5 { background: var(--lilac); }
.chip { background: var(--cream-2); padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; justify-self: start; }
.chip.ok { background: #dff6e8; color: #1f7a4d; } .chip.warn { background: #fff1cc; color: #8a6200; }
.shimmer { display: block; height: 10px; width: 80%; border-radius: 6px; background: linear-gradient(90deg, #ece6d8, #f8f4ea, #ece6d8); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Builder ---------- */
.builder { background: var(--cream-2); }
.builder__inner { max-width: 820px; text-align: center; }
.builder .h2 { max-width: none; margin-bottom: 34px; }
.prompt {
  display: flex; gap: 12px; align-items: flex-end; background: var(--white); border: 1px solid var(--line);
  border-radius: 24px; padding: 14px 14px 14px 22px; box-shadow: var(--shadow);
}
.prompt textarea { flex: 1; border: 0; resize: none; font: inherit; font-size: 1.05rem; outline: none; background: transparent; padding: 8px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 20px 0; }
.chip-btn { background: var(--white); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; font-size: .88rem; transition: .2s; }
.chip-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.cats { display: flex; gap: 10px; justify-content: center; align-items: center; font-size: .88rem; color: var(--muted); }
.cats b { color: var(--ink); background: var(--white); padding: 4px 12px; border-radius: 8px; font-weight: 600; }
.prompt__result { min-height: 1.5em; margin-top: 18px; font-weight: 500; color: var(--ink-2); }

/* ---------- Features ---------- */
.features .h2 { margin-bottom: 80px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 50px 0; }
.feature--rev .feature__text { order: 2; }
.feature__text h3 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 700; margin-bottom: 18px; }
.feature__text p { color: var(--ink-2); font-size: 1.08rem; margin: 0 0 20px; }
.checks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; font-weight: 500; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--lime); font-size: .72rem; display: grid; place-items: center; font-weight: 800; }

.art { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden; }
.art--data { background: linear-gradient(160deg, #ffe7d6, var(--peach)); }
.art--agents { background: linear-gradient(160deg, #eee6ff, var(--lilac)); }
.art--flow { background: linear-gradient(160deg, #e4f3ff, var(--sky)); display: grid; place-items: center; }
.art--launch { background: linear-gradient(160deg, #f0ffd0, var(--lime)); }

.funnel {
  position: absolute; left: 50%; top: 40%; width: 200px; height: 160px; transform: translateX(-50%);
  background: linear-gradient(90deg, #fff, #f0f0f0 50%, #d8d8d8); clip-path: polygon(0 0, 100% 0, 62% 70%, 62% 100%, 38% 100%, 38% 70%);
  filter: drop-shadow(0 20px 20px rgba(0,0,0,.15));
}
.drop-ball { position: absolute; width: 34px; height: 34px; border-radius: 50%; top: -40px; box-shadow: inset -6px -8px 12px rgba(0,0,0,.18), inset 4px 5px 10px rgba(255,255,255,.6); animation: dropIn 3.2s cubic-bezier(.5,0,.75,0) infinite; }
.db1 { left: 40%; background: var(--blue); } .db2 { left: 52%; background: var(--pink); animation-delay: .8s; }
.db3 { left: 46%; background: var(--yellow); animation-delay: 1.6s; } .db4 { left: 56%; background: var(--green); animation-delay: 2.4s; }
@keyframes dropIn { 0% { transform: translateY(0); opacity: 1 } 60% { transform: translateY(220px); opacity: 1 } 100% { transform: translate(-10px, 420px) scale(.6); opacity: 0 } }

.robot { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); animation: float 5s ease-in-out infinite; }
.robot__head { width: 130px; height: 100px; border-radius: 30px; background: linear-gradient(160deg, #fff, #dcd6e8); position: relative; box-shadow: inset -8px -10px 20px rgba(0,0,0,.08), 0 20px 30px -16px rgba(0,0,0,.3); display: flex; justify-content: center; gap: 26px; align-items: center; }
.robot__head i { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); box-shadow: inset 4px 4px 0 rgba(255,255,255,.6); animation: blink 4s infinite; }
.robot__body { width: 96px; height: 70px; margin: 8px auto 0; border-radius: 24px; background: linear-gradient(160deg, var(--blue), #2a4ec0); }
.robot__antenna { position: absolute; top: -34px; left: 50%; width: 4px; height: 30px; background: var(--ink); transform: translateX(-50%); }
.robot__antenna::after { content: ""; position: absolute; top: -12px; left: -7px; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1) } 95% { transform: scaleY(.1) } }
.bubble { position: absolute; background: var(--white); padding: 10px 16px; border-radius: 16px; font-weight: 600; font-size: .85rem; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.bub1 { left: 8%; top: 14%; } .bub2 { right: 8%; bottom: 14%; animation-delay: -3s; background: var(--ink); color: var(--lime); }

.flow-svg { width: 92%; }
.wire { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 8 8; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -32; } }
.node rect { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.node text { font-family: var(--font-body); font-weight: 600; font-size: 14px; text-anchor: middle; fill: var(--ink); }
.n2 rect { fill: var(--yellow); } .n3 rect { fill: var(--lime); } .n4 rect { fill: var(--pink); }

.rocket { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(35deg); animation: shake .25s ease-in-out infinite alternate; }
.rocket__body { width: 70px; height: 170px; border-radius: 50% 50% 18px 18px / 70% 70% 18px 18px; background: linear-gradient(90deg, #fff, #eee 50%, #cfcfcf); position: relative; }
.rocket__body::after { content: ""; position: absolute; top: 46px; left: 50%; width: 30px; height: 30px; border-radius: 50%; transform: translateX(-50%); background: var(--sky); border: 5px solid var(--ink); }
.rocket__fin { position: absolute; bottom: 0; width: 34px; height: 54px; background: var(--orange); }
.rocket__fin.l { left: -26px; border-radius: 30px 0 6px 10px; } .rocket__fin.r { right: -26px; border-radius: 0 30px 10px 6px; }
.rocket__fire { position: absolute; left: 50%; bottom: -60px; width: 34px; height: 60px; transform: translateX(-50%); border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%; background: linear-gradient(180deg, var(--yellow), var(--orange)); animation: flame .15s infinite alternate; }
@keyframes shake { to { transform: translate(-50%, -52%) rotate(35deg); } }
@keyframes flame { to { height: 76px; bottom: -76px; } }
.spark { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff; animation: float 3s ease-in-out infinite; }
.s1 { left: 18%; top: 22%; } .s2 { right: 16%; top: 30%; animation-delay: -1s; } .s3 { left: 26%; bottom: 18%; animation-delay: -2s; }

/* ---------- Historias ---------- */
.stories .h2 { margin-bottom: 40px; }
.stories__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.story { position: relative; aspect-ratio: 16/10; border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: flex-end; padding: 28px; transition: transform .3s; }
.story:hover { transform: translateY(-4px); }
.story__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80px; height: 80px; border-radius: 50%; background: var(--white); display: grid; place-items: center; font-size: 1.4rem; box-shadow: var(--shadow); transition: transform .3s; }
.story:hover .story__play { transform: translate(-50%, -50%) scale(1.08); }
.story__meta { background: rgba(255,255,255,.85); backdrop-filter: blur(6px); padding: 14px 18px; border-radius: 16px; }
.story__meta b, .story__meta small { display: block; }

/* ---------- Learn ---------- */
.learn .h2 { margin-bottom: 40px; }
.learn__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: .25s; min-height: 210px; display: flex; flex-direction: column; }
.lcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lcard__tag { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: auto; }
.lcard h4 { font-size: 1.45rem; margin: 30px 0 8px; }
.lcard p { margin: 0; color: var(--ink-2); font-size: .93rem; }

/* ---------- CTA final ---------- */
.final { position: relative; overflow: hidden; background: var(--lime); padding: 140px 0; text-align: center; }
.final__inner { position: relative; z-index: 2; }
.final h2 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; max-width: 14ch; margin: 0 auto 20px; letter-spacing: -0.05em; }
.final p { font-size: 1.15rem; margin: 0 0 34px; color: var(--ink-2); }
.final__scene { position: absolute; inset: 0; }
.fb1 { width: 140px; height: 140px; left: 5%; top: 18%; background: var(--pink); }
.fb2 { width: 80px; height: 80px; left: 16%; bottom: 12%; background: var(--blue); animation-delay: -2s; }
.fb3 { width: 120px; height: 120px; right: 6%; bottom: 20%; background: var(--yellow); animation-delay: -4s; }
.fb4 { width: 60px; height: 60px; right: 18%; top: 14%; background: var(--orange); animation-delay: -1s; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-deep); color: #ccc; padding: 80px 0 0; overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.footer .logo { color: #fff; }
.footer .logo img { filter: none; }
.footer__brand p { max-width: 28ch; color: #999; font-size: .93rem; }
.footer h6 { color: #fff; font-size: .82rem; margin: 6px 0 16px; font-weight: 600; }
.footer__grid a:not(.logo) { display: block; color: #999; font-size: .9rem; padding: 4px 0; transition: color .2s; }
.footer__grid a:hover { color: var(--lime); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 60px; padding-top: 24px; border-top: 1px solid #1d2c4d; font-size: .85rem; color: #888; gap: 16px; flex-wrap: wrap; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #2a3a5c; display: grid; place-items: center; color: #ddd; font-weight: 700; font-size: .85rem; transition: .2s; }
.socials a:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.footer__word { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 22vw, 20rem); letter-spacing: -0.07em; line-height: .8; color: #16233f; text-align: center; margin-top: 30px; user-select: none; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__menu, .nav__login, .nav__actions .btn--ghost { display: none; }
  .burger { display: block; }
  .mobile-menu { display: flex; flex-direction: column; gap: 4px; max-height: 0; overflow: hidden; transition: max-height .35s ease; padding: 0 20px; }
  .mobile-menu.is-open { max-height: 420px; padding-bottom: 20px; }
  .mobile-menu a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 500; }
  .mobile-menu .btn { margin-top: 12px; border: 0; }
  .stats__grid { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .section { padding: 80px 0; }
  .tab-panel { grid-template-columns: 1fr; padding: 24px; }
  .feature { grid-template-columns: 1fr; gap: 32px; padding: 30px 0; }
  .feature--rev .feature__text { order: 0; }
  .stories__grid, .learn__grid { grid-template-columns: 1fr; }
  .t-head { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 680px; padding: 70px 0 140px; }
  .b1, .tube, .ring { opacity: .55; }
  .sun { width: 100px; height: 100px; right: 6%; top: 30px; }
}
@media (max-width: 560px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .nav__actions .btn--dark { padding: 8px 14px; font-size: .85rem; }
  .prompt { flex-direction: column; align-items: stretch; }
  .mock__row { grid-template-columns: 1.4fr 1fr 1fr; }
  .mock__row > :nth-child(3) { display: none; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .install__box code { font-size: .8rem; }
  .cube, .b5, .b6 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Componentes específicos de SofiLab
   ========================================================= */
.logo em { font-style: normal; color: var(--blue); }
.footer .logo em { color: var(--lime); }
.hero__kicker { display: inline-block; font-size: .85rem; font-weight: 600; background: rgba(255,255,255,.7); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; margin-bottom: 26px; backdrop-filter: blur(6px); }
.hero h1 { font-size: clamp(2.8rem, 7.2vw, 6rem); }
.hl { background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 92%, transparent 92%); padding: 0 .08em; }
.keywords { margin-top: 44px; display: flex; gap: 14px; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.keywords i { color: var(--blue); font-style: normal; }
.lead { color: var(--ink-2); font-size: 1.1rem; max-width: 46ch; margin: 18px 0 0; }

/* Selector de punto de partida */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain { text-align: left; border-radius: var(--radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 10px; min-height: 230px; border: 3px solid transparent; transition: transform .25s, border-color .25s, opacity .25s; opacity: .75; }
.pain:hover { transform: translateY(-4px); opacity: 1; }
.pain.is-active { border-color: var(--ink); opacity: 1; }
.pain__icon { font-size: 2rem; margin-bottom: auto; }
.pain b { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.1; }
.pain small { color: var(--ink-2); font-size: .93rem; }
.suggest { margin-top: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 40px; }
.suggest h3 { font-size: 2rem; margin-bottom: 10px; }
.suggest p { color: var(--ink-2); max-width: 60ch; margin: 0 0 20px; }

/* Método */
.stats__title { font-size: clamp(1.8rem, 3vw, 2.4rem); color: #fff; margin-bottom: 40px; }
.stats__grid--4 { grid-template-columns: repeat(4, 1fr); }
.stat__name { font-family: var(--font-display); font-size: 1.5rem; color: #fff; letter-spacing: -0.02em; }
.stats .stat__label { color: #aeb8cf; }

/* Mockups de servicios */
.mock__body { padding: 18px; min-height: 300px; }
.mw-hero { background: linear-gradient(135deg, var(--sky), var(--lilac)); border-radius: 12px; padding: 26px; margin-bottom: 12px; }
.mw-hero b { display: block; font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 6px; }
.mw-hero span { display: inline-block; background: var(--ink); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: .75rem; font-weight: 600; margin-top: 10px; }
.mw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mw-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; height: 80px; padding: 10px; font-size: .75rem; font-weight: 600; }
.mw-card i { display: block; height: 30px; border-radius: 6px; margin-bottom: 8px; }
.mw-form { margin-top: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; gap: 8px; align-items: center; font-size: .8rem; }
.mw-form em { flex: 1; height: 26px; background: var(--cream); border-radius: 6px; }
.mw-form span { background: var(--green); color: #fff; padding: 5px 10px; border-radius: 6px; font-weight: 600; }
.mw-pages { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.mw-pages span { font-size: .72rem; font-weight: 600; background: var(--white); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.mw-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.mw-kpis div { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.mw-kpis b { display: block; font-family: var(--font-display); font-size: 1.4rem; }
.mw-kpis small { color: var(--muted); font-size: .72rem; }
.mw-steps { display: flex; flex-direction: column; gap: 10px; }
.mw-step { display: flex; align-items: center; gap: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: .85rem; font-weight: 600; }
.mw-step i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: .75rem; color: var(--ink); }
.mw-step small { margin-left: auto; font-weight: 600; }

/* Laboratorio CRM */
.lab { background: var(--cream-2); }
.crm { margin-top: 40px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.crm__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.btn--sm { padding: 8px 14px; font-size: .85rem; }
.crm__board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.crm__col { background: var(--cream); border-radius: 16px; padding: 12px; min-height: 260px; }
.crm__col h5 { margin: 4px 6px 12px; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); display: flex; justify-content: space-between; }
.crm__col h5 span { background: var(--white); border-radius: 999px; padding: 0 8px; }
.crm__list { display: flex; flex-direction: column; gap: 10px; }
.deal { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px; width: 100%; transition: transform .2s, box-shadow .2s; animation: fadeUp .35s ease; }
.deal:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.deal b { display: block; font-size: .9rem; }
.deal small { color: var(--muted); font-size: .78rem; }
.deal__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: .78rem; font-weight: 600; }
.deal__tag { padding: 2px 8px; border-radius: 999px; }
.crm__col[data-stage="ganado"] .deal { border-color: #bfe8cf; background: #f2fbf5; }
.crm__hint { color: var(--muted); font-size: .85rem; margin: 16px 0 0; text-align: center; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 14px 0 0; color: var(--ink-2); }

/* Formulario de contacto */
.contact { max-width: 720px; margin: 0 auto; text-align: left; background: var(--white); border-radius: var(--radius-lg); padding: 36px; box-shadow: 0 30px 60px -30px rgba(16,29,54,.4); display: flex; flex-direction: column; gap: 18px; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: .9rem; }
.contact label small { color: var(--muted); font-weight: 400; }
.contact input, .contact select, .contact textarea { font: inherit; font-weight: 400; border: 1px solid var(--line); background: var(--cream); border-radius: 12px; padding: 12px 14px; outline: none; transition: border-color .2s, background .2s; }
.contact input:focus, .contact select:focus, .contact textarea:focus { border-color: var(--ink); background: #fff; }
.contact__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.contact .contact__note { margin: 0; font-size: .88rem; color: var(--muted); }
.contact__note a { color: var(--ink); font-weight: 600; text-decoration: underline; }

@media (max-width: 1100px) {
  .stats__grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .pain-grid { grid-template-columns: 1fr; }
  .pain { min-height: 0; }
  .crm__board { grid-template-columns: repeat(2, 1fr); }
  .faq-wrap { grid-template-columns: 1fr; gap: 30px; }
  .suggest { padding: 26px; }
}
@media (max-width: 560px) {
  .stats__grid--4 { grid-template-columns: 1fr; }
  .crm__board { grid-template-columns: 1fr; }
  .crm__col { min-height: 0; }
  .contact { padding: 22px; }
  .contact__row { grid-template-columns: 1fr; }
  .keywords { font-size: .8rem; gap: 8px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Logo oficial */
.logo img { height: 34px; width: auto; }
.footer .logo img { height: 40px; }
@media (max-width: 560px) { .logo img { height: 28px; } }
