/* Deportivo General Trading — site stylesheet. Monochrome brand, one accent. */

:root {
  --ink: #0b0b0c;
  --ink-2: #141416;
  --ink-3: #1f1f23;
  --paper: #f6f4ef;
  --paper-2: #ecE9e2;
  --white: #ffffff;
  --muted: #6b6b70;
  --muted-on-dark: #a4a4ab;
  --line: rgba(11, 11, 12, 0.12);
  --line-on-dark: rgba(255, 255, 255, 0.14);
  --accent: #2b5bff;
  --accent-ink: #1740d6;
  --accent-soft: rgba(43, 91, 255, 0.12);
  --radius: 18px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 10vw, 136px);
  --font: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 16px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header--dark { color: var(--white); background: var(--ink); }
.header.is-scrolled {
  background: rgba(246, 244, 239, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
  color: var(--ink);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.22em; font-size: 0.8rem; text-transform: uppercase; }
.brand__mark { width: 34px; height: 34px; }
.brand__mark--light, .brand__mark--dark { display: none; }
.header--dark:not(.is-scrolled) .brand__mark--light { display: block; }
.header:not(.header--dark) .brand__mark--dark, .header.is-scrolled .brand__mark--dark { display: block; }
.header:not(.header--dark) .brand__mark--light { display: none; }
.header--dark.is-scrolled .brand__mark--light { display: none; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 600; font-size: 0.95rem; opacity: 0.82; transition: opacity 0.2s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav__cta { margin-left: 8px; }

.burger {
  display: none; width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 10px;
  background: transparent; color: inherit; cursor: pointer; align-items: center; justify-content: center;
}
.burger span { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

@media (max-width: 860px) {
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); opacity: 1; }
  .nav a[aria-current="page"] { text-decoration: none; }
  .nav__cta { margin: 16px 0 0; text-align: center; }
  .burger { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.2s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--ink-3); }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-ink); }
.btn--ghost { background: transparent; border-color: var(--line); color: inherit; }
.btn--ghost:hover { border-color: currentColor; }
.header--dark:not(.is-scrolled) .btn--primary, .on-dark .btn--primary { background: var(--white); color: var(--ink); }
.header--dark:not(.is-scrolled) .btn--primary:hover, .on-dark .btn--primary:hover { background: var(--paper-2); }
.on-dark .btn--ghost { border-color: var(--line-on-dark); color: var(--white); }
.on-dark .btn--ghost:hover { border-color: var(--white); }
.btn--sm { padding: 10px 16px; font-size: 0.875rem; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; opacity: 0.6; }
.on-dark .eyebrow { color: var(--muted-on-dark); }
.display { font-size: clamp(2.5rem, 6.2vw, 5rem); }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); letter-spacing: -0.01em; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.on-dark .lead { color: var(--muted-on-dark); }
.measure { max-width: 64ch; }
.muted { color: var(--muted); }
.on-dark .muted { color: var(--muted-on-dark); }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--dark, .on-dark { background: var(--ink); color: var(--white); }
.section--paper2 { background: var(--paper-2); }
.section__head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head--split { grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section__head--split { grid-template-columns: 1.2fr 1fr; gap: 48px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; background: var(--ink); color: var(--white); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 40%, rgba(43, 91, 255, 0.16), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(255, 255, 255, 0.05), transparent 70%);
}
.hero__inner {
  position: relative; display: grid; gap: 40px; align-items: center;
  padding-block: clamp(56px, 8vw, 110px) clamp(40px, 6vw, 80px);
  min-height: calc(100svh - 76px);
}
@media (min-width: 960px) { .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: 56px; } }
.hero__copy { display: grid; gap: 26px; }
.hero__copy .display { max-width: 19ch; font-size: clamp(2.3rem, 4.1vw, 3.9rem); line-height: 1.04; letter-spacing: -0.03em; }
.hero__copy .lead { max-width: 52ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { font-size: 0.85rem; color: var(--muted-on-dark); }

.globe { position: relative; width: min(100%, 620px); margin-inline: auto; aspect-ratio: 1; touch-action: pan-y; }
.globe canvas { width: 100%; height: 100%; }
.globe__pin {
  position: absolute; transform: translate(-50%, -50%); opacity: 0; pointer-events: none;
  display: inline-flex; flex-direction: column; gap: 2px;
  padding: 8px 12px; border-radius: 10px; background: rgba(20, 20, 22, 0.86); border: 1px solid var(--line-on-dark);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 0.8rem; font-weight: 700; line-height: 1.2; white-space: nowrap;
  transition: opacity 0.4s var(--ease);
}
.globe__pin small { font-weight: 600; color: var(--muted-on-dark); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.globe__pin[data-on] { opacity: 1; }
.globe__hint { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); font-size: 0.75rem; color: var(--muted-on-dark); letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Footprint strip ---------- */
.footprint { border-top: 1px solid var(--line-on-dark); }
.footprint__inner { display: grid; gap: 0; }
@media (min-width: 720px) { .footprint__inner { grid-template-columns: repeat(3, 1fr); } }
.footprint__item { padding: 26px 0; display: grid; gap: 6px; border-bottom: 1px solid var(--line-on-dark); }
@media (min-width: 720px) {
  .footprint__item { padding: 30px 28px; border-bottom: 0; border-left: 1px solid var(--line-on-dark); }
  .footprint__item:first-child { padding-left: 0; border-left: 0; }
}
.footprint__item strong { font-size: 1.15rem; letter-spacing: -0.01em; }
.footprint__item span { color: var(--muted-on-dark); font-size: 0.92rem; }
.footprint__item em { font-style: normal; color: var(--accent); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative; display: grid; gap: 16px; align-content: start;
  padding: clamp(24px, 3vw, 36px); border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -32px rgba(11, 11, 12, 0.35); }
.card--dark { background: var(--ink-2); border-color: var(--line-on-dark); color: var(--white); }
.card--dark:hover { box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.8); }
.card__tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.card--dark .card__tag { color: var(--muted-on-dark); }
.card__mark { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.card__mark--wide { letter-spacing: 0.18em; font-size: clamp(1.2rem, 2vw, 1.5rem); }
.card__mark .x { color: var(--accent); }
.card p { color: var(--muted); }
.card--dark p { color: var(--muted-on-dark); }
.card__foot { margin-top: auto; padding-top: 6px; }
.card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.card--dark .btn--primary { background: var(--white); color: var(--ink); }
.card--dark .btn--primary:hover { background: var(--paper-2); }
.card__status {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; color: var(--muted);
}
.card__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.card__status--soon::before { background: var(--muted); }
.card--dark .card__status { color: var(--muted-on-dark); }

.pillars { display: grid; gap: 12px; }
.pillars li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--muted); font-size: 0.98rem; }
.card--dark .pillars li, .on-dark .pillars li { color: var(--muted-on-dark); }
.pillars li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(43, 91, 255, 0.5); margin-top: 2px; }

/* ---------- Governance strip ---------- */
.gov { display: grid; gap: 28px; }
@media (min-width: 800px) { .gov { grid-template-columns: repeat(4, 1fr); gap: 36px; } }
.gov__item { display: grid; gap: 10px; padding-top: 18px; border-top: 2px solid var(--ink); }
.gov__item strong { font-size: 1.05rem; letter-spacing: -0.01em; }
.gov__item p { color: var(--muted); font-size: 0.95rem; }
.on-dark .gov__item { border-top-color: var(--white); }
.on-dark .gov__item p { color: var(--muted-on-dark); }

/* ---------- Band with shader background ---------- */
.band { position: relative; overflow: clip; }
.band__bg { position: absolute; inset: 0; z-index: 0; }
.band__bg canvas { width: 100%; height: 100%; }
.band__inner { position: relative; z-index: 1; display: grid; gap: 28px; }
@media (min-width: 900px) { .band__inner { grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; } }
.band__list { display: grid; gap: 14px; }
.band__list li { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-on-dark); }
.band__list strong { font-size: 1rem; }
.band__list span { color: var(--muted-on-dark); font-size: 0.92rem; }

/* ---------- Portfolio architecture diagram ---------- */
.arch { display: grid; gap: 14px; }
.arch__root { justify-self: center; text-align: center; padding: 18px 28px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; }
.arch__stem { justify-self: center; width: 2px; height: 28px; background: var(--ink); }
.arch__branches { display: grid; gap: 14px; }
@media (min-width: 760px) { .arch__branches { grid-template-columns: repeat(3, 1fr); } }
.arch__branch { display: grid; gap: 10px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.arch__branch strong { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.arch__branch b { font-size: 1.15rem; letter-spacing: -0.01em; }
.arch__branch span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Venture detail ---------- */
.venture { display: grid; gap: 28px; padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.venture:first-of-type { border-top: 0; }
@media (min-width: 960px) { .venture { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }
.venture__head { display: grid; gap: 16px; align-content: start; position: sticky; top: 100px; }
@media (max-width: 959px) { .venture__head { position: static; } }
.venture__body { display: grid; gap: 22px; }
.venture__body p { color: var(--muted); }
.facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.facts div { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 0.93rem; }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }

/* ---------- Prose blocks ---------- */
.prose { display: grid; gap: 18px; max-width: 68ch; }
.prose p { color: var(--muted); }
.prose h3 { padding-top: 10px; }
.two-col { display: grid; gap: 28px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; } }
.stat { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid var(--line); }
.stat b { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -0.03em; line-height: 1; }
.stat span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__status { font-size: 0.92rem; color: var(--muted); min-height: 1.4em; }
.form__status.is-error { color: #b42318; }
.form__status.is-ok { color: #067647; }
.form__legal { font-size: 0.82rem; color: var(--muted); }

.contact-card { display: grid; gap: 22px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--ink); color: var(--white); }
.contact-card a.mail { font-weight: 700; font-size: 1.05rem; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(255, 255, 255, 0.35); }
.contact-card a.mail:hover { text-decoration-color: var(--white); }
.contact-card dl { display: grid; gap: 14px; }
.contact-card dt { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-on-dark); font-weight: 700; }
.contact-card dd { margin: 4px 0 0; }

/* ---------- CTA block ---------- */
.cta { display: grid; gap: 24px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: calc(var(--radius) + 6px); background: var(--ink); color: var(--white); }
@media (min-width: 900px) { .cta { grid-template-columns: 1.3fr auto; } }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink); color: var(--white); padding-block: clamp(40px, 5vw, 64px) 28px;
  border-top: 1px solid var(--line-on-dark);
  font-family: "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.9rem; line-height: 1.7;
}
.footer__grid { display: grid; gap: 34px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; } }
.footer__brand { display: grid; gap: 14px; justify-items: start; }
.footer__brand img { width: 40px; height: 40px; }
.footer__brand p { color: var(--muted-on-dark); max-width: 44ch; }
.footer__contact { display: grid; gap: 4px; }
.footer__contact span { color: var(--muted-on-dark); }
.footer__contact a { font-weight: 500; }
.footer__contact a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__cta { display: inline-block; margin-top: 8px; font-weight: 600; }
.footer h4 { margin: 0 0 12px; font-family: inherit; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-on-dark); }
.footer__col ul { display: grid; gap: 4px; }
.footer__col li { color: var(--muted-on-dark); }
.footer__col li a { color: var(--white); font-weight: 500; }
.footer__col li a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__legal-list li { color: var(--muted-on-dark); font-size: 0.85rem; }
.footer__legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line-on-dark); color: var(--muted-on-dark); font-size: 0.78rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--ink); color: var(--white); padding-block: clamp(56px, 8vw, 110px) clamp(48px, 6vw, 80px); }
.page-hero__inner { display: grid; gap: 22px; }
.page-hero .display { max-width: 16ch; font-size: clamp(2.2rem, 5vw, 4.2rem); }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="2"] { transition-delay: 0.1s; }
[data-reveal="3"] { transition-delay: 0.2s; }
[data-reveal="4"] { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- Utilities ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.inline-list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.85rem; font-weight: 600; background: var(--white); }
.on-dark .chip { border-color: var(--line-on-dark); background: rgba(255, 255, 255, 0.04); }
