/* ============================================================
   NEXO BRAND SITE — Estilos específicos del manual de marca
   Extiende styles.css principal con tokens editoriales
   ============================================================ */

/* ---------- LAYOUT DEL BRAND SITE ---------- */
.brand-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}
@media (min-width: 1024px) {
  .brand-shell { grid-template-columns: 260px 1fr; }
}

.brand-sidebar {
  display: none;
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 32px 24px;
  overflow-y: auto;
}
@media (min-width: 1024px) { .brand-sidebar { display: block; } }

.brand-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg-primary);
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.brand-sidebar-logo .mark {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-sidebar-logo .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  display: block;
  line-height: 1;
}
.brand-sidebar-logo .name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg-primary);
  display: block;
  line-height: 1.3;
  margin-top: 2px;
}

.brand-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.brand-nav-section {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  padding: 16px 12px 8px;
}
.brand-nav-section:first-child { padding-top: 0; }
.brand-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--fg-secondary);
  text-decoration: none;
  border-radius: 6px;
  transition: all 120ms ease;
}
.brand-nav a:hover { background: var(--bg-muted); color: var(--fg-primary); }
.brand-nav a.active { background: var(--brand-bg-subtle); color: var(--brand-fg); font-weight: 500; }
.brand-nav .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-tertiary);
  font-weight: 500;
  min-width: 20px;
}
.brand-nav a.active .num { color: var(--brand-fg); }

.brand-content {
  padding: 64px 24px 96px;
  max-width: 100%;
}
@media (min-width: 768px) { .brand-content { padding: 80px 48px 120px; } }
@media (min-width: 1024px) { .brand-content { padding: 80px 64px 120px; } }
.brand-content-inner { max-width: 880px; margin: 0 auto; }

/* ---------- TOPBAR MOBILE ---------- */
.brand-topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-canvas) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center;
}
@media (min-width: 1024px) { .brand-topbar { display: none; } }
.brand-topbar-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--fg-primary);
  font-weight: 600; font-size: 14px;
}

/* ---------- SECCIONES ---------- */
.brand-section + .brand-section { margin-top: 96px; padding-top: 96px; border-top: 1px solid var(--border-subtle); }
.brand-section-meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.brand-section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--brand-fg);
  font-weight: 500;
}
.brand-section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
}
.brand-section h2 {
  font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--fg-primary);
}
.brand-section .lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-secondary);
  max-width: 640px;
  margin: 0 0 48px;
}

/* ---------- HERO PRINCIPAL ---------- */
.brand-hero {
  padding: 32px 0 80px;
  position: relative;
}
.brand-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--brand-bg-subtle);
  color: var(--brand-fg);
  border-radius: 9999px;
  font-size: 12px; font-weight: 500;
  margin-bottom: 24px;
}
.brand-hero h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0 0 24px;
}
.brand-hero .lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--fg-secondary);
  max-width: 640px;
  margin: 0 0 32px;
}
.brand-hero-meta {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  font-size: 13px; color: var(--fg-tertiary);
  font-family: 'JetBrains Mono', monospace;
}
.brand-hero-meta .dot { width: 4px; height: 4px; border-radius: 9999px; background: var(--border-strong); }

/* ---------- LOGO SHOWCASE ---------- */
.logo-stage {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 64px 32px;
  display: flex; align-items: center; justify-content: center;
  min-height: 280px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.logo-stage.dark {
  background: #0A0C10;
  border-color: #1F232B;
}
.logo-stage-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--fg-tertiary);
  margin-bottom: 32px;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 768px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }
.logo-grid .logo-stage { padding: 48px 24px; min-height: 200px; }
.logo-stage-label { position: absolute; top: 16px; left: 16px; font-size: 11px; color: var(--fg-tertiary); font-family: 'JetBrains Mono', monospace; }
.logo-stage.dark .logo-stage-label { color: #9AA0AB; }

/* Tamaños grid */
.logo-sizes {
  display: flex; align-items: flex-end; justify-content: center; gap: 32px;
  padding: 48px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  flex-wrap: wrap;
}
.logo-size-item { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.logo-size-item .label { font-size: 12px; color: var(--fg-tertiary); font-family: 'JetBrains Mono', monospace; }

/* Clear space */
.clear-space-stage {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 64px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.clear-space-grid {
  position: relative;
  display: inline-block;
}
.clear-space-grid::before {
  content: ''; position: absolute;
  inset: -64px;
  background-image:
    linear-gradient(to right, var(--brand-bg) 1px, transparent 1px),
    linear-gradient(to bottom, var(--brand-bg) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.15;
  pointer-events: none;
}
.clear-space-grid::after {
  content: ''; position: absolute;
  inset: -32px;
  border: 2px dashed var(--brand-bg);
  border-radius: 8px;
  opacity: 0.4;
  pointer-events: none;
}

/* ---------- COLOR SWATCHES ---------- */
.color-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .color-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .color-grid { grid-template-columns: repeat(3, 1fr); } }

.swatch {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.swatch:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.swatch-color {
  aspect-ratio: 16 / 10;
  position: relative;
}
.swatch-name {
  position: absolute; bottom: 16px; left: 16px;
  font-size: 14px; font-weight: 600;
  color: white;
}
.swatch-color.light .swatch-name { color: #11141A; }
.swatch-info {
  padding: 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.swatch-info-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.swatch-info-row .label { color: var(--fg-tertiary); }
.swatch-info-row .value { color: var(--fg-primary); font-weight: 500; cursor: pointer; }
.swatch-info-row .value:hover { color: var(--brand-fg); }
.swatch-copy-feedback {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,0.95);
  color: #11141A;
  padding: 4px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  opacity: 0; transition: opacity 200ms;
  pointer-events: none;
}
.swatch-copy-feedback.show { opacity: 1; }

/* Color scale (tints/shades) */
.color-scale {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 4px;
  margin: 16px 0;
}
.color-scale-step {
  aspect-ratio: 1 / 1.4;
  border-radius: 6px;
  position: relative;
  cursor: pointer;
  transition: transform 120ms;
}
.color-scale-step:hover { transform: scale(1.05); z-index: 2; }
.color-scale-step .step-label {
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; font-weight: 600;
}

/* ---------- TYPE SHOWCASE ---------- */
.type-spec {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin-bottom: 16px;
}
@media (min-width: 768px) { .type-spec { grid-template-columns: 200px 1fr; gap: 48px; align-items: center; } }
.type-spec-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-tertiary);
  display: flex; flex-direction: column; gap: 4px;
}
.type-spec-meta .name { color: var(--fg-primary); font-weight: 600; font-size: 13px; }
.type-spec-sample { color: var(--fg-primary); }

/* ---------- DO / DON'T ---------- */
.do-dont-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) { .do-dont-grid { grid-template-columns: 1fr 1fr; } }
.do-dont {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
}
.do-dont-stage {
  background: var(--bg-surface-sunken);
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.do-dont-stage.dark { background: #0A0C10; }
.do-dont-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 12px;
}
.do-dont-tag.do { background: var(--success-bg-subtle); color: var(--success-fg); }
.do-dont-tag.dont { background: var(--danger-bg-subtle); color: var(--danger-fg); }
.do-dont-tag svg { width: 12px; height: 12px; }
.do-dont p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg-secondary); }

/* ---------- VOICE EXAMPLES ---------- */
.voice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) { .voice-grid { grid-template-columns: 1fr 1fr; } }

.voice-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.voice-card .label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.voice-card .label.yes { color: var(--success-fg); }
.voice-card .label.no { color: var(--danger-fg); }
.voice-card blockquote {
  margin: 0; padding: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-primary);
  font-weight: 500;
}
.voice-card .why {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-tertiary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

/* ---------- TONE PRINCIPLES ---------- */
.principles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .principles { grid-template-columns: 1fr 1fr; } }
.principle {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
}
.principle-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 600;
  color: var(--brand-fg);
  margin-bottom: 12px;
}
.principle h3 { margin: 0 0 12px; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.principle p { margin: 0; color: var(--fg-secondary); line-height: 1.6; font-size: 15px; }

/* ---------- APPLICATION MOCKUPS ---------- */
.app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .app-grid { grid-template-columns: 1fr 1fr; } }
.app-mockup {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}
.app-mockup-stage {
  background: var(--bg-surface-sunken);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.app-mockup-info {
  padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border-subtle);
}
.app-mockup-info h4 { margin: 0; font-size: 14px; font-weight: 600; }
.app-mockup-info span { font-size: 12px; color: var(--fg-tertiary); font-family: 'JetBrains Mono', monospace; }

/* Business card mockup */
.bcard {
  width: 280px; height: 160px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(17, 20, 26, 0.08), 0 2px 4px rgba(17, 20, 26, 0.04);
  padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
}
.bcard.dark { background: #0A0C10; color: white; }
.bcard-name { font-size: 14px; font-weight: 600; color: #11141A; }
.bcard.dark .bcard-name { color: white; }
.bcard-role { font-size: 11px; color: #6B7280; margin-top: 2px; }
.bcard.dark .bcard-role { color: #9AA0AB; }
.bcard-contact { font-size: 11px; color: #353A45; line-height: 1.5; font-family: 'JetBrains Mono', monospace; }
.bcard.dark .bcard-contact { color: #C9CDD4; }

/* Phone mockup */
.phone-mock {
  width: 200px;
  background: #11141A;
  border-radius: 32px;
  padding: 8px;
  box-shadow: 0 16px 32px rgba(17, 20, 26, 0.15);
}
.phone-mock-screen {
  background: white;
  border-radius: 24px;
  padding: 12px;
  aspect-ratio: 9 / 18;
  display: flex; flex-direction: column;
  position: relative;
}
.phone-mock-notch { width: 60px; height: 18px; background: #11141A; border-radius: 9999px; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); }
.phone-mock-statusbar { display: flex; justify-content: space-between; padding: 6px 16px; font-size: 9px; color: #11141A; font-weight: 600; font-family: 'JetBrains Mono', monospace; margin-top: 16px; }

/* ---------- CALLOUT ESPECIALES DE BRAND ---------- */
.brand-quote {
  background: var(--bg-surface);
  border-left: 3px solid var(--brand-bg);
  padding: 24px 32px;
  border-radius: 0 8px 8px 0;
  margin: 32px 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-primary);
  font-weight: 500;
}
.brand-quote cite {
  display: block; margin-top: 16px;
  font-size: 13px; font-style: normal;
  color: var(--fg-tertiary);
  font-weight: 400;
}

/* ---------- DOWNLOAD CARDS ---------- */
.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) { .download-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .download-grid { grid-template-columns: repeat(3, 1fr); } }
.download-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  text-decoration: none;
  color: inherit;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.download-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-default); }
.download-card .icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--brand-bg-subtle); color: var(--brand-fg);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.download-card .icon svg { width: 20px; height: 20px; }
.download-card-info { flex: 1; min-width: 0; }
.download-card .title { font-size: 14px; font-weight: 600; color: var(--fg-primary); }
.download-card .meta { font-size: 12px; color: var(--fg-tertiary); font-family: 'JetBrains Mono', monospace; margin-top: 2px; }

/* ---------- STAT BADGES ---------- */
.stat-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin: 32px 0;
}
@media (min-width: 768px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-row .stat { text-align: center; }
.stat-row .stat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px; font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg-primary);
  line-height: 1;
}
.stat-row .stat-label {
  font-size: 12px;
  color: var(--fg-tertiary);
  margin-top: 6px;
}
