:root {
  --green: #00AB46;
  --green-ink: #007A33;
  --green-ink-hover: #005C26;
  --black: #000000;
  --panel: #0A0D0B;
  --ground: #F4F5F3;
  --white: #FFFFFF;
  --ink: #0B0D0C;
  --muted: #47504A;
  --muted-2: #5B655E;
  --line: #DCE1DD;
  --on-dark: #FFFFFF;
  --on-dark-muted: #B7C0BA;
  --on-dark-faint: #8E9A93;
  --line-dark: #1E2A22;
  --line-dark-2: #2C3530;
  --display: 'Saira Condensed', 'Arial Narrow', sans-serif;
  --body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --pad: clamp(20px, 6vw, 96px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-ink); }
a:hover { color: var(--green-ink-hover); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1; }
p { margin: 0; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.skip-link { position: absolute; left: 16px; top: -60px; background: var(--green); color: var(--black); padding: 10px 16px; border-radius: 8px; font-weight: 600; z-index: 10; }
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-inline: var(--pad); }

/* Dark areas */
.dark { background: var(--black); color: var(--on-dark); }
.dark p { color: var(--on-dark-muted); }

/* Header */
.site-header { border-bottom: 1px solid #1A1F1C; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; }
.brand { display: flex; align-items: center; }
.brand img { width: 178px; height: 56px; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { color: #E6EAE7; text-decoration: none; font-weight: 500; font-size: 16px; }
.nav a:hover { color: var(--green); }
.nav a[aria-current="page"] { color: var(--green); }
.menu { display: none; }

@media (max-width: 860px) {
  .brand img { width: 140px; height: 44px; }
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; width: 48px; height: 48px; border: 1px solid #26302A; border-radius: 12px; display: grid; place-items: center; cursor: pointer; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu-panel { position: absolute; right: 0; top: 58px; width: min(80vw, 280px); background: var(--panel); border: 1px solid var(--line-dark); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; z-index: 5; }
  .menu-panel a { color: #E6EAE7; text-decoration: none; font-weight: 500; padding: 12px 14px; border-radius: 10px; min-height: 44px; }
  .menu-panel a:hover { background: #111713; color: var(--green); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 30px; border-radius: 999px; background: var(--green); color: var(--black); text-decoration: none; font-weight: 600; font-size: 17px; border: 0; font-family: var(--body); cursor: pointer; }
.btn:hover { background: #12BE56; color: var(--black); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 16px; }
.link-line { color: var(--on-dark); font-weight: 600; text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 6px; }
.link-line:hover { color: var(--green); }

.eyebrow { font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; color: var(--green-ink); }
.dark .eyebrow { color: var(--green); }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 9vw, 128px); }
.hero-text { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-weight: 700; font-size: clamp(48px, 6.2vw, 90px); line-height: 0.97; color: var(--on-dark); }
.hero-lead { font-size: clamp(17px, 1.5vw, 20px); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 4px; }
.badge { display: inline-block; font-family: var(--mono); font-size: 12px; padding: 5px 11px; border-radius: 999px; }
.badge-green { background: var(--green); color: var(--black); }
.badge-line { border: 1px solid #AEB8B1; color: var(--muted); }
.eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.tree { background: var(--panel); border: 1px solid var(--line-dark); border-radius: 20px; padding: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 44px); font-family: var(--mono); font-size: clamp(14px, 1.3vw, 17px); line-height: 1.7; color: #D5DBD7; }
.tree .dots { display: flex; gap: 8px; margin-bottom: 20px; }
.tree .dots span { width: 12px; height: 12px; border-radius: 50%; background: #26302A; }
.tree .dots span:last-child { background: var(--green); }
.tree pre { margin: 0; font: inherit; white-space: pre; overflow-x: auto; }
.tree .root { color: var(--green); }
.tree .dir { color: var(--white); }
.tree .leaf { color: var(--on-dark-faint); }
.tree .prompt { border-top: 1px solid var(--line-dark); margin-top: 18px; padding-top: 16px; color: var(--on-dark-faint); }
.tree .prompt span { color: var(--green); }

.shot { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.shot .frame { background: #151A17; border: 1px solid var(--line-dark-2); border-radius: 28px; padding: clamp(10px, 1.2vw, 16px); }
.shot img { border-radius: 14px; width: 100%; }
.shot figcaption { text-align: center; font-size: 14px; color: var(--on-dark-faint); }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* Sections */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 64px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head > div { display: flex; flex-direction: column; gap: 16px; max-width: 900px; }
.section-head h2 { font-weight: 700; font-size: clamp(40px, 4.4vw, 60px); }
.section-head p { font-size: 18px; color: var(--muted); max-width: 28em; }

.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.service { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.service h3 { font-weight: 600; font-size: 28px; }
.service p, .principle p, .step p { color: var(--muted); font-size: 16px; }

.product { border-radius: 20px; padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px; background: var(--ground); border: 1px solid var(--line); }
.product-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.product-kind { font-family: var(--mono); font-size: 13px; color: var(--muted-2); }
.product h3 { font-weight: 700; font-size: clamp(36px, 3.2vw, 44px); }
.product p { color: var(--muted); }
.product .tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.product .tags span { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid #C9D0CB; color: var(--muted); }
.product-featured { background: var(--black); border-color: var(--black); }
.product-featured .product-kind { color: var(--on-dark-muted); }
.product-featured h3 { color: var(--green); }
.product-featured p { color: var(--on-dark-muted); }
.product-featured .tags span { border-color: var(--line-dark-2); color: #D5DBD7; }
.product-featured .more { color: var(--green); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.product-featured .more:hover { text-decoration: underline; text-underline-offset: 5px; }

.principle { border-top: 3px solid var(--green); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.principle h3 { font-weight: 600; font-size: 32px; }

.step { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 34px; display: flex; flex-direction: column; gap: 14px; }
.step .num { font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 1; color: var(--green-ink); }
.step h3 { font-weight: 600; font-size: 32px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }
.feature { border-top: 3px solid var(--green); padding-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.feature h3 { font-weight: 600; font-size: 28px; }
.feature p { color: var(--muted); font-size: 16px; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split-text { display: flex; flex-direction: column; gap: 16px; }
.split-text h2 { font-weight: 700; font-size: clamp(40px, 4.4vw, 60px); }
.split-text p { color: var(--muted); font-size: 18px; }
.sports { display: flex; flex-direction: column; gap: 14px; }
.sport { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 72px; padding: 0 24px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.sport span:first-child { font-family: var(--display); font-weight: 600; font-size: 28px; }
.sport-current { background: var(--black); border-color: var(--black); color: var(--white); }

/* Page hero (páginas internas) */
.page-hero .wrap { display: flex; flex-direction: column; gap: 24px; padding-block: clamp(56px, 8vw, 104px); }
.page-hero h1 { font-weight: 700; font-size: clamp(48px, 6vw, 88px); line-height: 0.95; color: var(--white); max-width: 14em; }

/* Client logos carousel */
.clients-band { background: var(--white); border-bottom: 1px solid var(--line); padding-block: clamp(36px, 4.4vw, 56px); display: flex; flex-direction: column; gap: 24px; }
.clients-band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--green-ink); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 5px; }
.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.logo-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.logo-marquee:hover .logo-track, .logo-marquee:focus-within .logo-track { animation-play-state: paused; }
.logo-group { display: flex; }
.logo-card { display: grid; place-items: center; width: clamp(220px, 22vw, 300px); height: clamp(96px, 9vw, 120px); margin-right: 20px; padding: 0 36px; border-radius: 16px; background: var(--ground); border: 1px solid var(--line); transition: border-color .25s, background .25s; }
.logo-card img { width: auto; max-width: 100%; height: clamp(30px, 2.8vw, 38px); object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .25s, opacity .25s; }
.logo-card:hover, .logo-card:focus-visible { background: var(--white); border-color: var(--green); }
.logo-card:hover img, .logo-card:focus-visible img { filter: none; opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logo-marquee { -webkit-mask-image: none; mask-image: none; }
  .logo-track { animation: none; width: auto; justify-content: center; }
  .logo-group { flex-wrap: wrap; justify-content: center; gap: 16px; padding-inline: var(--pad); }
  .logo-group + .logo-group, .logo-group .logo-card[aria-hidden="true"] { display: none; }
  .logo-card { margin-right: 0; }
}

/* Client cases */
.case-logo { display: flex; align-items: center; height: 72px; padding: 0 24px; align-self: flex-start; border-radius: 14px; background: var(--ground); border: 1px solid var(--line); }
.case-logo img { width: auto; height: 34px; }
.case-client { font-family: var(--mono); font-size: 13px; color: var(--muted-2); }
.case { scroll-margin-top: 24px; }
.cases { display: flex; flex-direction: column; gap: 24px; }
.case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(28px, 3.4vw, 48px); }
@media (max-width: 860px) { .case { grid-template-columns: minmax(0, 1fr); } }
.case-head { display: flex; flex-direction: column; gap: 16px; }
.case-head h2 { font-weight: 700; font-size: clamp(40px, 4vw, 56px); color: var(--green-ink); }
.case-lead { font-size: 19px; color: var(--ink); }
.case-body { display: flex; flex-direction: column; gap: 20px; }
.case-body > p { color: var(--muted); }
.case-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.case-list li { position: relative; padding-left: 22px; color: var(--muted); font-size: 16px; }
.case-list li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--green); }
.case .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case .tags span { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid #C9D0CB; color: var(--muted); }

/* Contact band */
.cta .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px); align-items: center; padding-block: clamp(64px, 9vw, 120px); }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: minmax(0, 1fr); } }
.cta h2 { font-weight: 700; font-size: clamp(48px, 5.4vw, 76px); line-height: 0.98; color: var(--white); margin-bottom: 20px; }
.cta p { font-size: 19px; max-width: 30em; }
.cta-links { display: flex; flex-direction: column; gap: 14px; }
.cta-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 68px; padding: 0 26px; border-radius: 16px; border: 1px solid var(--line-dark-2); color: var(--white); text-decoration: none; font-size: 18px; font-weight: 500; }
.cta-links a:hover { border-color: var(--green); color: var(--white); }
.cta-links a.primary { background: var(--green); border-color: var(--green); color: var(--black); font-weight: 600; }
.cta-links a.primary:hover { background: #12BE56; }
.cta-center .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.cta-center h2 { margin: 0; max-width: 14em; }

/* Contact page */
.contact .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 80px); align-items: start; padding-block: clamp(56px, 8vw, 104px); }
@media (max-width: 960px) { .contact .wrap { grid-template-columns: minmax(0, 1fr); } }
.contact h1 { font-weight: 700; font-size: clamp(48px, 6vw, 88px); line-height: 0.95; color: var(--white); }
.contact-info { list-style: none; margin: 0; padding: 12px 0 0; display: flex; flex-direction: column; gap: 14px; }
.contact-info li { display: flex; align-items: center; gap: 14px; color: #E6EAE7; }
.contact-info a { color: #E6EAE7; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.contact-info a:hover { color: var(--green); }
.form { background: var(--panel); border: 1px solid var(--line-dark); border-radius: 24px; padding: clamp(24px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .form legend { font-size: 15px; font-weight: 500; color: #D5DBD7; }
.field input, .field textarea { min-height: 52px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-dark-2); background: var(--black); color: var(--white); font: inherit; font-size: 16px; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #6F7B74; }
.form fieldset { margin: 0; padding: 0; border: 0; }
.form legend { padding: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-dark-2); color: #E6EAE7; font-size: 15px; cursor: pointer; }
.chips input:checked + span { background: var(--green); border-color: var(--green); color: var(--black); font-weight: 600; }
.chips input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 3px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-outline { background: transparent; color: var(--white); border: 1px solid var(--line-dark-2); }
.btn-outline:hover { background: transparent; border-color: var(--green); color: var(--white); }
.form-note { font-size: 14px; color: var(--on-dark-faint); }

/* Footer */
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-block: 30px; border-top: 1px solid #1A1F1C; font-size: 15px; color: var(--on-dark-faint); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.site-footer a:hover { color: var(--green); }

/* 404 */
.notfound .wrap { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 24px; padding-block: 80px; }
.notfound h1 { font-weight: 700; font-size: clamp(48px, 7vw, 96px); color: var(--white); }
