/* ==========================================================
   FOOTER
========================================================== */

.site-footer {
  position: relative;

  padding: 74px 0 0;

  color: rgba(255, 255, 255, 0.72);

  background: var(--sea-blue-900);
}

.footer-main-grid {
  display: grid;

  grid-template-columns:
    minmax(250px, 1.3fr)
    repeat(3, minmax(150px, 0.72fr));

  gap: clamp(34px, 5vw, 64px);

  padding-bottom: 52px;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  display: inline-flex;

  margin-bottom: 22px;
}

.footer-brand img,
.footer-logo img {
  display: block;

  width: auto;

  max-width: 200px;

  height: auto;

  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 380px;

  margin: 0;

  color: rgba(255, 255, 255, 0.64);

  font-size: 0.86rem;

  line-height: 1.75;
}

.site-footer h2 {
  margin: 4px 0 18px;

  color: var(--sea-white, #fff);

  font-size: 0.96rem;

  font-weight: 800;
}

.footer-column ul {
  display: grid;

  gap: 11px;

  margin: 0;

  padding: 0;

  list-style: none;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.66);

  font-size: 0.82rem;

  line-height: 1.45;

  text-decoration: none;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-column a:hover {
  color: var(--sea-white, #fff);
}

.footer-access li a {
  display: inline-flex;

  align-items: center;

  gap: 8px;
}

.footer-access li a span {
  color: var(--sea-green-600);
}

.footer-contact-button {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  margin-top: 24px;

  padding: 12px 16px;

  color: #0d2f61 !important;

  font-size: 0.77rem !important;

  font-weight: 800;

  background: #fff;

  border-radius: 999px;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.footer-contact-button:hover {
  color: #184687 !important;

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);

  transform: translateY(-2px);
}

/* ==========================================================
   REDES SOCIALES
========================================================== */

.social-links {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-top: 24px;
}

.social-links a {
  display: grid;

  width: 38px;

  height: 38px;

  color: var(--sea-white, #fff);

  background: rgba(255, 255, 255, 0.07);

  border: 1px solid rgba(255, 255, 255, 0.16);

  border-radius: 10px;

  place-items: center;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.social-links a:hover {
  color: #fff;

  background: rgba(255, 255, 255, 0.14);

  border-color: rgba(255, 255, 255, 0.28);

  transform: translateY(-3px);
}

.social-links svg {
  width: 18px;

  height: 18px;

  fill: currentColor;
}

/* ==========================================================
   CONTACTOS REGIONALES
========================================================== */

.footer-regional {
  padding: 38px 0 46px;

  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-regional-heading {
  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  gap: 38px;

  margin-bottom: 24px;
}

.footer-regional-heading > div > span {
  display: block;

  color: var(--sea-green-600);

  font-size: 0.68rem;

  font-weight: 850;

  letter-spacing: 0.11em;

  text-transform: uppercase;
}

.footer-regional-heading h2 {
  margin: 7px 0 0;

  font-size: clamp(1.35rem, 2.2vw, 1.82rem);
}

.footer-regional-heading p {
  max-width: 500px;

  margin: 0;

  color: rgba(255, 255, 255, 0.56);

  font-size: 0.81rem;

  line-height: 1.65;
}

.footer-regional-grid {
  display: grid;

  grid-template-columns: repeat(5, minmax(0, 1fr));

  gap: 12px;
}

.footer-country {
  min-width: 0;

  padding: 18px;

  background: rgba(255, 255, 255, 0.055);

  border: 1px solid rgba(255, 255, 255, 0.1);

  border-radius: 14px;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.footer-country:hover {
  background: rgba(255, 255, 255, 0.09);

  border-color: rgba(255, 255, 255, 0.2);

  transform: translateY(-3px);
}

/* ==========================================================
   CONTACTOS REGIONALES - CONTINUACIÓN
========================================================== */

.footer-country-header {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 16px;
}

.footer-country-code {
  display: grid;

  width: 34px;

  height: 34px;

  flex: 0 0 34px;

  color: #0d2f61;

  font-size: 0.66rem;

  font-weight: 900;

  background: var(--sea-green-600);

  border-radius: 9px;

  place-items: center;
}

.footer-country h3 {
  margin: 0;

  color: #fff;

  font-size: 0.9rem;

  line-height: 1.3;
}

.footer-country-links {
  display: grid;

  gap: 10px;
}

.footer-country-links a {
  display: grid;

  grid-template-columns: auto minmax(0, 1fr);

  gap: 9px;

  align-items: start;

  color: rgba(255, 255, 255, 0.65);

  font-size: 0.72rem;

  line-height: 1.45;

  text-decoration: none;

  overflow-wrap: anywhere;

  transition: color 0.2s ease;
}

.footer-country-links a:hover {
  color: #fff;
}

.footer-country-links svg {
  width: 15px;

  height: 15px;

  margin-top: 2px;

  fill: var(--sea-green-600);
}

/* ==========================================================
   PARTE INFERIOR
========================================================== */

.footer-bottom {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;

  min-height: 76px;

  padding: 22px 0;

  border-top: 1px solid rgba(255, 255, 255, 0.1);

  font-size: 0.78rem;
}

.footer-bottom p {
  margin: 0;

  color: rgba(255, 255, 255, 0.5);
}

.footer-legal-links,
.footer-bottom div {
  display: flex;

  flex-wrap: wrap;

  gap: 18px;
}

.footer-legal-links a,
.footer-bottom div a {
  color: rgba(255, 255, 255, 0.56);

  font-size: 0.74rem;

  text-decoration: none;

  transition: color 0.2s ease;
}

.footer-legal-links a:hover,
.footer-bottom div a:hover {
  color: #fff;
}

/* ==========================================================
   WHATSAPP
========================================================== */

.whatsapp-float {
  position: fixed;

  right: 18px;

  bottom: 22px;

  z-index: 90;

  display: grid;

  width: 54px;

  height: 54px;

  color: #fff;

  background: #25d366;

  border: 3px solid #fff;

  border-radius: 50%;

  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);

  place-items: center;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  color: #fff;

  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.27);

  transform: translateY(-4px);
}

.whatsapp-float svg {
  width: 27px;

  height: 27px;

  fill: currentColor;
}

/* ==========================================================
   CAPACITACIÓN COMO CAPACIDAD TRANSVERSAL
========================================================== */

.footer-solution-separator {
  height: 1px;

  margin: 10px 0;

  background: rgba(255, 255, 255, 0.14);

  pointer-events: none;
}

.footer-solution-transversal a {
  font-weight: 700;
}

/* ==========================================================
   RESPONSIVE FOOTER
========================================================== */

@media (max-width: 1100px) {
  .footer-main-grid {
    grid-template-columns:
      minmax(240px, 1.15fr)
      repeat(3, minmax(135px, 0.8fr));

    gap: 30px;
  }

  .footer-regional-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .site-footer {
    padding-top: 62px;
  }

  .footer-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1/-1;
  }

  .footer-regional-heading {
    align-items: flex-start;

    flex-direction: column;

    gap: 12px;
  }

  .footer-regional-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding-top: 54px;
  }

  .footer-main-grid,
  .footer-regional-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;

    justify-content: center;

    flex-direction: column;

    min-height: auto;
  }

  .footer-legal-links,
  .footer-bottom div {
    gap: 13px;
  }

  .whatsapp-float {
    right: 13px;

    bottom: 14px;

    width: 51px;

    height: 51px;
  }
}
