/* ==========================================================================
   LAYOUT SYSTEM (Apple-inspired whitespace & clear section hierarchy)
   ========================================================================== */

.container {
  width: min(100% - 3rem, var(--max-width));
  margin-inline: auto;
  position: relative;
}

.container--narrow {
  width: min(100% - 3rem, var(--max-width-narrow));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(6.5rem, 11vw, 9.5rem) 0;
  scroll-margin-top: 5.5rem;
}

#hero,
#trabajo,
#proceso,
#contacto {
  scroll-margin-top: 5.5rem;
}

/* 1. SECTION HEADERS */
.section-header {
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.section-header--centered {
  text-align: center;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.section-lead {
  font-family: var(--font-primary);
  font-size: clamp(1.125rem, 1.8vw, 1.25rem);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 680px;
}

.section-header--centered .section-lead {
  margin-inline: auto;
}

/* 2. HERO SECTION */
.section--hero {
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(8.5rem, 15vw, 12rem);
  padding-bottom: clamp(6rem, 10vw, 8.5rem);
  text-align: center;
}

.hero-content {
  max-width: 820px;
  margin-inline: auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-pill);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-subtle);
}

.hero-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(2.75rem, 6.2vw, 4.75rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-family: var(--font-primary);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.hero-verse {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-bottom: 2.25rem;
  padding: 0.35rem 0.95rem;
  background: var(--surface-secondary);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-subtle);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section {
    padding: 5rem 0;
  }
  .section--hero {
    min-height: auto;
    padding-top: 7.5rem;
    padding-bottom: 4.5rem;
  }
}
