/* Home close (approved 2026-11-18, version 3 "Firma"): black between the white blog and the graphite footer.
   Title on the left; on the right the line, Alan and Nicolas (they take the calls) and one Book a call button.
   No footage, no form. Motion and the "Book a call" links: js/cierre.js. The three options compared before
   stay in index-cierre-v1.html (css/contacto-opciones.css, js/contacto-opciones.js). */

.close[data-cierre] { display: block; min-height: 0; background: var(--black); }

.cx {
  position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto;
  padding: clamp(96px, 14svh, 150px) var(--side);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: start; gap: 32px clamp(40px, 6vw, 112px);
}
.cx .close-title { margin: 0; text-wrap: balance; }
.cx .close-lead { margin: 0; }
.cx-side { display: grid; justify-items: start; }

/* Alan and Nicolas: same office, same round crop (media/cierre-*.jpg) */
.cx-team { display: flex; flex-wrap: wrap; gap: 16px 36px; margin: clamp(24px, 4svh, 32px) 0 0; padding: 0; list-style: none; }
.cx-sign { display: flex; align-items: center; gap: 14px; margin: 0; }
.cx-sign img { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line-d); }
.cx-sign > span { display: grid; gap: 2px; line-height: 1.3; }
.cx-sign b { font-size: 15px; font-weight: 600; }
.cx-sign > span > span { font-size: 13.5px; color: var(--mute-d); }

.cx-go { margin: clamp(24px, 4svh, 36px) 0 0; }

/* tablet and phone: one column, title first (two columns left the title alone with a gap below it) */
@media (max-width: 900px) { .cx { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .cx { padding-top: 80px; padding-bottom: 80px; }
  .cx-team { flex-direction: column; gap: 14px; }
}

/* the pieces rise in once the close comes into view; js/cierre.js arms it, so without JS everything shows */
@media (prefers-reduced-motion: no-preference) {
  .close[data-cierre].is-armed .cx-up {
    opacity: 0; transform: translateY(18px);
    transition: opacity .8s var(--ease-out), transform 1s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .close[data-cierre].is-armed.is-in .cx-up { opacity: 1; transform: none; }
}
