/* =====================================================================
   COLLINA SYSTEMS — FOOTER
   Hoja de estilos autocontenida. Copia este archivo a tu proyecto y
   enlázalo con:  <link rel="stylesheet" href="footer.css">
   ===================================================================== */

/* --- Variables tipográficas (definidas en el propio footer para no
       depender de :root del proyecto destino) ------------------------- */
.footer {
  --font-body: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

/* ── FOOTER ─────────────────────────────────────────────────────────── */
.footer {
  position: relative;
  background: #0a0908;
  color: #f0ece5;
  padding: clamp(80px, 12vh, 140px) clamp(24px, 5vw, 80px) clamp(36px, 5vh, 56px);
  font-family: var(--font-body);
  isolation: isolate;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(140, 100, 60, 0.10) 0%, rgba(140, 100, 60, 0) 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(80, 110, 140, 0.08) 0%, rgba(80, 110, 140, 0) 60%);
}
.footer::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 236, 229, 0.22) 50%, transparent);
  z-index: 1;
}
.footer__inner {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 10vh, 140px);
}

/* Top row */
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.footer__col--left {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 8vh, 88px);
  min-width: 0;
}
.footer__col--right {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vh, 56px);
  min-width: 0;
}
@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr; gap: 56px; }
}

/* Slogan */
.footer__slogan {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.6vh, 10px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: #f5f1e6;
}
.footer__slogan-line {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(44px, 8vw, 100px);
  text-transform: uppercase;
  letter-spacing: -0.035em;
}
.footer__slogan-words {
  position: relative;
  display: block;
  height: clamp(44px, 8vw, 100px);
  /* Vertical clip only — horizontal overflow allowed if a long word ever
     overshoots before the JS auto-fit kicks in. */
  overflow-y: hidden;
  overflow-x: visible;
  margin: clamp(2px, 0.4vh, 6px) 0;
}
.footer__slogan-word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: clamp(44px, 8vw, 100px);
  letter-spacing: -0.035em;
  color: #f5f1e6;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(28%);
  transition: opacity 600ms cubic-bezier(0.6, 0.2, 0.2, 1), transform 600ms cubic-bezier(0.6, 0.2, 0.2, 1);
  will-change: transform, opacity;
}
.footer__slogan-word[data-active="true"] {
  opacity: 1;
  transform: translateY(0);
}
.footer__slogan-word[data-leaving="true"] {
  opacity: 0;
  transform: translateY(-28%);
}
@media (prefers-reduced-motion: reduce) {
  .footer__slogan-word {
    transition: opacity 200ms linear;
    transform: none !important;
  }
}

/* Contact */
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240, 236, 229, 0.55);
  margin: 0;
}
.footer__contact-link {
  font-family: var(--font-body);
  font-size: clamp(20px, 2.1vw, 32px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #f5f1e6;
  text-decoration: none;
  width: max-content;
  max-width: 100%;
}

/* Underline-on-hover effect (used in email + socials) */
.link-slide {
  display: inline-block;
  position: relative;
  color: inherit;
  text-decoration: none;
  line-height: 1.1;
}
.link-slide__inner {
  display: inline-block;
  position: relative;
}
.link-slide__text { display: inline; }
.link-slide__text--clone { display: none; }

/* Animated underline */
.link-slide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 380ms cubic-bezier(0.65, 0.05, 0.36, 1);
  pointer-events: none;
}
.link-slide:hover::after,
.link-slide:focus-visible::after {
  transform: scaleX(1);
}

/* Sede / branch */
.footer__branch {
  display: grid;
  grid-template-columns: clamp(56px, 4.5vw, 72px) 1fr;
  gap: clamp(18px, 1.8vw, 28px);
  align-items: start;
}
.footer__clock {
  position: relative;
  width: clamp(56px, 4.5vw, 72px);
  height: clamp(56px, 4.5vw, 72px);
  border-radius: 50%;
  border: 1px solid rgba(240, 236, 229, 0.4);
  background: rgba(255, 255, 255, 0.02);
}
.footer__clock-hand {
  position: absolute;
  left: 50%;
  top: 50%;
  background: #f0ece5;
  border-radius: 2px;
  transform-origin: 50% 100%;
  transition: transform 400ms cubic-bezier(0.4, 0.1, 0.2, 1);
}
.footer__clock-hand--hour {
  width: 2px;
  height: 28%;
  margin-left: -1px;
  margin-top: -28%;
}
.footer__clock-hand--minute {
  width: 1.5px;
  height: 38%;
  margin-left: -0.75px;
  margin-top: -38%;
  background: rgba(240, 236, 229, 0.85);
}
.footer__clock-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  margin-top: -2px;
  border-radius: 50%;
  background: #f0ece5;
}
.footer__branch-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.footer__branch-country {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f5f1e6;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.footer__branch-tz {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(240, 236, 229, 0.55);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.footer__branch-address {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(240, 236, 229, 0.72);
}
.footer__branch-phone {
  margin: 6px 0 0;
  font-size: 14px;
  color: rgba(240, 236, 229, 0.9);
  font-variant-numeric: tabular-nums;
}
.footer__branch-phone a {
  color: inherit;
  text-decoration: none;
  transition: opacity 160ms ease;
}
.footer__branch-phone a:hover { opacity: 0.65; }

/* Bottom row */
.footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: clamp(24px, 3vw, 48px);
  padding-top: clamp(28px, 4vh, 48px);
}
.footer__socials {
  grid-column: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  justify-self: start;
}
.footer__socials a {
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 500;
  color: rgba(240, 236, 229, 0.85);
  letter-spacing: -0.005em;
}
.footer__copyright {
  grid-column: 2;
  justify-self: end;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(240, 236, 229, 0.5);
}
@media (max-width: 720px) {
  .footer__bottom { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer__socials { grid-column: 1; justify-content: center; }
  .footer__copyright { grid-column: 1; justify-self: center; }

  /* Slogan: reduce el tamaño y permite saltos de línea en móvil */
  .footer__slogan-line,
  .footer__slogan-word {
    font-size: clamp(34px, 10.5vw, 60px) !important;
    overflow-wrap: break-word !important;
  }
}
