/* =========================================================
   FOOTER GLOBAL — ABOGADAS PERÚ
========================================================= */

body.apgf-footer-active #site-footer,
body.apgf-footer-active footer.site-footer,
body.apgf-footer-active .site-footer:not(#ap-global-footer),
body.apgf-footer-active .elementor-location-footer,
body.apgf-footer-active .hfe-footer {
  display: none !important;
}

#ap-global-footer,
#ap-global-footer * {
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

#ap-global-footer {
  --apgf-red: #c82026;
  --apgf-red-dark: #9f171c;
  --apgf-white: #ffffff;
  --apgf-soft: rgba(255, 255, 255, 0.72);
  --apgf-border: rgba(255, 255, 255, 0.18);
  --apgf-panel: rgba(255, 255, 255, 0.10);
  --apgf-max: 1400px;

  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 86px 28px 24px;

  position: relative;
  overflow: hidden;
  isolation: isolate;

  color: var(--apgf-white);
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.10), transparent 27%),
    linear-gradient(135deg, #c9282d 0%, #b61f25 50%, #9e171c 100%);

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

#ap-global-footer .apgf-grid-decoration {
  position: absolute;
  inset: 0;
  z-index: -3;

  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;

  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.34));
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.34));
}

#ap-global-footer .apgf-glow {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

#ap-global-footer .apgf-glow--one {
  width: 360px;
  height: 360px;
  top: -170px;
  right: 8%;
  background: rgba(255, 255, 255, 0.13);
}

#ap-global-footer .apgf-glow--two {
  width: 300px;
  height: 300px;
  left: -120px;
  bottom: -150px;
  background: rgba(72, 0, 5, 0.22);
}

#ap-global-footer .apgf-container {
  width: min(var(--apgf-max), 100%);
  margin: 0 auto;
}

#ap-global-footer .apgf-main {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr 0.95fr;
  gap: 64px;
  align-items: start;
}

#ap-global-footer .apgf-brand,
#ap-global-footer .apgf-contact,
#ap-global-footer .apgf-nav {
  min-width: 0;
}

#ap-global-footer .apgf-brand {
  padding-right: 22px;
}

#ap-global-footer .apgf-logo {
  width: min(100%, 320px);
  min-height: 116px;
  padding: 18px 22px;
  margin-bottom: 27px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 22px 46px rgba(69, 4, 8, 0.17),
    inset 0 1px 0 #ffffff;

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

#ap-global-footer .apgf-logo:hover {
  transform: translateY(-4px);
  box-shadow:
    0 28px 54px rgba(69, 4, 8, 0.22),
    inset 0 1px 0 #ffffff;
}

#ap-global-footer .apgf-logo img {
  width: 100%;
  max-width: 275px;
  height: auto;
  display: block;
  object-fit: contain;
}

#ap-global-footer .apgf-brand p {
  max-width: 430px;
  margin: 0;

  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.75;
}

#ap-global-footer .apgf-eyebrow {
  margin: 0 0 18px;

  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#ap-global-footer .apgf-eyebrow::after {
  content: "";
  width: 42px;
  height: 2px;
  margin-top: 10px;
  display: block;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
}

#ap-global-footer .apgf-contact {
  padding: 0 46px;
  border-left: 1px solid var(--apgf-border);
  border-right: 1px solid var(--apgf-border);
}

#ap-global-footer .apgf-contact-card {
  min-height: 92px;
  padding: 17px 18px;
  margin-bottom: 14px;

  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;

  color: var(--apgf-white);
  text-decoration: none;

  border: 1px solid var(--apgf-border);
  border-radius: 9px;
  background: var(--apgf-panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 14px 34px rgba(89, 4, 8, 0.10);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

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

#ap-global-footer .apgf-contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.16);
}

#ap-global-footer .apgf-contact-icon {
  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.29);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

#ap-global-footer .apgf-contact-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#ap-global-footer .apgf-contact-copy {
  min-width: 0;
}

#ap-global-footer .apgf-contact-copy small {
  display: block;
  margin-bottom: 6px;

  color: rgba(255, 255, 255, 0.64);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

#ap-global-footer .apgf-contact-copy strong {
  display: block;

  color: var(--apgf-white);
  font-size: clamp(17px, 1.4vw, 23px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

#ap-global-footer .apgf-contact-arrow {
  font-size: 22px;
  transition: transform 0.3s ease;
}

#ap-global-footer .apgf-contact-card:hover .apgf-contact-arrow {
  transform: translateX(5px);
}

#ap-global-footer .apgf-nav-grid {
  display: grid;
  grid-template-columns: 1fr;
}

#ap-global-footer .apgf-nav-grid a {
  min-height: 43px;
  padding: 0 4px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;

  border-bottom: 1px solid rgba(255, 255, 255, 0.13);

  transition: color 0.25s ease, padding-left 0.25s ease;
}

#ap-global-footer .apgf-nav-grid a:hover {
  padding-left: 8px;
  color: #ffffff;
}

#ap-global-footer .apgf-nav-grid a span {
  color: rgba(255, 255, 255, 0.55);
  transition: transform 0.25s ease;
}

#ap-global-footer .apgf-nav-grid a:hover span {
  transform: translateX(5px);
}

#ap-global-footer .apgf-bottom {
  margin-top: 68px;
  padding: 23px 0 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  border-top: 1px solid var(--apgf-border);
}

#ap-global-footer .apgf-bottom p {
  margin: 0;

  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.5;
}

#ap-global-footer .apgf-bottom p:last-child {
  text-align: right;
}

@media (max-width: 1050px) {
  #ap-global-footer {
    padding-top: 72px;
  }

  #ap-global-footer .apgf-main {
    grid-template-columns: 1fr 1fr;
    gap: 45px;
  }

  #ap-global-footer .apgf-contact {
    padding-right: 0;
    border-right: 0;
  }

  #ap-global-footer .apgf-nav {
    grid-column: 1 / -1;
    padding-top: 34px;
    border-top: 1px solid var(--apgf-border);
  }

  #ap-global-footer .apgf-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
  }
}

@media (max-width: 720px) {
  #ap-global-footer {
    padding: 58px 18px 22px;
  }

  #ap-global-footer .apgf-grid-decoration {
    background-size: 34px 34px;
  }

  #ap-global-footer .apgf-main {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  #ap-global-footer .apgf-brand {
    padding-right: 0;
  }

  #ap-global-footer .apgf-logo {
    width: 100%;
    max-width: 340px;
    min-height: 104px;
  }

  #ap-global-footer .apgf-brand p {
    font-size: 15px;
  }

  #ap-global-footer .apgf-contact {
    padding: 34px 0 0;
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--apgf-border);
  }

  #ap-global-footer .apgf-contact-card {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 84px;
    padding: 14px;
  }

  #ap-global-footer .apgf-contact-icon {
    width: 46px;
    height: 46px;
  }

  #ap-global-footer .apgf-contact-copy strong {
    font-size: 17px;
  }

  #ap-global-footer .apgf-nav {
    grid-column: auto;
  }

  #ap-global-footer .apgf-nav-grid {
    grid-template-columns: 1fr;
  }

  #ap-global-footer .apgf-bottom {
    margin-top: 48px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  #ap-global-footer .apgf-bottom p:last-child {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ap-global-footer *,
  #ap-global-footer *::before,
  #ap-global-footer *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
