/* Franc Levantina — footer */

.fl-footer {
  position: relative;
  margin-top: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(ellipse 50% 80% at 8% 100%, rgba(215, 110, 1, 0.2), transparent 55%),
    radial-gradient(ellipse 40% 50% at 95% 15%, rgba(197, 37, 41, 0.12), transparent 50%),
    linear-gradient(180deg, #1a1a1a 0%, var(--fl-footer-bg, #2b2b2b) 100%);
}

.fl-footer::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--fl-accent, #d76e01), var(--fl-accent-hover, #c52529));
}

.fl-footer__inner {
  max-width: var(--fl-container, 1180px);
  margin-inline: auto;
  padding: clamp(2.75rem, 5vw, 3.75rem) var(--fl-inline-pad, 1.25rem) clamp(1.25rem, 3vw, 1.75rem);
}

.fl-footer,
.fl-footer p,
.fl-footer h3,
.fl-footer .wp-block-heading {
  color: rgba(255, 255, 255, 0.9);
}

.fl-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.fl-footer__main > * {
  min-width: 0;
}

.fl-footer__heading {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1rem !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

.fl-footer-brand__name {
  font-size: 1.05rem !important;
  margin: 0.5rem 0 0.25rem !important;
}

.fl-footer-brand__tagline {
  margin-bottom: 0.75rem !important;
  max-width: 28ch;
}

.fl-footer__logo img {
  display: block;
  max-width: min(200px, 100%);
  height: auto;
  border-radius: var(--fl-radius-sm, 12px);
}

.fl-footer .fl-muted,
.fl-footer .fl-muted a {
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 0.92rem;
  line-height: 1.65;
}

.fl-footer .fl-muted a:hover,
.fl-footer-links a:hover,
.fl-footer-legal a:hover {
  color: #fff !important;
}

.fl-footer-tel,
.fl-footer-mail {
  font-size: 1rem !important;
  font-weight: 600;
  text-decoration: none;
}

.fl-footer-links {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.fl-footer-links li {
  margin: 0;
  padding: 0;
}

.fl-footer-links a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.15rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.fl-footer-links a:hover {
  border-bottom-color: rgba(215, 110, 1, 0.65);
}

.fl-footer-cta {
  margin-top: 0.75rem !important;
}

.fl-footer-cta .wp-block-button__link {
  background: var(--fl-accent, #d76e01) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  padding: 0.55rem 1.15rem !important;
  box-shadow: 0 4px 18px rgba(215, 110, 1, 0.35);
}

.fl-footer-cta .wp-block-button__link:hover {
  background: var(--fl-accent-hover, #c52529) !important;
  box-shadow: 0 6px 22px rgba(197, 37, 41, 0.35);
}

.fl-footer-card {
  margin-top: clamp(1.75rem, 3vw, 2.25rem);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--fl-radius-md, 18px);
  backdrop-filter: blur(6px);
}

.fl-footer-subsidy__eyebrow {
  margin: 0 0 0.35rem !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fl-accent, #d76e01) !important;
}

.fl-footer-subsidy__title {
  font-size: clamp(0.9rem, 1.8vw, 1rem) !important;
  line-height: 1.45 !important;
  font-weight: 600 !important;
  margin: 0 0 1.25rem !important;
  max-width: 52ch;
}

.fl-footer-subsidy__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
}

.fl-footer-subsidy__logo {
  margin: 0 !important;
}

.fl-footer-subsidy__logo img {
  display: block;
  max-height: 52px;
  width: auto;
  max-width: min(160px, 100%);
  height: auto;
  object-fit: contain;
  border-radius: var(--fl-radius-sm, 12px);
}

.fl-footer-subsidy__logo--gva img {
  max-height: 44px;
  max-width: min(200px, 100%);
}

.fl-footer-subsidy__text,
.fl-footer-subsidy__meta {
  margin: 0 !important;
  font-size: 0.88rem !important;
  line-height: 1.6 !important;
  max-width: 72ch;
}

.fl-footer-subsidy__meta {
  margin-top: 0.65rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

.fl-footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fl-footer__copy {
  margin: 0 !important;
  font-size: 0.85rem !important;
  color: rgba(255, 255, 255, 0.45) !important;
}

.fl-footer-legal {
  margin: 0 !important;
  font-size: 0.82rem !important;
  text-align: right;
}

.fl-footer-legal a {
  color: rgba(255, 255, 255, 0.5) !important;
  text-decoration: none;
}

/* Chat FAB fuera del flujo del footer */
.fl-footer > .fl-chat-shell {
  position: fixed;
  right: max(1rem, var(--fl-inline-pad, 1.25rem));
  bottom: 1.25rem;
  z-index: 70;
  margin: 0;
  padding: 0;
  width: auto;
  max-width: none;
  pointer-events: none;
}

.fl-footer > .fl-chat-shell .wp-block-design-toolkit-collapsible,
.fl-footer > .fl-chat-shell .dtk-collapsible {
  pointer-events: auto;
}

@media (max-width: 900px) {
  .fl-footer__main {
    grid-template-columns: 1fr 1fr;
  }

  .fl-footer-brand {
    grid-column: 1 / -1;
    text-align: center;
  }

  .fl-footer-brand__tagline {
    margin-inline: auto;
  }

  .fl-footer__logo img {
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  .fl-footer__main {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.75rem;
  }

  .fl-footer-links {
    align-items: center;
  }

  .fl-footer-cta {
    justify-content: center !important;
  }

  .fl-footer-subsidy__logos {
    justify-content: center;
  }

  .fl-footer-subsidy__title,
  .fl-footer-subsidy__text,
  .fl-footer-subsidy__meta {
    margin-inline: auto;
    text-align: center;
  }

  .fl-footer__bar {
    flex-direction: column;
    text-align: center;
  }

  .fl-footer-legal {
    text-align: center;
  }
}
