/* ============================================================
   FOOTER  (global: todas las páginas)
   ============================================================ */

/* Propiedad animable para el brillo que sigue al mouse */
@property --GF-r {
  syntax: '<length>';
  inherits: true;
  initial-value: 0px;
}

/* ------------------------------------------------------------
   0. Variables
   ------------------------------------------------------------ */
.GF-footer {
  --GF-bg:       var(--go-bg-dark);
  --GF-text:     #ffffff;
  --GF-muted:    #9a9aa0;
  --GF-soft:     #d4d4d8;
  --GF-line:     rgba(255, 255, 255, 0.14);
  --GF-accent:   #BCCF00;
  --GF-ease:     cubic-bezier(0.22, 0.61, 0.36, 1);
  --GF-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------------------------------------
   1. Contenedor
   ------------------------------------------------------------ */
.GF-footer {
  position: relative;
  width: 100%;
  background: var(--GF-bg);
  color: var(--GF-text);
  font-family: var(--font-sans);
  overflow: hidden;
  container-type: inline-size;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.GF-footer *,
.GF-footer *::before,
.GF-footer *::after { box-sizing: border-box; }

.GF-footer a  { color: inherit; text-decoration: none; }
.GF-footer ul { list-style: none; margin: 0; padding: 0; }
.GF-footer p,
.GF-footer h4 { margin: 0; }

.GF-footer .GF_inner {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 40px 0;
}

/* Animación de entrada: los bloques suben escalonados */
.GF-footer .GF_reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity   0.9s ease                     var(--d, 0s),
    transform 0.9s var(--GF-ease-out)        var(--d, 0s);
}

.GF-footer.GF_in .GF_reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   2. Fila superior
   ------------------------------------------------------------ */
.GF-footer .GF_top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 56px;
}

/* --- Marca --- */
.GF-footer .GF_brand {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 470px;
}

.GF-footer .GF_logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.GF-footer .GF_logo_mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: #fff;
  color: #0f0f10;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform     0.7s var(--GF-ease-out),
    border-radius 0.5s ease;
}

.GF-footer .GF_logo:hover .GF_logo_mark {
  transform: rotate(180deg);
  border-radius: 50%;
}

.GF-footer .GF_logo_name {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.GF-footer .GF_sep {
  width: 1px;
  height: 24px;
  margin-top: 3px;
  background: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

.GF-footer .GF_tagline {
  font-size: 12px;
  line-height: 1.65;
  color: var(--GF-soft);
  max-width: 230px;
}

/* Indicador: punto verde que pulsa */
.GF-footer .GF_status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--GF-muted);
}

.GF-footer .GF_status i {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34c759;
}

.GF-footer .GF_status i::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #34c759;
  animation: GF_pulse 2.2s ease-out infinite;
}

@keyframes GF_pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(3.2); opacity: 0;   }
}

/* --- Columnas --- */
.GF-footer .GF_cols {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 76px;
}

.GF-footer .GF_col h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--GF-text);
  margin-bottom: 18px;
}

.GF-footer .GF_col li { margin-bottom: 14px; }

.GF-footer .GF_col a,
.GF-footer .GF_col address {
  font-size: 12px;
  line-height: 1.6;
  font-style: normal;
  color: var(--GF-muted);
}

/* Subrayado que se desliza al hover */
.GF-footer .GF_col a,
.GF-footer .GF_legal {
  position: relative;
  transition: color 0.3s ease;
}

.GF-footer .GF_col a::after,
.GF-footer .GF_legal::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--GF-ease);
}

.GF-footer .GF_col a:hover,
.GF-footer .GF_legal:hover { color: #fff; }

.GF-footer .GF_col a:hover::after,
.GF-footer .GF_legal:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ------------------------------------------------------------
   3. Línea separadora (se dibuja de izquierda a derecha)
   ------------------------------------------------------------ */
.GF-footer .GF_line {
  height: 1px;
  margin: 44px 0 18px;
  background: var(--GF-line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--GF-ease-out) 0.35s;
}

.GF-footer.GF_in .GF_line { transform: scaleX(1); }

/* ------------------------------------------------------------
   4. Fila inferior
   ------------------------------------------------------------ */
.GF-footer .GF_bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.GF-footer .GF_copy {
  font-size: 11px;
  color: var(--GF-muted);
}

.GF-footer .GF_bottom_right {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.GF-footer .GF_legal {
  font-size: 11px;
  color: var(--GF-soft);
}

.GF-footer .GF_social {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 14px;
}

.GF-footer .GF_social a {
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--GF-soft);
  transition:
    background 0.35s ease,
    color      0.35s ease,
    transform  0.45s var(--GF-ease-out);
}

.GF-footer .GF_social svg {
  width: 14px;
  height: 14px;
}

.GF-footer .GF_social a:hover {
  background: #fff;
  color: #0f0f10;
  transform: translateY(-3px);
}

/* ------------------------------------------------------------
   5. Palabra gigante "GONET"
   El JS calcula --GF-fs para que ocupe el ancho del footer.
   ------------------------------------------------------------ */
.GF-footer .GF_word {
  position: relative;
  z-index: 1;
  margin-top: 26px;
  /* altura visible = parte superior de la palabra (el resto queda cortado) */
  height: calc(var(--GF-fs, 28cqw) * 0.64);
  overflow: hidden;
  cursor: default;
}

.GF-footer .GF_word_inner {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: max-content;
  margin: 0 auto;
  font-size: var(--GF-fs, 28cqw);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.045em;
  -webkit-user-select: none;
          user-select: none;
}

.GF-footer .GF_l {
  display: inline-block;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
          background-clip: text;
  /* capa 1: brillo azul que sigue al mouse
     capa 2: destello que recorre la letra */
  background-image:
    radial-gradient(circle var(--GF-r) at var(--mx, 50%) var(--my, 50%),
                    var(--GF-accent) 0%,
                    rgba(66, 100, 41, 0) 72%),
    linear-gradient(105deg,
                    #ffffff 0%,
                    #ffffff 40%,
                    #b9dcff 50%,
                    #ffffff 60%,
                    #ffffff 100%);
  background-size: 100% 100%, 300% 100%;
  background-position: 0 0, 100% 0;
  background-repeat: no-repeat;

  /* Estado inicial: oculta por debajo */
  transform: translateY(72%);
  opacity: 0;
  filter: blur(14px);
  transition:
    transform 1.5s var(--GF-ease-out) calc(var(--i) * 0.1s + 0.2s),
    opacity   1s   ease               calc(var(--i) * 0.1s + 0.2s),
    filter    1.4s ease               calc(var(--i) * 0.1s + 0.2s),
    --GF-r    0.7s ease;
  animation: GF_shine 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.45s + 2.2s);
  will-change: transform;
}

.GF-footer.GF_in .GF_l {
  transform: translateY(0);
  opacity: 1;
  filter: blur(0);
}

@keyframes GF_shine {
  0%,  55%  { background-position: 0 0, 100% 0; }
  85%, 100% { background-position: 0 0,   0% 0; }
}

/* Al pasar el mouse: aparece el brillo y las letras se elevan un poco */
.GF-footer .GF_word:hover .GF_l { --GF-r: 300px; }

.GF-footer.GF_ready .GF_l {
  transition:
    transform 0.8s var(--GF-ease-out),
    opacity   0.6s ease,
    filter    0.6s ease,
    --GF-r    0.7s ease;
}

.GF-footer.GF_ready .GF_l:hover { transform: translateY(-4%); }

/* Desenfoque progresivo: 4 franjas con distinto blur */
.GF-footer .GF_blur {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.GF-footer .GF_blur i {
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(var(--b));
          backdrop-filter: blur(var(--b));
}

.GF-footer .GF_blur i:nth-child(1) {
  --b: 1.5px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 28%, #000 44%);
          mask-image: linear-gradient(to bottom, transparent 28%, #000 44%);
}

.GF-footer .GF_blur i:nth-child(2) {
  --b: 4px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 44%, #000 60%);
          mask-image: linear-gradient(to bottom, transparent 44%, #000 60%);
}

.GF-footer .GF_blur i:nth-child(3) {
  --b: 9px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 58%, #000 76%);
          mask-image: linear-gradient(to bottom, transparent 58%, #000 76%);
}

.GF-footer .GF_blur i:nth-child(4) {
  --b: 18px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 72%, #000 92%);
          mask-image: linear-gradient(to bottom, transparent 72%, #000 92%);
}

/* ------------------------------------------------------------
   6. Responsive
   ------------------------------------------------------------ */
@media (max-width: 960px) {
  .GF-footer .GF_inner { padding: 52px 28px 0; }
  .GF-footer .GF_top   { flex-direction: column; gap: 44px; }
  .GF-footer .GF_cols  { gap: 48px; }
}

@media (max-width: 600px) {
  .GF-footer .GF_inner   { padding: 44px 22px 0; }
  .GF-footer .GF_brand   { flex-wrap: wrap; }
  .GF-footer .GF_sep     { display: none; }
  .GF-footer .GF_brand_text { width: 100%; }
  .GF-footer .GF_cols    { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
  .GF-footer .GF_col_contact { grid-column: 1 / -1; }
  .GF-footer .GF_bottom  { flex-direction: column; align-items: flex-start; gap: 18px; }
  .GF-footer .GF_social  { margin-left: 0; }
  .GF-footer .GF_line    { margin: 36px 0 16px; }
}

/* ------------------------------------------------------------
   7. Accesibilidad: sin animaciones si el usuario lo pide
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .GF-footer .GF_reveal,
  .GF-footer .GF_line,
  .GF-footer .GF_l {
    transition: none;
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .GF-footer .GF_status i::after { animation: none; }
}
