/* ==========================================================
   LOPEZ QUITO E.I.R.L. · Sistema de diseño compartido
   Los sitios de proyecto sobreescriben --brand / --brand-2 / --brand-ink
   ========================================================== */
:root {
  --ink: #0a1020;
  --navy: #0f1d3a;
  --navy-2: #16294f;
  --brand: #ff860c;
  --brand-2: #22d3ee;
  --brand-ink: #2a1300;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #1b2437;
  --muted: #5d6882;
  --line: #e3e7f0;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(15, 29, 58, .06), 0 12px 32px -12px rgba(15, 29, 58, .18);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", "Inter", system-ui, sans-serif;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  line-height: 1.65; font-size: 16.5px; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); }
p { margin: 0 0 1em; }
.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  --b: var(--brand); display: inline-flex; align-items: center; gap: .6em; cursor: pointer; border: 0;
  padding: 14px 26px; border-radius: 999px; font: 600 15.5px var(--font); color: var(--brand-ink);
  background: var(--b); position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: 0 10px 24px -10px var(--b);
}
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); z-index: -1; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -10px var(--b); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn.ghost { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn.outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.outline:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn.sm { padding: 10px 20px; font-size: 14.5px; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .4s, box-shadow .4s, padding .4s; padding: 18px 0; color: #fff; }
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 16, 32, .86); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 8px 30px -12px rgba(0,0,0,.5); opacity: 0; transition: opacity .4s; }
.header.scrolled { padding: 10px 0; }
.header.scrolled::before { opacity: 1; }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; font: 700 18px var(--display); letter-spacing: -.01em; }
.logo img, .logo svg { width: 40px; height: 40px; }
.logo small { display: block; font: 500 10.5px var(--font); letter-spacing: .16em; opacity: .7; margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 9px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; opacity: .86; transition: background .3s, opacity .3s; }
.nav a:hover, .nav a.active { background: rgba(255,255,255,.12); opacity: 1; }
.nav .btn { margin-left: 8px; opacity: 1; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; color: inherit; border-radius: 12px; }
.burger span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px auto; border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; background: radial-gradient(1200px 600px at 80% -10%, #1d3a7a 0%, transparent 60%), radial-gradient(900px 500px at -10% 110%, #0e4d63 0%, transparent 55%), var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 30%, transparent 75%); }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-block: 160px 110px; min-height: 100svh; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 10px; border-radius: 999px; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); font-size: 13.5px; font-weight: 500; margin-bottom: 26px; }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 var(--brand); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); color: #fff; font-weight: 700; letter-spacing: -.035em; }
.grad { background: linear-gradient(100deg, var(--brand), #ffb35c 45%, var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.hero p.lead { font-size: 1.2rem; color: rgba(255,255,255,.76); max-width: 38em; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 40px 60px rgba(0,0,0,.45)); }
.float { animation: float 7s ease-in-out infinite; }
.float.d2 { animation-delay: -2s; animation-duration: 9s; } .float.d3 { animation-delay: -4s; animation-duration: 8s; }
@keyframes float { 50% { transform: translateY(-14px); } }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); transform: translateX(-50%); }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ---------- Secciones ---------- */
section { padding-block: 110px; position: relative; }
.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker { font: 600 13px var(--font); letter-spacing: .16em; text-transform: uppercase; color: var(--brand); display: inline-block; margin-bottom: 14px; }
.kicker.dark { color: #c2570c; }
.sec-head h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
.sec-head p { color: var(--muted); font-size: 1.1rem; }
.dark-sec { background: var(--ink); color: #dfe5f4; }
.dark-sec h2, .dark-sec h3 { color: #fff; }
.dark-sec .sec-head p { color: rgba(255,255,255,.66); }
.alt { background: #fff; }

/* Franja de cifras */
.stats { margin-top: -64px; padding: 0; z-index: 5; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 34px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border: 0; }
.stat b { display: block; font: 700 2.6rem var(--display); color: var(--navy); letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: .95rem; }

/* Tarjetas de servicios */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); transform-style: preserve-3d; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,138,13,.16), transparent 45%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.card:hover { transform: translateY(-8px); box-shadow: 0 2px 4px rgba(15,29,58,.06), 0 30px 50px -18px rgba(15,29,58,.3); }
.card:hover::before { opacity: 1; }
.card .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(140deg, var(--navy), var(--navy-2)); color: var(--brand); box-shadow: 0 10px 20px -8px rgba(15,29,58,.55); transition: transform .5s var(--ease); }
.card:hover .ico { transform: rotate(-8deg) scale(1.08); }
.card .ico svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.28rem; }
.card ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; color: var(--muted); font-size: .96rem; }
.card li { position: relative; padding-left: 22px; }
.card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--brand); border-radius: 2px; }

/* Estado: licitaciones */
.state { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.state-list { display: grid; gap: 14px; margin-top: 28px; }
.state-item { display: flex; gap: 16px; padding: 18px 20px; background: rgba(255,255,255,.05); border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.09); transition: background .4s, transform .4s var(--ease); }
.state-item:hover { background: rgba(255,255,255,.09); transform: translateX(8px); }
.state-item .n { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font: 700 15px var(--display); }
.state-item b { display: block; color: #fff; font-family: var(--display); }
.state-item span { font-size: .93rem; color: rgba(255,255,255,.66); }
.panel { background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02)); border-radius: 28px; padding: 38px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.panel h3 { font-size: 1.3rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); transition: background .3s, color .3s; }
.chip:hover { background: var(--brand); color: var(--brand-ink); }
.note { font-size: .86rem; color: rgba(255,255,255,.5); margin-top: 22px; }

/* Productos */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prod { background: var(--bg); border-radius: 18px; padding: 26px 22px; transition: background .4s, transform .4s var(--ease), box-shadow .4s; }
.prod:hover { background: #fff; transform: translateY(-6px); box-shadow: var(--shadow); }
.prod svg { width: 34px; height: 34px; color: var(--brand); margin-bottom: 14px; stroke-width: 1.6; }
.prod b { display: block; font-family: var(--display); margin-bottom: 6px; }
.prod span { font-size: .9rem; color: var(--muted); line-height: 1.5; display: block; }

/* Proyectos / apps */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.app { --c: var(--brand); display: flex; flex-direction: column; border-radius: 28px; padding: 34px; background: var(--surface); box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .55s var(--ease), box-shadow .55s var(--ease); }
.app::before { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -140px; border-radius: 50%; background: var(--c); opacity: .13; transition: transform .8s var(--ease), opacity .5s; }
.app:hover { transform: translateY(-8px); box-shadow: 0 2px 4px rgba(15,29,58,.06), 0 34px 60px -20px rgba(15,29,58,.35); }
.app:hover::before { transform: scale(1.35); opacity: .2; }
.app-top { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; position: relative; }
.app-top img { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; box-shadow: 0 12px 24px -10px var(--c); }
.app h3 { font-size: 1.5rem; margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 7px; font: 600 12.5px var(--font); padding: 5px 12px; border-radius: 999px; margin-top: 6px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.live { background: #dcfce7; color: #15803d; }
.badge.review { background: #fef3c7; color: #a16207; }
.badge.test { background: #dbeafe; color: #1d4ed8; }
.badge.dev { background: #ede9fe; color: #6d28d9; }
.badge.live::before, .badge.review::before { animation: pulse2 2s infinite; }
@keyframes pulse2 { 50% { opacity: .3; } }
.app p { color: var(--muted); position: relative; }
.app .meta { margin: auto 0 0; padding-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; position: relative; }
.app .mail { font-size: .9rem; color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.link-arrow svg { width: 18px; transition: transform .35s var(--ease); }
.app:hover .link-arrow svg, .link-arrow:hover svg { transform: translateX(6px); }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { padding: 30px 26px; border-radius: 22px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); counter-increment: s; position: relative; transition: transform .5s var(--ease), background .4s; }
.step:hover { transform: translateY(-6px); background: rgba(255,255,255,.09); }
.step::before { content: "0" counter(s); font: 700 3rem var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--brand); display: block; margin-bottom: 14px; line-height: 1; }
.step p { color: rgba(255,255,255,.66); font-size: .96rem; margin: 0; }

/* Marquee */
.marquee { overflow: hidden; padding-block: 26px; background: var(--navy); mask-image: none; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marq 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font: 600 15px var(--display); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); display: inline-flex; align-items: center; gap: 56px; white-space: nowrap; }
.marquee span::after { content: "✦"; color: var(--brand); }
@keyframes marq { to { transform: translateX(-50%); } }

/* Contacto */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 18px; margin-top: 30px; }
.ci { display: flex; gap: 16px; align-items: flex-start; }
.ci .ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--navy); color: var(--brand); }
.ci .ico svg { width: 22px; height: 22px; }
.ci b { display: block; font-family: var(--display); }
.ci span, .ci a { color: var(--muted); font-size: .97rem; }
.ci a:hover { color: var(--ink); text-decoration: underline; }
form.form { background: var(--surface); padding: 38px; border-radius: 28px; box-shadow: var(--shadow); display: grid; gap: 18px; position: relative; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; }
.field input, .field textarea, .field select { width: 100%; padding: 22px 16px 8px; border: 1.5px solid var(--line); border-radius: 14px; font: 500 16px var(--font); color: var(--text); background: var(--bg); transition: border-color .3s, box-shadow .3s, background .3s; }
.field textarea { min-height: 140px; resize: vertical; }
.field label { position: absolute; left: 17px; top: 16px; font-size: 15.5px; color: var(--muted); pointer-events: none; transition: all .25s var(--ease); transform-origin: left; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 7px; font-size: 12px; font-weight: 600; color: var(--brand); filter: brightness(.8); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.consent a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-msg { padding: 14px 18px; border-radius: 14px; font-size: .96rem; display: none; }
.form-msg.show { display: block; animation: pop .5s var(--ease); }
.form-msg.ok { background: #dcfce7; color: #166534; } .form-msg.err { background: #fee2e2; color: #991b1b; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.btn[disabled] { opacity: .7; pointer-events: none; }
.spin { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rot .7s linear infinite; display: none; }
.btn.loading .spin { display: inline-block; } .btn.loading svg { display: none; }
@keyframes rot { to { transform: rotate(360deg); } }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 70px 0 28px; font-size: .94rem; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: .85rem; color: rgba(255,255,255,.5); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal.left { transform: translateX(-40px); } .reveal.right { transform: translateX(40px); }
.reveal.left.in, .reveal.right.in { transform: none; }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transform: scaleX(0); transform-origin: left; z-index: 300; }

/* Volver arriba */
.totop { position: fixed; right: 22px; bottom: 22px; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; box-shadow: 0 12px 24px -8px rgba(0,0,0,.4); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .4s, transform .4s var(--ease); z-index: 90; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop svg { width: 22px; }

/* Páginas legales */
.legal-hero { background: var(--ink); color: #fff; padding: 150px 0 70px; }
.legal-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.legal-hero p { color: rgba(255,255,255,.7); margin: 0; }
.legal { padding-block: 70px; }
.legal .container { max-width: 820px; }
.legal h2 { font-size: 1.45rem; margin-top: 2.2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; } .legal li { margin-bottom: .4em; }
.legal a { color: #b45309; text-decoration: underline; }
.legal .box { background: #fff; border-radius: 16px; padding: 22px 26px; box-shadow: var(--shadow); margin: 1.4em 0; }
.legal table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--navy); color: #fff; font-family: var(--display); font-weight: 600; }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; color: #fff; background: var(--ink); padding: 24px; }
.nf h1 { font-size: clamp(5rem, 18vw, 11rem); color: transparent; -webkit-text-stroke: 2px var(--brand); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; padding-block: 140px 100px; min-height: auto; }
  .hero-art { max-width: 520px; margin-inline: auto; }
  .stats .grid { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .state, .contact { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .apps { grid-template-columns: 1fr; }
  .footer .cols { grid-template-columns: 1fr 1fr; } .footer .cols > :first-child { grid-column: 1 / -1; }
  .burger { display: block; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(86vw, 340px); background: var(--ink); flex-direction: column; align-items: stretch; padding: 90px 22px 30px; gap: 4px; transform: translateX(105%); transition: transform .5s var(--ease); box-shadow: -30px 0 60px rgba(0,0,0,.5); }
  .nav.open { transform: none; }
  .nav a { padding: 14px 16px; font-size: 17px; } .nav .btn { margin: 14px 0 0; justify-content: center; }
  .header .burger { position: relative; z-index: 2; }
}
@media (max-width: 620px) {
  section { padding-block: 76px; }
  .row { grid-template-columns: 1fr; }
  .prod-grid, .steps { grid-template-columns: 1fr; }
  .stat { padding: 24px 18px; } .stat b { font-size: 2rem; }
  form.form, .panel { padding: 26px 20px; }
  .cards { grid-template-columns: 1fr; }
  .app { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Logo oficial en SVG (variante de letras blancas sobre fondos oscuros) */
.logo.brand { gap: 0; }
.logo.brand img { width: auto; height: 56px; transition: height .4s var(--ease); }
.header.scrolled .logo.brand img { height: 46px; }
.footer .logo.brand img { height: 84px; }

@media (max-width: 620px) { .logo.brand img { height: 46px; } .header.scrolled .logo.brand img { height: 40px; } }

/* ---------- Desarrollo a medida (web y apps) ---------- */
.dev-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.chips.light .chip { background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.chips.light .chip:hover { background: var(--brand); color: var(--brand-ink); }
.devmock { position: relative; min-height: 420px; }
.browser { position: absolute; inset: 0 8% 14% 0; border-radius: 20px; background: #fff; box-shadow: 0 40px 70px -28px rgba(10,16,32,.45), 0 0 0 1px var(--line); overflow: hidden; }
.browser .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--ink); }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .browser .bar i:nth-child(2) { background: #febc2e; } .browser .bar i:nth-child(3) { background: #28c840; }
.browser .bar span { margin-left: 12px; flex: 1; padding: 4px 14px; border-radius: 8px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); font-size: 12px; }
.browser .page { padding: 18px; display: grid; gap: 14px; }
.hero-b { border-radius: 14px; padding: 22px; background: linear-gradient(135deg, var(--ink), var(--navy-2)); display: grid; gap: 9px; }
.hero-b b { height: 14px; width: 60%; border-radius: 7px; background: #fff; } .hero-b u { height: 9px; width: 85%; border-radius: 5px; background: rgba(255,255,255,.35); } .hero-b em { height: 26px; width: 30%; border-radius: 13px; background: var(--brand); margin-top: 6px; }
.cards-b { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } .cards-b i { height: 64px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); position: relative; } .cards-b i::before { content: ""; position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; border-radius: 7px; background: var(--brand); opacity: .9; }
.lines-b { display: grid; gap: 8px; } .lines-b i { height: 9px; border-radius: 5px; background: var(--line); } .lines-b i:last-child { width: 62%; }
.phone2 { position: absolute; right: 0; bottom: 0; width: 38%; aspect-ratio: 9 / 18; border-radius: 30px; padding: 8px; background: #0b0b12; box-shadow: 0 30px 50px -18px rgba(0,0,0,.6), inset 0 0 0 2px #2a2a38; }
.phone2 .scr { height: 100%; border-radius: 23px; background: linear-gradient(180deg, var(--navy-2), var(--ink)); padding: 22px 12px 12px; display: grid; align-content: start; gap: 9px; }
.top-b { height: 10px; width: 55%; border-radius: 5px; background: #fff; } .tile-b { height: 70px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.row-b { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .row-b i { height: 40px; border-radius: 10px; background: rgba(255,255,255,.1); } .btn-b { height: 28px; border-radius: 14px; background: var(--brand); margin-top: 4px; }
.badge-d { position: absolute; left: 4%; bottom: 4%; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; background: var(--ink); color: #fff; font: 600 14px var(--display); box-shadow: 0 24px 40px -14px rgba(0,0,0,.5); }
.badge-d svg { width: 22px; height: 22px; color: var(--brand); }
.dev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.dev-item { display: flex; gap: 16px; padding: 24px; border-radius: 20px; background: var(--bg); transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .4s; }
.dev-item:hover { transform: translateY(-6px); background: #fff; box-shadow: var(--shadow); }
.dev-item .ico { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(140deg, var(--navy), var(--navy-2)); color: var(--brand); }
.dev-item .ico svg { width: 24px; height: 24px; } .dev-item b { display: block; font-family: var(--display); margin-bottom: 4px; } .dev-item span { font-size: .93rem; color: var(--muted); line-height: 1.5; display: block; }
.dev-flow { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 36px; border-radius: 20px; background: var(--ink); color: #fff; overflow: hidden; }
.dev-flow > div { display: flex; align-items: center; gap: 14px; padding: 22px 24px; position: relative; } .dev-flow > div + div { box-shadow: inset 1px 0 0 rgba(255,255,255,.1); }
.dev-flow b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font: 700 15px var(--display); flex: none; } .dev-flow span { font-weight: 500; font-size: .96rem; }
@media (max-width: 980px) { .dev-layout { grid-template-columns: 1fr; } .devmock { max-width: 520px; width: 100%; margin-inline: auto; } .dev-grid { grid-template-columns: repeat(2, 1fr); } .dev-flow { grid-template-columns: repeat(2, 1fr); } .dev-flow > div:nth-child(3) { box-shadow: none; } .dev-flow > div:nth-child(n+3) { box-shadow: inset 0 1px 0 rgba(255,255,255,.1); } .dev-flow > div:nth-child(4) { box-shadow: inset 1px 1px 0 rgba(255,255,255,.1); } }
@media (max-width: 620px) { .dev-grid { grid-template-columns: 1fr; } .devmock { min-height: 360px; } .cta-row .btn { width: 100%; justify-content: center; } .dev-flow { grid-template-columns: 1fr; } .dev-flow > div + div, .dev-flow > div:nth-child(n) { box-shadow: inset 0 1px 0 rgba(255,255,255,.1); } .dev-flow > div:first-child { box-shadow: none; } }

/* Menú lateral desde 1100 px (con 6 enlaces ya no cabe en una línea) */
@media (max-width: 1100px) {
  .burger { display: block; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(86vw, 340px); background: var(--ink); flex-direction: column; align-items: stretch; padding: 90px 22px 30px; gap: 4px; transform: translateX(105%); transition: transform .5s var(--ease); box-shadow: -30px 0 60px rgba(0,0,0,.5); }
  .nav.open { transform: none; }
  .nav a { padding: 14px 16px; font-size: 17px; } .nav .btn { margin: 14px 0 0; justify-content: center; }
  .header .burger { position: relative; z-index: 2; }
}
@media (max-width: 1240px) and (min-width: 1101px) { .nav a { padding: 9px 10px; font-size: 14px; } .nav .btn { margin-left: 4px; } }

@media (max-width: 1100px) {
  .nav:not(.open) { box-shadow: none; visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s; }
  .nav.open { visibility: visible; transition: transform .5s var(--ease); }
}
