/* =========================================================
   T-Control · Footer (UI Vault sections/footer/model-002)
   A black band across the whole width: the description, two link
   columns and the contact data on a grid, "T-Control" written huge and cut
   by the bottom edge, and a bottom bar. Plus the floating "Volver arriba"
   button of the current site (after 300px).
   Texts, links and data: "Footer" and "Enlaces" of the inventory.
========================================================= */

/* full width, edge to edge, no rounded panel (2026-09-25, on request) */
.tc-footer { background: var(--tc-black); }

.tc-footer__inner {
  position: relative;
  max-width: 1880px;
  margin: 0 auto;
  padding: clamp(64px, 7vw, 110px) clamp(24px, 4.4vw, 72px) 28px;
  overflow: hidden;
  color: var(--tc-white);
}

.tc-footer__grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 2.2fr .9fr .8fr;
  grid-template-rows: auto auto;
  gap: 64px 72px;
}

.tc-footer h3 { margin: 0 0 24px; color: var(--tc-white); font-size: 1.6rem; letter-spacing: .04em; }

.tc-footer__intro { grid-column: 1; grid-row: 1; max-width: 560px; }
.tc-footer__intro p { margin: 0; color: var(--tc-grey-light); font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.45; }

.tc-footer__services { grid-column: 2; grid-row: 1; }
.tc-footer__social { grid-column: 3; grid-row: 1; }
.tc-footer__contact { grid-column: 1; grid-row: 2; align-self: start; }

.tc-footer nav { display: flex; flex-direction: column; gap: 16px; }

.tc-footer nav a,
.tc-footer__stack a {
  position: relative;
  width: fit-content;
  color: var(--tc-grey-light);
  font-size: 1rem;
  line-height: 1.35;
  transition: color .25s ease, transform .35s var(--tc-ease);
}
.tc-footer nav a:hover,
.tc-footer__stack a:hover { color: var(--tc-white); transform: translateX(4px); }

/* the model's underline that draws in from the left */
.tc-footer nav a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 1px;
  background: color-mix(in srgb, var(--tc-white) 80%, transparent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .38s var(--tc-ease);
}
.tc-footer nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Social networks in their real colours (2026-09-25, on request): each
   icon is the network's own logo in its brand colour on a light tile; on
   hover the whole chip fills with that colour. The only colours on the
   page besides greys and black. */
.tc-footer__socials { gap: 10px; }
.tc-footer__socials .tc-social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px 6px 6px;
  border: 1px solid color-mix(in srgb, var(--tc-white) 14%, transparent);
  border-radius: 999px;
  color: var(--tc-white);
  transition: background .35s var(--tc-ease), border-color .35s ease, transform .35s var(--tc-ease);
}
.tc-footer__socials .tc-social::after { display: none; }
.tc-social__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--tc-white);
  transition: background-color .35s ease;
}
.tc-social__icon svg { width: 18px; height: 18px; fill: var(--brand); transition: fill .35s ease; }
.tc-footer__socials .tc-social:hover { border-color: transparent; background: var(--brand); transform: translateX(4px); }

.tc-footer__socials .tc-social--linkedin { --brand: #0A66C2; }
.tc-footer__socials .tc-social--whatsapp { --brand: #25D366; }
.tc-footer__socials .tc-social--facebook { --brand: #0866FF; }
.tc-footer__socials .tc-social--instagram { --brand: #E1306C; }
.tc-social--instagram .tc-social__icon svg { fill: url(#tc-ig-gradient); }
.tc-footer__socials .tc-social--instagram:hover { background: linear-gradient(45deg, #FEDA75, #FA7E1E 25%, #D62976 50%, #962FBF 75%, #4F5BD5); }

.tc-footer__stack { display: flex; flex-direction: column; gap: 16px; }
.tc-footer__stack p { max-width: 360px; margin: 0; color: var(--tc-grey-light); font-size: 1rem; line-height: 1.6; }

/* "T-Control" written huge (Bebas), in its own band under the content and
   cut by its bottom edge (on request: the name, not the logo) */
.tc-footer__brand {
  position: relative;
  z-index: 1;
  height: .7em; /* the lower part of the letters is cut */
  margin-top: clamp(40px, 5vw, 80px);
  overflow: hidden;
  color: var(--tc-white);
  font-family: var(--font-display);
  font-size: clamp(3rem, 23.5vw, 26rem); /* the word is ~3.4em wide: 23.5vw fits every screen */
  line-height: .8;
  letter-spacing: .01em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.tc-footer__brand span { display: block; }

.tc-footer__bottom {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 52px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--tc-white) 10%, transparent);
}
.tc-footer__bottom p { margin: 0; color: var(--tc-grey-light); font-size: .82rem; }
.tc-footer__bottom p:last-child { text-align: right; }

.tc-footer__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--tc-grey-light);
  font: 500 .82rem var(--font-body);
  cursor: pointer;
  transition: color .25s ease;
}
.tc-footer__top span { transition: transform .35s var(--tc-ease); }
.tc-footer__top:hover { color: var(--tc-white); }
.tc-footer__top:hover span { transform: translateY(-3px); }

.tc-footer a:focus-visible,
.tc-footer button:focus-visible { outline: 2px solid var(--tc-white); outline-offset: 4px; border-radius: 4px; }

/* floating "Volver arriba" (current site: shows after 300px) */
.tc-to-top {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--tc-white) 12%, transparent);
  border-radius: 50%;
  background: var(--tc-black);
  color: var(--tc-white);
  box-shadow: 0 16px 34px -16px var(--tc-black);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.94);
  transition: opacity .35s ease, transform .5s var(--tc-ease), visibility 0s .5s, background-color .2s ease;
}
.tc-to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .5s var(--tc-ease), visibility 0s, background-color .2s ease; }
.tc-to-top:hover { background: var(--tc-graphite); }
.tc-to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--tc-ease); }
.tc-to-top:hover svg { transform: translateY(-2px); }
.tc-to-top:focus-visible { outline: 2px solid var(--tc-black); outline-offset: 3px; }

/* ---------- responsive ---------- */

@media (max-width: 1200px) {
  .tc-footer__grid { grid-template-columns: 1.7fr 1fr 1fr; gap: 56px 40px; }
}

@media (max-width: 900px) {
  .tc-footer__grid { grid-template-columns: 1fr 1fr; gap: 44px 30px; }
  .tc-footer__intro, .tc-footer__contact { grid-column: 1 / -1; grid-row: auto; max-width: 100%; }
  .tc-footer__services, .tc-footer__social { grid-column: auto; grid-row: auto; }
  .tc-footer__bottom { grid-template-columns: 1fr; gap: 8px; }
  .tc-footer__bottom p:last-child { text-align: left; }
  .tc-footer__top { justify-self: start; }
}

@media (max-width: 560px) {
  .tc-footer__inner { padding: 56px 20px 20px; }
  .tc-footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .tc-to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}
