/* ========================================================
   MENDEZ GROWTH — landing del estudio
   Paleta heredada de wilmendez.com + acentos studio/code
   ======================================================== */

:root {
  --bg: #0A0A0A;
  --bg-elevated: #121212;
  --bg-soft: #181818;
  --bg-card: #141414;
  --border: #262626;
  --border-soft: #1F1F1F;
  --border-gold: rgba(201, 169, 97, 0.20);
  --border-gold-hover: rgba(201, 169, 97, 0.45);

  --gold: #C9A961;
  --gold-soft: #D4B97D;
  --gold-dim: #8C7544;

  --green-live: #4ADE80;
  --orange-build: #FB923C;
  --slate-maint: #94A3B8;
  --indigo-internal: #818CF8;
  --teal-oss: #2DD4BF;

  --text: #F5F5F5;
  --text-muted: #A8A8A8;
  --text-dim: #6E6E6E;
  --text-faint: #4A4A4A;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============== NAV ============== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .25s ease, backdrop-filter .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,10,0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif);
  font-size: 18px; font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 12px; font-weight: 600;
  color: var(--gold);
  background: linear-gradient(135deg, rgba(201,169,97,0.05), transparent);
}
.brand-text { color: var(--text); }
.brand-text .g { color: var(--gold); }

.nav-links {
  display: flex; gap: 32px;
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
}
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--gold-soft); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ============== HERO ============== */
.hero {
  position: relative;
  padding: 180px 0 120px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(201,169,97,0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 880px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,169,97,0.04);
  margin-bottom: 28px;
}
.section-eyebrow {
  font-family: var(--mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6.5vw, 84px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.hero-title .accent {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.hero-tagline {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 680px;
}
.hero-tagline strong { color: var(--text); font-weight: 600; }

.hero-cta {
  display: flex; gap: 14px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--gold);
  color: #1A1408;
  font-weight: 600;
}
.btn-primary:hover { background: var(--gold-soft); }
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--border-gold-hover); color: var(--gold-soft); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.hero-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.pin {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-elevated);
}
.dot-gold {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201,169,97,0.6);
}

/* ============== SECTIONS ============== */
.section {
  padding: 120px 0;
  position: relative;
}
.section-elevated { background: var(--bg-elevated); }
.section-elevated::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0.5;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-header.reveal { text-align: center; }
.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.section-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ============== TESIS GRID ============== */
.thesis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.thesis {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color .2s ease, transform .2s ease;
}
.thesis:hover { border-color: var(--border-gold-hover); transform: translateY(-2px); }
.thesis .num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gold-dim);
  margin-bottom: 16px;
}
.thesis h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text);
}
.thesis p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ============== PRODUCT GRID ============== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.product {
  display: flex; flex-direction: column;
  padding: 28px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  min-height: 280px;
  text-align: left;
}
.product:hover {
  border-color: var(--border-gold-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(201,169,97,0.06);
}
.product-build { cursor: default; }
.product-build:hover { transform: translateY(-2px); box-shadow: none; }

.product-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}
.status {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 500;
  text-transform: uppercase;
}
.status-live      { color: var(--green-live);     background: rgba(74,222,128,0.10); }
.status-build     { color: var(--orange-build);   background: rgba(251,146,60,0.10); }
.status-maintenance { color: var(--slate-maint);  background: rgba(148,163,184,0.10); }
.status-internal  { color: var(--indigo-internal); background: rgba(129,140,248,0.10); }
.status-oss       { color: var(--teal-oss);       background: rgba(45,212,191,0.10); }
.lang {
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.product h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.product .tagline {
  font-size: 14px;
  color: var(--gold-soft);
  margin-bottom: 14px;
  font-weight: 500;
}
.product .desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
  flex: 1;
}
.product-foot {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}
.product .domain {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .15s ease;
}
.product:hover .domain { color: var(--gold-soft); }
.product .arrow { transition: transform .15s ease; display: inline-block; }
.product:hover .arrow { transform: translate(3px, -3px); }

/* ============== STACK GRID ============== */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.stack-item {
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.stack-cat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.stack-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}
.stack-note {
  max-width: 720px;
  margin: 32px auto 0;
  text-align: center;
  padding: 24px 28px;
  border-left: 2px solid var(--gold);
  background: rgba(201,169,97,0.03);
  border-radius: 4px;
}
.stack-note p {
  font-size: 16px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============== FOUNDER ============== */
.founder {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 32px 0;
}
.founder-name {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.founder-bio {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.founder-bio strong { color: var(--text); font-weight: 600; }
.founder-links {
  display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 13px;
}
.founder-links a {
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .15s ease;
}
.founder-links a:hover { color: var(--gold-soft); }

/* ============== CONTACTO ============== */
.contact { padding: 100px 0; text-align: center; }
.contact-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  line-height: 1.1;
}
.contact-title .accent { color: var(--gold); font-style: italic; }
.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  margin-bottom: 24px;
  transition: border-color .15s ease;
}
.contact-email:hover { border-bottom-color: var(--gold); }
.contact-meta {
  max-width: 540px; margin: 0 auto;
  font-size: 15px;
  color: var(--text-muted);
}

/* ============== FOOTER ============== */
.footer {
  padding: 48px 0 36px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.gold-line {
  width: 80px; height: 2px;
  margin: 0 auto 36px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  margin-bottom: 36px;
}
.footer-col p { font-size: 13px; line-height: 1.65; color: var(--text-muted); }
.footer-brand { font-family: var(--serif); font-size: 16px !important; color: var(--text) !important; margin-bottom: 8px; }
.footer-label {
  font-family: var(--mono);
  font-size: 11px !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim) !important;
  margin-bottom: 10px;
}
.footer-meta { color: var(--text-dim) !important; }
.footer-meta a { color: var(--gold-dim); transition: color .15s ease; }
.footer-meta a:hover { color: var(--gold-soft); }
.copy {
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}

/* ============== REVEAL ANIMATION ============== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 640px) {
  .hero { padding: 140px 0 80px; }
  .section { padding: 80px 0; }
  .container { padding: 0 22px; }
  .product { padding: 22px 20px; min-height: auto; }
}
