/* =========================================================
   NODOK — landing page
   monocromático · brutalista-ligero · typewriter
   ========================================================= */

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-50: #f7f7f7;
  --gray-100: #f2f2f2;
  --gray-200: #e6e6e6;
  --gray-400: #b8b8b8;
  --gray-500: #7a7a7a;
  --gray-700: #3a3a3a;
  --term-green: #00ff00;

  --border: 2px solid var(--black);
  --border-thin: 1px solid var(--black);
  --shadow: 6px 6px 0 0 var(--black);
  --shadow-sm: 4px 4px 0 0 var(--black);
  --shadow-lg: 10px 10px 0 0 var(--black);
  --shadow-light: 6px 6px 0 0 var(--white);

  --maxw: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);
  --header-h: 72px;

  --t: 220ms cubic-bezier(.2,.7,.2,1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Courier Prime', 'Courier New', ui-monospace, monospace;
  font-size: 16px;
  line-height: 1.55;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; filter: grayscale(100%) contrast(115%); }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: 'Courier Prime', monospace;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(36px, 6vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.2; }
h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.12em; }

p  { margin: 0 0 0.8em; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 0 0 18px;
}
.eyebrow.light { color: var(--gray-400); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border: var(--border);
  background: var(--white);
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  white-space: nowrap;
}

.btn:hover,
.btn:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow);
  outline: none;
}
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 0 var(--black); }

.btn-primary { background: var(--black); color: var(--white); }
.btn-primary:hover { background: var(--black); color: var(--white); box-shadow: 6px 6px 0 0 var(--gray-500); }

.btn-ghost { background: transparent; }

.btn-lg { padding: 18px 28px; font-size: 15px; }

.btn-nav {
  padding: 10px 18px;
  font-size: 13px;
  background: var(--black);
  color: var(--white);
}
.btn-nav:hover { box-shadow: 4px 4px 0 0 var(--gray-500); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--white);
  border-bottom: var(--border-thin);
  z-index: 50;
  transition: transform 320ms cubic-bezier(.2,.7,.2,1);
}
.site-header.is-hidden { transform: translateY(-110%); }
.site-header.is-scrolled { box-shadow: 0 1px 0 0 var(--black); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.logo-mark { font-size: 16px; }
.logo-text { text-transform: lowercase; }
.logo-inverted { color: var(--white); }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.nav-list a:not(.btn) {
  position: relative;
  padding: 6px 0;
}
.nav-list a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--black);
  transition: width var(--t);
}
.nav-list a:not(.btn):hover::after,
.nav-list a:not(.btn):focus-visible::after { width: 100%; }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  background: var(--white);
  border: var(--border);
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform var(--t), box-shadow var(--t);
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--black);
  transition: transform var(--t), opacity var(--t);
}
.hamburger:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-sm); }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 0;
  border-bottom: var(--border-thin);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 80px;
}

.hero-title { margin-bottom: 22px; }
.hero-sub {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--gray-700);
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-meta {
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  border-top: var(--border-thin);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hero-meta li { display: flex; flex-direction: column; gap: 4px; }
.hero-meta strong { font-size: 28px; }
.hero-meta span { font-size: 12px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.1em; }

/* hero visual */
.hero-visual { position: relative; }

.image-frame {
  position: relative;
  border: var(--border);
  background: var(--gray-100);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1deg);
  transition: transform var(--t), box-shadow var(--t);
}
.image-frame:hover { transform: rotate(0); box-shadow: 14px 14px 0 0 var(--black); }

.image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background:
    repeating-linear-gradient(135deg,
      var(--gray-100) 0,
      var(--gray-100) 14px,
      var(--gray-200) 14px,
      var(--gray-200) 16px);
  color: var(--gray-500);
}
.ph-label { font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; }
.ph-sub { font-size: 12px; color: var(--gray-500); }

.frame-tag {
  position: absolute;
  bottom: 12px; left: 12px;
  background: var(--black);
  color: var(--white);
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.callout {
  position: absolute;
  right: -8px;
  bottom: -28px;
  background: var(--white);
  border: var(--border);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  max-width: 240px;
  font-size: 13px;
  line-height: 1.4;
  transform: rotate(2deg);
  transition: transform var(--t);
}
.callout:hover { transform: rotate(0); }
.callout-title { font-weight: 700; margin: 0 0 8px; color: var(--gray-500); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.callout p:last-child { margin: 0; }

/* cursor parpadeante */
.cursor {
  display: inline-block;
  margin-left: 4px;
  animation: blink 1s steps(1) infinite;
}
.cursor.light { color: var(--white); }
@keyframes blink {
  50% { opacity: 0; }
}

/* ticker */
.ticker {
  border-top: var(--border-thin);
  background: var(--white);
  overflow: hidden;
  white-space: nowrap;
  padding: 14px 0;
}
.ticker-track {
  display: inline-flex;
  gap: 28px;
  font-size: 14px;
  letter-spacing: 0.18em;
  animation: marquee 40s linear infinite;
  padding-left: 24px;
}
.ticker-track span { color: var(--black); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  padding: clamp(64px, 9vw, 120px) 0;
  border-bottom: var(--border-thin);
}
.section-alt { background: var(--gray-100); }
.section-dark { background: var(--black); color: var(--white); border-bottom: none; }

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-lede {
  margin-top: 14px;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--gray-700);
}
.section-dark .section-lede { color: var(--gray-400); }

/* =========================================================
   CARDS — nosotros
   ========================================================= */
.cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.card {
  background: var(--white);
  border: var(--border);
  padding: 32px;
  transition: transform var(--t), box-shadow var(--t);
  position: relative;
}
.card:hover { transform: translate(-4px, -4px); box-shadow: var(--shadow); }

.card-tag {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.card h3 { margin-bottom: 14px; }
.card p { color: var(--gray-700); }

.check-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 22px 0 0;
  border-top: var(--border-thin);
  display: grid;
  gap: 8px;
}
.check-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
}
.check-list li::before {
  content: "[x]";
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* =========================================================
   VALORES — section dark
   ========================================================= */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 2px solid var(--white);
}
.value {
  padding: 32px 28px;
  border-right: 2px solid var(--white);
  transition: background var(--t);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.value:last-child { border-right: none; }
.value:hover { background: var(--gray-700); }

.value-num {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gray-400);
  margin-bottom: 8px;
}
.value h3 { color: var(--white); }
.value p { color: var(--gray-400); margin: 0; font-size: 14px; }

/* =========================================================
   SERVICIOS
   ========================================================= */
.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--border-thin);
}
.service {
  display: grid;
  grid-template-columns: 80px 140px 1fr 60px;
  align-items: start;
  gap: 28px;
  padding: 36px 0;
  border-bottom: var(--border-thin);
  position: relative;
  transition: background var(--t), padding var(--t);
}
.service:hover { background: var(--gray-50); padding-left: 16px; padding-right: 16px; }

.service-index {
  font-size: 14px;
  color: var(--gray-500);
  letter-spacing: 0.1em;
  padding-top: 4px;
}
.service-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--black);
  border: var(--border-thin);
  padding: 4px 10px;
  align-self: start;
  justify-self: start;
}
.service-body h3 { margin-bottom: 10px; }
.service-body p { color: var(--gray-700); max-width: 60ch; margin-bottom: 14px; }

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  font-size: 12px;
  padding: 4px 10px;
  background: var(--gray-100);
  border: var(--border-thin);
}

.service-cta {
  align-self: center;
  justify-self: end;
  width: 48px; height: 48px;
  border: var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--white);
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
}
.service-cta:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-sm);
  background: var(--black);
  color: var(--white);
}

/* =========================================================
   ENFOQUE
   ========================================================= */
.enfoque-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.dot-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.dot-list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
}
.dot-list li::before {
  content: ">";
  position: absolute; left: 0;
  font-weight: 700;
}

/* terminal */
.terminal {
  background: var(--black);
  border: var(--border);
  box-shadow: var(--shadow-lg);
  font-family: 'Courier Prime', monospace;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.terminal:hover { transform: translate(-4px, -4px); box-shadow: 14px 14px 0 0 var(--black); }

.terminal-bar {
  background: #1a1a1a;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #333;
}
.terminal-bar .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #444;
}
.terminal-bar .dot:nth-child(1) { background: #555; }
.terminal-bar .dot:nth-child(2) { background: #777; }
.terminal-bar .dot:nth-child(3) { background: #999; }
.terminal-title {
  margin-left: auto;
  font-size: 12px;
  color: #888;
  letter-spacing: 0.05em;
}

.terminal-body {
  margin: 0;
  padding: 26px 22px;
  min-height: 280px;
  color: var(--term-green);
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}
.terminal-body .prompt { color: #888; margin-right: 8px; }
.term-cursor {
  display: inline-block;
  color: var(--term-green);
  animation: blink 1s steps(1) infinite;
  margin-left: 2px;
}

.terminal-foot {
  background: #0a0a0a;
  border-top: 1px solid #222;
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #666;
  letter-spacing: 0.05em;
}

/* =========================================================
   CTA STRIP
   ========================================================= */
.cta-strip {
  background: var(--white);
  text-align: center;
  border-bottom: var(--border-thin);
}
.cta-strip h2 { max-width: 22ch; margin: 0 auto 14px; }
.cta-strip p { color: var(--gray-700); max-width: 60ch; margin: 0 auto 28px; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--black);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 48px;
  padding-top: 80px;
  padding-bottom: 56px;
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.18em;
  margin-bottom: 22px;
  color: var(--gray-400);
}

.slogan {
  font-size: 18px;
  margin: 22px 0 18px;
  line-height: 1.4;
}
.footer-note {
  font-size: 13px;
  color: var(--gray-400);
  margin: 0;
}

.contact-list,
.social-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.contact-list li {
  display: grid;
  gap: 4px;
}
.contact-list .contact-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.contact-list a {
  border-bottom: 1px solid var(--white);
  padding-bottom: 2px;
  transition: opacity var(--t);
}
.contact-list a:hover { opacity: 0.7; }

.social-list a {
  display: inline-block;
  padding: 8px 14px;
  border: 2px solid var(--white);
  font-size: 13px;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
}
.social-list a:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-light);
  background: var(--white);
  color: var(--black);
}

.footer-base {
  border-top: 1px solid #2a2a2a;
  padding: 22px 0;
}
.footer-base-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-400);
  letter-spacing: 0.05em;
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms cubic-bezier(.2,.7,.2,1), transform 700ms cubic-bezier(.2,.7,.2,1);
  will-change: transform, opacity;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .cursor, .term-cursor { animation: none; }
  .ticker-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .enfoque-grid { grid-template-columns: 1fr; gap: 40px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .value:nth-child(2) { border-right: none; }
  .value:nth-child(1), .value:nth-child(2) { border-bottom: 2px solid var(--white); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }

  h1 { font-size: clamp(36px, 9vw, 56px); }

  .hamburger { display: inline-flex; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: var(--border);
    transform: translateY(-120%);
    transition: transform 320ms cubic-bezier(.2,.7,.2,1);
    pointer-events: none;
  }
  .nav.is-open {
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px var(--pad-x) 24px;
  }
  .nav-list li { border-top: var(--border-thin); }
  .nav-list li:first-child { border-top: none; }
  .nav-list a:not(.btn) {
    display: block;
    padding: 18px 0;
    font-size: 16px;
  }
  .nav-list a.btn-nav {
    margin-top: 16px;
    text-align: center;
    justify-content: center;
  }

  .hero { padding-top: calc(var(--header-h) + 24px); }
  .hero-grid { padding-bottom: 56px; gap: 48px; }
  .hero-meta { grid-template-columns: 1fr; gap: 18px; }
  .hero-meta li { flex-direction: row; align-items: baseline; gap: 12px; }

  .callout { right: 8px; bottom: -16px; max-width: 200px; }

  .cards-2 { grid-template-columns: 1fr; }

  .values-grid { grid-template-columns: 1fr; }
  .value { border-right: none !important; border-bottom: 2px solid var(--white); }
  .value:last-child { border-bottom: none; }

  .service {
    grid-template-columns: 60px 1fr;
    gap: 16px;
  }
  .service-tag { grid-column: 2; }
  .service-body { grid-column: 2; }
  .service-cta {
    grid-column: 2;
    justify-self: start;
  }
  .service:hover { padding-left: 0; padding-right: 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
  .footer-col:first-child { grid-column: auto; }

  .terminal-body { font-size: 13px; min-height: 240px; padding: 20px 16px; }

  .footer-base-inner { flex-direction: column; }
}
