/* ===== Codeico v3 — estilos =====
   Azul #004AAD y cian #5CE1E6 salen del logo. La tipografía pesada y el guion bajo
   (cursor) son la firma de la marca. */
:root {
  --blue: #004aad;
  --blue-dark: #00357d;
  --deep: #031b45;
  --cyan: #5ce1e6;
  --cyan-soft: #d9f8fa;
  --paper: #f2f6fc;
  --white: #fff;
  --ink: #0a1f44;
  --muted: #4d5f82;
  --line: #d6dfee;
  --display: "Red Hat Display", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; list-style: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--blue); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

/* ----- Header ----- */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter); background: var(--blue); }
.brand { display: inline-flex; }
.logo { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 30px); font-weight: 500; color: #fff; }
.nav a { text-decoration: none; }
.nav a:not(.nav-cta):hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; }
.nav-cta { background: var(--cyan); color: var(--deep); padding: 9px 18px; border-radius: 999px; font-weight: 600; }
.nav-cta:hover { background: #fff; }
@media (max-width: 760px) { .nav a:not(.nav-cta) { display: none; } .logo { height: 26px; } }

/* ----- Botones ----- */
.btn { display: inline-block; font: 600 1rem/1 var(--body); padding: 16px 26px; border-radius: 999px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.btn-cyan { background: var(--cyan); color: var(--deep); }
.btn-cyan:hover { background: #fff; }
.btn-line { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-line:hover { background: #fff; color: var(--blue); border-color: #fff; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }

/* ----- Hero ----- */
.hero {
  position: relative; color: #fff; background: var(--blue); overflow: hidden;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(to bottom, transparent, rgba(0,53,125,.55)); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: clamp(48px, 8vw, 110px) var(--gutter) clamp(56px, 8vw, 110px); display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 24px; text-wrap: balance; }
.cursor { color: var(--cyan); margin-left: .03em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lead { font-size: 1.2rem; color: #d9e6fb; max-width: 50ch; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Terminal */
.term { background: var(--deep); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 70px -30px rgba(0,10,40,.7); border: 1px solid rgba(92,225,230,.25); }
.term-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.08); flex-wrap: wrap; }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { font: 600 .85rem/1 var(--body); color: #b7c9ea; background: transparent; border: 1.5px solid rgba(255,255,255,.2); padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.tab:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.tab.is-on { background: var(--cyan); color: var(--deep); border-color: var(--cyan); }
.term-body { margin: 0; padding: 22px 22px 26px; min-height: 330px; font: 400 clamp(.78rem, 1.5vw, .95rem)/1.75 var(--mono); color: #cfe0fb; white-space: pre-wrap; word-break: break-word; }
.term-body .cmd { color: #fff; }
.term-body .pr { color: var(--cyan); }
.term-body .ok { color: var(--cyan); }
.term-body .dim { color: #7f95bd; }
.term-body .caret { display: inline-block; width: .6em; height: 1.05em; background: var(--cyan); vertical-align: -.18em; margin-left: 2px; animation: blink 1.1s steps(1) infinite; }

/* ----- Secciones ----- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(60px, 8vw, 112px) var(--gutter); scroll-margin-top: 56px; }
.section-tint { max-width: none; background: #e6eef9; }
.wrap { max-width: var(--max); margin: 0 auto; }
.section-title { font-family: var(--display); font-weight: 900; letter-spacing: -.03em; line-height: 1.04; font-size: clamp(2rem, 4.2vw, 3.3rem); margin: 0 0 clamp(32px, 5vw, 56px); max-width: 20ch; text-wrap: balance; color: var(--deep); }
.us { color: var(--blue); margin-left: .02em; }
.on-dark { color: #fff; }
.on-dark .us { color: var(--cyan); }

/* Servicios (bento) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { border-radius: 24px; padding: clamp(24px, 3vw, 40px); position: relative; overflow: hidden; }
.tile h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -.02em; line-height: 1.1; margin: 0 0 12px; }
.tile p { margin: 0; max-width: 46ch; }
.t-startups { grid-column: span 4; background: var(--blue); color: #fff; }
.t-startups p { color: #d9e6fb; }
.mini-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.mini-list li { padding-left: 28px; position: relative; font-weight: 500; }
.mini-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 4px; background: var(--cyan); border-radius: 2px; }
.t-market { grid-column: span 2; background: var(--cyan); color: var(--deep); }
.viz-market { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 24px; }
.viz-market span { aspect-ratio: 1; border-radius: 10px; background: rgba(3,27,69,.14); }
.viz-market span:nth-child(2), .viz-market span:nth-child(5) { background: var(--blue); }
.t-apps { grid-column: span 3; background: var(--white); border: 2px solid var(--blue); }
.t-apps p { color: var(--muted); }
.t-mkt { grid-column: span 3; background: var(--deep); color: #fff; }
.t-mkt p { color: #b7c9ea; }
@media (max-width: 860px) { .t-startups, .t-market, .t-apps, .t-mkt { grid-column: span 6; } }

/* Proyectos */
.projects { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(48px, 7vw, 96px); }
.project { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.project-flip .shot { order: 2; }
@media (max-width: 860px) { .project { grid-template-columns: 1fr; } .project-flip .shot { order: 0; } }
.p-main h3 { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -.03em; line-height: 1; margin: 0 0 8px; color: var(--deep); }
.p-kind { color: var(--blue); font-weight: 600; margin: 0 0 14px; }
.p-main p { max-width: 56ch; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; padding: 0; }
.chips li { background: var(--white); border: 1.5px solid var(--blue); color: var(--blue-dark); border-radius: 999px; padding: 4px 14px; font-size: .9rem; font-weight: 500; }
.p-link { font-weight: 700; color: var(--blue); text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--cyan); }
.p-link:hover { text-decoration-color: var(--blue); }

/* Maquetas de navegador */
.shot { background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -32px rgba(0,53,125,.55); border: 1px solid var(--line); }
.b-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef3fb; border-bottom: 1px solid var(--line); }
.b-bar i { width: 9px; height: 9px; border-radius: 50%; background: #b8c6df; }
.b-bar span { margin-left: 10px; font-size: .75rem; color: var(--muted); background: #fff; padding: 2px 12px; border-radius: 999px; }
.b-body { padding: 22px; min-height: 270px; display: grid; gap: 14px; align-content: start; }
.m-title { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; margin: 0; color: var(--deep); }
.m-chips, .m-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.m-chips b, .m-filters b, .m-grid b { font-size: .78rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--cyan-soft); color: var(--blue-dark); }
.m-filters b:first-child { background: var(--blue); color: #fff; }
.m-photo { display: flex; align-items: center; gap: 12px; padding: 14px; border: 2px dashed #9db9e6; border-radius: 12px; color: var(--muted); font-size: .85rem; }
.m-photo span { width: 38px; height: 38px; border-radius: 8px; background: var(--cyan); flex: none; }
.m-photo em { font-style: normal; }
.m-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.m-badge { font-size: .78rem; font-weight: 600; color: var(--blue-dark); background: var(--cyan-soft); padding: 5px 12px; border-radius: 999px; }
.m-btn { font-size: .85rem; font-weight: 600; background: var(--blue); color: #fff; padding: 9px 16px; border-radius: 999px; }
.m-list { display: grid; gap: 10px; }
.m-apt { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.m-img { width: 64px; height: 48px; border-radius: 8px; background: linear-gradient(135deg, var(--blue), #3b7fd8); flex: none; }
.m-img.alt { background: linear-gradient(135deg, var(--cyan), #9eeff2); }
.m-apt div { display: grid; gap: 6px; flex: 1; }
.m-apt i { height: 8px; border-radius: 6px; background: #d6dfee; display: block; }
.m-apt .l1 { width: 70%; } .m-apt .l2 { width: 45%; }
.m-apt b { font-size: .75rem; color: var(--blue); }
.m-account { background: var(--blue); color: #fff; padding: 16px; border-radius: 12px; display: grid; gap: 2px; }
.m-account span { font-size: .8rem; color: #cfe0fb; }
.m-account strong { font-family: var(--display); font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.m-grid b { border-radius: 10px; padding: 12px; text-align: center; }
.m-notice { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); padding: 10px 12px; background: #eef3fb; border-radius: 10px; }
.m-notice i { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; }

/* Proceso (secuencia real) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 4px solid var(--blue); }
.steps li { counter-increment: s; padding: 28px 24px 8px 0; position: relative; }
.steps li::before { content: counter(s); position: absolute; top: -22px; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--cyan); color: var(--deep); font-family: var(--display); font-weight: 900; display: grid; place-items: center; }
.steps li { padding-top: 34px; }
.steps h3 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; margin: 0 0 8px; color: var(--deep); }
.steps p { margin: 0; color: var(--muted); max-width: 30ch; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; border-top: 0; border-left: 4px solid var(--blue); } .steps li { padding: 0 0 0 28px; } .steps li::before { top: 0; left: -22px; } }

/* Contacto */
.contact { background: var(--blue); background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 48px 48px; color: #fff; scroll-margin-top: 56px; }
.contact-in { max-width: var(--max); margin: 0 auto; padding: clamp(60px, 8vw, 112px) var(--gutter); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-in { grid-template-columns: 1fr; } }
.contact-copy > p { font-size: 1.15rem; color: #d9e6fb; max-width: 40ch; }
.contact-points { padding-left: 1.1em; font-weight: 500; }
.contact-points li { margin-bottom: 6px; }
.contact-points li::marker { color: var(--cyan); }
.form { background: var(--white); color: var(--ink); border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: 0 30px 60px -30px rgba(0,10,40,.6); display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; padding: 0; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea { font: inherit; color: inherit; width: 100%; padding: 13px 14px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(92,225,230,.6); }
.field.invalid input, .field.invalid textarea { border-color: #c4003a; }
.field .err { color: #b00032; font-size: .88rem; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices legend { width: 100%; margin-bottom: 6px; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 500; transition: background .15s, color .15s, border-color .15s; }
.choice input:checked + span { background: var(--blue); color: #fff; border-color: var(--blue); }
.choice input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.form-status { margin: 0; font-weight: 500; min-height: 1.4em; }
.form-status.ok { color: #0a7a3d; }
.form-status.bad { color: #b00032; }

/* Pie */
.foot { background: var(--deep); color: #b7c9ea; padding: 40px var(--gutter); display: grid; gap: 8px; justify-items: start; }
.logo-foot { height: 28px; width: auto; margin-bottom: 6px; }
.foot p { margin: 0; }
.foot .copy { font-size: .9rem; opacity: .75; }
