/* Signo Digital · hoja de estilos del sitio corporativo */

@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #12a3c7;
}

:root {
  --bg: #15151a;
  --bg-alt: #1a1a20;
  --surface: #202027;
  --surface-2: #27272f;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef0f4;
  --muted: #a8abb6;
  --dim: #7d808c;

  --teal: #12a3c7;
  --cyan: #1cc4dc;
  --orange: #f0672b;
  --yellow: #fcb400;
  --red: #f0444d;

  --accent: #12a3c7;
  --radius: 18px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  transition: --accent 0.9s var(--ease);
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
address { font-style: normal; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--accent); color: #08131a; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tipografía ---------- */
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.06; letter-spacing: -0.03em; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
h3 { font-size: 1.08rem; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--accent); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); }

.lead { margin-top: 22px; max-width: 34em; color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.18rem); }
.sub { margin-top: 16px; max-width: 46em; color: var(--muted); font-size: 1.05rem; }
.grad { background: linear-gradient(100deg, var(--cyan), var(--accent) 45%, var(--yellow)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px; background: var(--accent); color: #071318; font-weight: 650; font-size: 0.98rem; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.9s var(--ease); box-shadow: 0 0 0 0 transparent; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -14px var(--accent); }
.btn .ic { transition: transform 0.25s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.btn--sm { padding: 10px 16px; font-size: 0.9rem; border-radius: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Navegación ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(21, 21, 26, 0.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 30px; height: 40px; }
.brand__name { font-size: 0.86rem; line-height: 1.05; letter-spacing: 0.06em; font-weight: 500; }
.nav__menu { display: flex; align-items: center; gap: 28px; font-size: 0.93rem; color: var(--muted); }
.nav__menu > a:not(.btn), .nav__drop summary { position: relative; padding: 6px 0; transition: color 0.2s; cursor: pointer; }
.nav__menu > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav__menu > a:not(.btn):hover, .nav__drop summary:hover { color: var(--text); }
.nav__menu > a:not(.btn):hover::after { transform: scaleX(1); }
.nav__drop { position: relative; }
.nav__drop summary { list-style: none; }
.nav__drop summary::-webkit-details-marker { display: none; }
.nav__drop summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.nav__panel { position: absolute; right: 0; top: calc(100% + 14px); width: 300px; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7); }
.nav__panel a { display: flex; gap: 12px; padding: 12px; border-radius: 10px; color: var(--muted); font-size: 0.85rem; line-height: 1.35; transition: background-color 0.2s; }
.nav__panel a:hover { background: var(--surface-2); }
.nav__panel b { display: block; color: var(--text); font-weight: 600; font-size: 0.92rem; }
.nav__panel .ic { margin-top: 2px; color: var(--accent); }
.nav__toggle { display: none; padding: 8px; }
.nav__toggle .ic { width: 26px; height: 26px; }

/* ---------- Portada ---------- */
.hero { position: relative; padding: clamp(48px, 9vw, 110px) 0 46px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); pointer-events: none; }
.hero__in { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 40px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.badges li { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.8rem; background: rgba(255, 255, 255, 0.02); }

.hero__art { --px: 0; --py: 0; justify-self: center; width: min(100%, 420px); }
.motif { overflow: visible; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45)); }
.tile { transform-box: fill-box; transform-origin: center; opacity: 0; animation: assemble 1.1s var(--ease) forwards, drift 7s ease-in-out infinite; animation-delay: calc(var(--i) * 90ms), calc(1.2s + var(--i) * 0.35s); translate: calc(var(--px) * var(--d) * 1px) calc(var(--py) * var(--d) * 1px); transition: translate 0.5s var(--ease), filter 0.3s; }
.tile:hover { filter: brightness(1.25); }
.tile:nth-child(1)  { --i: 0;  --d: 10; --fx: -90px;  --fy: 40px; }
.tile:nth-child(2)  { --i: 1;  --d: 16; --fx: -60px;  --fy: -70px; }
.tile:nth-child(3)  { --i: 2;  --d: 24; --fx: 40px;   --fy: -110px; }
.tile:nth-child(4)  { --i: 3;  --d: 8;  --fx: -110px; --fy: 10px; }
.tile:nth-child(5)  { --i: 4;  --d: 14; --fx: -70px;  --fy: 90px; }
.tile:nth-child(6)  { --i: 5;  --d: 22; --fx: 120px;  --fy: 20px; }
.tile:nth-child(7)  { --i: 6;  --d: 12; --fx: 80px;   --fy: -60px; }
.tile:nth-child(8)  { --i: 7;  --d: 28; --fx: 30px;   --fy: -90px; }
.tile:nth-child(9)  { --i: 8;  --d: 18; --fx: 100px;  --fy: 70px; }
.tile:nth-child(10) { --i: 9;  --d: 12; --fx: 60px;   --fy: 110px; }
.tile:nth-child(11) { --i: 10; --d: 20; --fx: -20px;  --fy: 130px; }
@keyframes assemble { from { opacity: 0; transform: translate(var(--fx), var(--fy)) scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.sectors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: clamp(40px, 6vw, 72px); padding-top: 26px; border-top: 1px solid var(--line); color: var(--text); font-size: 0.93rem; }
.sectors span { color: var(--dim); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; }
.sectors i { width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg); }

/* ---------- Secciones ---------- */
.sec { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.sec--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.card { position: relative; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.35s; --c: var(--accent); --mx: 50%; --my: 0%; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(340px circle at var(--mx) var(--my), color-mix(in srgb, var(--c) 20%, transparent), transparent 70%); opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card[data-c="teal"]   { --c: var(--teal); }
.card[data-c="cyan"]   { --c: var(--cyan); }
.card[data-c="orange"] { --c: var(--orange); }
.card[data-c="yellow"] { --c: var(--yellow); }
.card[data-c="red"]    { --c: var(--red); }
.card p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }

.chip { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 13px; background: var(--c); color: #0b1216; transition: transform 0.45s var(--ease); }
.chip .ic { width: 23px; height: 23px; }
.card:hover .chip { transform: rotate(-8deg) scale(1.06); }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 46px; }
.svc--wide { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; }
.svc--wide .chip { margin: 0; }
.svc--wide > div { flex: 1; }
.more { display: inline-flex; align-items: center; gap: 8px; color: var(--c); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.more .ic { transition: transform 0.25s var(--ease); }
.more:hover .ic { transform: translateX(4px); }

/* ---------- Recorrido de la información ---------- */
.flow { margin-top: 46px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.flow__track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.flow__track::before { content: ""; position: absolute; left: 10%; right: 10%; top: 27px; height: 2px; background: var(--line); }
.flow__track::after { content: ""; position: absolute; left: 10%; right: 10%; top: 27px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 28% 100%; background-repeat: no-repeat; animation: travel 3.2s linear infinite; }
@keyframes travel { from { background-position: -40% 0; } to { background-position: 140% 0; } }
.node { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; padding: 0 4px 4px; color: var(--muted); font-size: 0.86rem; font-weight: 550; text-align: center; transition: color 0.3s; }
.node__dot { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); transition: background-color 0.35s, color 0.35s, transform 0.35s var(--ease), border-color 0.35s; }
.node__dot .ic { width: 24px; height: 24px; }
.node:hover .node__dot { transform: translateY(-3px); border-color: var(--accent); }
.node.is-on { color: var(--text); }
.node.is-on .node__dot { background: var(--accent); color: #0b1216; border-color: transparent; transform: translateY(-3px) rotate(45deg); }
.node.is-on .node__dot .ic { transform: rotate(-45deg); }
.flow__panel { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); min-height: 96px; }
.flow__panel p { margin-top: 8px; color: var(--muted); max-width: 52em; }
.flow__panel.is-swap { animation: swap 0.45s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 46px; }
.spec .ic, .cap .ic { width: 28px; height: 28px; margin-bottom: 14px; color: var(--accent); }
.spec p, .cap p { margin-top: 8px; color: var(--muted); font-size: 0.93rem; }

.certs { display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; gap: 28px; margin-top: 54px; padding: 26px 28px; border: 1px dashed var(--line); border-radius: var(--radius); }
.certs p { color: var(--muted); font-size: 0.95rem; }
.certs ul { display: flex; flex-wrap: wrap; gap: 8px; }
.certs li { padding: 7px 13px; border-radius: 8px; background: var(--surface-2); font-size: 0.82rem; font-weight: 550; letter-spacing: 0.02em; transition: background-color 0.3s, color 0.3s; }
.certs li:hover { background: var(--accent); color: #0b1216; }

/* ---------- Monitoreo ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.split .btn { margin-top: 28px; }
.console { background: #0e0e12; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--accent) 45%, transparent); }
.console__bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.console__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--surface-2); }
.console__bar em { margin-left: 8px; color: var(--dim); font-size: 0.74rem; font-style: normal; letter-spacing: 0.04em; }
.console__body { min-height: 236px; padding: 16px; font-family: "Cascadia Mono", "JetBrains Mono", Consolas, "Courier New", monospace; font-size: 0.8rem; line-height: 1.9; }
.console__body li { display: flex; gap: 12px; color: var(--muted); animation: swap 0.5s var(--ease); }
.console__body time { color: var(--dim); }
.console__body b { font-weight: 500; color: var(--text); }
.console__body .ok b { color: #4fd18b; }
.console__body .warn b { color: var(--red); }
.console__body .info b { color: var(--cyan); }

.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; margin-top: 64px; }

/* ---------- Comparativa ---------- */
.tablewrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.94rem; }
.cmp th, .cmp td { padding: 16px 20px; text-align: center; border-bottom: 1px solid var(--line); color: var(--muted); }
.cmp thead th { color: var(--text); font-weight: 600; font-size: 0.9rem; }
.cmp tbody th { text-align: left; font-weight: 500; color: var(--text); }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp tbody tr { transition: background-color 0.25s; }
.cmp tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.cmp .us { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--text); font-weight: 600; }
.cmp .ic { margin-inline: auto; width: 20px; height: 20px; }
.cmp .ok { color: #4fd18b; }
.cmp .no { color: var(--dim); }

/* ---------- Diferenciadores ---------- */
.diffs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 46px; }
.num { display: block; margin-bottom: 26px; color: var(--c); font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }

/* ---------- Grupo ---------- */
.group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; }
.co__logo { display: grid; place-items: center; height: 108px; margin-bottom: 20px; padding: 18px 22px; border-radius: 12px; }
.co__logo--dark { background: #0f0f13; }
.co__logo--light { background: #fff; }
.co__logo img { max-height: 62px; width: auto; }
.co__logo--sd { grid-auto-flow: column; justify-content: center; gap: 14px; }
.co__logo--sd svg { height: 62px; width: auto; }
.co__logo--sd span { font-size: 1.05rem; line-height: 1.05; letter-spacing: 0.06em; }
.tag { margin: 0 !important; color: var(--accent) !important; font-size: 0.74rem !important; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Llamado final y pie ---------- */
.cta { padding: clamp(64px, 9vw, 120px) 0; }
.cta__in { padding: clamp(36px, 6vw, 72px); border-radius: 28px; border: 1px solid var(--line); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 60%), var(--surface); }
.cta__in p { margin-top: 14px; max-width: 40em; color: var(--muted); font-size: 1.05rem; }

.foot { padding: 56px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.foot__in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 0.8fr; gap: 36px; }
.foot__brand { color: var(--text); font-weight: 600; letter-spacing: 0.08em; margin-bottom: 10px; }
.foot address { margin-top: 16px; color: var(--dim); }
.foot h2 { margin-bottom: 14px; color: var(--text); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 650; }
.foot nav a { display: block; padding: 4px 0; transition: color 0.2s; }
.foot nav a:hover { color: var(--accent); }
.foot__copy { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.82rem; }

/* ---------- Aparición al desplazarse ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--delay, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in { transition: transform 0.35s var(--ease), border-color 0.35s, opacity 0.8s var(--ease); }

/* ---------- Adaptación a dispositivos ---------- */
@media (max-width: 1020px) {
  .services, .diffs { grid-template-columns: repeat(2, 1fr); }
  .specs { grid-template-columns: repeat(2, 1fr); }
  .caps { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 20px 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav__menu.is-open { display: flex; }
  .nav__menu > a:not(.btn), .nav__drop summary { padding: 12px 0; font-size: 1rem; }
  .nav__panel { position: static; width: auto; margin-top: 6px; box-shadow: none; }
  .nav__menu .btn { justify-content: center; margin-top: 10px; }

  .hero__in { grid-template-columns: 1fr; }
  .hero__art { order: -1; width: min(62%, 260px); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .group { grid-template-columns: 1fr; }
  .svc--wide { flex-direction: column; align-items: flex-start; }

  .flow__track { grid-template-columns: 1fr; gap: 14px; }
  .flow__track::before, .flow__track::after { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; }
  .flow__track::after { background: linear-gradient(180deg, transparent, var(--accent), transparent); background-size: 100% 28%; background-repeat: no-repeat; animation-name: travel-y; }
  .node { grid-template-columns: 56px 1fr; justify-items: start; align-items: center; text-align: left; font-size: 0.98rem; }
}
@keyframes travel-y { from { background-position: 0 -40%; } to { background-position: 0 140%; } }

@media (max-width: 560px) {
  .services, .diffs, .specs, .caps { grid-template-columns: 1fr; }
  .foot__in { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Accesibilidad: movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .tile { opacity: 1; transform: none; }
}
