/* Yachay · Pie del sitio v4.
   Día: banda marrón (tokens --band-*). Noche: banda marfil, para alternar con la página.
   Los iconos usan currentColor = --band-fg, así que cambian solos con el tema:
   día = marfil sobre marrón, noche = tinta oscura sobre marfil. */

/* Noche: marfil de la paleta (#f1eee6) y tinta del tema día. Cambiar aquí si se unifica en tokens. */
:root[data-theme="dark"] .site-footer {
  --band-bg: #f1eee6;
  --band-fg: #292823;
  --band-muted: #66645c;
  --band-rule: rgb(41 40 35 / 18%);
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--band-bg);
  color: var(--band-fg);
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 7rem) clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

/* Sello: isotipo grande y tenue a sangre, a un solo color (hereda currentColor). */
.site-footer::before {
  position: absolute;
  right: -4%;
  bottom: -22%;
  width: clamp(18rem, 34vw, 34rem);
  aspect-ratio: 1284 / 1225;
  background: currentColor;
  content: "";
  opacity: 0.04;
  pointer-events: none;
  -webkit-mask: url("../img/isotipo-yachay.svg") center / contain no-repeat;
  mask: url("../img/isotipo-yachay.svg") center / contain no-repeat;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
}

.site-footer__id { grid-column: 1; }
.site-footer__social { grid-column: 2; }
.site-footer__contact-wrap { grid-column: 3; justify-self: end; }

.site-footer__brand {
  display: inline-block;
  color: var(--band-fg);
  line-height: 0;
  text-decoration: none;
}

.site-footer .site-footer__brand svg {
  display: block;
  width: clamp(13rem, 9rem + 9vw, 20rem);
  height: auto;
}

.site-footer .site-footer__brand svg .st0,
.site-footer .site-footer__brand svg .st1 {
  color: var(--band-fg);
  fill: currentColor;
  stroke: currentColor;
}

.site-footer__tagline {
  margin: clamp(1.5rem, 1.2rem + 1vw, 2.25rem) 0 0;
}

.site-footer__lead {
  display: block;
  color: var(--band-fg);
  font-family: var(--font-display, "Cormorant Garamond", Georgia, serif);
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
  line-height: 1.2;
}

.site-footer__sub {
  display: block;
  margin-top: 0.6rem;
  color: var(--band-muted);
  font-size: var(--text-sm);
  line-height: var(--lh-body);
  text-wrap: balance;
}

/* Rótulos pequeños en mono (mínimo 12 px). */
.site-footer__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--band-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Contacto: solo iconos. Área táctil de 44 px; el icono mide 24 px. */
.site-footer__contact {
  display: flex;
  gap: 0.25rem;
  margin: 0 0 0 -0.6rem;
  padding: 0;
  list-style: none;
}

.site-footer__icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  color: var(--band-fg);
  text-decoration: none;
  transition: opacity var(--dur) var(--ease);
}

.site-footer__icon .icon {
  display: block;
  width: 1.65rem;
  height: 1.65rem;
}

/* Instagram: aro de línea fina con icono y rótulo. */
.site-footer__social {
  display: flex;
  justify-content: center;
}

.site-footer__ig {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  color: var(--band-fg);
  text-decoration: none;
}

.site-footer__ig-ring {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border: 1px solid var(--band-rule);
  border-radius: 50%;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.site-footer__ig-ring svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.site-footer__ig-ring circle:last-child {
  fill: currentColor;
  stroke: none;
}

.site-footer__ig-label {
  color: var(--band-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--band-rule);
  color: var(--band-muted);
  font-size: var(--text-sm);
  line-height: var(--lh-body);
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__legal a {
  color: var(--band-fg);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}

.site-footer a:focus-visible {
  outline: 2px solid var(--band-fg);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {

  .site-footer__icon:hover {
    opacity: 0.6;
  }

  .site-footer__ig-ring:hover {
    border-color: var(--band-fg);
    background-color: var(--band-fg);
    color: var(--band-bg);
  }
}

/* Móvil: todo centrado salvo el sello; cada frase en su línea. */
@media (max-width: 860px) {
  .site-footer {
    text-align: center;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2.25rem;
  }

  .site-footer__id,
  .site-footer__social,
  .site-footer__contact-wrap {
    grid-column: 1;
    justify-self: center;
  }

  .site-footer__contact {
    justify-content: center;
    margin-left: 0;
  }

  .site-footer__sub,
  .site-footer__line {
    text-wrap: balance;
  }

  .site-footer__line {
    max-width: 34ch;
    margin-inline: auto;
  }

  .site-footer__line,
  .site-footer__copy,
  .site-footer__credit {
    display: block;
  }

  .site-footer__sep {
    display: none;
  }

  .site-footer::before {
    right: -18%;
    bottom: -8%;
    width: clamp(14rem, 62vw, 22rem);
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer,
  .site-footer a,
  .site-footer__ig-ring {
    transition-duration: 0.01ms !important;
  }
}

/* Enlaces de los créditos */
.site-footer .site-footer__bottom :is(.site-footer__note, .site-footer__credit) a {
  display: inline-block;
  color: var(--footer-fg, inherit);
  text-decoration: none;
}

.site-footer .site-footer__bottom :is(.site-footer__note, .site-footer__credit) a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .site-footer .site-footer__bottom :is(.site-footer__note, .site-footer__credit) a {
    transition: transform 180ms ease;
  }

  .site-footer .site-footer__bottom :is(.site-footer__note, .site-footer__credit) a:hover {
    transform: scale(1.03);
  }
}
