/* ─── Container ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}
.container--sm  { max-width: 640px; }
.container--md  { max-width: 800px; }
.container--lg  { max-width: 1024px; }

/* ─── Sections ────────────────────────────────────────────────── */
.section {
  padding-top: var(--space-20);
  padding-bottom: var(--space-20);
  position: relative;
  overflow: hidden;
}
.section--sm {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}
.section--lg {
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}
.section-alt { background: var(--color-bg-surface); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-12);
}
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.section-title   { font-size: var(--text-4xl); margin-bottom: var(--space-4); }
.section-subtitle { font-size: var(--text-lg); color: var(--color-text-muted); }

/* ─── Grid ────────────────────────────────────────────────────── */
.grid   { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ─── Flex utilities ──────────────────────────────────────────── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.gap-2        { gap: var(--space-2); }
.gap-3        { gap: var(--space-3); }
.gap-4        { gap: var(--space-4); }
.gap-6        { gap: var(--space-6); }
.gap-8        { gap: var(--space-8); }

/* ─── Diagonal motif (hero decoration) ───────────────────────── */
.diagonal-deco {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  opacity: 0.55;
}
.diagonal-deco svg {
  width: 100%;
  height: 100%;
}

/* ─── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer-brand .site-logo { margin-bottom: var(--space-4); }

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
  max-width: 260px;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-whatsapp);
  transition: opacity var(--ease-fast);
}
.footer-phone:hover { opacity: 0.8; }
.footer-phone svg { width: 16px; height: 16px; }

.footer-nav-title {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-nav-list a {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  transition: color var(--ease-fast);
  text-decoration: none;
}
.footer-nav-list a:hover { color: var(--color-primary); }

.footer-wa-btn { width: 100%; justify-content: center; }

.footer-response {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}
.footer-legal a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  transition: color var(--ease-fast);
}
.footer-legal a:hover { color: var(--color-text-secondary); }

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: var(--text-3xl); }
  h1 { font-size: var(--text-4xl); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
  }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .section-title { font-size: var(--text-2xl); }
  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-3xl); }
  .diagonal-deco { width: 70%; opacity: 0.3; }
}

@media (max-width: 480px) {
  .container { padding-left: var(--space-4); padding-right: var(--space-4); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  h1 { font-size: var(--text-2xl); }
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
