/* ============================================================
   STONE CREEK CAPITAL — INTRANET v0.2
   Sistema visual basado en Brand Guidelines v1.0
   ============================================================ */

:root {
  --black: #000000;
  --white: #FFFFFF;
  --charcoal: #181717;
  --slate: #222733;

  --graphite: #595959;
  --steel: #757070;
  --silver: #A7A7A7;
  --pearl: #D9D9D9;
  --pearl-light: #F2F2F2;

  --teal: #6DB5B6;
  --sage: #79977F;
  --coral: #FFB09D;

  --font-display: 'Bodoni Moda', 'Bodoni 72', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --maxw-content: 1200px;
  --maxw-header: 1400px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }

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

p { margin: 0; }

/* === TIPOGRAFÍA === */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
h2, .h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.2;
}
h3, .h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
}
.eyebrow.on-dark { color: var(--silver); }

.lede {
  font-size: 1.0625rem;
  color: var(--graphite);
  max-width: 60ch;
  line-height: 1.6;
}
.lede.on-dark { color: var(--silver); }

.tag {
  display: inline-block;
  background: var(--white);
  color: var(--black);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  text-transform: uppercase;
}

/* === HEADER === */
.site-header {
  background: var(--black);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header-inner {
  max-width: var(--maxw-header);
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.site-logo { height: 40px; display: flex; align-items: center; }
.site-logo img { height: 100%; width: auto; }
.site-nav { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--white);
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.site-nav a:hover { background: rgba(255,255,255,0.08); }
.site-nav a.active {
  background: var(--white);
  color: var(--black);
  font-weight: 700;
}

/* === MAIN === */
.site-main { flex: 1; width: 100%; }
.container {
  max-width: var(--maxw-content);
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
.container.tight { padding: 2.5rem 1.5rem; }

/* === HERO (home) === */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 5rem 1.5rem 7rem;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--maxw-content);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero h1 { color: var(--white); margin-top: 0.5rem; margin-bottom: 1rem; }

/* === SECTION HERO (categorías) === */
.section-hero {
  background: var(--black);
  color: var(--white);
  padding: 4rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}
.section-hero-inner {
  max-width: var(--maxw-content);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.section-hero h1 { color: var(--white); margin-top: 0.5rem; }

/* === MOUNTAIN MOTIF === */
.mountains {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  width: 100%;
  height: 180px;
  pointer-events: none;
}
.mountains svg { width: 100%; height: 100%; display: block; }

/* === CARDS / QUICK LINKS === */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--pearl);
  border-radius: 6px;
  padding: 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  border-color: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.card-icon svg { width: 26px; height: 26px; stroke-width: 1.75; }
.card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: -0.005em;
}
.card p {
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.5;
  flex: 1;
}

/* === LIST OF PROCESSES === */
.process-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.process-list a {
  display: block;
  padding: 1rem 1.25rem;
  border: 1px solid var(--pearl);
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.process-list a:hover {
  border-color: var(--charcoal);
  background: var(--pearl-light);
}
.process-list .pending {
  opacity: 0.6;
  font-style: italic;
  cursor: default;
}
.process-list .pending:hover { border-color: var(--pearl); background: transparent; }

/* === DIVIDER === */
.divider {
  width: 60px;
  height: 3px;
  background: var(--teal);
  margin: 1.5rem 0;
}

/* === PLACEHOLDER === */
.placeholder {
  background: var(--pearl-light);
  border: 1px dashed var(--silver);
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
  color: var(--graphite);
}
.placeholder strong { color: var(--charcoal); }

/* === FOOTER === */
.site-footer {
  background: var(--slate);
  color: var(--silver);
  padding: 2.5rem 1.5rem 2rem;
  margin-top: auto;
  font-size: 0.875rem;
}
.site-footer-inner {
  max-width: var(--maxw-content);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.footer-brand h4 {
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}
.footer-brand p { color: var(--silver); font-size: 0.8rem; }
.footer-meta { text-align: right; line-height: 1.7; }
.site-footer a {
  color: var(--silver);
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.site-footer a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .site-header-inner { padding: 0.625rem 1rem; gap: 0.75rem; }
  .site-logo { height: 28px; }
  .site-nav { gap: 0.1rem; }
  .site-nav a { font-size: 0.78rem; padding: 0.4rem 0.55rem; }

  .hero { padding: 3rem 1rem 4.5rem; }
  .section-hero { padding: 2.5rem 1rem 3rem; }
  .container { padding: 2rem 1rem; }

  .site-footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
}

@media (max-width: 600px) {
  .site-header-inner { flex-direction: column; align-items: stretch; }
  .site-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; }
  .site-nav a { flex-shrink: 0; }
}
