/* ============================================================
   front.css — NewConnections
   The front (fachada) at /. Same tokens, same type, same
   palette as the interior. From the brochure it borrows only:
   spaced section labels, ochre numerals, thin ochre rules
   between sections, and one dark band. Panes at the foot of
   each section reuse the interior's related-piece grammar, so
   the visitor sees the room behind the glass before entering.
   ============================================================ */

.front {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 2rem 0;
}

/* Front-scoped selectors (.front .x) outrank the layer rule
   body.layer-surface p { margin-bottom: 1em } in typography.css. */

/* ----- Opening -------------------------------------------- */

.front-opening {
  padding-top: 1rem;
}

/* The NewConnections signature (logo + DESARROLLO ORGANIZACIONAL),
   bicolor version, from the "NewConnections Logotipo" design system.
   Loaded as <img> so the page CSS cannot alter its colours.
   Minimum width 200px (design system); never stretched. */
.front .front-firma {
  margin: 0 0 3.25rem;
  line-height: 0;
}

.front .front-firma img {
  display: block;
  width: 360px;
  max-width: 100%;
  height: auto;
}

.front-thesis {
  font-size: 2.05em;
  font-weight: 500;
  line-height: 1.2;
  max-width: 17em;
  margin: 0 0 1.25rem;
}

.front .front-lead {
  font-size: 1.08em;
  line-height: 1.6;
  max-width: 34em;
  margin: 0;
}

/* ----- Sections ------------------------------------------- */

.front-section {
  margin-top: 4.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(184, 153, 104, 0.45);
}

.front .front-label {
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-soft);
  margin: 0 0 0.7rem;
}

.front-heading {
  font-size: 1.5em;
  font-weight: 500;
  line-height: 1.3;
  max-width: 22em;
  margin: 0 0 1.4rem;
}

.front-prose p {
  max-width: 34em;
  line-height: 1.6;
}

.front-purpose {
  margin: 0 0 1.75rem;
  padding: 0;
}

.front .front-purpose p {
  font-size: 1.3em;
  line-height: 1.4;
  max-width: 24em;
  margin: 0;
}

/* Ochre numerals, as in the brochure and the corporate deck. */
.front-num {
  display: block;
  font-size: 0.95em;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.15rem;
}

/* ----- Steps (Cómo trabajamos) ---------------------------- */

.front-steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.9rem 2.5rem;
}

.front-steps h3,
.front-card h3 {
  font-size: 1em;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.front .front-steps p,
.front .front-card p {
  font-size: 0.92em;
  line-height: 1.55;
  margin: 0;
}

/* ----- Cards (Lo que cambia) ------------------------------ */

.front-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.front-card {
  background: var(--color-bg-middle);
  border: 1px solid #E6DCC6;
  padding: 1.1rem 1.15rem 1.3rem;
}

.front-condition {
  margin-top: 1.75rem;
}

.front .front-condition p {
  font-size: 1.04em;
}

/* ----- Panes: the glass ----------------------------------- */
/* Same grammar as .related-piece on interior pages: the room
   behind, seen from the front. */

.pane {
  margin-top: 2.25rem;
  padding: 1.1em 1.4em 1.25em;
  background: rgba(184, 153, 104, 0.06);
  border-left: 2px solid var(--color-accent);
  max-width: 34em;
}

.front .pane-intro {
  font-size: 0.62em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-soft);
  margin: 0 0 0.35em;
}

.front .pane-excerpt {
  font-size: 0.88em;
  font-style: italic;
  color: var(--color-text-soft);
  line-height: 1.5;
  margin: 0 0 0.6em;
}

.pane-link {
  display: block;
  width: fit-content;
  font-size: 0.92em;
  line-height: 1.45;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  margin-top: 0.3em;
}

.pane-link:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ----- Dark band (used once) ------------------------------ */

.front-band {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4.5rem;
  background: var(--color-text);
  padding: 3.25rem 2rem;
}

.front .front-band p {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 1.45em;
  line-height: 1.35;
  color: var(--color-bg-surface);
}

.front-band + .front-section {
  border-top: none;
}

/* ----- Temas list ----------------------------------------- */

.front-temas {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.front-temas li {
  margin-bottom: 1.5em;
  max-width: 34em;
}

.front-temas a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.02em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.front-temas a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.front .front-temas p {
  font-size: 0.88em;
  font-style: italic;
  color: var(--color-text-soft);
  line-height: 1.5;
  margin: 0.35em 0 0;
}

/* ----- People --------------------------------------------- */

.front-people {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 34em;
}

.front-people li {
  text-align: center;
}

.front-people img {
  width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 0.75rem;
}

.front .front-person-name {
  font-weight: 600;
  font-size: 0.95em;
  margin: 0;
}

.front .front-person-role {
  font-size: 0.8em;
  color: var(--color-text-soft);
  margin: 0.15em 0 0;
}

/* ----- Contact -------------------------------------------- */

.front .front-email {
  margin: 1.5em 0 0;
  font-size: 1.05em;
}

.front-email a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 0.15em;
  transition: opacity 0.2s ease;
}

.front-email a:hover {
  opacity: 0.75;
}

/* ----- Mobile --------------------------------------------- */

@media (max-width: 48rem) {

  .front {
    padding: 2rem 1.25rem 0;
  }

  .front .front-firma     { margin-bottom: 2.25rem; }
  .front .front-firma img { width: 240px; }
  .front-thesis   { font-size: 1.6em; }
  .front .front-lead     { font-size: 1.02em; }

  .front-section {
    margin-top: 3.25rem;
    padding-top: 1.75rem;
  }

  .front-heading { font-size: 1.3em; }
  .front .front-purpose p { font-size: 1.15em; }

  .front-steps,
  .front-cards {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .front-cards { gap: 0.75rem; }

  .front-band {
    margin-top: 3.25rem;
    padding: 2.5rem 1.25rem;
  }

  .front .front-band p { font-size: 1.2em; }

  .front-people { gap: 0.75rem; }
  .front-people img { width: 88px; }
  .front .front-person-role { font-size: 0.75em; }
}

/* ----- Section drawings ----------------------------------- */
/* Small line drawings, one per section (partials/front-drawings.njk).
   Desktop: set in the right margin of the section, beside the
   label and heading. Mobile: above the label, smaller. Drawn in a
   muted brown from the corporate deck, not in the accent, which
   stays reserved for things that can be clicked. */

.front-section {
  position: relative;
}

.front-mark {
  position: absolute;
  top: 1.75rem;
  right: 0;
  width: 120px;
  height: 90px;
  color: #8C7A5E;
}


/* Keep long headings clear of the drawing on desktop. */
.front-section .front-heading {
  max-width: calc(100% - 140px);
}

/* Conversemos has no heading, so its first paragraph sits beside
   the drawing; keep that text clear of it too. */
.front .front-section-last .front-prose p {
  max-width: min(34em, calc(100% - 140px));
}

@media (max-width: 48rem) {
  .front-mark {
    position: static;
    display: block;
    width: 76px;
    height: 57px;
    margin: 0 0 0.75rem -4px;
  }

  .front-section .front-heading,
  .front .front-section-last .front-prose p {
    max-width: none;
  }
}
