/* Numera Solutions · estilos del sitio
   Paleta en variables: los acentos se cambian solo aquí.
   Marca: los 3 colores oficiales del logo (botones, enlaces, cifras, ícono).
   Ambiente: --glow-violet solo en resplandores de fondo, opacidad ≤ 40 %. Nunca en texto, botones, bordes ni íconos. */

:root {
  --bg: #010719; /* casi negro azulado, igual al fondo de la foto de Coy */
  --surface: #0a1226;
  --surface-2: #101a31;
  --border: #1c2742;
  --text: #eceff2;
  --muted: #a3acb7;
  --accent-1: #0099e8; /* azul del logo */
  --accent-2: #00b2cf; /* cian */
  --accent-3: #00e899; /* verde */
  --brand-gradient: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  --glow-violet: #3210b9; /* solo resplandores de fondo */
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-2); text-underline-offset: 3px; }
a:hover { color: var(--accent-3); }
:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0 0 1em; }
.num, .stat { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent-3); color: #04110b; padding: 10px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 1rem/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-3); color: #04110b; }
.btn-primary:hover { background: #3ff0b0; color: #04110b; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--text); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(1, 7, 25, .86);
  -webkit-backdrop-filter: saturate(140%) blur(10px); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; font-size: .9375rem; }
.nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 719px) {
  .nav a:not(.btn) { display: none; }
  .brand img { width: 124px; }
}

/* Hero */
.hero { position: relative; padding: clamp(56px, 10vw, 120px) 0 clamp(64px, 9vw, 112px); overflow: hidden; isolation: isolate; }
/* Resplandor violeta difuso detrás del hero (decorativo, ≤ 40 %) */
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: min(900px, 120vw); aspect-ratio: 1; left: -20%; top: -35%;
  background: radial-gradient(closest-side, var(--glow-violet), transparent);
  opacity: .4;
}
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } }
.eyebrow { color: var(--muted); font-weight: 600; font-size: .9375rem; letter-spacing: .01em; margin-bottom: 18px; max-width: 34ch; }
.hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); max-width: 15ch; margin-bottom: 32px; }
.hero h1 .accent { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 48ch; margin: -12px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-mark { width: clamp(64px, 9vw, 96px); margin-bottom: 28px; }
.hero-visual { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: #000; aspect-ratio: 1; max-width: 460px; justify-self: end; width: 100%; }
.hero-visual video, .hero-visual img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .hero-visual { display: none; } }

/* Ícono animado: trazo que se dibuja */
.mark-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.mark-head { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .mark-line { animation: draw .8s cubic-bezier(.65, 0, .35, 1) both; }
  .mark-head { animation: fade .25s ease-out .65s both; }
  .hero h1 .w, .eyebrow, .hero-sub, .hero-actions { animation: rise .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 70ms); }
  .eyebrow { --i: 0; }
  .hero-sub { animation-delay: .65s; }
  .hero-actions { animation-delay: .75s; }
}
.hero h1 .w { display: inline-block; }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes fade { from { opacity: 0; } }
/* Arranca en .4 de opacidad: el texto se lee desde el primer cuadro */
@keyframes rise { from { opacity: .4; transform: translateY(8px); } }

/* Secciones */
.section { padding: clamp(64px, 9vw, 112px) 0; border-top: 1px solid var(--border); }
.kicker { display: inline-block; color: var(--accent-3); font-weight: 600; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.section h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); max-width: 22ch; }
.lead { color: var(--muted); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); max-width: 62ch; }
.problem .wrap { display: grid; gap: 32px; }
@media (min-width: 900px) { .problem .wrap { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.problem h3 { font-size: 1.25rem; font-weight: 600; color: var(--text); letter-spacing: 0; }

/* Servicios */
.grid-2 { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; gap: 20px; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); margin: 0; }
.card .idx { display: block; font-variant-numeric: tabular-nums; color: var(--accent-2); font-weight: 600; font-size: .875rem; margin-bottom: 16px; }

/* Marcas */
.disclosure { color: var(--muted); font-size: .9375rem; border-left: 2px solid var(--accent-2); padding-left: 12px; margin-top: 20px; max-width: 62ch; }
.cases { display: grid; gap: 16px; margin-top: 40px; }
@media (min-width: 900px) { .cases { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.case { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; overflow: hidden; }
.case::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.case-logo { height: 64px; display: flex; align-items: center; margin-bottom: 20px; }
.case-logo img { max-height: 48px; width: auto; }
.case h3 { font-size: 1.2rem; margin-bottom: 6px; }
.case .what { color: var(--muted); font-size: .9688rem; }
.case ul { list-style: none; padding: 0; margin: 8px 0 24px; display: grid; gap: 10px; }
.case li { position: relative; padding-left: 20px; font-size: .9688rem; }
.case li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--c2); }
.case .visit { margin-top: auto; font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; color: var(--text); }
.case .visit:hover { color: var(--accent-3); }
.case--se { --c1: #0d69c7; --c2: #aed82b; }
.case--dp { --c1: #3a414d; --c2: #a9772f; }
.case--edzy { --c1: #123b6e; --c2: #ff7a5c; }

/* Quién está detrás */
.about .wrap { display: grid; gap: 32px; }
@media (min-width: 900px) { .about .wrap { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; } }
.portrait { position: relative; margin: 0; isolation: isolate; }
/* Resplandor violeta difuso detrás de la foto (decorativo, ≤ 40 %) */
.portrait::before {
  content: ""; position: absolute; z-index: -1; inset: 10% -15%; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow-violet), transparent);
  opacity: .4;
}
.portrait img { width: 100%; border-radius: 20px; border: 1px solid var(--border); background: var(--bg); }
/* Móvil: medio cuerpo */
@media (max-width: 899px) {
  .portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; max-height: 520px; }
}
@media (min-width: 900px) { .portrait img { max-height: 680px; object-fit: contain; } }
.about p { color: var(--muted); max-width: 62ch; }
.about .role { color: var(--text); font-weight: 600; margin-top: -4px; }
.stat-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin: 28px 0 20px; padding: 20px 0; border-block: 1px solid var(--border); }
.stat { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 800; line-height: 1; background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.03em; }
.stat-row p { margin: 0; }
.ig { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* CTA final */
.cta { text-align: center; }
.cta h2 { margin-left: auto; margin-right: auto; }
.cta .lead { margin: 0 auto 32px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: .9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer a:hover { color: var(--text); }
.site-footer small { font-size: .875rem; }

/* Aparición al hacer scroll (solo si hay JS y no hay reduce-motion) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* Página legal */
.legal { padding: clamp(48px, 8vw, 96px) 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.legal h2 { font-size: 1.25rem; margin-top: 2em; font-weight: 600; letter-spacing: 0; }
.legal p, .legal li { color: var(--muted); }
.legal .updated { font-size: .9375rem; }
