/* ============================= */
/* FOOTER ENERGAIN */
/* Ancho completo + centro real */
/* ============================= */

.eg-footer {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  color: #ffffff;
  isolation: isolate;
  background: #119bd3;
  border-radius: 34px 34px 0 0;
}

.eg-footer-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 16% 35%, rgba(100, 185, 0, 0.80), transparent 36%),
    radial-gradient(circle at 82% 30%, rgba(17, 155, 211, 0.76), transparent 38%),
    linear-gradient(135deg, #119bd3 0%, #42aa28 50%, #64b900 100%);
}

.eg-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 42, 52, 0.10), rgba(0, 42, 52, 0.18)),
    radial-gradient(circle at 50% 100%, rgba(0, 0, 0, 0.12), transparent 46%);
  pointer-events: none;
}

.eg-footer-inner {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 38px 56px 18px;
}

/* ============================= */
/* DISTRIBUCIÓN PRINCIPAL */
/* ============================= */

.eg-footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(520px, 1.4fr) minmax(380px, 0.9fr);
  align-items: center;
  gap: 34px;
}

/* ============================= */
/* IZQUIERDA: LOGO */
/* ============================= */

.eg-footer-logo-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.eg-footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.eg-footer-logo img {
  width: 245px;
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.eg-footer-logo:hover img {
  transform: scale(1.07);
}

/* ============================= */
/* CENTRO: FRASE */
/* ============================= */

.eg-footer-message {
  text-align: center;
  justify-self: center;
  width: 100%;
  max-width: 760px;
}

.eg-footer-message h2 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 3.5vw, 3.3rem);
  font-weight: 900;
  line-height: 1.08;
  color: #ffffff;
  letter-spacing: -0.04em;
  text-shadow: 0 7px 22px rgba(0, 0, 0, 0.26);
}

.eg-footer-message h2::after {
  content: "";
  display: block;
  width: 105px;
  height: 5px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.36);
}

.eg-footer-message p {
  width: min(680px, 100%);
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  line-height: 1.55;
  font-weight: 500;
  text-shadow: 0 5px 16px rgba(0, 0, 0, 0.22);
}

/* ============================= */
/* DERECHA: MENÚ + REDES */
/* ============================= */

.eg-footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 22px;
  min-width: 380px;
}

.eg-footer-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 26px;
  flex-wrap: nowrap;
}

.eg-footer-nav a {
  position: relative;
  color: #ffffff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  white-space: nowrap;
  text-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.eg-footer-nav a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.eg-footer-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 0;
  height: 3px;
  border-radius: 999px;
  background: #ffffff;
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.eg-footer-nav a:hover::after {
  width: 100%;
}

/* Redes sociales */
.eg-footer-social {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.eg-footer-social a {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  color: #ffffff;
  font-size: 1.34rem;
  border: 2.5px solid rgba(255, 255, 255, 0.78);
  background: rgba(0, 40, 50, 0.18);
  backdrop-filter: blur(8px);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.eg-footer-social a:hover {
  transform: translateY(-6px) scale(1.07);
  border-color: transparent;
  background: linear-gradient(135deg, #119bd3 0%, #64b900 100%);
  box-shadow:
    0 16px 36px rgba(17, 155, 211, 0.38),
    0 0 26px rgba(100, 185, 0, 0.36);
}

/* ============================= */
/* COPYRIGHT */
/* ============================= */

.eg-footer-bottom {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  text-align: center;
}

.eg-footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 500;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1200px) {
  .eg-footer-inner {
    padding: 34px 34px 18px;
  }

  .eg-footer-main {
    grid-template-columns: minmax(210px, 0.8fr) minmax(420px, 1.4fr) minmax(340px, 0.9fr);
    gap: 24px;
  }

  .eg-footer-actions {
    min-width: 340px;
  }

  .eg-footer-logo img {
    width: 220px;
  }

  .eg-footer-nav {
    gap: 22px;
  }

  .eg-footer-nav a {
    font-size: 0.86rem;
  }

  .eg-footer-social {
    flex-wrap: nowrap;
    gap: 14px;
  }

  .eg-footer-social a {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    font-size: 1.2rem;
  }
}

@media (max-width: 992px) {
  .eg-footer {
    border-radius: 28px 28px 0 0;
  }

  .eg-footer-main {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .eg-footer-logo-box {
    justify-content: center;
  }

  .eg-footer-message {
    max-width: 720px;
  }

  .eg-footer-actions {
    min-width: 0;
    align-items: center;
  }

  .eg-footer-nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .eg-footer-social {
    justify-content: center;
    flex-wrap: wrap;
  }

  .eg-footer-logo img {
    width: 230px;
  }
}

@media (max-width: 768px) {
  .eg-footer-inner {
    padding: 30px 20px 16px;
  }

  .eg-footer-message h2 {
    font-size: clamp(1.75rem, 7vw, 2.35rem);
  }

  .eg-footer-message p {
    font-size: 1rem;
  }

  .eg-footer-nav {
    gap: 22px;
  }

  .eg-footer-nav a {
    font-size: 0.84rem;
  }

  .eg-footer-social {
    gap: 14px;
  }

  .eg-footer-social a {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    font-size: 1.18rem;
  }

  .eg-footer-bottom p {
    font-size: 0.84rem;
  }
}

@media (max-width: 480px) {
  .eg-footer {
    border-radius: 22px 22px 0 0;
  }

  .eg-footer-inner {
    padding: 26px 16px 14px;
  }

  .eg-footer-logo img {
    width: 200px;
  }

  .eg-footer-message h2 {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .eg-footer-message h2::after {
    width: 82px;
    height: 4px;
    margin-top: 10px;
  }

  .eg-footer-message p {
    font-size: 0.92rem;
  }

  .eg-footer-nav {
    flex-direction: column;
    gap: 14px;
  }

  .eg-footer-social {
    gap: 12px;
  }

  .eg-footer-social a {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 1.08rem;
  }

  .eg-footer-bottom {
    margin-top: 24px;
    padding-top: 14px;
  }

  .eg-footer-bottom p {
    font-size: 0.78rem;
  }
}