/* =========================================================
   CONTACTO FINAL + FOOTER
   Archivo: css/footer.css
   Se carga despues de style.css y yt.css
========================================================= */

/* =========================================================
   CONTACT SECTION / DESPUES DE YOUTUBE
========================================================= */

.contact-section {
  position: relative;
  z-index: 6;
  isolation: isolate;
  overflow: hidden;

  min-height: 100vh;
  padding: clamp(110px, 12vw, 170px) 5vw clamp(90px, 10vw, 140px);
  margin: 0;

  display: flex;
  align-items: center;

  background:
    radial-gradient(circle at 18% 22%, rgba(71, 210, 230, 0.35), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(230, 71, 150, 0.28), transparent 36%),
    radial-gradient(circle at 54% 92%, rgba(241, 216, 232, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(225, 239, 252, 0.96) 0%, rgba(92, 139, 177, 0.92) 35%, rgba(23, 72, 108, 0.98) 100%);
}

.contact-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  z-index: -2;

  width: 120vw;
  height: 210px;

  transform: translateX(-50%);

  background:
    radial-gradient(ellipse at center top, rgba(255,255,255,0.86), transparent 68%),
    linear-gradient(180deg, rgba(225, 239, 252, 0.98), rgba(225, 239, 252, 0));

  clip-path: ellipse(62% 62% at 50% 0%);
  pointer-events: none;
}

.contact-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;

  background-image:
    linear-gradient(rgba(255,255,255,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.22;
  mask-image: linear-gradient(to bottom, transparent 0%, black 24%, black 100%);
}

.contact-orb {
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(54px);
  opacity: 0.68;
}

.contact-orb-one {
  width: 360px;
  height: 360px;
  left: -130px;
  bottom: 12%;
  background: rgba(71, 210, 230, 0.32);
}

.contact-orb-two {
  width: 420px;
  height: 420px;
  right: -150px;
  top: 18%;
  background: rgba(230, 71, 150, 0.22);
}

.contact-panel {
  position: relative;
  overflow: hidden;

  width: min(1180px, 100%);
  min-height: 470px;
  margin: 0 auto;
  padding: clamp(34px, 7vw, 86px);

  border-radius: clamp(32px, 4vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.34);

  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.36), transparent 28%),
    radial-gradient(circle at 94% 10%, rgba(241, 216, 232, 0.28), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.10));

  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);

  box-shadow:
    0 34px 110px rgba(6, 25, 43, 0.30),
    inset 0 1px 0 rgba(255,255,255,0.28);

  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(28px, 4vw, 56px);
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;

  background:
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.28) 42%, transparent 58%);

  transform: translateX(-120%);
  opacity: 0;
}

.contact-panel.is-shining::before {
  animation: contactShine 1.25s ease forwards;
}

@keyframes contactShine {
  0% {
    transform: translateX(-120%);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: translateX(120%);
    opacity: 0;
  }
}

.contact-text {
  position: relative;
  z-index: 2;
  max-width: 790px;
}

.section-tag.light {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 36px;
  padding: 0 15px;
  margin-bottom: 24px;

  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);

  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.94);

  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-text h2 {
  max-width: 850px;
  margin: 0;

  color: #ffffff;
  font-size: clamp(2.9rem, 7vw, 7.6rem);
  line-height: 0.88;
  letter-spacing: -0.085em;
  font-weight: 900;

  text-wrap: balance;

  text-shadow:
    0 8px 30px rgba(0, 0, 0, 0.14),
    0 20px 80px rgba(0, 0, 0, 0.25);
}

.contact-title-line {
  display: block;
  overflow: hidden;
}

.contact-title-line span {
  display: inline-block;
  will-change: transform, opacity;
}

.contact-text p {
  max-width: 620px;
  margin-top: 26px;

  color: rgba(255, 255, 255, 0.84);

  line-height: 1.8;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  font-weight: 600;
}

.contact-actions {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.btn-primary-contact {
  min-height: 60px;
  padding: 0 32px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  background: #ffffff;
  color: #17486c;

  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;

  box-shadow: 0 20px 60px rgba(6, 25, 43, 0.22);

  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

.btn-primary-contact:hover {
  transform: translateY(-3px);
  background: #f1d8e8;
  color: #10263a;
  box-shadow: 0 26px 76px rgba(189, 115, 184, 0.3);
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  position: relative;
  z-index: 7;

  padding: 0 5vw 34px;

  color: rgba(255, 255, 255, 0.82);
  background: #17486c;

  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 5vw;
  right: 5vw;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.38), transparent);
}

.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 34px 0 26px;

  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto;
  align-items: center;
  gap: 28px;
}

.footer-brand {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo-link {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;

  display: grid;
  place-items: center;

  border-radius: 18px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
}

.footer-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.footer-brand strong {
  display: block;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.footer-brand p {
  max-width: 430px;
  margin: 6px 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.66);
}

.footer-links,
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a,
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 38px;
  padding: 0 14px;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);

  color: rgba(255,255,255,0.82);
  font-size: 0.82rem;
  font-weight: 800;

  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.footer-links a:hover,
.footer-social a:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.16);
  color: #ffffff;
  border-color: rgba(255,255,255,0.26);
}

.footer-bottom {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-top: 20px;

  border-top: 1px solid rgba(255,255,255,0.12);

  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;

  font-size: 0.78rem;
  color: rgba(255,255,255,0.56);
}

/* =========================================================
   RESPONSIVE CONTACTO + FOOTER
========================================================= */

@media (max-width: 900px) {
  .contact-section {
    min-height: auto;
    padding: 105px 20px 90px;
  }

  .contact-panel {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .contact-actions,
  .btn-primary-contact {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links,
  .footer-social {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .contact-section {
    padding: 92px 16px 78px;
  }

  .contact-panel {
    padding: 34px 24px;
    border-radius: 32px;
  }

  .section-tag.light {
    font-size: 0.64rem;
    letter-spacing: 0.11em;
  }

  .contact-text h2 {
    font-size: clamp(2.35rem, 13vw, 4rem);
    line-height: 0.92;
  }

  .contact-text p {
    font-size: 0.96rem;
    line-height: 1.68;
  }

  .btn-primary-contact {
    min-height: 54px;
  }

  .site-footer {
    padding: 0 18px 30px;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-links a,
  .footer-social a {
    flex: 1 1 auto;
  }
}
/* =========================
   FOOTER CREDITS
========================= */

.footer-credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1;
}

.footer-credit-text {
  opacity: 0.78;
  font-size: 0.82rem;
}

.footer-credit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
}

.footer-credit-logo {
  width: 95px;
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    filter 0.25s ease;
}

.footer-credit-link:hover .footer-credit-logo {
  opacity: 1;
  transform: translateY(-1px) scale(1.03);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
}

/* =========================
   FOOTER MOBILE
========================= */

@media (max-width: 768px) {
  .footer-bottom {
    text-align: center;
    gap: 10px;
  }

  .footer-credit {
    width: 100%;
    margin-top: 4px;
    gap: 7px;
  }

  .footer-credit-logo {
    width: 95px;
  }
}

@media (max-width: 480px) {
  .footer-credit {
    flex-direction: column;
    gap: 6px;
  }

  .footer-credit-text {
    font-size: 0.78rem;
  }

  .footer-credit-logo {
    width: 95px;
  }
}