/* KGR Dev - estilos
   Los colores y fuentes están en :root, cambiando eso cambia toda la página.
   Las reglas para celular están al final de cada parte (@media).
   Si editas este archivo sube el ?v= de styles.css en el index.html */
:root {
  --bg: #05070d;
  --bg-2: #0a0f1c;
  --surface: #0e1526;
  --surface-2: #131c33;
  --border: rgba(120, 170, 255, .14);
  --border-strong: rgba(56, 189, 248, .45);
  --text: #e6eefc;
  --muted: #8b9bba;
  --blue: #2563eb;
  --blue-2: #3b82f6;
  --cyan: #22d3ee;
  --sky: #38bdf8;
  --grad: linear-gradient(120deg, var(--blue-2) 0%, var(--sky) 55%, var(--cyan) 100%);
  --glow: 0 0 0 1px rgba(56, 189, 248, .35), 0 10px 40px -10px rgba(34, 211, 238, .45);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--sky); text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
strong { color: #fff; font-weight: 600; }
::selection { background: var(--sky); color: var(--bg); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 32px); }
.muted { color: var(--muted); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sky); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn--primary { background: var(--grad); color: #03101f; box-shadow: 0 8px 30px -8px rgba(34, 211, 238, .6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(34, 211, 238, .8); }
.btn--ghost { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--border-strong); color: #fff; background: rgba(56,189,248,.08); }
.btn--sm { padding: .6em 1.1em; font-size: .88rem; }
.btn--lg { padding: 1em 1.7em; font-size: 1rem; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 700; }
.logo__mark {
  font-family: var(--mono); font-size: .85rem; font-weight: 700;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--grad); color: #03101f; box-shadow: 0 6px 20px -6px rgba(34,211,238,.7);
}
.logo__text { font-size: 1.25rem; letter-spacing: -.01em; }
.logo__text b { color: var(--sky); font-weight: 700; margin-left: 2px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(5, 7, 13, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--border); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a:not(.btn) { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav__links a:not(.btn):hover, .nav__links a.is-current { color: #fff; }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 80px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(56,189,248,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(56,189,248,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: float 14s ease-in-out infinite; }
.orb--1 { width: 520px; height: 520px; background: #1d4ed8; top: -160px; right: -120px; }
.orb--2 { width: 420px; height: 420px; background: #0891b2; bottom: -180px; left: -140px; animation-delay: -7s; opacity: .4; }
@keyframes float { 50% { transform: translate(30px, 40px) scale(1.08); } }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em; font: 500 .85rem var(--mono); color: var(--sky);
  padding: .45em 1em; border: 1px solid var(--border); border-radius: 999px; background: rgba(56,189,248,.06);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hero h1 { margin-top: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 580px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 2rem 0 2.6rem; }
.hero__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 28px; list-style: none; padding: 0; margin: 0; }
.hero__stats li { display: flex; align-items: center; gap: 12px; }
.hero__stats b { font-size: 2.3rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.hero__stats li:first-child b::before { content: "-"; }
.hero__stats li:not(:nth-child(2)) b::after { content: "%"; }
.hero__stats span { font-size: .85rem; color: var(--muted); line-height: 1.3; }

.hero__visual { position: relative; }
.window {
  background: linear-gradient(180deg, rgba(19,28,51,.92), rgba(10,15,28,.95));
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), var(--glow);
}
.window__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window__bar i:nth-child(2) { background: #febc2e; }
.window__bar i:nth-child(3) { background: #28c840; }
.window__bar span { margin-left: 10px; font: .78rem var(--mono); color: var(--muted); }
.code { margin: 0; padding: 22px 22px 26px; min-height: 360px; font: .86rem/1.75 var(--mono); color: #c7d5f0; white-space: pre-wrap; }
.code .k { color: #60a5fa; } .code .s { color: #67e8f9; } .code .f { color: #a5b4fc; } .code .c { color: #4b5d82; } .code .n { color: #f0abfc; }
.caret { display: inline-block; width: 8px; height: 1.1em; background: var(--cyan); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: rgba(14,21,38,.9); border: 1px solid var(--border); border-radius: 14px;
  backdrop-filter: blur(10px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.8);
  animation: bob 6s ease-in-out infinite;
}
.float-card .ic { font-size: 1.4rem; }
.float-card b { display: block; font-size: 1.15rem; color: #fff; line-height: 1.1; }
.float-card small { color: var(--muted); font-size: .78rem; }
.float-card--a { left: -34px; bottom: 40px; }
.float-card--b { right: -22px; top: -22px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Marquee ---------- */
.stack { border-block: 1px solid var(--border); background: var(--bg-2); padding: 22px 0; overflow: hidden; }
.marquee { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: scroll 40s linear infinite; }
.marquee__track span { font: 500 .95rem var(--mono); color: var(--muted); white-space: nowrap; }
.marquee__track span::before { content: "▹ "; color: var(--sky); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__head p:last-child { color: var(--muted); font-size: 1.08rem; }
.kicker { font: 500 .9rem var(--mono); color: var(--cyan); margin-bottom: .8em; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; padding: 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(14,21,38,.5));
  border: 1px solid var(--border); transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--glow); }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(56,189,248,.1); border: 1px solid rgba(56,189,248,.25);
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--sky); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Portfolio ---------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter {
  font: 500 .9rem var(--font); padding: .55em 1.2em; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); border: 1px solid var(--border); transition: all .2s;
}
.filter:hover { color: #fff; border-color: var(--border-strong); }
.filter.is-active { background: var(--grad); color: #03101f; border-color: transparent; font-weight: 600; }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px; }
.project {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .35s, border-color .35s, box-shadow .35s, opacity .35s;
}
.project:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--glow); }
.project.is-hidden { display: none; }
.project__preview { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.project__preview img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s; }
.project:hover .project__preview img, .project:hover .mock { transform: scale(1.04); }
.project__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.project__tag { font: 500 .75rem var(--mono); color: var(--cyan); text-transform: uppercase; letter-spacing: .08em; }
.project__body h3 { margin: .4em 0 .45em; font-size: 1.35rem; }
a.project__preview { display: block; }
.project__preview img { display: block; }
.project__visit {
  position: absolute; right: 14px; bottom: 14px; padding: 7px 12px; border-radius: 99px;
  font: 500 .75rem var(--mono); color: var(--text); background: rgba(5,7,13,.82); border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.project:hover .project__visit { opacity: 1; transform: none; }
@media (hover: none) { .project__visit { opacity: 1; transform: none; } }
.project__name { color: inherit; text-decoration: none; transition: color .2s; }
.project__name span { font-size: .8em; color: var(--sky); display: inline-block; transition: transform .2s; }
.project__name:hover, .project__name:focus-visible { color: var(--sky); }
.project__name:hover span { transform: translate(2px, -2px); }
.project__domain { align-self: flex-start; margin: -.2em 0 .8em; font: .8rem var(--mono); color: var(--sky); text-decoration: none; }
.project__domain:hover { text-decoration: underline; }
.project__body p { color: var(--muted); font-size: .95rem; }
.project__feat { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 6px; font-size: .9rem; color: #c3d0ea; }
.project__feat li::before { content: "✓"; color: var(--cyan); margin-right: .6em; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.chip { font: .75rem var(--mono); padding: .35em .8em; border-radius: 999px; background: rgba(56,189,248,.08); color: var(--sky); border: 1px solid rgba(56,189,248,.18); }
.project__links { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* mocks en css, se ven solo si un proyecto no tiene captura */
.mock { position: absolute; inset: 14px 14px 0; border-radius: 10px 10px 0 0; overflow: hidden; background: #fff; transition: transform .6s; box-shadow: 0 -10px 40px -10px rgba(0,0,0,.6); }
.mock__bar { height: 22px; display: flex; align-items: center; gap: 5px; padding: 0 9px; background: #e9edf3; }
.mock__bar i { width: 7px; height: 7px; border-radius: 50%; background: #c5ccd8; }
.mock__url { margin-left: 10px; flex: 1; height: 12px; border-radius: 6px; background: #fff; font: 8px/12px var(--mono); color: #7a869c; padding-left: 6px; }
/* MecaNet */
.mock--meca { background: #0f1115; }
.mock--meca .m-nav { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid #23262d; }
.mock--meca .m-logo { font: 700 13px var(--font); color: #fff; } .mock--meca .m-logo b { color: #f97316; }
.mock--meca .m-pill { width: 54px; height: 14px; border-radius: 4px; background: #f97316; }
.mock--meca .m-body { display: grid; grid-template-columns: 70px 1fr; height: 100%; }
.mock--meca .m-side { background: #15181e; padding: 10px 8px; display: grid; gap: 7px; align-content: start; }
.mock--meca .m-side i { height: 8px; border-radius: 3px; background: #2a2e37; } .mock--meca .m-side i:first-child { background: #f97316; }
.mock--meca .m-main { padding: 12px; display: grid; gap: 9px; align-content: start; }
.mock--meca .m-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.mock--meca .m-kpis div { height: 34px; border-radius: 6px; background: #1b1f27; border: 1px solid #262a33; position: relative; }
.mock--meca .m-kpis div::after { content: ""; position: absolute; left: 7px; bottom: 7px; width: 40%; height: 7px; border-radius: 2px; background: #f97316; opacity: .8; }
.mock--meca .m-row { height: 20px; border-radius: 5px; background: #1b1f27; border-left: 3px solid #f97316; }
.mock--meca .m-row:nth-child(odd) { border-left-color: #22c55e; }
/* Pili velas */
.mock--pili { background: #fbf6ef; }
.mock--pili .p-hero { height: 70px; background: linear-gradient(120deg, #e8cfc0, #f4e3d7); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.mock--pili .p-hero b { font: italic 600 15px Georgia, serif; color: #7b4f3a; }
.mock--pili .p-hero i { width: 80px; height: 6px; border-radius: 3px; background: #c9a08a; }
.mock--pili .p-cats { display: flex; gap: 6px; justify-content: center; padding: 9px; }
.mock--pili .p-cats i { width: 38px; height: 11px; border-radius: 6px; background: #ead8cb; } .mock--pili .p-cats i:first-child { background: #b77d62; }
.mock--pili .p-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 12px; }
.mock--pili .p-grid div { background: #fff; border-radius: 7px; padding: 5px; box-shadow: 0 2px 6px rgba(123,79,58,.12); }
.mock--pili .p-grid div::before { content: ""; display: block; height: 44px; border-radius: 5px; background: radial-gradient(circle at 50% 30%, #fde68a 0 6px, transparent 7px), linear-gradient(#f1e2d6, #e4cbb8); }
.mock--pili .p-grid div::after { content: ""; display: block; height: 5px; width: 70%; margin-top: 5px; border-radius: 3px; background: #d6b8a5; }
/* Placeholder "tu proyecto" */
.project--cta { border-style: dashed; background: rgba(14,21,38,.4); }
.project--cta .project__preview { display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, rgba(34,211,238,.12), transparent 70%); }
.project--cta .plus { font: 300 4rem/1 var(--font); color: var(--sky); width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; border: 1px dashed var(--border-strong); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; position: relative; }
.step { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); position: relative; }
.step__n { font: 700 2.4rem var(--mono); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 30px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); transition: transform .3s, border-color .3s;
}
.plan:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.plan--featured { background: linear-gradient(180deg, #10203f, var(--surface)); border-color: var(--border-strong); box-shadow: var(--glow); }
.plan__badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #03101f; font: 700 .72rem var(--mono); padding: .45em 1em; border-radius: 999px; white-space: nowrap; letter-spacing: .04em; }
.plan h3 { font-size: 1.25rem; margin-bottom: .2em; }
.plan__for { color: var(--muted); font-size: .88rem; min-height: 2.6em; margin-bottom: 1em; }
.plan__price { font-size: 2.1rem; font-weight: 700; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.plan__market { font-size: .82rem; color: var(--muted); margin: .6em 0 1.4em; }
.plan__market s { color: #8b9bba; }
.plan__market b { color: #4ade80; font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.6em; display: grid; gap: 9px; font-size: .92rem; color: #c3d0ea; }
.plan li { display: flex; gap: .6em; }
.plan li::before { content: "✓"; color: var(--cyan); font-weight: 700; }
.plan .btn { margin-top: auto; width: 100%; }

/* ---------- Quote ---------- */
.extras { margin-top: 56px; padding: 36px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.extras h3 { font-size: 1.4rem; }
.quote { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; margin-top: 18px; }
.quote__extras { border: 0; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quote__extras legend { font-size: .88rem; color: var(--muted); margin-bottom: 10px; padding: 0; }
.check {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-2); font-size: .9rem; transition: border-color .2s, background .2s;
}
.check:hover { border-color: var(--border-strong); }
.check input { accent-color: var(--cyan); width: 17px; height: 17px; flex-shrink: 0; }
.check span { flex: 1; }
.check em { font-style: normal; font: .78rem var(--mono); color: var(--sky); white-space: nowrap; }
.check:has(input:checked) { border-color: var(--border-strong); background: rgba(56,189,248,.08); }
.quote__total {
  display: flex; flex-direction: column; gap: 10px; justify-content: center; text-align: center;
  padding: 28px; border-radius: var(--radius); background: radial-gradient(circle at 50% 0%, rgba(34,211,238,.15), transparent 70%), var(--bg-2); border: 1px solid var(--border-strong);
}
.quote__total output { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.quote__total small { font-size: .8rem; }

/* Detalle de mantención y costos de terceros */
.quote__info { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.quote__box { padding: 20px 22px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--border); }
.quote__box h4 {font-size: .98rem; margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.quote__box h4 .muted { font-weight: 400; font-size: .85rem; }
.tag { font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 99px; color: #86efac; background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.35); }
.small { font-size: .8rem; margin: 12px 0 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem; color: #c3d0ea; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }
.costs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.costs li { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 1px dashed var(--border); }
.costs li:last-child { border-bottom: 0; padding-bottom: 0; }
.costs b { font-size: .9rem; }
.costs p { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.costs span { font: .8rem var(--mono); color: var(--sky); white-space: nowrap; text-align: right; }
@media (max-width: 760px) {
  .quote__info { grid-template-columns: 1fr; }
  .costs li { flex-direction: column; gap: 4px; }
  .costs span { text-align: left; white-space: normal; }
}

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; font-size: .9rem; color: var(--muted); }
.field em { font-style: normal; opacity: .7; }
input, select, textarea {
  width: 100%; font: 400 1rem var(--font); color: var(--text); background: var(--bg-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8em 1em; transition: border-color .2s, box-shadow .2s;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sky) 50%), linear-gradient(135deg, var(--sky) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.6em; }
select option { background: var(--bg-2); }
textarea { resize: vertical; min-height: 120px; }
input::placeholder, textarea::placeholder { color: #55647f; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(56,189,248,.18); }
.is-invalid { border-color: #f87171 !important; }

/* ---------- Compare ---------- */
.compare { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.compare table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .95rem; }
.compare th, .compare td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--border); }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare th[scope="row"] { text-align: left; font-weight: 500; color: #c3d0ea; }
.compare thead th { font-weight: 600; color: var(--muted); font-size: .9rem; }
.compare .hl { background: rgba(56,189,248,.07); color: #fff; font-weight: 600; }
.compare thead .hl { color: var(--cyan); font-size: 1rem; }
.compare .yes::before { content: "✓ "; color: #4ade80; font-weight: 700; }
.compare .no { color: #6b7a99; }
.compare .no::before { content: "✕ "; color: #f87171; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.about__photo { position: relative; max-width: 400px; justify-self: center; width: 100%; }
.avatar, .about__photo img {
  aspect-ratio: 4 / 5; width: 100%; border-radius: 24px; object-fit: cover;
  border: 1px solid var(--border-strong); box-shadow: var(--glow);
}
.avatar {
  display: grid; place-items: center; position: relative; overflow: hidden;
  background: radial-gradient(circle at 30% 20%, rgba(59,130,246,.55), transparent 55%), radial-gradient(circle at 80% 90%, rgba(34,211,238,.45), transparent 55%), var(--surface);
}
.avatar::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px; }
.avatar span { position: relative; font: 700 6rem var(--mono); color: #fff; letter-spacing: -.04em; text-shadow: 0 10px 40px rgba(34,211,238,.6); }
.about__badge { position: absolute; bottom: -22px; right: -18px; padding: 14px 20px; border-radius: 14px; background: rgba(14,21,38,.95); border: 1px solid var(--border-strong); box-shadow: 0 20px 40px -20px #000; }
.about__badge b { display: block; color: #fff; }
.about__badge small { color: var(--sky); font: .78rem var(--mono); }
.about__copy > p { color: #b4c2dc; }
.skills { list-style: none; padding: 0; margin: 1.6em 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.skills li { padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.skills b { display: block; color: var(--cyan); font: 600 .85rem var(--mono); margin-bottom: 4px; }
.skills span { font-size: .88rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--mono); color: var(--sky); transition: transform .25s; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--muted); }
.faq details p:not(:last-child) { padding-bottom: 12px; }
.faq details ul { margin: 0 24px 14px; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; }
.faq details ul b { color: var(--text, #e6edf7); font-weight: 600; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact__copy > p { color: var(--muted); font-size: 1.08rem; }
.contact__list { list-style: none; padding: 0; margin: 2em 0 0; display: grid; gap: 14px; }
.contact__list a, .contact__list div {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: border-color .2s, transform .2s;
}
.contact__list a:hover { border-color: var(--border-strong); transform: translateX(4px); }
.contact__list .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgba(56,189,248,.1); color: var(--sky); flex-shrink: 0; }
.contact__list .ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact__list small { display: block; color: var(--muted); font-size: .8rem; }
.form { padding: 34px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form__actions .btn { flex: 1; }
.form__error { margin: 0; color: #fca5a5; font-size: .9rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 40px 0; background: var(--bg); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer p { margin: 0; font-size: .88rem; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; box-shadow: 0 10px 30px -6px rgba(37,211,102,.6);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .plans { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero__inner, .about, .contact, .quote { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; width: 100%; justify-self: center; margin-top: 10px; }
  .float-card--a { left: -8px; } .float-card--b { right: -8px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about { gap: 56px; }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 16px 24px; background: rgba(5,7,13,.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform .35s ease; visibility: hidden;
  }
  .nav__links.is-open { transform: none; visibility: visible; }
  .nav__links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav__links .btn { margin-top: 16px; }
  .nav.menu-open { background: rgba(5,7,13,.97); }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 80px 0; }
  .cards, .plans, .steps, .skills, .quote__extras, .form__row { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero__stats li { flex-direction: column; align-items: flex-start; gap: 2px; }
  .hero__stats b { font-size: 1.7rem; }
  .hero__stats span { font-size: .78rem; }
  .code { font-size: .74rem; min-height: 300px; padding: 16px; }
  .float-card { display: none; }
  .extras, .form { padding: 22px; }
  .about__badge { right: 8px; }
  .avatar span { font-size: 4.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Presupuesto inteligente
   ========================================================= */
.section--glow { background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(37, 99, 235, .18), transparent 70%), var(--bg); border-top: 1px solid var(--border); }
.smart { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.smart__form { position: sticky; top: calc(var(--nav-h) + 16px); }
.smart__form > .btn { width: 100%; }
.smart__form > small { text-align: center; font-size: .8rem; }
.counter { justify-self: end; font: .75rem var(--mono); }
.spark { display: inline-block; }
.smart__form.is-loading .spark { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.chips-select { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-select legend { font-size: .9rem; color: var(--muted); margin-bottom: 10px; padding: 0; }
.chips-select legend em { font-style: normal; opacity: .7; }
.chips-select label { cursor: pointer; position: relative; }
.chips-select input { position: absolute; inset: 0; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.chips-select span {
  display: inline-block; padding: .5em 1em; border-radius: 999px; font-size: .88rem;
  border: 1px solid var(--border); background: var(--bg-2); color: #c3d0ea; transition: all .2s;
}
.chips-select label:hover span { border-color: var(--border-strong); }
.chips-select input:checked + span { background: rgba(56,189,248,.14); border-color: var(--sky); color: #fff; }
.chips-select input:checked + span::before { content: "✓ "; color: var(--cyan); }
.chips-select input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }

.smart__result {
  min-height: 100%; border-radius: var(--radius); border: 1px solid var(--border-strong);
  background: radial-gradient(circle at 50% 0%, rgba(34,211,238,.1), transparent 60%), var(--surface);
  box-shadow: var(--glow); padding: 32px; overflow: hidden;
}
.smart__empty { min-height: 420px; display: grid; place-content: center; text-align: center; gap: 6px; padding: 20px; }
.smart__icon { font-size: 2.6rem; color: var(--cyan); margin: 0 auto 6px; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; border: 1px dashed var(--border-strong); }
.smart__empty h3 { margin: 0; }

.smart__loading { display: grid; gap: 14px; }
.smart__loading p { font: .9rem var(--mono); color: var(--sky); margin: 0 0 6px; }
.skel { height: 14px; border-radius: 7px; background: linear-gradient(90deg, #131c33 0%, #1d2b4d 50%, #131c33 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.skel--lg { height: 56px; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.quote-out { display: grid; gap: 22px; animation: fadeUp .5s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.quote-out__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge { font: 600 .72rem var(--mono); padding: .4em .9em; border-radius: 999px; letter-spacing: .04em; background: rgba(56,189,248,.12); color: var(--sky); border: 1px solid rgba(56,189,248,.3); }
.quote-out__resumen { color: #c3d0ea; margin: 0; }
.quote-out h4 { font: 600 .8rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.q-plan { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 12px; background: linear-gradient(120deg, rgba(37,99,235,.22), rgba(34,211,238,.08)); border: 1px solid var(--border-strong); }
.q-plan b { font-size: 1.2rem; color: #fff; display: block; }
.q-plan p { margin: 4px 0 0; font-size: .9rem; color: #c3d0ea; }
.q-price { font-weight: 700; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.q-price small { color: var(--muted); font-weight: 500; font-size: .75rem; }
.q-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.q-item { display: flex; justify-content: space-between; gap: 14px; padding: 12px 16px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); }
.q-item b { color: #fff; font-weight: 600; font-size: .95rem; }
.q-item p { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.q-total { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; padding-top: 18px; border-top: 1px dashed var(--border-strong); }
.q-total output { font-size: clamp(1.9rem, 3.5vw, 2.5rem); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; font-variant-numeric: tabular-nums; }
.q-total small { display: block; color: var(--muted); font-size: .82rem; margin-top: 6px; }
.q-meta { text-align: right; font-size: .88rem; color: #c3d0ea; }
.q-meta b { display: block; color: #fff; font-size: 1rem; }
.q-alt { padding: 16px 18px; border-radius: 12px; border: 1px dashed rgba(74, 222, 128, .45); background: rgba(74, 222, 128, .06); }
.q-alt h4 { color: #86efac; }
.q-alt__row { display: flex; justify-content: space-between; gap: 16px; }
.q-alt__row b { color: #fff; }
.q-alt__row p { margin: 4px 0 0; font-size: .88rem; color: #c3d0ea; }
.q-ideas { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; color: #c3d0ea; }
.q-ideas li { display: flex; gap: .7em; }
.q-ideas li::before { content: "💡"; flex-shrink: 0; }
.q-ideas--ask li::before { content: "?"; font: 700 .8rem var(--mono); color: var(--bg); background: var(--sky); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; margin-top: 2px; }
.q-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.q-actions .btn { flex: 1 1 200px; }
.q-note { font-size: .78rem; color: var(--muted); margin: 0; text-align: center; }

@media (max-width: 960px) {
  .smart { grid-template-columns: 1fr; }
  .smart__form { position: static; }
  .smart__empty { min-height: 220px; }
}
@media (max-width: 640px) {
  .smart__result { padding: 20px; }
  .q-plan, .q-item, .q-alt__row { flex-direction: column; gap: 6px; }
  .q-meta { text-align: left; }
}

/* ---------- links a las páginas de servicio ---------- */
.card { display: flex; flex-direction: column; }
.card__link { margin-top: 16px; font-weight: 600; font-size: .92rem; align-self: flex-start; }
.card__link:hover { color: #fff; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; font-size: .9rem; }
.footer__links a { color: var(--muted); }
.footer__links a:hover { color: #fff; }

/* ---------- páginas de servicio (paginas-web.html, tiendas-online.html, sistemas-a-medida.html) ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 72px) 0 72px; }
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 860px; font-size: clamp(2rem, 4.4vw, 3.3rem); }
.page-hero .lead { max-width: 720px; }
.page-hero .hero__cta { margin-bottom: 0; }
.crumbs { font: .82rem var(--mono); color: var(--muted); margin-bottom: 1.4em; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 .5em; opacity: .6; }
.plans--2 { grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; }
.plans--1 { grid-template-columns: minmax(0, 440px); justify-content: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.box { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.box h3 { margin-bottom: .8em; }
.box > p { color: var(--muted); }
.box .ticks { font-size: .97rem; }
.prose { max-width: 760px; margin: 0 auto; color: #b4c2dc; }
.prose h2 { color: var(--text); margin-top: 1.4em; font-size: clamp(1.5rem, 3vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.case { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.case img { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.case p { color: var(--muted); }
.cta-band { text-align: center; padding: 56px 24px; border-radius: var(--radius); border: 1px solid var(--border-strong); background: radial-gradient(circle at 50% 0%, rgba(34,211,238,.12), transparent 65%), var(--surface); box-shadow: var(--glow); }
.cta-band p { color: var(--muted); max-width: 620px; margin: 0 auto 1.6em; }
.cta-band .hero__cta { justify-content: center; margin: 0; }
@media (max-width: 820px) {
  .split, .case, .plans--2 { grid-template-columns: 1fr; }
}
/* links dentro de un texto: subrayados para que se distingan sin depender del color */
.prose a, .cta-band p a, .small a { text-decoration: underline; text-underline-offset: 3px; }
