/* =============================================================
   WEB STUDIO — styles.css
   Archetype: Brutalist Grid (grayscale variant — no color accent)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #ffffff;
  --ink:       #000000;
  --gray-900:  #111111;
  --gray-700:  #3d3d3d;
  --gray-500:  #737373;
  --gray-400:  #9b9b9b;
  --gray-300:  #c6c6c6;
  --gray-200:  #e2e2e2;
  --gray-100:  #f3f3f3;
  --line:      #000000;

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --nav-h: 76px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  overflow-x: clip;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1; letter-spacing: -0.01em; font-weight: 800; }
ul { list-style: none; padding: 0; }
::selection { background: var(--ink); color: var(--bg); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .8rem 1.2rem; background: var(--ink); color: var(--bg);
  z-index: 9999; font-family: var(--mono); font-size: .85rem;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 720px)  { .container { padding-inline: 2.5rem; } }
@media (min-width: 1280px) { .container { padding-inline: 4rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.kicker {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--gray-700);
  margin-bottom: 1.4rem;
}
.kicker .dot { width: 7px; height: 7px; background: var(--ink); flex-shrink: 0; }

.eyebrow-number {
  font-family: var(--mono); font-weight: 700; font-size: .78rem;
  color: var(--gray-400);
}

/* =============================================================
   4. Brutalist grid system
   ============================================================= */
.grid-12 {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.grid-12 > * { border-bottom: 1px solid var(--line); padding: 2rem 1.25rem; }
.grid-12 > *:last-child { border-bottom: 1px solid var(--line); }

@media (min-width: 720px) {
  .grid-12 > * { padding: 2rem 2.5rem; }
}

@media (min-width: 960px) {
  .grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1px;
    background: var(--line);
    border: 0;
  }
  .grid-12 > * { background: var(--bg); padding: 3rem 2.5rem; border: 0; }
  .col-span-3  { grid-column: span 3; }
  .col-span-4  { grid-column: span 4; }
  .col-span-5  { grid-column: span 5; }
  .col-span-6  { grid-column: span 6; }
  .col-span-7  { grid-column: span 7; }
  .col-span-8  { grid-column: span 8; }
  .col-span-9  { grid-column: span 9; }
  .col-span-12 { grid-column: span 12; }
}

/* =============================================================
   5. Components
   ============================================================= */

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .88rem; font-weight: 600;
  letter-spacing: .01em;
  padding: 1rem 1.6rem;
  border: 1.5px solid var(--ink);
  transition: background-color .12s linear, color .12s linear;
  white-space: nowrap;
}
.btn-invert { background: var(--ink); color: var(--bg); }
.btn-invert:hover, .btn-invert:focus-visible { background: var(--bg); color: var(--ink); }
.btn-outline { background: var(--bg); color: var(--ink); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--ink); color: var(--bg); }

/* Nav */
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
  padding-inline: 1.25rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .site-header { padding-inline: 2.5rem; } }
@media (min-width: 1280px) { .site-header { padding-inline: 4rem; } }

.logo { display: flex; align-items: center; gap: .65rem; }
.logo img { width: 30px; height: 30px; }
.logo span {
  font-family: var(--mono); font-weight: 700; font-size: 1rem;
  letter-spacing: .02em;
}

.nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 960px) { .nav { display: flex; } }
.nav a {
  font-family: var(--mono); font-size: .85rem; font-weight: 500;
  padding: .4rem .1rem;
  position: relative;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.nav a:not(.nav-cta):hover::after,
.nav a:not(.nav-cta):focus-visible::after { transform: scaleX(1); }
.nav-cta {
  border: 1.5px solid var(--ink); padding: .6rem 1.1rem;
  transition: background-color .12s linear, color .12s linear;
}
.nav-cta:hover, .nav-cta:focus-visible { background: var(--ink); color: var(--bg); }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px;
}
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: var(--ink);
  transition: transform .25s var(--ease-out), opacity .2s linear;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 2rem 1.25rem;
  gap: 0;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease-out), transform .2s var(--ease-out);
  border-top: 1px solid var(--line);
}
.mobile-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav a {
  font-family: var(--mono); font-size: 1.4rem; font-weight: 700;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 960px) { .mobile-nav { display: none; } }

/* =============================================================
   6. Sections — Hero
   ============================================================= */
.hero { padding-top: 1px; }
.hero-kicker { padding-bottom: .5rem !important; }
.hero-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 6.2rem);
  line-height: .96;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  -webkit-text-stroke: 1.5px var(--ink);
  color: var(--bg);
  paint-order: stroke fill;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--gray-700);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
@media (min-width: 960px) { .hero-actions { justify-content: flex-end; } }

.hero-stats {
  display: grid; grid-template-columns: repeat(1, 1fr); gap: 1px;
  background: var(--line);
}
@media (min-width: 720px) { .hero-stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--bg); padding: 1.75rem 0; }
.stat-value {
  font-family: var(--mono); font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
}
.stat-label {
  font-family: var(--mono); font-size: .78rem; color: var(--gray-500);
  margin-top: .6rem; max-width: 22ch;
}

/* =============================================================
   6b. Marquee
   ============================================================= */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  overflow: hidden;
  padding-block: 1.1rem;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marqueeScroll 32s linear infinite;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--mono); font-weight: 700; font-size: 1rem;
  color: var(--bg); white-space: nowrap;
  padding-inline: 1.4rem;
  display: flex; align-items: center; gap: 1.4rem;
}
.marquee-item::after { content: "/"; color: var(--gray-500); }

/* =============================================================
   6c. Manifesto
   ============================================================= */
.manifesto-lead {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.35;
  max-width: 30ch;
}
.manifesto-body {
  font-size: 1.05rem; color: var(--gray-700); max-width: 52ch;
}
.manifesto-body + .manifesto-body { margin-top: 1.1rem; }

/* =============================================================
   6d. Services
   ============================================================= */
.service-block { display: flex; flex-direction: column; gap: .9rem; }
.service-num { font-family: var(--mono); font-size: 2.4rem; font-weight: 800; color: var(--gray-200); line-height: 1; }
.service-name { font-family: var(--sans); font-size: 1.3rem; font-weight: 700; }
.service-desc { color: var(--gray-700); font-size: .98rem; max-width: 36ch; }

/* =============================================================
   6e. Portfolio
   ============================================================= */
.portfolio-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
}
@media (min-width: 720px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }

.portfolio-card {
  background: var(--bg); padding: 2.4rem 2rem;
  display: flex; flex-direction: column; gap: 1.2rem;
  transition: background-color .15s linear, color .15s linear;
  position: relative;
}
@media (hover: hover) {
  .portfolio-card:hover { background: var(--ink); color: var(--bg); }
  .portfolio-card:hover .portfolio-icon svg { stroke: var(--bg); }
  .portfolio-card:hover .portfolio-tag { border-color: var(--bg); }
  .portfolio-card:hover .portfolio-desc { color: var(--gray-300); }
  .portfolio-card:hover .service-num,
  .portfolio-card:hover .portfolio-num { color: var(--gray-700); }
}
.portfolio-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.portfolio-num { font-family: var(--mono); font-size: 1.1rem; font-weight: 800; color: var(--gray-300); }
.portfolio-icon svg { width: 38px; height: 38px; stroke: var(--ink); stroke-width: 1.4; fill: none; }
.portfolio-rubro {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--gray-500);
}
.portfolio-title { font-family: var(--sans); font-size: 1.5rem; font-weight: 800; }
.portfolio-desc { color: var(--gray-700); font-size: .95rem; max-width: 44ch; }
.portfolio-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: .4rem; }
.portfolio-tag {
  font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid var(--ink); padding: .35rem .6rem;
}
.portfolio-link { font-family: var(--mono); font-size: .82rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   6f. Process
   ============================================================= */
.process-block { display: flex; flex-direction: column; gap: .8rem; }

/* =============================================================
   6g. Final CTA
   ============================================================= */
.cta {
  border-top: 1px solid var(--line);
  padding-block: clamp(4rem, 10vw, 8rem);
  text-align: center;
}
.cta-title {
  font-size: clamp(2rem, 6vw, 3.6rem);
  max-width: 20ch; margin-inline: auto;
}
.cta-email {
  display: inline-block; margin-top: 1.8rem;
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(1.3rem, 3.4vw, 2.1rem);
  border-bottom: 2px solid var(--ink);
  padding-bottom: .2rem;
  word-break: break-word;
}
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.2rem; }

/* =============================================================
   6h. Footer
   ============================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem;
  font-family: var(--mono);
}
.footer-top {
  display: flex; flex-direction: column; gap: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.footer-logo { display: flex; align-items: center; gap: .6rem; }
.footer-logo img { width: 26px; height: 26px; }
.footer-logo span { font-weight: 700; font-size: .95rem; }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; font-size: .85rem; }
.footer-nav a { text-decoration: underline; text-underline-offset: 3px; }
.footer-contact { font-size: .85rem; color: var(--gray-700); display: flex; flex-direction: column; gap: .3rem; }
.footer-bottom {
  display: flex; flex-direction: column; gap: .5rem;
  padding-top: 1.5rem; font-size: .76rem; color: var(--gray-500);
}
@media (min-width: 720px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* =============================================================
   7. Reveal / scroll effects
   ============================================================= */
/* Default: fully visible — guarantees content shows with JS disabled */
.reveal { opacity: 1; transform: none; }
/* Only hide-then-reveal when JS confirmed it's running (class set synchronously in <head>) */
html.js .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease-soft), transform .6s var(--ease-soft);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   8. Responsive tweaks
   ============================================================= */
@media (max-width: 959px) {
  .grid-12 > *:last-child { border-bottom: 1px solid var(--line); }
  .hero-actions { justify-content: flex-start; }
}

@media (min-width: 540px) {
  .marquee-item { font-size: 1.05rem; }
}

/* =============================================================
   9. WhatsApp flotante
   ============================================================= */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px -6px rgba(0, 0, 0, .35);
  transition: transform .15s var(--ease-out);
}
.wa-float:hover, .wa-float:focus-visible { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; fill: var(--bg); }
@media (min-width: 720px) {
  .wa-float { right: 2rem; bottom: 2rem; }
}
