/* ==========================================================================
   Wil Mendez — landing personal
   Paleta: blanco/gris/negro · estilo editorial minimalista
   Tipografía: Playfair Display (display) + Inter (body)
   ========================================================================== */

:root {
  /* Light backgrounds */
  --bg: #FAFAFA;
  --bg-elevated: #F4F4F4;
  --bg-soft: #EFEFEF;
  --bg-overlay: rgba(250, 250, 250, 0.85);

  /* Borders neutros */
  --border: #E5E5E5;
  --border-strong: #D4D4D4;
  --border-faint: #EEEEEE;

  /* Text */
  --text: #0A0A0A;
  --text-strong: #000000;
  --text-muted: #525252;
  --text-dim: #737373;
  --text-faint: #A3A3A3;

  /* Accents (sin color, solo escala de gris) */
  --accent: #0A0A0A;
  --accent-soft: #404040;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1100px;
  --container-narrow: 760px;
  --radius: 2px;
  --transition: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: var(--text); color: var(--bg); }

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-brand .dot { color: var(--text); }
.nav-links {
  display: flex; gap: var(--space-8);
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
}
.nav-links a { transition: color .15s ease; position: relative; }
.nav-links a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--text);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  padding: 200px 0 140px;
  border-bottom: 1px solid var(--border);
}
.hero-content { max-width: 880px; }

.hero-eyebrow,
.section-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--text);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 36px;
  color: var(--text);
}
.hero-title .accent {
  font-style: italic;
  font-weight: 400;
  color: var(--text);
}

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

.hero-cta {
  display: flex; gap: var(--space-4);
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-size: 15px; font-weight: 500;
  letter-spacing: 0;
  transition: transform .12s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
}
.btn-primary:hover { background: var(--accent-soft); }
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--text); background: var(--bg-elevated); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.pin {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg);
}
.dot-gold {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text);
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section {
  padding: var(--space-32) 0;
  position: relative;
}
.section-elevated {
  background: var(--bg-elevated);
}
.section-header {
  max-width: var(--container-narrow);
  margin: 0 auto var(--space-24);
}
.section-header.reveal { text-align: left; }
.section-eyebrow { margin-bottom: 18px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 22px;
}
.section-subtitle {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 600px;
}

/* ==========================================================================
   TRAYECTORIA / TIMELINE
   ========================================================================== */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-24);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}
.timeline-step {
  padding-top: var(--space-8);
}
.timeline-step .marker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--text-faint);
  margin-bottom: var(--space-4);
}
.timeline-step .place {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--space-3);
}
.timeline-step h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: var(--space-3);
}
.timeline-step p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}
@media (max-width: 720px) {
  .timeline { grid-template-columns: 1fr; gap: var(--space-8); }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.stat {
  padding: var(--space-8) 0;
  border-right: 1px solid var(--border);
  padding-right: var(--space-6);
  padding-left: var(--space-2);
}
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-3);
}
.stat .label {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat { padding: var(--space-6) var(--space-4); border-bottom: 1px solid var(--border); }
}

/* ==========================================================================
   EXPERTISE
   ========================================================================== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.expertise {
  padding: var(--space-12) var(--space-8);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  transition: background .25s ease;
}
.expertise:hover { background: var(--bg-soft); }
.expertise-num {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  color: var(--text-faint);
  margin-bottom: var(--space-6);
}
.expertise h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: var(--space-4);
}
.expertise p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}
@media (max-width: 720px) {
  .expertise-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ECOSISTEMA
   ========================================================================== */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-4);
}
.eco-card {
  display: flex; flex-direction: column;
  padding: var(--space-8);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .25s ease, transform .25s ease;
  min-height: 220px;
}
.eco-card:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}
.eco-card .tag {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--space-4);
}
.eco-card h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: var(--space-3);
}
.eco-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: var(--space-6);
}
.eco-card .link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
  align-self: flex-start;
  transition: gap .2s ease;
}
.eco-card .link .arrow { transition: transform .2s ease; }
.eco-card:hover .link { gap: 12px; }
.eco-card:hover .link .arrow { transform: translateX(2px); }

/* ==========================================================================
   PODCAST
   ========================================================================== */
.podcast-list {
  border-top: 1px solid var(--border);
}
.episode {
  display: grid;
  grid-template-columns: 60px 1fr 140px 100px;
  gap: var(--space-6);
  align-items: center;
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left .25s ease;
}
.episode:hover {
  padding-left: var(--space-4);
}
.episode .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 30px;
  color: var(--text-faint);
}
.episode .title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text);
  line-height: 1.3;
}
.episode .date {
  font-size: 13px;
  color: var(--text-dim);
}
.episode .views {
  font-size: 13px;
  color: var(--text-dim);
  text-align: right;
}
@media (max-width: 720px) {
  .episode { grid-template-columns: 50px 1fr; }
  .episode .date, .episode .views { display: none; }
  .episode .title { font-size: 17px; }
}
.podcast-cta {
  margin-top: var(--space-12);
  text-align: center;
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact {
  padding: var(--space-32) 0;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin-bottom: var(--space-8);
  color: var(--text);
}
.contact-title .accent {
  font-style: italic;
  font-weight: 400;
}
.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding-bottom: 4px;
  margin-bottom: var(--space-12);
  transition: opacity .2s ease;
}
.contact-email:hover { opacity: 0.6; }

.contact-socials {
  display: flex; gap: var(--space-8); justify-content: center;
  flex-wrap: wrap;
}
.contact-socials a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  display: inline-flex; flex-direction: column; gap: 4px;
  align-items: center;
  transition: color .2s ease;
}
.contact-socials a:hover { color: var(--text); }
.contact-socials .handle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dim);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: var(--space-12) 0 var(--space-8);
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.gold-line {
  width: 60px; height: 1px;
  margin: 0 auto var(--space-8);
  background: var(--text);
}
.footer p {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: 0.01em;
}

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

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 140px 0 80px; }
  .section { padding: var(--space-24) 0; }
  .container { padding: 0 var(--space-4); }
  .eco-card { padding: var(--space-6); min-height: auto; }
  .nav-brand { font-size: 18px; }
}
