/*
  Visual preview: original GSD Flow Labs content and interactions are retained.
  The licensed font files live locally in ./fonts, so the preview has no remote
  font dependency. JetBrains Mono is reserved for small operational details.
*/
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("fonts/inter-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --ink: #f3f7f4;
  --paper: #070b09;
  --cream: #0b120e;
  --yellow: #00ff41;
  --line: rgba(165, 179, 170, .24);
  --muted: #a5b3aa;
  --blue: #00ff41;
  --amber: #00ff41;
  --panel: #101a14;
  --panel-raised: #142218;
  --display: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --body: Inter, "Segoe UI", Arial, sans-serif;
  --technical: "JetBrains Mono", Consolas, monospace;
}

html { background: var(--paper); }
body { background: var(--paper); color: var(--ink); }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background: radial-gradient(circle at 82% 8%, rgba(0,255,65,.08), transparent 25rem),
    radial-gradient(circle at 12% 42%, rgba(0,255,65,.035), transparent 24rem);
}
.grain { opacity: .025; mix-blend-mode: screen; }
.scroll-video { opacity: .13; background: #070b09; }
.scroll-video video { filter: grayscale(1) brightness(.35) contrast(1.25); }
.scroll-video-wash { background: linear-gradient(120deg, rgba(7,11,9,.96), rgba(7,11,9,.82) 55%, rgba(7,11,9,.92)); }
.cable-field { display: none; }

.skip-link { background: var(--yellow); color: #070b09; border-radius: .2rem; }
.site-header { border-bottom-color: rgba(165,179,170,.12); background: rgba(7,11,9,.76); backdrop-filter: blur(16px); }
.site-header.is-scrolled { border-color: rgba(0,255,65,.24); background: rgba(7,11,9,.94); }
.brand { padding: .3rem .45rem; background: #f3f7f4; border-radius: .18rem; line-height: 0; }
.brand img { width: clamp(9.8rem, 15vw, 12.6rem); height: auto; }
.site-header nav a, .nav-cta, .menu-toggle { color: var(--ink); }
.site-header nav a { font: 600 .7rem var(--technical); letter-spacing: .025em; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--yellow); }
.nav-services > summary { color: var(--ink); font: 600 .7rem var(--technical); letter-spacing: .025em; }
.nav-services > div { background: var(--panel); border-color: var(--line); box-shadow: 0 1.2rem 3rem rgba(0,0,0,.32); }
.nav-cta { background: transparent; border: 1px solid rgba(0,255,65,.72); border-radius: .2rem; transition: background .2s, color .2s; }
.nav-cta:hover, .nav-cta:focus-visible { background: var(--yellow); color: #070b09; }
.menu-toggle { border: 1px solid var(--line); border-radius: .2rem; }

.section { position: relative; }
.section-hero { min-height: 100svh; background: transparent; }
.hero-meta { border-color: rgba(0,255,65,.42); background: rgba(16,26,20,.8); }
.eyebrow, .overline, .hero-foot, .case-number, .service-card span, .video-caption span, .demo-chip { color: var(--muted); font-family: var(--technical); }
.eyebrow-dot:before, .hero-meta b { background: var(--yellow); color: var(--yellow); }
.overline { color: var(--yellow); }
h1, h2, h3, h4 { color: var(--ink); }
h1 { max-width: 14ch; letter-spacing: -.07em; }
h1 span { color: var(--yellow); }
.hero-copy p, .hero-side p, .lead { color: #d5dfd8; }
.hero-visual { border-color: rgba(0,255,65,.32); background: var(--panel); box-shadow: 0 1.6rem 4rem rgba(0,0,0,.32); }
.hero-visual img { filter: saturate(.62) hue-rotate(80deg) contrast(1.08) brightness(.82); }
.hero-visual figcaption { background: #0d1711; color: var(--muted); font-family: var(--technical); }
.flow-mobile-steps li { border-color: rgba(0,255,65,.32); background: var(--panel); }
.flow-mobile-steps b { color: var(--yellow); font-family: var(--technical); }
.hero-foot { color: var(--muted); }
.scroll-line { background: var(--yellow); }

.button { border-radius: .18rem; border-color: transparent; font-family: var(--technical); letter-spacing: .02em; }
.button-dark, .button-yellow, .button-cyan { background: var(--yellow); color: #070b09; }
.button:hover, .button:focus-visible { transform: translateY(-2px); background: #65ff8d; color: #070b09; box-shadow: 0 .75rem 1.7rem rgba(0,255,65,.12); }
.text-link { color: var(--ink); font-family: var(--technical); }
.text-link span, .text-link:hover, .text-link:focus-visible { color: var(--yellow); }

.services, .portfolio, .process, .faq, .benefits, .about { background: rgba(7,11,9,.94); }
.services::before, .portfolio::before, .process::before, .faq::before, .benefits::before, .about::before {
  content: ""; position: absolute; inset: 0 clamp(1rem,6vw,8rem) auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,255,65,.7), transparent);
}
.section-intro h2 { max-width: 15ch; }
.lead { max-width: 47rem; }
.line-grid article, .project-split article, .workflow-case, .workflow-status, .service-card, .concept-illustration, .process-illustration {
  background: var(--panel); border-color: var(--line); box-shadow: none;
}
.line-grid article:hover, .service-card:hover { background: var(--panel-raised); transform: translateY(-3px); }
.line-grid p, .project-split p, .workflow-case > p, .audiovisual-copy > p:last-child, .about-copy p, .process-list p, .faq details p { color: var(--muted); }
.service-points li { border-color: var(--line); color: #dce6df; }
.automation-diagram li, .workflow-steps li, .status-list li { background: #0b120e; border-color: rgba(165,179,170,.28); color: var(--ink); }
.automation-diagram li:not(:last-child):after, .workflow-steps li:not(:last-child):after { background: var(--yellow); color: #070b09; }
.sample-request, .exception-branch, .exception-note { background: rgba(0,255,65,.06); border-color: var(--yellow); color: var(--ink); }
.sample-request dt, .visual-note, .request-kicker { color: var(--muted); font-family: var(--technical); }

.service-grid { border-color: var(--line); }
.service-card { border-color: var(--line); }
.service-card h3 { color: var(--ink); }
.accent-card { background: #112d1a; }
.accent-card:hover { background: #173a21; }
.portfolio { color: var(--ink); }
.portfolio .eyebrow, .portfolio-intro { color: var(--muted); }
.project-split article:last-child { background: #0d1810; }
.demo-chip { border-color: rgba(0,255,65,.36); }
.video-frame { border: 1px solid rgba(165,179,170,.2); background: #0b120e; }
.video-control { background: rgba(7,11,9,.92); color: var(--ink); border: 1px solid rgba(0,255,65,.48); font-family: var(--technical); }
.video-control:hover, .video-frame:focus-within .video-control { background: var(--yellow); color: #070b09; }
.video-caption h3 { color: var(--ink); }
.video-caption p { color: var(--muted); }
.portfolio-cta { background: #0d2a16; border: 1px solid rgba(0,255,65,.42); }
.portfolio-cta p { color: #c4d5c9; }

.process { background: #0b120e; }
.process-list, .process-list li, .benefit-list, .benefit-list p, .faq-list, .faq details { border-color: var(--line); }
.process-list li > span, .benefit-list span { color: var(--yellow); font-family: var(--technical); }
.benefits .section-intro, .benefits .benefit-list { background: transparent; backdrop-filter: none; }
.benefits .benefit-list p { color: var(--ink); }
.faq { background: #070b09; }
.faq summary { color: var(--ink); }
.faq summary:hover, .faq summary:focus-visible { color: var(--yellow); }

.contact { background: #0b120e; border-top: 1px solid rgba(0,255,65,.55); }
.contact h2 { color: var(--ink); }
.contact-copy > p:last-child, .form-note, .field-optional, .sample-fields-note { color: var(--muted); }
.field-legend, .demo-form label { color: var(--ink); font-family: var(--technical); }
.field-legend > span:first-child, .demo-form label > span[aria-hidden="true"] { color: var(--yellow); }
.demo-form input, .demo-form select, .demo-form textarea {
  border-color: rgba(165,179,170,.36); background: var(--panel); color: var(--ink); border-radius: .18rem;
}
.demo-form input::placeholder, .demo-form textarea::placeholder { color: #718077; }
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(0,255,65,.14); }
.sample-fields-title { color: var(--yellow); font-family: var(--technical); }
.form-errors { background: rgba(0,255,65,.08); border-left-color: var(--yellow); color: var(--ink); }
.demo-form [aria-invalid="true"] { border-color: #ff8575; box-shadow: 0 0 0 2px rgba(255,133,117,.16); }
footer { background: #050806; color: var(--muted); border-top: 1px solid var(--line); }
footer .brand { color: inherit; }
footer a:last-child { color: var(--yellow); font-family: var(--technical); }

a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
@media (max-width: 900px) { .site-header nav.open { background: #0b120e; border: 1px solid var(--line); padding: 1rem; } }
@media (max-width: 560px) {
  .brand img { width: 9.5rem; }
  .section-hero { min-height: auto; }
  .hero-copy p { font-size: 1.05rem; }
  .line-grid article, .project-split article { min-height: 0; }
  .portfolio-cta { padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { .scroll-video { display: none; } }

/* Corrección de contraste: motion.css dejaba estos dos paneles claros bajo texto claro. */
[hidden] { display: none !important; }

.capability-showcase,
.audiovisual-story {
  background: #0b120e;
  border-color: rgba(0,255,65,.42);
  color: var(--ink);
}
.capability-showcase h3,
.capability-showcase h4,
.audiovisual-story h3,
.audiovisual-story h4 { color: var(--ink); }
.capability-heading > p:last-child,
.workflow-case > p,
.workflow-case small,
.audiovisual-copy > p:not(.eyebrow),
.audiovisual-copy small { color: var(--muted); }
.audiovisual-story .ad-shot { background: #070b09; border-color: var(--line); }
.audiovisual-story .ad-shot img { background: #070b09; }
.audiovisual-story .ad-shot figcaption { background: var(--panel); color: var(--ink); }
.audiovisual-story .ad-shot b { color: var(--yellow); }
.production-steps li { background: var(--panel); border-color: var(--line); color: var(--ink); }
.video-sample-fields,
.automation-brief-fields { background: var(--panel); border-color: var(--line); }

.needs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.needs-grid article { display: flex; flex-direction: column; }
.needs-grid .text-link { margin-top: auto; }
.service-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.service-card { min-height: 24rem; }
@media (max-width: 900px) {
  .needs-grid, .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .needs-grid article:nth-child(3), .service-card:nth-child(5) { border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .needs-grid, .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 14rem; }
}
