/* =========================================================
   Guillermo Solimano — Software a medida
   Tema claro · azul corporativo · Sora + Manrope · design tokens
   ========================================================= */

/* ---------- Tokens (light theme) ---------- */
:root {
  --c-primary:        #1565C0;
  --c-primary-strong: #0D47A1;
  --c-accent:         #1E88E5;
  --c-accent-soft:    #E3F2FD;
  --c-ink:            #16243A;
  --c-body:           #1F2937;
  --c-muted:          #5B6B82;
  --c-bg:             #F5F8FB;
  --c-surface:        #FFFFFF;
  --c-surface-2:      #F0F5FB;
  --c-border:         #E5EAF0;
  --c-success:        #16A34A;
  --c-danger:         #DC2626;
  --c-dark:           #0D1B2A;
  --c-dark-2:         #102438;
  --hero-glow-1:      rgba(41,182,246,0.20);
  --hero-glow-2:      rgba(21,101,192,0.14);

  --font-display: "Sora", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body:    "Manrope", system-ui, -apple-system, Segoe UI, sans-serif;

  --sec-pad: 104px;
  --gap: 26px;

  color-scheme: light;
}
body[data-density="compact"] { --sec-pad: 80px;  --gap: 20px; }
body[data-density="comfy"]   { --sec-pad: 136px; --gap: 32px; }

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--c-body);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: color-mix(in srgb, var(--c-primary) 22%, transparent); color: var(--c-ink); }

/* Skip link (accesibilidad) */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--c-primary); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* Foco visible accesible */
:focus-visible {
  outline: 2.5px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Layout helpers ---------- */
.wrap { width: min(1200px, 92vw); margin-inline: auto; }
.section { padding-block: var(--sec-pad); }
.eyebrow {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--c-primary);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
}
.section-head { max-width: 660px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
h1, h2, h3 { font-family: var(--font-display); color: var(--c-ink); line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; margin-top: 18px; }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--c-muted); margin-top: 18px; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px;
  padding: 14px 24px; border-radius: 12px; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .22s ease, background .2s ease, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  color: #fff; background: var(--c-primary);
  box-shadow: 0 10px 24px -10px var(--c-primary);
}
.btn-primary:hover { background: var(--c-primary-strong); transform: translateY(-2px); box-shadow: 0 16px 30px -12px var(--c-primary); }
.btn-secondary { color: var(--c-ink); background: var(--c-surface); border-color: var(--c-border); }
.btn-secondary:hover { border-color: var(--c-primary); color: var(--c-primary); transform: translateY(-2px); }
.btn-ghost { color: var(--c-primary); background: transparent; padding-inline: 4px; }
.btn-ghost:hover { gap: 14px; }
.btn-wa { color: #fff; background: #25D366; box-shadow: 0 10px 24px -10px rgba(37,211,102,.7); }
.btn-wa:hover { background: #1eb858; transform: translateY(-2px); }
.btn-lg { padding: 17px 30px; font-size: 16.5px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--c-surface) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.header.scrolled { border-color: var(--c-border); box-shadow: 0 6px 22px -18px rgba(13,27,42,.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 42px; width: auto; display: block; }
@media (max-width: 600px) { .brand-logo { height: 34px; } }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center; color: #fff; font-family: var(--font-display);
  font-weight: 800; font-size: 16px; letter-spacing: -.02em;
  background: linear-gradient(140deg, var(--c-primary), var(--c-accent));
  box-shadow: 0 8px 18px -8px var(--c-primary);
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--c-ink); line-height: 1.1; }
.brand-name span { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11.5px; color: var(--c-muted); letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--c-muted);
  padding: 9px 13px; border-radius: 9px; transition: color .18s, background .18s;
}
.nav a:hover { color: var(--c-ink); background: var(--c-surface-2); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--c-border); border-radius: 11px; background: var(--c-surface); align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; stroke: var(--c-ink); }

/* mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 70; visibility: hidden; pointer-events: none; }
.drawer.open { visibility: visible; pointer-events: auto; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(13,27,42,.42); opacity: 0; transition: opacity .3s; }
.drawer.open .drawer-scrim { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 340px);
  background: var(--c-surface); padding: 22px; display: flex; flex-direction: column; gap: 6px;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
  box-shadow: -20px 0 60px -30px rgba(13,27,42,.6);
}
.drawer.open .drawer-panel { transform: translateX(0); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer-panel a { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--c-ink); padding: 13px 12px; border-radius: 11px; }
.drawer-panel a:hover { background: var(--c-surface-2); color: var(--c-primary); }
.drawer-panel .btn { margin-top: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(48px, 7vw, 96px); padding-bottom: var(--sec-pad); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg::before, .hero-bg::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); }
.hero-bg::before { width: 540px; height: 540px; top: -180px; right: -120px; background: var(--hero-glow-1); }
.hero-bg::after { width: 460px; height: 460px; top: 40px; left: -200px; background: var(--hero-glow-2); }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; margin-top: 22px; }
.hero-h1 .grad { background: linear-gradient(110deg, var(--c-primary), var(--c-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--c-muted); margin-top: 22px; max-width: 540px; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; }
.hero-meta-item { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--c-muted); font-weight: 500; }
.hero-meta-item svg { width: 18px; height: 18px; stroke: var(--c-primary); }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--c-success); box-shadow: 0 0 0 0 var(--c-success); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-success) 55%, transparent); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* hero visual — mock dashboard */
.hero-visual { position: relative; }
.mock {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 20px;
  box-shadow: 0 40px 80px -40px rgba(13,27,42,.42), 0 8px 24px -16px rgba(13,27,42,.3);
  overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--c-border); background: var(--c-surface-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--c-border); }
.mock-bar i:nth-child(1){ background:#FF5F57; } .mock-bar i:nth-child(2){ background:#FEBC2E; } .mock-bar i:nth-child(3){ background:#28C840; }
.mock-url { margin-left: 10px; font-size: 11.5px; color: var(--c-muted); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 7px; padding: 4px 12px; }
.mock-body { padding: 20px; display: grid; gap: 14px; }
.mock-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.mock-stat { background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: 13px; padding: 14px; }
.mock-stat .lab { font-size: 11px; color: var(--c-muted); font-weight: 600; }
.mock-stat .val { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--c-ink); margin-top: 4px; }
.mock-stat .val small { font-size: 12px; color: var(--c-success); font-weight: 700; }
.mock-chart { background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: 13px; padding: 16px 16px 8px; }
.mock-chart .ch-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mock-chart .ch-head b { font-family: var(--font-display); font-size: 14px; color: var(--c-ink); }
.mock-chart .ch-head span { font-size: 11px; color: var(--c-muted); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 92px; }
.bars i { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(var(--c-accent), var(--c-primary)); opacity: .85; }
.float-chip {
  position: absolute; background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px; color: var(--c-ink);
  box-shadow: 0 16px 34px -18px rgba(13,27,42,.4);
  animation: floaty 5s ease-in-out infinite;
}
.float-chip svg { width: 16px; height: 16px; }
.float-chip .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--c-accent-soft); color: var(--c-primary); }
.float-chip.c1 { top: -22px; left: -28px; animation-delay: 0s; }
.float-chip.c2 { top: 38%; right: -34px; animation-delay: .8s; }
.float-chip.c3 { bottom: -20px; left: 14%; animation-delay: 1.6s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Trusted strip ---------- */
.strip { border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); background: var(--c-surface); }
.strip-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; padding: 22px 0; }
.strip-inner span { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--c-muted); opacity: .8; letter-spacing: .01em; }

/* ---------- Cards grid generic ---------- */
.grid { display: grid; gap: var(--gap); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 18px;
  padding: 28px; transition: transform .2s ease, box-shadow .25s ease, border-color .2s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -34px rgba(13,27,42,.4); border-color: color-mix(in srgb, var(--c-primary) 35%, var(--c-border)); }
.card-ic {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: var(--c-accent-soft); color: var(--c-primary); margin-bottom: 18px;
  transition: background .25s, color .25s, transform .25s;
}
.card:hover .card-ic { transform: scale(1.06) rotate(-3deg); }
.card-ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--c-muted); }
.card-line { position: absolute; left: 0; top: 0; height: 100%; width: 4px; background: linear-gradient(var(--c-primary), var(--c-accent)); transform: scaleY(0); transform-origin: top; transition: transform .3s; }
.card:hover .card-line { transform: scaleY(1); }

/* ---------- Tipos de proyecto (chips) ---------- */
.proj-types { display: flex; flex-wrap: wrap; gap: 12px; }
.ptype {
  display: flex; align-items: center; gap: 11px; background: var(--c-surface);
  border: 1px solid var(--c-border); border-radius: 13px; padding: 13px 18px;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--c-ink);
  transition: transform .18s, border-color .2s, box-shadow .2s;
}
.ptype:hover { transform: translateY(-3px); border-color: var(--c-primary); box-shadow: 0 18px 34px -22px rgba(13,27,42,.4); }
.ptype .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--c-accent-soft); color: var(--c-primary); }
.ptype .ic svg { width: 17px; height: 17px; }

/* ---------- Tecnologías ---------- */
.tech-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.tech-cat { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 18px; padding: 26px; }
.tech-cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.tech-cat-head .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--c-accent-soft); color: var(--c-primary); }
.tech-cat-head .ic svg { width: 20px; height: 20px; }
.tech-cat-head h3 { font-size: 17px; font-weight: 700; }
.tech-cat > p { font-size: 13.5px; color: var(--c-muted); margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--c-body);
  background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: 8px; padding: 7px 12px;
  transition: background .18s, color .18s, border-color .18s;
}
.chip:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* ---------- Proceso (timeline) ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--c-primary), var(--c-accent)); opacity: .35; }
.step { position: relative; text-align: center; }
.step-num {
  width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 18px;
  color: var(--c-primary); background: var(--c-surface); border: 2px solid var(--c-border); position: relative; z-index: 1;
  transition: transform .2s, border-color .2s, color .2s, background .2s;
}
.step:hover .step-num { transform: translateY(-4px); border-color: var(--c-primary); background: var(--c-primary); color: #fff; }
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--c-muted); }

/* ---------- Proyectos destacados ---------- */
.pcard { display: flex; flex-direction: column; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 20px; overflow: hidden; transition: transform .2s, box-shadow .25s; }
.pcard:hover { transform: translateY(-6px); box-shadow: 0 36px 70px -40px rgba(13,27,42,.45); }
.pcard-top { height: 168px; position: relative; overflow: hidden; display: grid; place-items: center; background: linear-gradient(140deg, var(--c-dark), var(--c-dark-2)); }
.pcard-top .glow { position: absolute; width: 220px; height: 220px; border-radius: 50%; filter: blur(46px); background: var(--hero-glow-1); top: -60px; right: -40px; }
.pcard-top .pglyph { position: relative; z-index: 1; color: #fff; opacity: .96; }
.pcard-top .pglyph svg { width: 56px; height: 56px; }
.pcard-tag { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 11.5px; font-weight: 700; font-family: var(--font-display); color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(6px); border-radius: 999px; padding: 5px 12px; }
.pcard-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.pcard-body h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.pcard-body > p { font-size: 14.5px; color: var(--c-muted); }
.pcard-tech { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 18px; }
.pcard-tech .chip { font-size: 12px; padding: 5px 10px; }
.pcard-metrics { display: flex; gap: 22px; margin-bottom: 18px; padding-top: 16px; border-top: 1px dashed var(--c-border); }
.pcard-metrics div .m { font-family: var(--font-display); font-weight: 800; font-size: 21px; color: var(--c-primary); line-height: 1; }
.pcard-metrics div .l { font-size: 12px; color: var(--c-muted); margin-top: 4px; }
.pcard-body .btn-ghost { margin-top: auto; align-self: flex-start; }

/* ---------- Por qué trabajar conmigo ---------- */
.why { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-item { display: flex; gap: 13px; align-items: flex-start; }
.why-item .tick { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--c-accent-soft); color: var(--c-primary); }
.why-item .tick svg { width: 17px; height: 17px; }
.why-item b { font-family: var(--font-display); font-size: 15px; color: var(--c-ink); display: block; }
.why-item span { font-size: 13.5px; color: var(--c-muted); }
.why-panel { background: linear-gradient(160deg, var(--c-dark), var(--c-dark-2)); border-radius: 22px; padding: 38px; color: #fff; position: relative; overflow: hidden; }
.why-panel .glow { position: absolute; width: 260px; height: 260px; border-radius: 50%; filter: blur(56px); background: var(--hero-glow-1); top: -70px; right: -60px; }
.why-panel .pre { position: relative; font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); }
.why-panel blockquote { position: relative; font-family: var(--font-display); font-size: 22px; line-height: 1.4; font-weight: 600; margin: 16px 0 26px; text-wrap: pretty; }
.why-stats { position: relative; display: flex; gap: 30px; }
.why-stats div .m { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1; background: linear-gradient(120deg,#fff,var(--c-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.why-stats div .l { font-size: 13px; color: rgba(255,255,255,.72); margin-top: 6px; }

/* ---------- Problemas ---------- */
.problems { background: var(--c-surface); }
.prob-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.prob {
  background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 14px; padding: 18px 18px 18px 46px;
  font-size: 14.5px; color: var(--c-body); position: relative; font-weight: 500; line-height: 1.45;
  transition: transform .18s, border-color .2s;
}
.prob:hover { transform: translateY(-3px); border-color: var(--c-primary); }
.prob::before {
  content: ""; position: absolute; left: 16px; top: 19px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--c-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231565C0' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/12px no-repeat;
}
.prob-note { margin-top: 34px; text-align: center; font-family: var(--font-display); font-size: clamp(19px,2.2vw,26px); font-weight: 700; color: var(--c-ink); max-width: 880px; margin-inline: auto; line-height: 1.4; text-wrap: pretty; }
.prob-note b { color: var(--c-primary); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(44px, 6vw, 72px); text-align: center; background: linear-gradient(135deg, var(--c-primary), var(--c-primary-strong)); color: #fff; }
.cta-band .glow1, .cta-band .glow2 { position: absolute; border-radius: 50%; filter: blur(60px); }
.cta-band .glow1 { width: 300px; height: 300px; background: rgba(255,255,255,.18); top: -120px; left: -60px; }
.cta-band .glow2 { width: 320px; height: 320px; background: var(--hero-glow-1); bottom: -140px; right: -60px; }
.cta-band h2 { position: relative; color: #fff; font-size: clamp(28px, 3.6vw, 42px); }
.cta-band p { position: relative; color: rgba(255,255,255,.9); font-size: clamp(16px,1.5vw,18px); margin: 16px auto 30px; max-width: 600px; }
.cta-band .btn-light { position: relative; background: #fff; color: var(--c-primary-strong); }
.cta-band .btn-light:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -16px rgba(0,0,0,.4); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 22px; padding: 34px; box-shadow: 0 30px 70px -50px rgba(13,27,42,.5); }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: var(--c-ink); margin-bottom: 7px; }
.field label .req { color: var(--c-primary); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--c-body);
  background: var(--c-bg); border: 1.5px solid var(--c-border); border-radius: 11px; padding: 12px 14px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-primary); background: var(--c-surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-primary) 14%, transparent); }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-err { display: none; font-size: 12.5px; color: var(--c-danger); margin-top: 6px; font-weight: 500; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--c-danger); background: #FEF2F2; }
.field.invalid .field-err { display: block; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.form-actions .btn { flex: 1; min-width: 170px; }
.form-note { font-size: 12.5px; color: var(--c-muted); margin-top: 14px; text-align: center; }
.form-msg { display: none; align-items: center; gap: 12px; border-radius: 13px; padding: 15px 17px; margin-bottom: 18px; font-size: 14px; font-weight: 500; }
.form-msg svg { width: 22px; height: 22px; flex: none; }
.form-msg.ok { background: color-mix(in srgb, var(--c-success) 12%, var(--c-surface)); color: var(--c-success); border: 1px solid color-mix(in srgb, var(--c-success) 35%, transparent); }
.form-msg.err { background: #FEF2F2; color: var(--c-danger); border: 1px solid #FECACA; }
.form-msg.is-on { display: flex; }
.btn.loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.contact-aside h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.contact-aside > p { color: var(--c-muted); font-size: 15px; margin-bottom: 26px; max-width: 420px; }
.cinfo { display: grid; gap: 12px; margin-bottom: 26px; }
.cinfo a, .cinfo div {
  display: flex; align-items: center; gap: 14px; background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 14px; padding: 15px 17px; transition: border-color .2s, transform .18s, box-shadow .2s;
}
.cinfo a:hover { border-color: var(--c-primary); transform: translateX(3px); box-shadow: 0 16px 30px -24px rgba(13,27,42,.4); }
.cinfo .ic { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--c-accent-soft); color: var(--c-primary); }
.cinfo .ic svg { width: 20px; height: 20px; }
.cinfo b { font-family: var(--font-display); font-size: 14.5px; color: var(--c-ink); display: block; }
.cinfo span { font-size: 13px; color: var(--c-muted); }
.avail { display: flex; align-items: center; gap: 11px; background: color-mix(in srgb, var(--c-success) 9%, var(--c-surface)); border: 1px solid color-mix(in srgb, var(--c-success) 28%, transparent); border-radius: 14px; padding: 15px 17px; }
.avail b { font-family: var(--font-display); font-size: 14px; color: var(--c-ink); }
.avail span { font-size: 13px; color: var(--c-muted); display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--c-dark); color: rgba(255,255,255,.72); padding-block: 56px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer .brand-name { color: #fff; }
.footer .brand-name span { color: rgba(255,255,255,.6); }
.footer-about { font-size: 14.5px; color: rgba(255,255,255,.66); max-width: 320px; margin-top: 16px; }
.footer-col h4 { font-family: var(--font-display); font-size: 14px; color: #fff; margin-bottom: 14px; letter-spacing: .02em; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,.7); padding: 6px 0; transition: color .18s, padding-left .18s; }
.footer-col a:hover { color: var(--c-accent); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 13px; color: rgba(255,255,255,.55); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); transition: background .2s, transform .18s; }
.footer-social a:hover { background: var(--c-primary); transform: translateY(-3px); }
.footer-social svg { width: 19px; height: 19px; stroke: #fff; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: flex; align-items: center; gap: 0; height: 58px; padding: 0; width: 58px;
  background: #25D366; color: #fff; border-radius: 999px; overflow: hidden;
  box-shadow: 0 16px 34px -12px rgba(37,211,102,.7); transition: width .3s ease, padding .3s ease;
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
}
.wa-float .wa-ic { width: 58px; height: 58px; flex: none; display: grid; place-items: center; }
.wa-float .wa-ic svg { width: 28px; height: 28px; }
.wa-float .wa-label { white-space: nowrap; opacity: 0; transition: opacity .2s; padding-right: 4px; }
.wa-float:hover, .wa-float:focus-visible { width: 218px; padding-right: 20px; }
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { opacity: 1; }

/* ---------- Reveal on scroll (mejora progresiva) ---------- */
/* Sin JS, el contenido siempre es visible. Solo se anima si <html> tiene .js */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 520px; }
  .why { grid-template-columns: 1fr; gap: 36px; }
  .prob-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .nav, .header-cta .btn { display: none; }
  .menu-btn { display: flex; }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .tech-cats { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { display: none; }
  .step { text-align: left; display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding-bottom: 26px; position: relative; }
  .step::before { content: ""; position: absolute; left: 26px; top: 54px; bottom: 0; width: 2px; background: var(--c-border); }
  .step:last-child::before { display: none; }
  .step-num { margin: 0; }
}
@media (max-width: 600px) {
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .prob-grid { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form { padding: 24px; }
  .field.row2 { grid-template-columns: 1fr; }
  .hero-meta { gap: 16px; }
  .float-chip.c2 { right: -10px; }
  .float-chip.c1 { left: -10px; }
}

/* ---------- Movimiento reducido (accesibilidad) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
