/* =========================================================
   FOOTER GLOBAL — GAMMERS STYLE
   ========================================================= */

.gsf-footer,
.gsf-footer * {
  box-sizing: border-box;
}

.gsf-footer {
  --gsf-cyan: #19b9ff;
  --gsf-cyan-light: #42c8ff;
  --gsf-navy: #07182f;
  --gsf-navy-light: #10284a;
  --gsf-card: rgba(255, 255, 255, 0.055);
  --gsf-border: rgba(255, 255, 255, 0.14);
  --gsf-text: #ffffff;
  --gsf-muted: #afbdd3;

  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  color: var(--gsf-text);
  font-family: "Poppins", Arial, sans-serif;

  background:
    radial-gradient(
      circle at 4% 8%,
      rgba(25, 185, 255, 0.20) 0,
      rgba(25, 185, 255, 0.05) 15%,
      transparent 34%
    ),
    radial-gradient(
      circle at 94% 20%,
      rgba(70, 68, 255, 0.20) 0,
      rgba(70, 68, 255, 0.06) 20%,
      transparent 40%
    ),
    linear-gradient(
      120deg,
      #06172c 0%,
      #08172f 48%,
      #151b52 100%
    );
}

/* Patrón electrónico tenue */
.gsf-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.22;

  background-image:
    linear-gradient(
      90deg,
      rgba(25, 185, 255, 0.07) 1px,
      transparent 1px
    ),
    linear-gradient(
      rgba(25, 185, 255, 0.07) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle,
      rgba(25, 185, 255, 0.20) 1px,
      transparent 1.7px
    );

  background-size:
    90px 90px,
    90px 90px,
    30px 30px;

  mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.72),
      transparent 90%
    );

  -webkit-mask-image:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.72),
      transparent 90%
    );
}

/* Mancha decorativa */
.gsf-footer::after {
  content: "";
  position: absolute;
  right: -150px;
  bottom: -210px;
  width: 560px;
  height: 560px;
  z-index: -1;
  pointer-events: none;
  border-radius: 48% 52% 42% 58%;
  transform: rotate(18deg);

  background:
    radial-gradient(
      circle at 35% 35%,
      rgba(67, 65, 255, 0.30),
      rgba(55, 38, 190, 0.13) 47%,
      transparent 69%
    );
}

.gsf-footer a {
  color: inherit;
  text-decoration: none;
}

.gsf-footer__inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 28px;
}

/* =========================================================
   COLUMNAS PRINCIPALES
   ========================================================= */

.gsf-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.9fr 1.15fr;
  gap: 50px;
  align-items: start;
}

/* =========================================================
   LOGOTIPO
   ========================================================= */

.gsf-footer__brand {
  min-width: 0;
}

.gsf-logo {
  display: inline-flex;
  align-items: center;
  width: min(100%, 275px);
  margin-bottom: 22px;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

.gsf-logo:hover {
  transform: translateY(-3px);
  filter:
    drop-shadow(0 0 10px rgba(25, 185, 255, 0.30))
    drop-shadow(0 8px 20px rgba(0, 0, 0, 0.22));
}

.gsf-logo:focus-visible {
  outline: 2px solid var(--gsf-cyan);
  outline-offset: 6px;
  border-radius: 8px;
}

.gsf-logo-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.gsf-footer__description {
  max-width: 390px;
  margin: 0;
  color: var(--gsf-muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.85;
}

.gsf-footer__status {
  display: inline-flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 23px;
  padding: 13px 16px;
  border: 1px solid var(--gsf-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.gsf-footer__status-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: #35df9a;
  box-shadow: 0 0 0 6px rgba(53, 223, 154, 0.12);
}

.gsf-footer__status strong {
  display: block;
  margin-bottom: 2px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.gsf-footer__status span {
  display: block;
  color: var(--gsf-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* =========================================================
   ENCABEZADOS Y MENÚS
   ========================================================= */

.gsf-footer__heading {
  position: relative;
  margin: 8px 0 22px;
  padding-bottom: 13px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.gsf-footer__heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--gsf-cyan),
    transparent
  );
}

.gsf-footer__links {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gsf-footer__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  color: var(--gsf-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  transition:
    color 0.22s ease,
    transform 0.22s ease;
}

.gsf-footer__links a::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-right: 10px;
  border-radius: 50%;
  background: rgba(25, 185, 255, 0.55);
  transition:
    width 0.22s ease,
    border-radius 0.22s ease,
    background 0.22s ease;
}

.gsf-footer__links a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.gsf-footer__links a:hover::before {
  width: 16px;
  border-radius: 999px;
  background: var(--gsf-cyan);
}

.gsf-footer__links a:focus-visible {
  color: #ffffff;
  outline: 2px solid var(--gsf-cyan);
  outline-offset: 5px;
  border-radius: 4px;
}

/* =========================================================
   DATOS DE CONTACTO
   ========================================================= */

.gsf-footer__contacts {
  display: grid;
  gap: 11px;
}

.gsf-contact {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--gsf-border);
  border-radius: 17px;
  background: var(--gsf-card);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.gsf-contact:hover {
  transform: translateY(-3px);
  border-color: rgba(25, 185, 255, 0.50);
  background: rgba(25, 185, 255, 0.09);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.22),
    0 0 18px rgba(25, 185, 255, 0.08);
}

.gsf-contact:focus-visible {
  outline: 2px solid var(--gsf-cyan);
  outline-offset: 3px;
}

.gsf-contact__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(25, 185, 255, 0.42);
  border-radius: 13px;
  color: var(--gsf-cyan);
  background: rgba(25, 185, 255, 0.08);
}

.gsf-contact__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gsf-contact__content {
  min-width: 0;
}

.gsf-contact__label {
  display: block;
  margin-bottom: 3px;
  color: #8999b2;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.gsf-contact__value {
  display: block;
  overflow-wrap: anywhere;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}


/* Icono de WhatsApp inyectado globalmente */
.gsf-contact.button--whatsapp .gs-global-wa-icon {
  display: block;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  max-width: 42px;
  max-height: 42px;
  margin: 0 !important;
  border: 1px solid rgba(25, 185, 255, 0.42);
  border-radius: 13px;
  background-color: rgba(25, 185, 255, 0.08);
  align-self: center;
}

.gsf-button--primary.button--whatsapp .gs-global-wa-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  max-width: 18px;
  max-height: 18px;
  margin: 0 !important;
  flex: 0 0 auto;
}

/* =========================================================
   BLOQUE CTA
   ========================================================= */

.gsf-footer__cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  margin-top: 48px;
  padding: 27px 30px;
  border: 1px solid rgba(25, 185, 255, 0.23);
  border-radius: 24px;

  background:
    radial-gradient(
      circle at 100% 0,
      rgba(25, 185, 255, 0.13),
      transparent 36%
    ),
    rgba(2, 13, 36, 0.68);

  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.gsf-footer__cta-title {
  margin: 0 0 7px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}

.gsf-footer__cta-copy p:not(.gsf-footer__cta-title) {
  max-width: 650px;
  margin: 0;
  color: var(--gsf-muted);
  font-size: 13px;
  line-height: 1.7;
}

.gsf-footer__buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.gsf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 49px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.gsf-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.gsf-button:hover svg {
  transform: translateX(4px);
}

.gsf-button--primary {
  color: #ffffff !important;
  background: linear-gradient(
    135deg,
    #0ba8f2,
    #2bc6ff
  );
  box-shadow: 0 12px 28px rgba(25, 185, 255, 0.22);
}

.gsf-button--primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 17px 36px rgba(25, 185, 255, 0.32),
    0 0 22px rgba(25, 185, 255, 0.16);
}

.gsf-button--secondary {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.035);
}

.gsf-button--secondary:hover {
  transform: translateY(-3px);
  border-color: rgba(25, 185, 255, 0.55);
  background: rgba(25, 185, 255, 0.08);
}

.gsf-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

/* =========================================================
   FRANJA INFERIOR
   ========================================================= */

.gsf-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 30px;
  padding-top: 23px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.gsf-footer__copyright {
  margin: 0;
  color: #7f90aa;
  font-size: 11px;
  line-height: 1.6;
}

.gsf-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

.gsf-footer__bottom-links a {
  color: #8fa0b9;
  font-size: 11px;
  font-weight: 500;
  transition: color 0.22s ease;
}

.gsf-footer__bottom-links a:hover {
  color: var(--gsf-cyan);
}

/* =========================================================
   TABLETA
   ========================================================= */

@media (max-width: 1024px) {
  .gsf-footer__inner {
    width: min(100% - 40px, 900px);
    padding-top: 62px;
  }

  .gsf-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 38px;
  }

  .gsf-footer__brand {
    grid-column: span 2;
  }

  .gsf-footer__description {
    max-width: 650px;
  }

  .gsf-logo {
    width: 260px;
  }

  .gsf-footer__cta {
    grid-template-columns: 1fr;
  }

  .gsf-footer__buttons {
    justify-content: flex-start;
  }
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 767px) {
  .gsf-footer__inner {
    width: min(100% - 30px, 600px);
    padding: 52px 0 24px;
  }

  .gsf-footer__grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

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

  .gsf-logo {
    width: 230px;
  }

  .gsf-footer__description {
    max-width: 100%;
    font-size: 14px;
  }

  .gsf-footer__heading {
    margin-top: 0;
  }

  .gsf-footer__cta {
    margin-top: 40px;
    padding: 25px 21px;
  }

  .gsf-footer__buttons {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .gsf-button {
    width: 100%;
  }

  .gsf-footer__bottom {
    display: grid;
    justify-items: start;
  }

  .gsf-footer__bottom-links {
    justify-content: flex-start;
  }

  .gsf-footer::after {
    right: -270px;
    bottom: -260px;
  }
}

@media (max-width: 480px) {
  .gsf-footer__inner {
    width: min(100% - 24px, 430px);
  }

  .gsf-logo {
    width: 205px;
  }

  .gsf-footer__status {
    width: 100%;
  }

  .gsf-footer__cta-title {
    font-size: 18px;
  }

  .gsf-contact {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .gsf-contact__icon {
    width: 40px;
    height: 40px;
  }
  .gsf-contact.button--whatsapp .gs-global-wa-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
  }
}


/* Reduce animaciones por accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .gsf-footer *,
  .gsf-footer *::before,
  .gsf-footer *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
