/* ======================================
   FOOTER V2 — CORE LAYOUT (ITERACIÓN 1)
   ====================================== */

.main-footer {
  background: #3a3a3a;
  padding: 80px 0 60px;
  color: #fff;
}

.main-footer .fui-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.main-footer .row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
}

/* COLUMN RESET */
.main-footer .regular-col {
  margin: 0;
  padding: 0;
}

/* ABOUT COLUMN */
.main-footer .about-col .logo {
  display: inline-block;
  margin-bottom: 24px;
}

.main-footer .about-col .info-p {
  max-width: 320px;
  color: rgba(255, 255, 255, 0.75);
}

.main-footer .about-col .newsletter-open-modal {
  margin-top: 24px;
  padding: 12px 28px;

  background-color: #205fa4;
  color: #ffffff;

  border: none;
  border-radius: 4px;

  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;

  cursor: pointer;
}

.main-footer .about-col .newsletter-open-modal:hover {
  background-color: #1d7aab;
  color: #ffffff;
}

/* CONTACT COLUMN */

.main-footer .open-col .single-date {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.main-footer .open-col .single-date:last-child {
  margin-top: 8px; /* aire para BBB */
}

.main-footer .open-col .muted {
  color: rgba(255, 255, 255, 0.75);
}

.main-footer .open-col i.fa {
  color: rgba(255, 255, 255, 0.75);
}

/* LISTS */
.main-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-footer ul li {
  margin-bottom: 10px;
  list-style: none;
  color: rgba(255, 255, 255, 0.75);
}

.main-footer ul.list-unstyled li a.nav-link {
  color: rgba(255, 255, 255, 0.75);
}

/* FOOTER — LINKS HOVER (Quick Links + Funding Services) */
.main-footer .list-unstyled li:hover {
  color: #ffffff;
}

/* TITLES */
.main-footer .title {
  font-family: "Roboto", sans-serif;
  font-size: 20px;
  line-height: 25px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 32px;
}



/* ======================================
   BOTTOM FOOTER
   ====================================== */

.bottom-footer {
  background: #3a3a3a;
  padding: 32px 0;
  border-top: 1px solid #949494;
}

.bottom-footer .fui-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bottom-footer .copy {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

/* ======================================
   FOOTER — SOCIAL ICONS (HARD OVERRIDE)
   ====================================== */

.bottom-footer .social-links a {
  width: 36px;
  height: 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: 1px solid #ffffff;

  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;

  color: #ffffff !important;
  text-decoration: none !important;

  line-height: 1;
  padding: 0;
  overflow: hidden;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

/* ICONS */
.bottom-footer .social-links a i,
.bottom-footer .social-links a svg {
  width: 16px;
  height: 16px;
  display: block;

  color: #ffffff !important;
  fill: #ffffff !important;
}

/* HOVER — AZUL DEFINITIVO */
.bottom-footer .social-links a:hover,
.bottom-footer .social-links a:focus {
  background-color: #205fa4 !important;
  border-color: #205fa4 !important;
}

/* ANULA famousui / style.css */
.bottom-footer .social-links a:hover i,
.bottom-footer .social-links a:hover svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* ======================================
   DESKTOP FIXES
   ====================================== */

@media (max-width: 1200px) {
  .main-footer .row {
    gap: 32px;
  }
}

/* ======================================
   FOOTER — SOCIAL ICONS (FINAL REAL FIX)
   ====================================== */

/* base */
.bottom-footer .social-links a {
  background-color: transparent !important;
  position: relative;
  z-index: 1;
}

/* KILL famousui pseudo element */
.bottom-footer .social-links a::before,
.bottom-footer .social-links a::after {
  content: none !important;
  display: none !important;
}

/* hover REAL */
.bottom-footer .social-links a:hover {
  background-color: var(--color-primary, #2599d6) !important;
  border-color: var(--color-primary, #2599d6) !important;
}

.bottom-footer .social-links a i::before {
  background: none !important;
}

.bottom-footer .social-links a i {
  background: none !important;
}

@media (max-width: 1199px) {
  .main-footer .row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .main-footer {
    padding: 2rem 0;
  }

  .main-footer .about-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .main-footer .about-col .info-p {
    margin-left: auto;
    margin-right: auto;
  }

  .main-footer .about-col .logo {
    margin-bottom: 20px;
  }

  .main-footer .regular-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .main-footer .row {
    grid-template-columns: 1fr;
  }

  /* Ocultar copyright */
  .bottom-footer .copy {
    display: none;
  }

  /* Contenedor del bottom footer en mobile */
  .bottom-footer .fui-container {
    display: flex;
    justify-content: center;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  /* Redes sociales */
  .bottom-footer .social-links {
    justify-content: center;
    margin: 0;
  }

  .bottom-footer .social-links a {
    width: 48px;
    height: 48px;
  }
}



/* =====================
   NEWSLETTER MODAL
===================== */

.newsletter-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.newsletter-modal.active {
  display: block;
}

.newsletter-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.newsletter-modal__content {
  position: relative;
  z-index: 2;

  width: min(920px, calc(100% - 32px));
  max-height: calc(100vh - 64px);
  overflow: auto;

  margin: 32px auto;
  background: #ffffff;
  border-radius: 16px;
  padding: 26px 22px;

  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.newsletter-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;

  width: 40px;
  height: 40px;

  border: none;
  background: transparent;
  cursor: pointer;

  font-size: 34px;
  line-height: 40px;
  color: #000000;
}

/* Prevent body scroll when modal is open */
body.newsletter-modal-open {
  overflow: hidden;
}

/* =========================
   GRAVITY FORM (ONLY INSIDE MODAL)
   Goal: left aligned + clean spacing
========================= */

.newsletter-modal .newsletter-modal__content,
.newsletter-modal .newsletter-modal__body {
  text-align: left;
}

/* Constrain form width (like the reference) */
.newsletter-modal .gform_wrapper,
.newsletter-modal .gform_wrapper form {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
}

/* Title/header */
.newsletter-modal .gform_wrapper .gform_heading,
.newsletter-modal .gform_wrapper .gform_title {
  text-align: center;
  margin: 0 0 18px;
}

/* Remove weird centering/margins GF sometimes adds */
.newsletter-modal .gform_wrapper .gform_body,
.newsletter-modal .gform_wrapper .gform_fields {
  margin: 0;
  padding: 0;
}

/* Fields spacing */
.newsletter-modal .gform_wrapper .gfield {
  margin: 0 0 18px;
}

/* Labels */
.newsletter-modal .gform_wrapper .gfield_label {
  display: block;
  text-align: left;
  font-weight: 700;
  margin: 0 0 8px;
}

/* Inputs full width */
.newsletter-modal .gform_wrapper input[type="text"],
.newsletter-modal .gform_wrapper input[type="email"],
.newsletter-modal .gform_wrapper input[type="tel"],
.newsletter-modal .gform_wrapper input[type="url"],
.newsletter-modal .gform_wrapper input[type="number"],
.newsletter-modal .gform_wrapper select,
.newsletter-modal .gform_wrapper textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;

  padding: 12px 14px;
  border: 1px solid #d6d6d6;
  border-radius: 6px;
  background: #fff;

  outline: none;
}

/* Focus */
.newsletter-modal .gform_wrapper input[type="text"]:focus,
.newsletter-modal .gform_wrapper input[type="email"]:focus,
.newsletter-modal .gform_wrapper input[type="tel"]:focus,
.newsletter-modal .gform_wrapper input[type="url"]:focus,
.newsletter-modal .gform_wrapper input[type="number"]:focus,
.newsletter-modal .gform_wrapper select:focus,
.newsletter-modal .gform_wrapper textarea:focus {
  border-color: rgba(32, 95, 164, 0.6);
  box-shadow: 0 0 0 3px rgba(32, 95, 164, 0.15);
}

/* CAPTCHA align */
.newsletter-modal .gform_wrapper .gfield_recaptcha,
.newsletter-modal .gform_wrapper .ginput_recaptcha {
  text-align: left;
}

/* Footer/button align */
.newsletter-modal .gform_wrapper .gform_footer {
  margin-top: 10px;
  padding: 0;
  text-align: left;
}

/* Submit button (pill like reference) */
.newsletter-modal .gform_wrapper input[type="submit"],
.newsletter-modal .gform_wrapper button[type="submit"] {
  display: inline-block;

  padding: 14px 28px;
  border-radius: 999px;
  border: none;

  background: #1d2a7a;
  color: #ffffff;

  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;

  transition: background-color 0.25s ease;
}

.newsletter-modal .gform_wrapper input[type="submit"]:hover,
.newsletter-modal .gform_wrapper button[type="submit"]:hover {
  background: var(--color-secondary);
  color: #ffffff;
}

/* Small screens */
@media (max-width: 768px) {
  .newsletter-modal__content {
    width: calc(100% - 24px);
    margin: 20px auto;
    padding: 22px 16px;
    border-radius: 14px;
  }

  .newsletter-modal__close {
    top: 6px;
    right: 8px;
  }

  .newsletter-modal .gform_wrapper,
  .newsletter-modal .gform_wrapper form {
    max-width: 100%;
  }
}


.color-button {
  background-color: #22a1d8;
  animation: applyPulse 1s linear infinite;
  animation-direction: alternate;
}

