/* ==========================================================
   MADIX · Marketing Digital
   Identidad: los cuatro colores del foco sobre crema cálido.
   ========================================================== */

:root {
  --orange: #F26A1B;
  --orange-2: #FF8A00;
  --amber: #FFB81C;
  --teal: #0E9AA7;
  --teal-2: #19C2C0;
  --pink: #E5175F;
  --wine: #A60F4B;

  --bg: #FBF7F2;
  --bg-2: #F4EDE4;
  --surface: #FFFFFF;
  --ink: #1B1220;
  --muted: #655A69;
  --line: rgba(27, 18, 32, .11);
  --shadow: 0 1px 2px rgba(27, 18, 32, .05), 0 12px 32px -12px rgba(27, 18, 32, .16);
  --shadow-lg: 0 2px 4px rgba(27, 18, 32, .05), 0 32px 64px -24px rgba(27, 18, 32, .28);

  --night: #150E1A;
  --night-2: #201626;
  --night-line: rgba(255, 255, 255, .12);
  --night-muted: #B9AEBE;

  --grad: linear-gradient(100deg, var(--orange) 0%, var(--orange-2) 30%, var(--pink) 68%, var(--teal) 100%);
  --grad-warm: linear-gradient(120deg, #FF8A00, #F2541B);

  --display: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 20px;
  --r-lg: 28px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

:root[data-theme="dark"] {
  --bg: #120C16;
  --bg-2: #18101D;
  --surface: #1E1524;
  --ink: #FBF4EC;
  --muted: #B3A7B8;
  --line: rgba(255, 255, 255, .11);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 32px 64px -24px rgba(0, 0, 0, .8);
  --night: #0C0810;
  --night-2: #1A1220;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden; transition: background .5s var(--ease), color .5s var(--ease);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--teal-2); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--orange); color: #fff; }

.wrap { width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - var(--gutter) * 2); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 16px; }

/* ---------- Encendido ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 300; display: none; place-items: center; align-content: center; gap: 28px;
  background: var(--night); transition: opacity .6s var(--ease), visibility .6s;
}
.js .preloader { display: grid; }
.preloader__bulb { filter: grayscale(1) brightness(.45); animation: bulbOn 1.1s .15s var(--ease) forwards; }
.preloader__bar { width: 140px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; background: var(--grad); transform: translateX(-100%); animation: load 1.1s .1s var(--ease) forwards; }
.is-ready .preloader { opacity: 0; visibility: hidden; }
@keyframes bulbOn {
  0% { filter: grayscale(1) brightness(.45); transform: scale(.9); }
  45% { filter: grayscale(.2) brightness(1.25) drop-shadow(0 0 40px rgba(255, 170, 40, .8)); transform: scale(1.04); }
  60% { filter: grayscale(.7) brightness(.7); }
  100% { filter: none; transform: scale(1); filter: drop-shadow(0 0 46px rgba(255, 150, 30, .55)); }
}
@keyframes load { to { transform: none; } }

.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; z-index: 1;
  pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(closest-side, rgba(255, 138, 0, .16), transparent 70%);
}
@media (hover: hover) and (pointer: fine) { .cursor-glow.is-on { opacity: 1; } }

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; font: 700 15px/1 var(--body); letter-spacing: -.005em;
  white-space: nowrap; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn--lg { padding: 17px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { color: #fff; background: var(--grad-warm); box-shadow: 0 10px 24px -10px rgba(242, 84, 27, .75), inset 0 1px 0 rgba(255, 255, 255, .28); overflow: hidden; }
.btn--primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:hover { box-shadow: 0 16px 34px -10px rgba(242, 84, 27, .9), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn--primary svg { transition: transform .35s var(--ease); }
.btn--primary:hover svg { transform: translate(3px, -3px); }
.btn--ghost { border: 1.5px solid var(--line); color: var(--ink); background: color-mix(in srgb, var(--surface) 60%, transparent); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: #1B1220; }
.btn--wa { background: #1FAF54; color: #fff; }
.link { color: var(--night-muted); font-weight: 600; font-size: 14px; margin-top: 18px; }
.link:hover { color: #fff; }

/* ---------- Navegación ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 12px var(--gutter); transition: padding .4s var(--ease); }
.nav__inner {
  width: min(1240px, 100%); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 18px; border-radius: 999px; border: 1px solid transparent;
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.nav.is-stuck .nav__inner { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__bulb { width: 40px; height: 40px; object-fit: contain; transition: transform .5s var(--ease), filter .5s; }
.brand:hover .brand__bulb { transform: rotate(-8deg) scale(1.08); filter: drop-shadow(0 0 12px rgba(255, 160, 30, .7)); }
.brand__text { display: grid; gap: 3px; }
.brand__word { width: 108px; height: auto; }
.brand__text small { font: 600 8.5px/1 var(--body); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.nav__links { display: flex; gap: 4px; }
.nav__links a:not(.btn) { white-space: nowrap; padding: 10px 13px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); transition: color .25s, background .25s; }
.nav__links a:not(.btn):hover, .nav__links a.is-active { color: var(--ink); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.nav__cta-mobile { display: none; }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.theme { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--orange); transition: background .3s, transform .4s var(--ease), color .3s; }
.theme:hover { background: color-mix(in srgb, var(--amber) 22%, transparent); transform: rotate(-12deg); }
.theme__rays { transition: opacity .3s; }
[data-theme="dark"] .theme { color: var(--muted); }
[data-theme="dark"] .theme__rays { opacity: 0; }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 16px; } .burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Portada ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 80px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(60% 50% at 78% 38%, color-mix(in srgb, var(--amber) 26%, transparent), transparent 70%),
  radial-gradient(40% 40% at 8% 90%, color-mix(in srgb, var(--teal) 14%, transparent), transparent 70%); }
.hero__ribbons { position: absolute; inset: 0; z-index: -1; opacity: .9; -webkit-mask-image: linear-gradient(100deg, transparent 22%, #000 62%); mask-image: linear-gradient(100deg, transparent 22%, #000 62%); }
.hero__ribbons svg { width: 100%; height: 100%; }
.rib { fill: none; stroke-width: 74; stroke-linecap: round; stroke-dasharray: 2400; stroke-dashoffset: 2400; opacity: .2; }
[data-theme="dark"] .rib { opacity: .3; }
.is-ready .rib { animation: ribIn 2.2s var(--ease) forwards, ribFloat 9s ease-in-out 2.2s infinite alternate; }
.is-ready .rib--2 { animation-delay: .12s, 2.3s; } .is-ready .rib--3 { animation-delay: .24s, 2.4s; } .is-ready .rib--4 { animation-delay: .36s, 2.5s; }
@keyframes ribIn { to { stroke-dashoffset: 0; } }
@keyframes ribFloat { to { transform: translate(18px, -22px); } }

.hero__inner { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 12.5px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 22px; }
.eyebrow--light { color: var(--amber); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }

.hero__title { font-size: clamp(42px, 7.1vw, 104px); font-weight: 800; letter-spacing: -.045em; line-height: .98; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .09em; }
.hero__title .line > span { display: inline-block; }
.js .hero__title .line > span { transform: translateY(112%); }
.is-ready .hero__title .line > span { transform: none; transition: transform 1.1s var(--ease); }
.is-ready .hero__title .line:nth-child(2) > span { transition-delay: .09s; }
.is-ready .hero__title .line:nth-child(3) > span { transition-delay: .18s; }
.rot { font-style: normal; display: inline-block; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: sheen 6s linear infinite; padding-right: .06em; transition: opacity .35s, transform .35s var(--ease), filter .35s; }
.rot.is-out { opacity: 0; transform: translateY(-.25em); filter: blur(6px); }
@keyframes sheen { to { background-position: -200% 0; } }

.hero__lead { max-width: 54ch; margin-top: 26px; font-size: clamp(17px, 1.35vw, 20px); color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.hero__chips b { font-family: var(--display); font-size: 17px; color: var(--ink); margin-right: 4px; }
.js .hero__lead, .js .hero__cta, .js .hero__chips, .js .hero .eyebrow { opacity: 0; transform: translateY(18px); }
.is-ready .hero__lead, .is-ready .hero__cta, .is-ready .hero__chips, .is-ready .hero .eyebrow { opacity: 1; transform: none; transition: opacity .9s var(--ease) .45s, transform .9s var(--ease) .45s; }
.is-ready .hero .eyebrow { transition-delay: 0s; } .is-ready .hero__cta { transition-delay: .58s; } .is-ready .hero__chips { transition-delay: .7s; }

.hero__stage { position: relative; aspect-ratio: 1 / 1.12; display: grid; place-items: center; }
.stage__halo { position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 176, 40, .55), rgba(255, 120, 20, .16) 55%, transparent 72%); filter: blur(10px); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.09); opacity: .8; } }
.stage__bulb { position: relative; width: min(68%, 360px); filter: drop-shadow(0 30px 40px rgba(180, 60, 10, .28)); animation: bob 6s ease-in-out infinite; }
.js .stage__bulb { opacity: 0; scale: .8; }
.is-ready .stage__bulb { opacity: 1; scale: 1; transition: opacity 1s var(--ease) .3s, scale 1.2s var(--ease) .3s; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(1.5deg); } }
.float {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transition: transform .25s ease-out; white-space: nowrap;
}
.js .float { opacity: 0; }
.is-ready .float { opacity: 1; transition: opacity .8s var(--ease) .9s, transform .25s ease-out; }
.float small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.float strong { font: 700 14.5px/1.3 var(--display); }
.float__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none; }
.float__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.float__ico--teal { background: linear-gradient(135deg, var(--teal), var(--teal-2)); }
.float__ico--pink { background: linear-gradient(135deg, var(--wine), var(--pink)); }
.float__ico--amber { background: linear-gradient(135deg, var(--orange), var(--amber)); }
.float--1 { top: 5%; left: -10%; } .float--2 { top: 60%; right: -8%; } .float--3 { bottom: 1%; left: -6%; }

.hero__scroll { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--orange); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Cinta ---------- */
.marquee { overflow: hidden; background: var(--night); color: #fff; padding: 20px 0; transform: rotate(-1.2deg) scale(1.03); margin: -8px 0 0; position: relative; z-index: 2; }
.marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font: 700 clamp(18px, 2.2vw, 28px)/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.marquee i { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); flex: none; }
.marquee i:nth-of-type(4n+2) { background: var(--amber); } .marquee i:nth-of-type(4n+3) { background: var(--pink); } .marquee i:nth-of-type(4n) { background: var(--teal-2); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section__head { max-width: 820px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head h2 { font-size: clamp(31px, 4.5vw, 58px); font-weight: 700; }
.section__sub { margin-top: 18px; font-size: clamp(17px, 1.3vw, 19px); color: var(--muted); max-width: 62ch; }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fine { font-size: 13px; color: var(--muted); margin-top: 16px; }

.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Dolores ---------- */
.pains__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pain { padding: 28px 24px 30px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), opacity .9s var(--ease); }
.pain::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c, var(--orange)); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.pain:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pain:hover::before { transform: none; }
.pain:nth-child(2) { --c: var(--pink); } .pain:nth-child(3) { --c: var(--teal); } .pain:nth-child(4) { --c: var(--amber); }
.pain__n { font: 800 13px/1 var(--display); color: var(--c, var(--orange)); letter-spacing: .08em; }
.pain h3 { font-size: 20px; line-height: 1.25; margin: 16px 0 12px; letter-spacing: -.015em; }
.pain p { font-size: 15.5px; color: var(--muted); }

/* ---------- Servicios ---------- */
.services { background: var(--bg-2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: 14.5px; color: var(--muted); transition: all .3s var(--ease); }
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc {
  --c: var(--orange); position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .45s var(--ease), border-color .3s;
}
.svc::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -120px; top: -120px; background: var(--c); opacity: .09; transition: transform .7s var(--ease), opacity .5s; }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.svc:hover::after { transform: scale(1.7); opacity: .13; }
.svc.is-hidden { display: none; }
.svc.is-picked { border-color: var(--c); box-shadow: 0 0 0 2px var(--c), var(--shadow); }
.svc__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; position: relative; z-index: 1; }
.svc__ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--c); box-shadow: 0 10px 22px -10px var(--c); transition: transform .5s var(--ease); }
.svc:hover .svc__ico { transform: rotate(-8deg) scale(1.08); }
.svc__ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.svc__n { font: 800 14px/1 var(--display); color: var(--muted); opacity: .6; }
.svc h3 { font-size: 22px; letter-spacing: -.02em; position: relative; z-index: 1; }
.svc__desc { margin-top: 10px; font-size: 15.5px; color: var(--muted); position: relative; z-index: 1; }
.svc__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); position: relative; z-index: 1; }
.svc.is-open .svc__more { grid-template-rows: 1fr; }
.svc__more > div { overflow: hidden; }
.svc__more ul { padding-top: 16px; display: grid; gap: 8px; }
.svc__more li { position: relative; padding-left: 26px; font-size: 14.5px; }
.svc__more li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.500 8.300 2.300 2.300 4.700-5' fill='none' stroke='%23fff' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px; }
.svc__ideal { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--c) 10%, transparent); font-size: 14px; }
.svc__ideal b { color: var(--c); }
.svc__foot { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.svc__toggle { font-weight: 700; font-size: 14px; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
.svc__toggle::after { content: "+"; font: 600 18px/1 var(--display); color: var(--c); transition: transform .4s var(--ease); }
.svc.is-open .svc__toggle::after { transform: rotate(45deg); }
.svc__add { padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 700; font-size: 13px; transition: all .3s var(--ease); }
.svc__add:hover { border-color: var(--c); color: var(--c); }
.svc.is-picked .svc__add { background: var(--c); border-color: var(--c); color: #fff; }

/* ---------- Herramientas (siempre de noche) ---------- */
.tools { background: var(--night); color: #fff; border-radius: clamp(24px, 4vw, 56px); margin: 0 clamp(0px, 1.5vw, 20px); overflow: hidden; }
.tools::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 40% at 85% 0%, rgba(229, 23, 95, .22), transparent 70%), radial-gradient(45% 40% at 0% 100%, rgba(14, 154, 167, .24), transparent 70%); pointer-events: none; }
.tools .wrap { position: relative; }
.tools .section__sub, .tools .fine { color: var(--night-muted); }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 6px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid var(--night-line); margin-bottom: 20px; }
.tab { padding: 16px 14px; border-radius: 16px; font: 700 15.5px/1.2 var(--display); color: var(--night-muted); display: flex; align-items: center; justify-content: center; gap: 10px; transition: all .35s var(--ease); }
.tab b { font-size: 12px; opacity: .6; }
.tab:hover { color: #fff; }
.tab.is-on { background: #fff; color: #1B1220; box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .7); }
.tab.is-on b { color: var(--orange); opacity: 1; }
.panel { border-radius: var(--r-lg); background: var(--night-2); border: 1px solid var(--night-line); padding: clamp(22px, 3.5vw, 44px); }
.panel[hidden] { display: none; }
.panel.is-on { animation: panelIn .5s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }

/* Diagnóstico */
.diag { display: grid; grid-template-columns: 1fr 280px; gap: clamp(24px, 4vw, 56px); align-items: center; }
.diag[hidden] { display: none; }
.diag__bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.diag__bar span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 6px; transition: width .5s var(--ease); }
.diag__step { margin-top: 22px; font: 700 12.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.diag__q { font-size: clamp(22px, 2.6vw, 32px); margin: 14px 0 24px; min-height: 2.2em; }
.diag__opts { display: grid; gap: 10px; }
.opt { text-align: left; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--night-line); background: rgba(255, 255, 255, .03); font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 14px; transition: all .3s var(--ease); animation: optIn .5s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.opt::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); flex: none; transition: all .3s var(--ease); }
.opt:hover { border-color: var(--amber); background: rgba(255, 184, 28, .08); transform: translateX(6px); }
.opt:hover::before { border-color: var(--amber); background: var(--amber); box-shadow: inset 0 0 0 4px var(--night-2); }
@keyframes optIn { from { opacity: 0; transform: translateY(10px); } }
.diag__side { text-align: center; }
.gauge { position: relative; width: 220px; margin-inline: auto; }
.gauge svg { transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 14; stroke-linecap: round; }
.gauge__bg { stroke: rgba(255, 255, 255, .09); }
.gauge__fg { stroke: var(--amber); stroke-dasharray: 527.8; stroke-dashoffset: 527.8; transition: stroke-dashoffset 1s var(--ease), stroke .6s; }
.gauge__val { position: absolute; inset: 0; display: grid; place-content: center; }
.gauge__val strong { font: 800 62px/1 var(--display); letter-spacing: -.04em; }
.gauge__val small { color: var(--night-muted); font-size: 13px; font-weight: 600; }
.diag__hint { margin-top: 18px; font-size: 13.5px; color: var(--night-muted); }

.diag-result[hidden] { display: none; }
.diag-result { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; animation: panelIn .6s var(--ease); }
.diag-result__score { text-align: center; position: sticky; top: 100px; }
.diag-result__level { display: inline-block; margin-top: 16px; padding: 8px 16px; border-radius: 999px; font: 700 14px/1 var(--display); background: rgba(255, 255, 255, .1); }
.diag-result h3 { font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 12px; }
.diag-result > div > p { color: var(--night-muted); }
.areas { display: grid; gap: 12px; margin: 26px 0; }
.area { display: grid; grid-template-columns: 150px 1fr 44px; gap: 14px; align-items: center; font-size: 14.5px; font-weight: 600; }
.area i { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .09); overflow: hidden; }
.area em { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--c); transition: width 1.1s var(--ease) .2s; }
.area b { text-align: right; font-family: var(--display); }
.recs { display: grid; gap: 10px; margin-bottom: 26px; }
.rec { display: flex; gap: 14px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--night-line); }
.rec span { width: 30px; height: 30px; border-radius: 50%; background: var(--grad-warm); display: grid; place-items: center; font: 800 13px/1 var(--display); flex: none; }
.rec b { display: block; font-family: var(--display); font-size: 16px; }
.rec p { font-size: 14.5px; color: var(--night-muted); margin-top: 3px; }
.diag-result__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.diag-result__cta .btn--ghost { color: #fff; border-color: var(--night-line); background: transparent; }

/* Campos */
.field { display: grid; gap: 10px; font-weight: 600; font-size: 15px; }
.field > span { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.field > span i { font-style: normal; font-weight: 500; opacity: .6; }
.field output { font: 700 16px/1 var(--display); color: var(--amber); white-space: nowrap; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--orange) var(--p, 50%), rgba(255, 255, 255, .12) var(--p, 50%)); outline-offset: 6px; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 5px solid var(--orange); box-shadow: 0 4px 12px rgba(0, 0, 0, .4); transition: transform .2s; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 5px solid var(--orange); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
.field--text input, .field--text select, .field--text textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--night-line); background: rgba(255, 255, 255, .05); color: #fff;
  font-weight: 500; font-size: 16px; transition: border-color .25s, background .25s, box-shadow .25s; resize: vertical;
}
.field--text select option { color: #1B1220; }
.field--text input::placeholder, .field--text textarea::placeholder { color: rgba(255, 255, 255, .38); }
.field--text input:focus, .field--text select:focus, .field--text textarea:focus { outline: none; border-color: var(--amber); background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 4px rgba(255, 184, 28, .16); }
.field--text .is-bad { border-color: #FF6B8B; }

/* Calculadora */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.calc__form { display: grid; gap: 26px; align-content: start; }
.funnel { display: grid; gap: 10px; }
.funnel__row { display: grid; grid-template-columns: 84px 1fr 70px; gap: 12px; align-items: center; font-size: 14px; font-weight: 600; color: var(--night-muted); }
.funnel__row i { height: 34px; border-radius: 10px; background: var(--grad-warm); width: 100%; transform-origin: 0 50%; transition: width .6s var(--ease); min-width: 6px; }
.funnel__row:nth-child(2) i { background: linear-gradient(120deg, var(--wine), var(--pink)); }
.funnel__row:nth-child(3) i { background: linear-gradient(120deg, var(--teal), var(--teal-2)); }
.funnel__row b { font: 800 19px/1 var(--display); color: #fff; text-align: right; }
.calc__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.calc__kpis div { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--night-line); }
.calc__kpis small { display: block; font-size: 12px; font-weight: 600; color: var(--night-muted); line-height: 1.3; min-height: 2.6em; }
.calc__kpis strong { font: 800 clamp(20px, 2.2vw, 28px)/1.1 var(--display); letter-spacing: -.03em; }
.calc__verdict { margin-top: 20px; padding: 16px 18px; border-radius: 16px; border-left: 4px solid var(--amber); background: rgba(255, 184, 28, .09); font-size: 15px; }

/* Vista Google */
.serp { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 56px); }
.serp__form { display: grid; gap: 16px; align-content: start; }
.serp__meters { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 6px; }
.meter { font-size: 13px; font-weight: 600; color: var(--night-muted); }
.meter i { display: block; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); margin-top: 8px; overflow: hidden; }
.meter em { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--teal-2); transition: width .3s, background .3s; }
.meter em.is-over { background: #FF6B8B; }
.serp__preview { background: #fff; color: #202124; border-radius: 20px; padding: clamp(18px, 2.5vw, 28px); font-family: Arial, sans-serif; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.gbar { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 999px; border: 1px solid #dfe1e5; color: #5f6368; font-size: 15px; margin-bottom: 22px; box-shadow: 0 1px 6px rgba(32, 33, 36, .12); }
.gbar span { color: #202124; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gres__site { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.gres__fav { width: 28px; height: 28px; border-radius: 50%; background: var(--grad-warm); color: #fff; display: grid; place-items: center; font: 700 13px/1 Arial; flex: none; }
.gres__site b { display: block; font-size: 14px; font-weight: 400; }
.gres__site small { font-size: 12px; color: #4d5156; word-break: break-all; }
.gres__title { display: block; font-size: 20px; line-height: 1.3; color: #1a0dab; }
.gres__title:hover { text-decoration: underline; }
.gres__desc { font-size: 14px; line-height: 1.58; color: #4d5156; margin-top: 4px; }
.gres__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 14px; color: #1a0dab; }
.gres--ghost { margin-top: 24px; display: grid; gap: 8px; opacity: .5; }
.gres--ghost i { height: 10px; border-radius: 6px; background: #e8eaed; }
.gres--ghost i:first-child { width: 30%; } .gres--ghost i:nth-child(2) { width: 62%; height: 14px; background: #d2e3fc; } .gres--ghost i:last-child { width: 90%; }
.serp__preview .fine { color: #70757a; }

/* ---------- Método ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: s; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 3px; border-radius: 3px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 0; top: 27px; height: 3px; border-radius: 3px; width: calc(var(--prog, 0) * 100%); background: var(--grad); transition: width .2s linear; }
.step { position: relative; z-index: 1; }
.step__n { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 800 20px/1 var(--display); background: var(--surface); border: 3px solid var(--line); color: var(--muted); transition: all .6s var(--ease); margin-bottom: 22px; }
.step.is-in .step__n { border-color: var(--orange); color: #fff; background: var(--grad-warm); box-shadow: 0 10px 24px -10px rgba(242, 84, 27, .8); transition-delay: calc(var(--d, 0s) + .2s); }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--muted); }
.step em { display: inline-block; margin-top: 14px; padding: 6px 12px; border-radius: 999px; font: 700 12.5px/1.2 var(--body); font-style: normal; color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, transparent); }

/* ---------- Compromisos ---------- */
.promises { background: var(--bg-2); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; perspective: 1200px; }
.card { --c1: var(--orange); --c2: var(--orange-2); position: relative; padding: 30px 26px 32px; border-radius: var(--r-lg); color: #fff; background: linear-gradient(150deg, var(--c1), var(--c2)); overflow: hidden; transform-style: preserve-3d; transition: transform .25s ease-out, opacity .9s var(--ease), box-shadow .4s; box-shadow: 0 24px 44px -26px var(--c1); min-height: 300px; display: flex; flex-direction: column; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .28), transparent 60%); opacity: 0; transition: opacity .3s; }
.card:hover::before { opacity: 1; }
.card::after { content: ""; position: absolute; right: -40px; bottom: -70px; width: 220px; height: 70px; border-radius: 40px; background: rgba(255, 255, 255, .16); transform: rotate(-38deg); box-shadow: 0 -96px 0 rgba(255, 255, 255, .1); }
.card--teal { --c1: #0B7F8C; --c2: var(--teal-2); }
.card--pink { --c1: var(--wine); --c2: #FF2E7E; }
.card--amber { --c1: #F08A00; --c2: #FFC21A; }
.card .big { font: 800 clamp(54px, 6vw, 84px)/1 var(--display); letter-spacing: -.05em; margin-bottom: auto; position: relative; }
.card .big small { font-size: .32em; letter-spacing: -.01em; }
.card h3 { font-size: 21px; margin: 26px 0 10px; position: relative; }
.card p { font-size: 15px; opacity: .92; position: relative; }

/* ---------- Arma tu plan ---------- */
.builder__grid { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
.builder__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pick { --c: var(--orange); text-align: left; padding: 18px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); display: grid; gap: 12px; transition: all .35s var(--ease); position: relative; }
.pick:hover { transform: translateY(-3px); border-color: var(--c); }
.pick__ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); transition: all .35s var(--ease); }
.pick__ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pick b { font: 700 15.5px/1.25 var(--display); letter-spacing: -.01em; }
.pick::after { content: ""; position: absolute; right: 14px; top: 14px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); transition: all .3s var(--ease); }
.pick[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--surface)); box-shadow: 0 12px 26px -16px var(--c); }
.pick[aria-pressed="true"] .pick__ico { background: var(--c); color: #fff; transform: scale(1.06) rotate(-6deg); }
.pick[aria-pressed="true"]::after { border-color: var(--c); background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.500 8.300 2.300 2.300 4.700-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px; }
.builder__sum { position: sticky; top: 96px; padding: 26px; border-radius: var(--r-lg); background: var(--night); color: #fff; box-shadow: var(--shadow-lg); }
.tier { display: flex; align-items: center; gap: 16px; }
.tier__bulb { width: 72px; height: 72px; flex: none; display: grid; place-items: center; filter: grayscale(1) brightness(.5); transition: filter .6s var(--ease), transform .6s var(--ease); }
.tier__bulb[data-level="1"] { filter: grayscale(.5) brightness(.85); }
.tier__bulb[data-level="2"] { filter: drop-shadow(0 0 12px rgba(255, 160, 30, .5)); }
.tier__bulb[data-level="3"] { filter: drop-shadow(0 0 22px rgba(255, 170, 40, .85)); transform: scale(1.08); }
.tier__bulb[data-level="4"] { filter: drop-shadow(0 0 34px rgba(255, 190, 60, 1)) brightness(1.08); transform: scale(1.14) rotate(-4deg); }
.tier small { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.tier strong { display: block; font: 700 22px/1.15 var(--display); margin-top: 6px; }
.tier__bar { position: relative; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .1); margin: 24px 0 14px; }
.tier__bar span { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--grad); transition: width .6s var(--ease); }
.tier__bar i { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--night); }
.tier__bar i:nth-of-type(1) { left: 22.2%; } .tier__bar i:nth-of-type(2) { left: 44.4%; } .tier__bar i:nth-of-type(3) { left: 66.6%; }
.tier__note { font-size: 14.5px; color: var(--night-muted); min-height: 3.2em; }
.builder__list { margin: 16px 0 20px; display: grid; gap: 6px; }
.builder__list li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; animation: optIn .4s var(--ease); }
.builder__list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--orange)); flex: none; }
.btn.is-off { opacity: .45; pointer-events: none; }

/* ---------- Preguntas ---------- */
.faq { background: var(--bg-2); }
.acc { display: grid; gap: 10px; }
.acc details { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); transition: box-shadow .4s, border-color .3s; }
.acc details[open] { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--orange) 45%, transparent); }
.acc summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; font: 700 18px/1.3 var(--display); letter-spacing: -.015em; position: relative; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: color-mix(in srgb, var(--orange) 14%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 9v10M9 14h10' stroke='%23F26A1B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/28px; transition: transform .4s var(--ease); }
.acc details[open] summary::after { transform: rotate(135deg); }
.acc details > div { padding: 0 24px 24px; color: var(--muted); max-width: 68ch; animation: panelIn .4s var(--ease); }

/* ---------- Contacto (siempre de noche) ---------- */
.contact { background: var(--night); color: #fff; overflow: hidden; }
.contact__ribbons { position: absolute; inset: 0; pointer-events: none; }
.contact__ribbons i { position: absolute; left: -20%; width: 90%; height: 64px; border-radius: 64px; transform: rotate(-32deg); transform-origin: 0 50%; opacity: .16; animation: slide 12s ease-in-out infinite alternate; }
.contact__ribbons i:nth-child(1) { bottom: -4%; background: var(--orange); }
.contact__ribbons i:nth-child(2) { bottom: -18%; background: var(--amber); animation-delay: -3s; }
.contact__ribbons i:nth-child(3) { bottom: -32%; background: var(--pink); animation-delay: -6s; }
.contact__ribbons i:nth-child(4) { bottom: -46%; background: var(--teal-2); animation-delay: -9s; }
@keyframes slide { to { translate: 60px -34px; } }
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact h2 { font-size: clamp(32px, 4.4vw, 56px); margin-bottom: 20px; }
.contact__copy > p { color: var(--night-muted); font-size: 18px; max-width: 46ch; }
.contact__points { margin-top: 28px; display: grid; gap: 12px; }
.contact__points li { position: relative; padding-left: 34px; font-weight: 600; }
.contact__points li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad-warm) ; }
.contact__points li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.contact__direct { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.contact__direct a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--night-line); font-weight: 700; font-size: 15px; transition: all .3s; }
.contact__direct a:hover { background: #fff; color: #1B1220; }
.form { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: rgba(255, 255, 255, .05); border: 1px solid var(--night-line); backdrop-filter: blur(14px); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .fine { color: var(--night-muted); margin: 0; text-align: center; }
.form__attach { font-size: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 184, 28, .1); border: 1px dashed rgba(255, 184, 28, .5); }
.form__attach[hidden], .form__done[hidden] { display: none; }
.form__done { padding: 18px; border-radius: 16px; background: rgba(25, 194, 192, .1); border: 1px solid rgba(25, 194, 192, .4); animation: panelIn .5s var(--ease); }
.form__done pre { margin: 12px 0; padding: 14px; border-radius: 12px; background: rgba(0, 0, 0, .35); font: 500 13.5px/1.55 var(--body); white-space: pre-wrap; word-break: break-word; max-height: 220px; overflow: auto; }
.form__done p { font-size: 15px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Pie ---------- */
.footer { background: var(--night); color: #fff; padding: 56px 0 28px; border-top: 1px solid var(--night-line); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.brand--footer .brand__bulb { width: 52px; height: 52px; }
.brand--footer .brand__word { width: 140px; }
.brand--footer small { color: var(--night-muted); font-size: 10px; }
.footer__tag { margin-top: 20px; font: 600 20px/1.3 var(--display); color: var(--night-muted); }
.footer h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px; font-family: var(--body); }
.footer nav a { display: block; padding: 6px 0; color: var(--night-muted); font-size: 15px; transition: color .25s, transform .25s; }
.footer nav a:hover { color: #fff; transform: translateX(4px); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 13.5px; color: var(--night-muted); }
.totop:hover { color: #fff; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 150; transform: translate(-50%, 80px); padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow-lg); opacity: 0; transition: transform .5s var(--ease), opacity .4s; pointer-events: none; max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Adaptable ---------- */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .pains__grid, .bento { grid-template-columns: repeat(2, 1fr); }
  .builder__grid { grid-template-columns: 1fr; }
  .builder__sum { position: static; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before, .steps::after { left: 27px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .steps::after { height: calc(var(--prog, 0) * 100%); width: 3px; }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding-bottom: 34px; }
  .step__n { margin: 0; }
}
@media (max-width: 1120px) and (min-width: 921px) {
  .nav__links a:not(.btn) { padding: 10px 9px; font-size: 14px; }
  .nav__links { gap: 0; }
}
@media (max-width: 920px) {
  .nav__links { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 6px; background: var(--bg); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .nav__links a:not(.btn) { font: 700 30px/1.2 var(--display); color: var(--ink); padding: 12px 20px; }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav.is-open .nav__inner { background: none; border-color: transparent; box-shadow: none; backdrop-filter: none; }
  .nav__cta-mobile { display: inline-flex; margin-top: 18px; padding: 17px 28px; font-size: 16px; }
  .nav__cta { display: none; }
  .burger { display: block; }
  .hero { padding-top: 104px; min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__stage { order: -1; max-width: 300px; margin-inline: auto; width: 100%; aspect-ratio: 1 / 1; }
  .stage__bulb { width: 54%; }
  .float { padding: 8px 12px 8px 8px; border-radius: 14px; }
  .float strong { font-size: 12.5px; } .float small { font-size: 9.5px; }
  .float__ico { width: 32px; height: 32px; border-radius: 10px; }
  .float--1 { left: -6%; top: 4%; } .float--2 { right: -8%; top: 46%; } .float--3 { left: -2%; bottom: 2%; }
  .hero__scroll { display: none; }
  .diag, .diag-result, .calc, .serp, .contact__grid { grid-template-columns: 1fr; }
  .diag__side { order: -1; }
  .gauge { width: 150px; } .gauge__val strong { font-size: 42px; }
  .diag-result__score { position: static; }
  .diag__hint { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .svc-grid, .pains__grid, .bento { grid-template-columns: 1fr; }
  .card { min-height: 0; } .card .big { margin-bottom: 8px; }
  .builder__opts { grid-template-columns: 1fr 1fr; }
  .pick { padding: 14px; } .pick b { font-size: 14px; padding-right: 0; }
  .tabs { grid-template-columns: 1fr; }
  .tab { justify-content: flex-start; padding: 14px 16px; }
  .calc__kpis { grid-template-columns: 1fr; }
  .calc__kpis small { min-height: 0; margin-bottom: 4px; }
  .form__row, .serp__meters { grid-template-columns: 1fr; }
  .area { grid-template-columns: 104px 1fr 36px; font-size: 13px; }
  .hero__cta .btn { width: 100%; }
  .hero__chips { gap: 8px; flex-direction: column; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .brand__word { width: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .rib { stroke-dashoffset: 0; }
}
