/* Páginas de servicio de DVLPMNTS: misma línea que dvlpmnts.html (blanco, noche, imagen de sistema y rojo). */
:root {
  --bg: #FFFFFF;
  --ink: #0A0A0A;
  --ink-2: #333333;
  --muted: #6F6F6F;
  --line: #E4E4E4;
  --red: #FF3131;
  --night: #0D1424;
  --soft: #E9ECF2;
  --display: 'Antonio', 'Arial Narrow', sans-serif;
  --sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', 'SF Mono', Menlo, monospace;
  --gutter: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink-2); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.muted { color: var(--muted); }
.grain { position: relative; }
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.18; mix-blend-mode: overlay; background-image: var(--grain); border-radius: inherit; }

/* Barra superior */
.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 10px var(--gutter); border-bottom: 1px solid var(--ink); }
.top a:hover { color: var(--red); }
.top .mark img { height: 26px; width: auto; }
.top .tabs { display: flex; justify-content: flex-end; gap: 20px; }
.top .tabs .on { color: var(--red); }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 24px; background: var(--red); color: #fff; font-family: var(--mono); font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; transition: background 150ms, color 150ms, transform 150ms; white-space: nowrap; }
.btn:hover { background: #fff; color: var(--night); }
.btn:active { transform: scale(0.98); }
.btn.line { background: transparent; border: 1px solid rgba(233,236,242,0.4); color: var(--soft); }
.btn.line:hover { background: var(--soft); color: var(--night); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* Portada de la página: imagen generada a todo el ancho */
.cover { position: relative; overflow: hidden; height: clamp(520px, 80vh, 860px); color: #fff; background: var(--night); }
.cover-bg { position: absolute; inset: -5%; background-size: cover; background-position: center; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.08) translate3d(-2%, 1%, 0); } }
.cover::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(13,20,36,0.1) 30%, rgba(13,20,36,0.7) 100%), linear-gradient(90deg, rgba(13,20,36,0.45), rgba(13,20,36,0) 55%); }
.cover-in { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: 1.3fr 1fr; align-items: end; gap: 32px; padding: 0 clamp(24px, 4vw, 64px) clamp(32px, 5vw, 64px); }
.cover .eyebrow { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.75); margin-bottom: 14px; }
.cover .eyebrow svg { width: 22px; height: 22px; }
.cover h1 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(64px, 10vw, 168px); line-height: 0.86; letter-spacing: -0.01em; }
.cover p { justify-self: end; max-width: 36ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.4; }
.cover p span { color: rgba(255,255,255,0.6); }

/* Secciones */
section { padding-block: clamp(72px, 9vw, 128px); }
.sec-label { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--ink); padding-top: 12px; margin-bottom: clamp(32px, 4vw, 56px); }
.lead { font-size: clamp(26px, 3vw, 44px); line-height: 1.18; letter-spacing: -0.03em; font-weight: 500; color: var(--ink); max-width: 30ch; text-wrap: balance; }
.lead span { color: var(--muted); }
h2.big { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(44px, 6vw, 96px); line-height: 0.9; color: var(--ink); margin-bottom: clamp(28px, 4vw, 48px); }

/* ¿Es para ti? */
.signs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sign { border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: border-color 200ms, transform 300ms var(--ease), box-shadow 300ms; }
.sign:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(13,20,36,0.08); }
.sign i { width: 28px; height: 28px; border-radius: 50%; background: var(--red); display: grid; place-items: center; color: #fff; font-style: normal; font-family: var(--mono); font-size: 13px; }
.sign p { color: var(--ink); font-size: 17px; line-height: 1.4; }

/* Ilustración: tarjeta noche */
.figure { border-radius: 18px; overflow: hidden; color: var(--soft); background: radial-gradient(70% 60% at 90% 0%, rgba(125,144,169,0.4), transparent 70%), radial-gradient(40% 40% at 0% 100%, rgba(255,49,49,0.12), transparent 70%), var(--night); padding: clamp(24px, 4vw, 56px); }
.figure > * { position: relative; z-index: 1; }
.fig-cap { display: flex; justify-content: space-between; gap: 16px; color: rgba(233,236,242,0.6); margin-bottom: clamp(24px, 3vw, 40px); }
.fig-note { margin-top: 24px; color: rgba(233,236,242,0.6); font-size: 14px; }

/* Lista de lo que incluye */
.items { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.item { padding: 22px 22px 26px 0; border-bottom: 1px solid var(--line); }
.item h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(24px, 2vw, 32px); line-height: 1; color: var(--ink); margin: 10px 0 8px; }

/* Lo que ya hicimos */
.ref { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 2.2vw, 28px); }
.ref + .ref { margin-top: 16px; }
.ref-media { border-radius: 12px; overflow: hidden; background-size: cover; background-position: center; padding: clamp(18px, 3vw, 40px); display: grid; place-items: center; min-height: 280px; }
.ref-media img, .ref-media .win { border-radius: 8px; box-shadow: 0 24px 50px rgba(13,20,36,0.4); background: #fff; }
.ref h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(36px, 4vw, 64px); line-height: 0.9; color: var(--ink); margin: 10px 0 14px; }
.ref p { color: var(--ink); max-width: 44ch; }

/* Qué recibes */
.gets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.gets li { list-style: none; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 17px; }
.gets li::before { content: "→"; color: var(--red); font-family: var(--mono); }

/* Cierre */
.end { position: relative; overflow: hidden; color: #fff; background: var(--night); }
.end::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,20,36,0.9), rgba(13,20,36,0.5)), url('system-hero.jpg') center / cover; transform: scaleX(-1); }
.end-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: end; padding-block: clamp(64px, 8vw, 112px) clamp(40px, 5vw, 64px); }
.end h2 { font-family: var(--display); font-weight: 200; text-transform: uppercase; font-size: clamp(48px, 6vw, 100px); line-height: 0.88; }
.end-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; justify-self: end; }
.end-actions p { color: rgba(233,236,242,0.75); max-width: 36ch; }
.others { display: flex; gap: 10px; flex-wrap: wrap; }
.end footer { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(233,236,242,0.25); padding-block: 14px 24px; color: rgba(233,236,242,0.7); }
.end footer a:hover { color: var(--red); }

/* BOARD — ventana esquemática, sin datos reales */
.win { width: 100%; aspect-ratio: 16 / 10; display: flex; flex-direction: column; overflow: hidden; }
.win-bar { height: 26px; display: flex; gap: 6px; align-items: center; padding: 0 10px; border-bottom: 1px solid var(--line); }
.win-bar i { width: 8px; height: 8px; border-radius: 50%; background: #DDD; }
.win-body { flex: 1; display: grid; grid-template-columns: 22% 1fr; min-height: 0; }
.w-side { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 9px; }
.w-side b { height: 6px; background: #ECECEC; }
.w-side b:first-child { background: var(--ink); width: 50%; margin-bottom: 8px; }
.w-side b:nth-child(4) { background: var(--red); width: 70%; }
.w-main { padding: 14px; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto 1fr; gap: 8px; min-height: 0; }
.w-card { border: 1px solid var(--line); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.w-card b { height: 4px; width: 45%; background: #ECECEC; }
.w-card em { height: 12px; width: 70%; background: #D9D9D9; }
.w-chart { grid-column: 1 / -1; border: 1px solid var(--line); display: flex; align-items: flex-end; gap: 2.5%; padding: 12px; min-height: 0; }
.w-chart s { flex: 1; background: #E3E3E3; }
.w-chart s:nth-child(8) { background: var(--red); }

/* Aparición al bajar (solo con JS) */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } .cover-bg { animation: none; } html { scroll-behavior: auto; } }

@media (max-width: 900px) {
  .top { grid-template-columns: auto 1fr; }
  .top .mark { display: none; }
  .top .tabs .opt { display: none; }
  .cover-in, .ref, .end-in { grid-template-columns: 1fr; }
  .cover p, .end-actions { justify-self: start; }
  .signs { grid-template-columns: 1fr 1fr; }
  .items { grid-template-columns: 1fr; }
  .gets { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .signs { grid-template-columns: 1fr; } }
