/* Page specific layouts — ECH Blueprint Único */

/* 1) Site Header */
.site-header {
  height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-header__logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.site-header__logo-text {
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--brand);
  line-height: 1;
}

.site-header__logo-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 700;
}

.site-header__list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: var(--space-5);
  align-items: center;
}

.site-header__list a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: color var(--ease);
}

.site-header__list a:hover,
.site-header__list a.is-active {
  color: var(--brand);
}

.site-header__toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.site-header__toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--brand);
}

@media (max-width: 1024px) {
  .site-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: var(--space-5);
    box-shadow: var(--shadow-2);
  }

  .site-header__nav.is-open {
    display: block;
  }

  .site-header__list {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-header__toggle {
    display: flex;
  }
}

/* 2) Home Hero */
.hero-primary {
  padding: var(--space-10) 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.hero-layout {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-primary__title {
  font-size: var(--text-hero);
  color: var(--brand);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.hero-primary__sub {
  font-size: var(--text-lg);
  color: var(--muted);
  margin-bottom: var(--space-6);
  max-width: 40rem;
}

.hero-primary__ctas {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.hero-proof {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.proof-item strong {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--brand);
}

.proof-item span {
  font-size: var(--text-xs);
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.05em;
}

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

@media (max-width: 1024px) {
  .grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-6 {
    grid-template-columns: 1fr;
  }
}

/* 4) Footer Layout */
.site-footer {
  padding: var(--space-8) 0 var(--space-5);
  background: var(--footer-bg);
  color: var(--footer-text);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer__brand {
  font-weight: 800;
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
  color: #FFF;
}

.site-footer__desc {
  font-size: var(--text-sm);
  color: var(--footer-muted);
  line-height: 1.6;
}

.site-footer__heading {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  color: var(--accent);
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__links li {
  margin-bottom: var(--space-2);
}

.site-footer__links a {
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color var(--ease);
}

.site-footer__links a:hover {
  color: var(--accent);
}

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

.site-footer__legal {
  display: flex;
  gap: var(--space-5);
}

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

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

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-1);
  background: var(--brand);
  color: #FFF;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--ease);
  box-shadow: var(--shadow-2);
  z-index: 999;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}