/* ==========================================================================
   Funsicar — Cercanía que transforma
   Índice: 1 Tokens · 2 Base · 3 Utilidades · 4 Botones · 5 Fotos
           6 Navbar · 7 Hero · 8 Quiénes somos · 9 Hilo · 10 Impacto
           11 Proyectos · 12 Historias · 13 CTA · 14 Footer · 15 Animaciones
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans-latin-wght.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --coral: #F47C6C;
  --yellow: #F6C85F;
  --sage: #7BAE8A;
  --terracotta: #C96F55;
  --cream: #FFF8EF;
  --charcoal: #29332F;
  --white: #FFFFFF;
  --line: rgb(41 51 47 / 0.14);
  --text-soft: rgb(41 51 47 / 0.82);

  --font-heading: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-space: clamp(4.5rem, 10vw, 9rem);
  --radius-sm: 0.75rem;
  --radius: 1.375rem;
  --radius-lg: clamp(1.75rem, 4vw, 3rem);
  --header-height: 4.5rem;

  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

html.menu-open {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
figure,
blockquote {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  line-height: 1.05;
  text-wrap: balance;
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 3. Utilidades ------------------------------------------------------------ */
.container {
  width: min(100% - 2 * var(--gutter), 85rem);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.display {
  font-size: clamp(2.25rem, 1.35rem + 4.2vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.lead {
  font-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.45;
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--cream);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Marcador de contenido pendiente: subrayador amarillo, fácil de localizar */
.ph {
  padding: 0.05em 0.3em;
  border-radius: 0.3em;
  background: rgb(246 200 95 / 0.42);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.ph--small {
  font-size: 0.75rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
}

.eyebrow__dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--coral);
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge--yellow { background: var(--yellow); }
.badge--sage { background: var(--sage); }
.badge--coral { background: var(--coral); }

/* 4. Botones --------------------------------------------------------------- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 200ms var(--ease), background-color 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}

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

.btn--small {
  min-height: 2.75rem;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
}

.btn--primary {
  background: var(--coral);
  color: var(--charcoal);
}

.btn--primary:hover {
  background: var(--yellow);
}

.btn--ghost {
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.btn--ghost:hover {
  background: var(--charcoal);
  color: var(--cream);
}

.btn--dark {
  background: var(--charcoal);
  color: var(--cream);
}

.btn--dark:hover {
  background: var(--white);
  color: var(--charcoal);
}

.btn--pending {
  border: 2px dashed var(--charcoal);
  color: var(--charcoal);
}

.arrow {
  flex: none;
  width: 1.25rem;
  height: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 200ms var(--ease);
}

.btn[href]:hover .arrow {
  transform: translateX(3px);
}

/* 5. Fotos ----------------------------------------------------------------- */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* La etiqueta solo aparece mientras la imagen siga siendo un .svg provisional */
.photo__tag {
  display: none;
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--cream);
  font-size: 0.75rem;
  font-weight: 500;
}

.photo img[src$=".svg"] + .photo__tag {
  display: block;
}

/* 6. Navbar ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 250ms var(--ease), box-shadow 250ms var(--ease);
}

.site-header.is-scrolled,
.menu-open .site-header {
  background: rgb(255 248 239 / 0.95);
  box-shadow: 0 1px 0 var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo__mark {
  width: 2.25rem;
  height: 2.25rem;
}

.logo__word {
  font-family: var(--font-heading);
  font-size: 1.4375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-right: -0.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms var(--ease), background-color 200ms var(--ease);
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { transform: translateY(-7px); }
.nav-toggle__bars::after { transform: translateY(7px); }

[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
[aria-expanded="true"] .nav-toggle__bars::before { transform: rotate(45deg); }
[aria-expanded="true"] .nav-toggle__bars::after { transform: rotate(-45deg); }

/* Panel móvil */
.nav {
  position: fixed;
  inset: var(--header-height) 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem var(--gutter) 2rem;
  overflow-y: auto;
  background: var(--cream);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
}

.nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.nav__link {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 8vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-decoration: none;
}

.nav__cta {
  min-height: 3.25rem;
  font-size: 1.0625rem;
}

@media (min-width: 60rem) {
  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2.75rem);
    padding: 0;
    overflow: visible;
    background: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav__list {
    display: flex;
    gap: clamp(1.25rem, 2.6vw, 2.25rem);
  }

  .nav__link {
    position: relative;
    padding: 0.5rem 0;
    border: 0;
    font-family: var(--font-body);
    font-size: 0.9688rem;
    font-weight: 500;
    letter-spacing: 0;
  }

  .nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.2rem;
    height: 2px;
    border-radius: 2px;
    background: var(--coral);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms var(--ease);
  }

  .nav__link:hover::after {
    transform: scaleX(1);
  }

  .nav__cta {
    min-height: 2.75rem;
    font-size: 1rem;
  }
}

/* 7. Hero ------------------------------------------------------------------ */
.hero {
  padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(3rem, 7vw, 5rem);
}

.hero__grid {
  display: grid;
  gap: clamp(3rem, 8vw, 4rem);
}

.hero__title {
  margin-top: 1.25rem;
  font-size: clamp(2.25rem, 11.4vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.underlined {
  position: relative;
  display: inline-block;
}

.underlined svg {
  position: absolute;
  left: -0.02em;
  bottom: -0.2em;
  z-index: -1;
  width: 100%;
  overflow: visible;
  pointer-events: none;
}

.underlined path {
  fill: none;
  stroke: var(--coral);
  stroke-width: 6;
  stroke-linecap: round;
}

.hero__lead {
  max-width: 34rem;
  margin-block: 1.75rem 2rem;
  color: var(--text-soft);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero__media {
  position: relative;
  max-width: 40rem;
  margin-inline: auto;
  width: 100%;
}

.photo--organic {
  aspect-ratio: 5 / 5.4;
  border-radius: 47% 53% 44% 56% / 38% 42% 58% 62%;
}

.hero__shape {
  position: absolute;
  z-index: -1;
}

.hero__shape--sun {
  top: -4%;
  right: -3%;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--coral);
}

.hero__shape--leaf {
  left: -3%;
  bottom: 5%;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 62% 38% 55% 45% / 48% 58% 42% 52%;
  background: var(--sage);
}

.hero__thread {
  position: absolute;
  left: -5%;
  bottom: -7%;
  width: 42%;
  overflow: visible;
}

.hero__thread path {
  fill: none;
  stroke: var(--charcoal);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.hero__thread circle {
  fill: var(--charcoal);
}

@media (min-width: 48rem) {
  .photo--organic {
    aspect-ratio: 5 / 4.4;
  }
}

@media (min-width: 60rem) {
  .hero {
    display: grid;
    align-items: center;
    min-height: min(calc(92svh - var(--header-height)), 56rem);
    padding-block: 1rem 3.5rem;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 5rem);
  }

  .hero__title {
    font-size: clamp(3.25rem, 6.1vw, 6.5rem);
  }

  .hero .btn {
    padding-inline: 1.35rem;
  }

  .photo--organic {
    aspect-ratio: 5 / 5.8;
  }
}

/* 8. Quiénes somos --------------------------------------------------------- */
.about__intro {
  display: grid;
  gap: 1.75rem;
}

.about__text {
  display: grid;
  gap: 1.25rem;
  max-width: 38rem;
}

.values {
  display: grid;
  gap: 2.25rem;
  margin-top: clamp(3.5rem, 8vw, 6.5rem);
}

.value {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.25rem;
  row-gap: 0.35rem;
  color: var(--text-soft);
}

.value__icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  color: var(--charcoal);
}

.value__icon--yellow { background: var(--yellow); border-radius: 58% 42% 52% 48% / 46% 56% 44% 54%; }
.value__icon--sage { background: var(--sage); border-radius: 44% 56% 46% 54% / 58% 44% 56% 42%; }
.value__icon--coral { background: var(--coral); border-radius: 52% 48% 60% 40% / 42% 54% 46% 58%; }

.value__icon svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value__icon .fill {
  fill: currentColor;
  stroke: none;
}

.value__title {
  color: var(--charcoal);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (min-width: 48rem) {
  .values {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 4rem);
  }

  .value {
    display: block;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
  }

  .value__title {
    margin-block: 1.25rem 0.5rem;
  }
}

@media (min-width: 60rem) {
  .about__intro {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    gap: clamp(3rem, 7vw, 7rem);
  }
}

/* 9. Hilo entre secciones --------------------------------------------------- */
.thread-divider {
  overflow: hidden;
}

.thread-divider svg {
  width: 100%;
  min-width: 56rem;
  height: clamp(5rem, 9vw, 12rem);
  margin-inline: auto;
}

.thread-divider path {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.dot--coral { fill: var(--coral); }
.dot--yellow { fill: var(--yellow); }
.dot--sage { fill: var(--sage); }

/* 10. Impacto -------------------------------------------------------------- */
.impact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.impact__header {
  grid-column: 1 / -1;
  display: grid;
  gap: 1rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  min-height: clamp(10.5rem, 28vw, 15rem);
  padding: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
  border-radius: var(--radius);
}

.stat--yellow { background: var(--yellow); }
.stat--white { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.stat--sage { background: var(--sage); }
.stat--coral { background: var(--coral); }

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2.125rem, 11vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.stat__label {
  font-size: clamp(0.9375rem, 0.875rem + 0.3vw, 1.125rem);
  font-weight: 500;
  line-height: 1.3;
}

.stat__thread {
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  max-width: 24rem;
  overflow: visible;
  fill: none;
  stroke: var(--charcoal);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.55;
}

@media (min-width: 60rem) {
  .impact__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .impact__header {
    grid-column: 1 / 3;
    align-self: center;
    margin-bottom: 0;
    padding-right: 2rem;
  }

  .stat--lead {
    grid-column: 3 / 5;
    min-height: clamp(19rem, 28vw, 25rem);
  }

  .stat--lead .stat__number {
    font-size: clamp(5rem, 10vw, 9rem);
  }

  .stat--wide {
    grid-column: 3 / 5;
  }

  .stat__number {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
  }
}

/* 11. Proyectos ------------------------------------------------------------ */
.split-header {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.cards {
  display: grid;
  gap: 1.25rem;
}

.cards > li {
  display: flex;
}

.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 250ms var(--ease), border-color 250ms var(--ease);
}

.card__media {
  aspect-ratio: 4 / 3;
  border-radius: 0;
}

.card__media img {
  transition: transform 450ms var(--ease);
}

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.5rem;
}

.card__title {
  font-size: clamp(1.4375rem, 1.3rem + 0.6vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.card__text {
  color: var(--text-soft);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  margin-top: auto;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 200ms var(--ease);
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    border-color: rgb(41 51 47 / 0.3);
  }

  .card:hover .card__media img {
    transform: scale(1.03);
  }

  .card:hover .card__link {
    text-decoration-color: var(--charcoal);
  }

  .card:hover .arrow {
    transform: translateX(3px);
  }
}

@media (min-width: 40rem) and (max-width: 59.99rem) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards > li:last-child {
    grid-column: 1 / -1;
  }

  .cards > li:last-child .card {
    flex-direction: row;
  }

  .cards > li:last-child .card__media {
    flex: 0 0 50%;
    aspect-ratio: auto;
  }
}

@media (min-width: 60rem) {
  .split-header {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    gap: clamp(3rem, 7vw, 7rem);
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 2vw, 2rem);
    padding-bottom: 3rem;
  }

  .cards > li:nth-child(2) {
    margin-top: 3rem;
    margin-bottom: -3rem;
  }
}

/* 12. Historias ------------------------------------------------------------ */
.stories {
  padding-top: 0;
}

.stories__title {
  max-width: 16em;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.stories__grid {
  display: grid;
}

.stories__photo {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
}

.stories__photo .photo__tag {
  top: 0.75rem;
  bottom: auto;
}

.quote {
  position: relative;
  display: grid;
  gap: 1.5rem;
  margin: -3rem 0.75rem 0;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: var(--yellow);
}

.quote__mark {
  width: 3.25rem;
  fill: var(--charcoal);
}

.quote__text {
  font-family: var(--font-heading);
  font-size: clamp(1.4375rem, 1.1rem + 1.6vw, 2.375rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.quote .ph {
  background: rgb(255 248 239 / 0.6);
}

.quote__author {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  font-size: 1rem;
}

.quote__name {
  font-weight: 600;
}

@media (min-width: 60rem) {
  .stories__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
  }

  .stories__photo {
    grid-area: 1 / 1 / 2 / 8;
    aspect-ratio: 1 / 1.02;
  }

  .quote {
    z-index: 1;
    grid-area: 1 / 7 / 2 / 13;
    margin: 0;
  }
}

/* 13. CTA final ------------------------------------------------------------ */
.cta__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 9vw, 7.5rem) clamp(1.5rem, 6vw, 6rem);
  border-radius: var(--radius-lg);
  background: var(--coral);
}

.cta__title {
  position: relative;
  max-width: 10.5em;
  font-size: clamp(2.375rem, 1.2rem + 5.4vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.cta__text {
  position: relative;
  max-width: 30rem;
  margin-block: 1.5rem 2.25rem;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
}

.cta .btn-row {
  position: relative;
}

.cta__thread {
  display: none;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
  overflow: visible;
  fill: none;
  stroke: var(--cream);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.cta__thread circle {
  fill: var(--yellow);
  stroke: none;
}

@media (min-width: 60rem) {
  .cta__thread {
    display: block;
  }
}

/* 14. Footer --------------------------------------------------------------- */
.site-footer {
  padding-block: var(--section-space) 2rem;
  font-size: 1rem;
}

.site-footer__top {
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer__brand {
  grid-column: 1 / -1;
}

.site-footer__tagline {
  max-width: 18em;
  margin-top: 1rem;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.site-footer__heading {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer__col li {
  padding-block: 0.3rem;
}

.site-footer a[href]:not(.logo) {
  display: inline-block;
  padding-block: 0.15rem;
  text-decoration-color: transparent;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 200ms var(--ease);
}

.site-footer a[href]:not(.logo):hover {
  text-decoration-color: var(--coral);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

@media (min-width: 48rem) {
  .site-footer__top {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .site-footer__brand {
    grid-column: auto;
  }
}

/* 15. Animaciones ---------------------------------------------------------- */
.underlined path {
  stroke-dasharray: 1;
  animation: draw 900ms 350ms var(--ease) both;
}

.hero__thread path {
  stroke-dasharray: 1;
  animation: draw 1400ms 500ms var(--ease) both;
}

@keyframes draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

.js .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 650ms var(--ease) var(--delay, 0ms), transform 650ms var(--ease) var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.about__text.reveal,
.values .reveal:nth-child(2),
.cards .reveal:nth-child(2),
.stat--white { --delay: 90ms; }

.values .reveal:nth-child(3),
.cards .reveal:nth-child(3),
.stat--sage,
.quote.reveal { --delay: 180ms; }

.stat--wide { --delay: 270ms; }

.thread-divider path,
.cta__thread path {
  stroke-dasharray: 1;
}

.js .thread-divider path,
.js .cta__thread path {
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1600ms var(--ease) 150ms;
}

.js .is-visible path {
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .js .thread-divider path,
  .js .cta__thread path {
    stroke-dashoffset: 0;
  }

  .card:hover,
  .card:hover .card__media img,
  .btn[href]:hover {
    transform: none;
  }
}

@media print {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
