/* Andean Labs — closing CTA, contact polish, site footer */

/* Soft connection to the ambient field at the page remate */
.site-close {
  position: relative;
  padding: 88px 0 28px;
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(111, 154, 137, 0.12), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(201, 113, 61, 0.08), transparent 65%),
    var(--bg-1);
  overflow: hidden;
}

.site-close::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(13, 21, 18, 0.35) 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 48px,
      rgba(43, 63, 55, 0.18) 48px,
      rgba(43, 63, 55, 0.18) 49px
    );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.site-close .wrap {
  position: relative;
  z-index: 1;
}

.close-cta {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-soft);
}

@media (max-width: 860px) {
  .close-cta {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.close-cta h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  margin: 12px 0 14px;
  max-width: 16ch;
}

.close-cta .lead {
  color: var(--paper-dim);
  font-size: 16px;
  max-width: 42ch;
  margin: 0;
}

.close-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.close-actions .btn {
  justify-content: center;
  text-align: center;
  width: 100%;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: #0b1a12;
  background: #25d366;
  padding: 14px 18px;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
}

.btn-whatsapp:hover {
  background: #2fe574;
  transform: translateY(-1px);
}

.btn-whatsapp svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}

/* Contact inside closing band */
.site-close #contact {
  background: transparent;
  padding: 0 0 72px;
}

.site-close .contact-grid {
  gap: 48px;
}

.contact-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px 0 20px;
}

@media (max-width: 560px) {
  .contact-quick {
    grid-template-columns: 1fr;
  }
}

.contact-chip {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line-soft);
  background: rgba(13, 21, 18, 0.45);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  border-radius: var(--radius);
}

.contact-chip:hover {
  border-color: var(--copper);
  background: rgba(24, 40, 33, 0.7);
}

.contact-chip .lbl {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.contact-chip .val {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 550;
  color: var(--paper);
}

.site-close .contact-item {
  padding: 14px 0;
}

/* Evitar pelear con el padding/glass de form que aplica glass.css async */
.site-close form {
  /* glass.css ya aporta superficie; aquí solo refuerzo de layout */
  width: 100%;
}

.site-close form .btn-primary {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ---------- Site footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 48px 0 28px;
  border-top: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(18, 28, 23, 0.92), var(--bg-0)),
    var(--bg-0);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}

.site-footer a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--copper-bright);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-soft);
}

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

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 32ch;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
}

.footer-brand-link:hover {
  color: var(--copper-bright);
}

.footer-tag {
  line-height: 1.5;
  color: var(--paper-dim);
  font-family: var(--body);
  font-size: 13.5px;
}

.footer-col h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--patina);
  margin: 0 0 14px;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.footer-col address {
  font-style: normal;
  line-height: 1.55;
  color: var(--paper-dim);
  font-family: var(--body);
  font-size: 13.5px;
}

.footer-social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.footer-social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper-dim);
}

.footer-social-list a:hover {
  border-color: var(--copper-bright);
  color: var(--copper-bright);
}

.footer-col .footer-subhead {
  margin-top: 18px;
}

.footer-partners-link {
  margin-top: 16px;
}

.footer-lang {
  display: flex;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
  margin-top: 4px;
}

.footer-lang .lang-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 7px 10px;
  cursor: pointer;
}

.footer-lang .lang-btn.active {
  background: var(--bg-2);
  color: var(--copper-bright);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
}

.footer-top-link {
  color: var(--paper-dim);
}

.footer-top-link:hover {
  color: var(--copper-bright);
}

@media (prefers-reduced-motion: reduce) {
  .btn-whatsapp:hover {
    transform: none;
  }
}
