/* ==========================================================================
   IbrahimDelkairo.com — sistema de diseño
   Paleta: tinta #0E1330 · cobalto #2F45FF · mango #FFB21E · papel #F7F8FC
   Tipos: Bricolage Grotesque (titulares) · Onest (texto) · JetBrains Mono (datos)
   ========================================================================== */

:root {
  --ink: #0E1330;
  --ink-2: #1B2147;
  --ink-soft: #4A5172;
  --muted: #6B7290;
  --line: #DDE1EE;
  --line-soft: #EBEEF6;
  --paper: #F7F8FC;
  --white: #FFFFFF;
  --cobalt: #2F45FF;
  --cobalt-dark: #1F31D6;
  --cobalt-tint: #E9ECFF;
  --mango: #FFB21E;
  --mango-tint: #FFF4DC;
  --wa: #1FAF5A;
  --wa-dark: #168A46;

  --font-display: "Bricolage Grotesque", "Onest", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --shadow-s: 0 1px 2px rgba(14, 19, 48, .06), 0 2px 8px rgba(14, 19, 48, .05);
  --shadow: 0 10px 30px -12px rgba(14, 19, 48, .18), 0 2px 6px rgba(14, 19, 48, .05);
  --shadow-l: 0 30px 60px -20px rgba(14, 19, 48, .35);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--mango); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase; color: var(--cobalt);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.on-dark .eyebrow { color: var(--mango); }
.h-xl { font-size: clamp(36px, 4.9vw, 62px); letter-spacing: -0.035em; line-height: 1.0; }
.h-l { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.03em; }
.h-m { font-size: clamp(24px, 2.8vw, 34px); }
.h-s { font-size: 21px; letter-spacing: -0.01em; line-height: 1.2; font-weight: 700; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); line-height: 1.6; }
.on-dark .lead { color: #B9BEDA; }
.mark {
  background: linear-gradient(transparent 62%, var(--mango) 62%, var(--mango) 92%, transparent 92%);
  padding-inline: .06em;
}
.on-dark .mark { background: none; color: var(--mango); }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--cobalt); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(47, 69, 255, .55); }
.btn:active { transform: translateY(0); }
.btn--wa { --bg: var(--wa); }
.btn--wa:hover { box-shadow: 0 12px 24px -10px rgba(31, 175, 90, .6); background: var(--wa-dark); }
.btn--ink { --bg: var(--ink); }
.btn--mango { --bg: var(--mango); --fg: var(--ink); }
.btn--mango:hover { box-shadow: 0 12px 24px -10px rgba(255, 178, 30, .7); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; }
.on-dark .btn--ghost { --fg: #fff; border-color: rgba(255,255,255,.25); }
.on-dark .btn--ghost:hover { border-color: #fff; }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 14.5px; border-radius: 11px; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--cobalt); text-decoration: none; }
.link-arrow .icon { transition: transform .18s ease; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header / menú ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 19, 48, .92);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
}
.topbar { background: var(--mango); color: var(--ink); font-size: 13.5px; font-weight: 500; }
.topbar .wrap { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 36px; text-align: center; }
.topbar a { font-weight: 700; }
.nav { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; margin-right: auto; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--cobalt);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--font-mono); font-weight: 600; font-size: 15px; color: #fff;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.18);
}
.brand__mark span { color: var(--mango); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand__tag { font-family: var(--font-mono); font-size: 11px; color: #9AA1C7; letter-spacing: .02em; }
.menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.menu > li { position: relative; }
.menu__link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 10px 14px; border-radius: 10px; font-size: 15px; font-weight: 500;
  color: #D5D9F0; text-decoration: none; background: none; border: 0; cursor: pointer;
}
.menu__link:hover, .menu__link[aria-expanded="true"], .menu__link.is-active { color: #fff; background: rgba(255,255,255,.07); }
.menu__link.is-active { box-shadow: inset 0 -2px 0 var(--mango); border-radius: 10px 10px 4px 4px; }
.menu__link .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.menu__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__cta { display: flex; gap: 10px; align-items: center; }

.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: min(880px, 92vw); background: #fff; color: var(--ink); border-radius: var(--radius-l);
  box-shadow: var(--shadow-l); padding: 22px; display: grid; grid-template-columns: 1fr 1fr 260px; gap: 8px 18px;
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega--sm { width: 380px; grid-template-columns: 1fr; left: 0; transform: translateY(6px); }
.mega--sm.is-open { transform: translateY(0); }
.mega__item { display: flex; gap: 14px; padding: 12px; border-radius: 14px; text-decoration: none; transition: background .15s ease; }
.mega__item:hover { background: var(--paper); }
.mega__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--cobalt-tint); color: var(--cobalt); flex-shrink: 0; }
.mega__title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.mega__desc { font-size: 13.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.mega__aside { grid-row: span 4; background: var(--ink); color: #fff; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.mega__aside p { font-size: 14px; color: #B9BEDA; }
.mega__aside .h-s { color: #fff; }

.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #fff; place-items: center; cursor: pointer; }
.drawer { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(14, 19, 48, .55); opacity: 0; transition: opacity .2s ease; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; color: var(--ink);
  transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.drawer__close { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; }
.drawer__body { padding: 12px 20px 24px; display: flex; flex-direction: column; gap: 4px; }
.drawer__group { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 16px 0 6px; }
.drawer__link { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.drawer__link:hover { background: var(--paper); }
.drawer__link .icon { color: var(--cobalt); }
.drawer__foot { margin-top: auto; padding: 20px; border-top: 1px solid var(--line-soft); display: grid; gap: 10px; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }
.section--white { background: #fff; }
.section--ink { background: var(--ink); color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); display: grid; gap: 14px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head--split > div { max-width: 680px; display: grid; gap: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 720px; height: 720px; right: -200px; top: -260px; pointer-events: none;
  background: radial-gradient(circle, rgba(47,69,255,.45), transparent 62%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero__copy { display: grid; gap: 22px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 8px; font-size: 14.5px; color: #B9BEDA; }
.hero__proof li { display: flex; align-items: center; gap: 8px; list-style: none; }
.hero__proof .icon { color: var(--mango); width: 18px; height: 18px; }
.hero--page { padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px); }
.hero--page .hero__copy { max-width: 820px; }

/* Firma: navegador con proyectos reales + log de despliegue */
.showcase { position: relative; }
.browser {
  background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
  color: var(--ink);
}
.browser__bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: #EEF0F7; border-bottom: 1px solid var(--line); }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: #CDD2E3; display: block; }
.browser__dots i:first-child { background: #FF6B5E; }
.browser__dots i:nth-child(2) { background: #FFBF2E; }
.browser__dots i:nth-child(3) { background: #2ACB4A; }
.browser__url {
  flex: 1; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 8px; padding: 6px 12px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); min-width: 0; white-space: nowrap; overflow: hidden;
}
.browser__url .icon { width: 13px; height: 13px; color: var(--wa); }
.browser__screen { position: relative; aspect-ratio: 16 / 10.4; background: var(--paper); overflow: hidden; }
.browser__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .7s ease; }
.browser__screen img.is-active { opacity: 1; }
.deploylog {
  position: absolute; left: -28px; bottom: -34px; width: min(330px, 80%);
  background: #0A0D22; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 14px 16px;
  font-family: var(--font-mono); font-size: 12px; color: #9AA1C7; box-shadow: var(--shadow-l);
}
.deploylog__title { display: flex; justify-content: space-between; color: #fff; margin-bottom: 8px; font-weight: 600; }
.deploylog__title span:last-child { color: var(--wa); }
.deploylog li { list-style: none; display: flex; gap: 8px; padding: 3px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s ease; }
.deploylog li b { color: var(--wa); font-weight: 600; }
.deploylog li.is-active { color: #fff; }
.deploylog li.is-active b { color: var(--mango); }
.showcase__chip {
  position: absolute; right: -14px; top: -22px; background: var(--mango); color: var(--ink); border-radius: 14px; padding: 12px 14px;
  font-weight: 700; font-size: 14px; line-height: 1.25; box-shadow: var(--shadow-l); display: flex; gap: 10px; align-items: center; max-width: 210px;
}

/* ---------- Marquesina de clientes ---------- */
.clients { background: #fff; border-bottom: 1px solid var(--line-soft); padding: 22px 0; overflow: hidden; }
.clients__row { display: flex; align-items: center; gap: 18px; }
.clients__label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
.clients__track { display: flex; gap: 44px; animation: marquee 38s linear infinite; width: max-content; }
.clients__viewport { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients__track a { font-family: var(--font-display); font-weight: 800; font-size: 21px; color: #9AA0BC; text-decoration: none; white-space: nowrap; letter-spacing: -0.02em; transition: color .15s; }
.clients__track a:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Tarjetas de servicio ---------- */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.svc {
  grid-column: span 2; position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l);
  text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.svc--wide { grid-column: span 3; }
.svc--feature { background: var(--cobalt); color: #fff; border-color: var(--cobalt); }
.svc--feature .svc__desc { color: #DCE0FF; }
.svc--feature .svc__icon { background: rgba(255,255,255,.14); color: #fff; }
.svc--feature .link-arrow { color: var(--mango); }
.svc--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.svc--dark .svc__desc { color: #B9BEDA; }
.svc--dark .svc__icon { background: rgba(255,178,30,.15); color: var(--mango); }
.svc--dark .link-arrow { color: var(--mango); }
.svc__icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--cobalt-tint); color: var(--cobalt); }
.svc__icon .icon { width: 26px; height: 26px; }
.svc__kw { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.svc--feature .svc__kw, .svc--dark .svc__kw { color: #9AA1C7; }
.svc__desc { color: var(--ink-soft); font-size: 15.5px; flex: 1; }
.svc__price { font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
.svc .link-arrow { margin-top: 6px; }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; list-style: none; }
.step { position: relative; padding: 26px; border-radius: var(--radius-l); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.step__n { font-family: var(--font-mono); font-size: 13px; color: var(--mango); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.step__n::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.14); }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: #B9BEDA; font-size: 15px; }
.step__time { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: #9AA1C7; }

/* ---------- Proyectos ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.projects--3 { grid-template-columns: repeat(3, 1fr); }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard__media { position: relative; aspect-ratio: 16 / 10; background: var(--paper); overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__tag { position: absolute; left: 14px; top: 14px; background: rgba(14,19,48,.86); color: #fff; font-family: var(--font-mono); font-size: 11.5px; padding: 6px 10px; border-radius: 8px; }
.pcard__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard__domain { font-family: var(--font-mono); font-size: 12.5px; color: var(--cobalt); }
.pcard__desc { color: var(--ink-soft); font-size: 15px; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.chips li { font-size: 12.5px; font-weight: 500; padding: 5px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line-soft); color: var(--ink-soft); }
.on-dark .chips li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #D5D9F0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ink-soft); }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Bloques de contenido ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--top { align-items: start; }
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: var(--wa); margin-top: 3px; }
.on-dark .checklist .icon { color: var(--mango); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--mango-tint); color: #A86B00; }
.card p { color: var(--ink-soft); font-size: 15.5px; }
.on-dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.on-dark .card p { color: #B9BEDA; }
.on-dark .card__icon { background: rgba(255,178,30,.14); color: var(--mango); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-l); background: #fff; overflow: hidden; }
.stat { padding: 26px; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: 0; }
.stat__v { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.03em; line-height: 1; }
.stat__l { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; font-size: 15px; }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.compare thead th { background: var(--ink); color: #fff; font-family: var(--font-display); font-size: 16px; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 600; }
.table-scroll { overflow-x: auto; border-radius: var(--radius-l); }

/* Planes */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.plan--pop { border: 2px solid var(--cobalt); box-shadow: var(--shadow); position: relative; }
.plan__badge { position: absolute; top: -13px; left: 24px; background: var(--cobalt); color: #fff; font-family: var(--font-mono); font-size: 11.5px; padding: 5px 10px; border-radius: 7px; }
.plan__price { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -0.03em; line-height: 1; }
.plan__price small { font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .checklist { font-size: 15px; flex: 1; }
.note { font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s ease; color: var(--cobalt); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq__a { padding: 0 22px 20px; color: var(--ink-soft); }

/* Testimonios / founder */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.founder__card { background: var(--ink); color: #fff; border-radius: var(--radius-l); padding: 26px; display: grid; gap: 14px; position: relative; overflow: hidden; }
.founder__avatar { width: 84px; height: 84px; border-radius: 22px; background: var(--cobalt); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 34px; color: #fff; }
.founder__avatar span { color: var(--mango); }
.founder__meta { font-family: var(--font-mono); font-size: 12.5px; color: #9AA1C7; display: grid; gap: 6px; }
.founder__meta div { display: flex; gap: 8px; align-items: center; }
.founder__meta .icon { width: 15px; height: 15px; color: var(--mango); }
.quote { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; letter-spacing: -0.02em; }

/* Cotizador */
.quote-box { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.qform { background: #fff; color: var(--ink); border-radius: var(--radius-l); padding: clamp(22px, 3vw, 32px); display: grid; gap: 18px; box-shadow: var(--shadow-l); }
.qform fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.qform legend { font-weight: 700; margin-bottom: 10px; font-size: 15px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-flex; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 11px; font-size: 14.5px; font-weight: 500; cursor: pointer; transition: all .15s ease; }
.opt input:checked + span { border-color: var(--cobalt); background: var(--cobalt-tint); color: var(--cobalt-dark); font-weight: 600; }
.opt input:focus-visible + span { outline: 3px solid var(--mango); outline-offset: 2px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14.5px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-tint); }
.qform__fine { font-size: 12.5px; color: var(--muted); text-align: center; }

/* CTA banda */
.cta-band { position: relative; background: var(--cobalt); color: #fff; border-radius: 28px; padding: clamp(32px, 5vw, 64px); overflow: hidden; display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; }
.cta-band::after { content: "</>"; position: absolute; right: -10px; bottom: -60px; font-family: var(--font-mono); font-weight: 600; font-size: 220px; color: rgba(255,255,255,.07); line-height: 1; pointer-events: none; }
.cta-band p { color: #DCE0FF; margin-top: 10px; font-size: 18px; }
.cta-band__actions { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }

/* Migas */
.crumbs { font-family: var(--font-mono); font-size: 12.5px; color: #9AA1C7; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.crumbs a { color: #D5D9F0; text-decoration: none; }
.crumbs a:hover { color: var(--mango); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #5D648C; }

/* Zonas */
.zones { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.zones a, .zones span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 11px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: 14.5px; }
.zones a:hover { border-color: var(--cobalt); color: var(--cobalt); }
.zones .icon { width: 16px; height: 16px; color: var(--cobalt); }

/* ---------- Artículos (blog, casos) ---------- */
.layout-article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 5vw, 64px); align-items: start; }
.prose { font-size: 18px; line-height: 1.75; color: #2A3052; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 1.9em; color: var(--ink); }
.prose h3 { font-size: 22px; margin-top: 1.6em; color: var(--ink); font-weight: 700; }
.prose a { color: var(--cobalt); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--cobalt); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--mango); background: var(--mango-tint); border-radius: 0 14px 14px 0; font-weight: 500; }
.prose .table-scroll { margin: 1.6em 0; }
.prose table { font-size: 15.5px; }
.prose .callout { background: var(--ink); color: #fff; border-radius: 18px; padding: 24px; }
.prose .callout p { color: #D5D9F0; }
.prose .callout a { color: var(--mango); }
.toc { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.toc__box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px; }
.toc__box h2 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.toc__box ol { list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.toc__box a { text-decoration: none; color: var(--ink-soft); }
.toc__box a:hover { color: var(--cobalt); }
.toc__cta { background: var(--ink); color: #fff; border-radius: var(--radius-l); padding: 22px; display: grid; gap: 12px; }
.toc__cta p { color: #B9BEDA; font-size: 14.5px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--font-mono); font-size: 13px; color: #9AA1C7; }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.meta-row .icon { width: 15px; height: 15px; }

.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post__cover { aspect-ratio: 16 / 8; display: flex; align-items: flex-end; padding: 24px; color: #fff; position: relative; overflow: hidden; }
.post__cover--cobalt { background: var(--cobalt); }
.post__cover--ink { background: var(--ink); }
.post__cover--mango { background: var(--mango); color: var(--ink); }
.post__cover::after { content: attr(data-glyph); position: absolute; right: 18px; top: 6px; font-family: var(--font-mono); font-weight: 600; font-size: 110px; opacity: .14; line-height: 1; }
.post__cover b { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.12; letter-spacing: -0.02em; max-width: 90%; position: relative; z-index: 1; }
.post__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post__body p { color: var(--ink-soft); font-size: 15.5px; flex: 1; }
.post__meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }

/* Ficha de proyecto */
.facts { display: grid; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.facts div { padding: 14px 20px; border-bottom: 1px solid var(--line-soft); display: grid; gap: 2px; }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 0; font-weight: 600; font-size: 15px; }
.facts a { color: var(--cobalt); }
.shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.shot img { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: #0A0D22; color: #B9BEDA; padding: 72px 0 0; font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer__title { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #fff; margin-bottom: 14px; font-weight: 500; }
.footer__links { list-style: none; display: grid; gap: 9px; }
.footer__links a { text-decoration: none; color: #B9BEDA; }
.footer__links a:hover { color: var(--mango); }
.footer__about p { margin: 14px 0 18px; max-width: 340px; }
.footer__nap { display: grid; gap: 8px; font-size: 14.5px; }
.footer__nap div { display: flex; gap: 10px; align-items: center; }
.footer__nap .icon { color: var(--mango); width: 17px; height: 17px; }
.footer__nap a { color: #fff; text-decoration: none; }
.footer__bottom { margin-top: 56px; border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }
.footer__bottom a { color: #B9BEDA; }

/* WhatsApp flotante + barra móvil */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 62px; height: 62px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(31,175,90,.7);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float .icon { width: 32px; height: 32px; }
.wa-float__tip {
  position: absolute; right: 74px; top: 50%; transform: translateY(-50%); background: #fff; color: var(--ink);
  padding: 9px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow);
  animation: tipIn .4s ease 2s both;
}
@keyframes tipIn { from { opacity: 0; transform: translate(8px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
.mobilebar { display: none; }

/* Revelado al hacer scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .menu, .nav__cta .btn--ghost { display: none; }
  .burger { display: grid; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .svc, .svc--wide { grid-column: span 1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .layout-article { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}
@media (max-width: 900px) {
  .hero__grid, .split, .quote-box, .founder { grid-template-columns: 1fr; }
  .showcase { margin: 0 6px 30px; }
  .deploylog { left: -6px; }
  .showcase__chip { right: -6px; }
  .projects, .projects--3, .posts, .plans, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split > *, .quote-box > *, .hero__grid > * { min-width: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .cta-band { grid-template-columns: 1fr; }
  .founder__card { max-width: 420px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 68px; }
  .nav__cta .btn { display: none; }
  .brand__tag { display: none; }
  .services, .grid-2, .grid-4, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr !important; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .stat:last-child { border-bottom: 0; }
  .hero__ctas .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .deploylog { position: relative; left: auto; bottom: auto; width: 100%; margin-top: 14px; }
  .showcase { margin: 0; }
  .showcase__chip { display: none; }
  .clients__label { display: none; }
  .wa-float { display: none; }
  .mobilebar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }
  .mobilebar .btn { min-height: 48px; font-size: 15px; padding: 0 12px; }
  .topbar .wrap { font-size: 12.5px; }
  .prose { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .wa-float, .mobilebar, .site-footer { display: none; }
}
