/* ==========================================================
   Latinx Tech Group — institutional site
   Brand system (Manual de Marca 2023):
   - Yellow  #FFEC00  (primary application background)
   - Black   #000000
   - White   #FFFFFF
   - Display type: Flockin Bold  (fallback: Space Grotesk)
   - Base type:    Aeonik Fono Medium (fallback: Spline Sans Mono)
   ========================================================== */

:root {
  --yellow: #ffec00;
  --black: #000000;
  --white: #ffffff;
  --font-display: "Flockin", "Space Grotesk", "Helvetica Neue", sans-serif;
  --font-mono: "Aeonik Fono", "Spline Sans Mono", "Space Mono", monospace;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.5rem;
  background: var(--black);
  color: var(--white);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-logo { width: 58px; height: 58px; }

.brand-name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.85rem;
}

.site-nav a {
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { border-bottom-color: var(--yellow); }

.nav-cta {
  background: var(--yellow);
  color: var(--black) !important;
  padding: 0.45rem 1rem !important;
  font-weight: 600;
  border-bottom: none !important;
}

.nav-cta:hover { filter: brightness(0.92); }

/* ---------- Hero ---------- */
.hero {
  background: var(--yellow);
  color: var(--black);
  padding: 4.5rem 1.5rem 0;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-logo { width: 100%; max-width: 340px; }

.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  margin-bottom: 1.4rem;
}

.hero-lede {
  font-size: 1.1rem;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.9rem 1.7rem;
  border: 2px solid var(--black);
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #1a1a1a; }

.btn-ghost { background: transparent; color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--yellow); }

.btn-big { font-size: 1.1rem; padding: 1.1rem 2.2rem; }

.hero-stats {
  max-width: var(--max);
  margin: 3.5rem auto 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--black);
}

.hero-stats li {
  padding: 1.6rem 1rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-stats li + li { border-left: 2px solid var(--black); }

.hero-stats strong {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.hero-stats span {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 1.5rem; }

.section-inner { max-width: var(--max); margin: 0 auto; }

.section-dark { background: var(--black); color: var(--white); }
.section-light { background: var(--white); color: var(--black); }
.section-yellow { background: var(--yellow); color: var(--black); }

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.section-dark .section-label { color: var(--yellow); }

.section h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  max-width: 44rem;
  margin-bottom: 2.2rem;
}

.section h2 em { font-style: normal; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 4px; text-underline-offset: 6px; }

.section-light h2 em, .section-yellow h2 em { text-decoration-color: var(--black); }

.section-lede { max-width: 40rem; margin-bottom: 2rem; }

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 60rem;
}

.pill-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 2.4rem;
}

.pill-row li {
  border: 1.5px solid var(--yellow);
  color: var(--yellow);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.4rem 1rem;
  border-radius: 999px;
}

/* ---------- Timeline ---------- */
.timeline {
  list-style: none;
  border-left: 3px solid var(--black);
  margin-left: 0.4rem;
  padding-left: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.6rem;
  padding: 0 0 2.6rem 1.8rem;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -10.5px;
  top: 0.45rem;
  width: 18px;
  height: 18px;
  background: var(--yellow);
  border: 3px solid var(--black);
  border-radius: 50%;
}

.tl-date {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 0.3rem;
}

.tl-body h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.tl-body p { max-width: 42rem; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--white);
  border: 2.5px solid var(--black);
  padding: 1.8rem 1.6rem;
  box-shadow: 6px 6px 0 var(--black);
}

.card h3 { font-size: 1.15rem; margin-bottom: 0.7rem; }

.card p { font-size: 0.92rem; }

/* ---------- Allies ---------- */
.ally-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.ally-grid li {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  padding: 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ally-grid li:hover { border-color: var(--yellow); }

.ally-grid strong {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--yellow);
}

.ally-grid span { font-size: 0.85rem; opacity: 0.85; }

/* ---------- Cities ---------- */
.city-cloud {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.city-cloud li {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  font-weight: 700;
  background: var(--black);
  color: var(--yellow);
  padding: 0.55rem 1.3rem;
}

.city-cloud .city-more {
  background: var(--yellow);
  color: var(--black);
  border: 2.5px solid var(--black);
}

/* ---------- Join ---------- */
.join-inner {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 3rem;
  align-items: center;
}

.join-logo { width: 100%; max-width: 240px; }

.section-join h2 { margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 3.5rem 1.5rem 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.footer-logo { width: 88px; height: 88px; }

.footer-meta { flex: 1; min-width: 260px; font-size: 0.9rem; }

.footer-meta strong { color: var(--yellow); }

.footer-links { display: flex; gap: 1.5rem; font-size: 0.9rem; }

.footer-links a { text-decoration: none; border-bottom: 2px solid var(--yellow); padding-bottom: 2px; }

.footer-links a:hover { color: var(--yellow); }

.footer-legal {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  opacity: 0.6;
}

/* ---------- Legal pages (/privacy) ---------- */
.legal-hero { padding: 4rem 1.5rem 3rem; }

.legal-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.8rem;
}

.legal-updated {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.legal-body { max-width: 46rem; }

.legal-body h2 {
  font-size: 1.35rem;
  margin: 2.4rem 0 0.9rem;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p { margin-bottom: 1rem; }

.legal-body ul {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.legal-body li { margin-bottom: 0.45rem; }

.legal-body li::marker { color: inherit; }

.legal-body a {
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 1px;
}

.legal-body a:hover { background: var(--yellow); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-header { flex-direction: column; align-items: flex-start; }
  .site-nav { flex-wrap: wrap; gap: 0.9rem 1.2rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-logo { max-width: 220px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats li:nth-child(3) { border-left: none; }
  .hero-stats li:nth-child(n+3) { border-top: 2px solid var(--black); }
  .cols { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 0.3rem; }
  .join-inner { grid-template-columns: 1fr; }
}
