/* ==========================================================================
   EDITORIAL CRAFTSMAN STYLESHEET
   - Dark Matte Canvas (#0e0e10)
   - Sharp Monospace Details + Editorial Grotesque
   - No generic purple gradients or AI-style bulbous cards
   ========================================================================== */

:root {
  --bg: #0d0e11;
  --bg-subtle: #14161c;
  --surface: #1b1e26;
  --border: #282c37;
  --border-light: #3a3f4e;
  
  --text-main: #f0f2f5;
  --text-muted: #8b92a1;
  --text-dim: #5c6270;
  
  --accent: #ff6b4a; /* Warm editorial terracotta/orange */
  --accent-soft: rgba(255, 107, 74, 0.12);
  --success: #3dd68c;
  
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* --- Container & Utilities --- */
.container {
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
}

.mono-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section {
  padding: 6.5rem 0;
  border-top: 1px solid var(--border);
}

/* --- Status Bar --- */
.status-bar {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 0.45rem 0;
}

.status-content {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.status-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
  display: inline-block;
}

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 14, 17, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-role {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a:not(.nav-cta) {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-menu a:not(.nav-cta):hover {
  color: var(--text-main);
}

.nav-cta {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--accent);
  color: #fff;
}

/* --- Hero Section --- */
.hero-editorial {
  padding: 6.5rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.section-kicker {
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
}

.lead-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.lead-text strong {
  color: var(--text-main);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  color: var(--text-muted);
}

/* --- Work Section --- */
.section-title-row {
  margin-bottom: 3.5rem;
}

.section-title-row h2 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  letter-spacing: -0.02em;
  margin-top: 0.4rem;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.work-item {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2.5rem;
  align-items: center;
}

.work-index {
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}

.work-meta-col h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.work-summary {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1.5rem;
}

.spec-table {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  margin-bottom: 1.5rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.spec-row:last-child {
  margin-bottom: 0;
}

.spec-row strong {
  color: var(--text-main);
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: inline-block;
  transition: transform 0.2s;
}

.text-link:hover {
  transform: translateX(4px);
}

/* --- Code & Feature Frames --- */
.browser-frame {
  background: #090a0d;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.browser-dots {
  display: flex;
  gap: 6px;
  padding: 0.75rem 1rem;
  background: #111317;
  border-bottom: 1px solid var(--border);
}

.browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2b2f38;
}

.frame-body {
  padding: 1.5rem;
}

.code-snippet-preview {
  font-size: 0.8rem;
  line-height: 1.7;
}

.c-comment { color: var(--text-dim); }
.c-tag { color: var(--accent); }
.c-indent { padding-left: 1.5rem; color: #a4adba; }
.c-result { color: var(--success); margin-top: 0.5rem; }

.feature-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.82rem;
}

.chk-item span {
  color: var(--success);
  margin-right: 0.5rem;
}

/* --- Stack Columns --- */
.stack-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stack-col {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 6px;
}

.stack-header {
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.clean-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.clean-list li {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.clean-list strong {
  display: block;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

/* --- QA Manifesto --- */
.manifesto-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 3.5rem;
  border-radius: 6px;
}

.manifesto-card h3 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin: 0.5rem 0 2.5rem;
  letter-spacing: -0.02em;
}

.qa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.point-digit {
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}

.qa-point h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.qa-point p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --- Contact Strip --- */
.contact-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.contact-strip h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  margin: 0.3rem 0;
}

.contact-strip p {
  color: var(--text-muted);
  font-size: 1rem;
}

.contact-actions {
 display: flex;
  flex-direction: column;
  align-items: flex-start; /* Asegura que botón y link arranquen en la misma línea vertical */
  gap: 0.75rem;
}

.main-cta {
  background: var(--text-main);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: 4px;
  transition: opacity 0.2s;
}

.main-cta:hover {
  opacity: 0.9;
}

.secondary-link {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.secondary-link:hover {
  color: var(--text-main);
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* --- Responsiveness --- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .work-item { grid-template-columns: 1fr; gap: 2rem; }
  .stack-columns { grid-template-columns: 1fr; }
  .qa-grid { grid-template-columns: 1fr 1fr; }
  .contact-strip { flex-direction: column; align-items: flex-start; }
  .footer-grid { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
}

@media (max-width: 600px) {
  .qa-grid { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
}