/* ==========================================================================
   GLOBAL FOOTER (footer_global)
   FINAL STANDARD · FOOTER v2.0 · SYMMETRIC INSTITUTIONAL SPECIFICATION
   ========================================================================== */

.footer-global {
  position: relative;
  width: 100%;
  background-color: var(--color-deep-forest);
  color: var(--color-pure-white);
  overflow: hidden;
  padding: 5rem 0 2.25rem;
  border-top: 1px solid rgba(182, 138, 74, 0.35);
}

/* Layer 1: Background artwork (Globe & subtle gold waves) */
.footer-background-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/images/footer-globe-waves-clean.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0.95;
  pointer-events: none;
  z-index: 1;
}

.footer-background-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% 50%, rgba(3, 29, 24, 0.1) 0%, rgba(3, 29, 24, 0.65) 60%, rgba(2, 20, 16, 0.94) 100%);
  pointer-events: none;
}

/* Layer 3: Content Container (Perfect Symmetry) */
.footer-container {
  position: relative;
  z-index: 3;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--gutter-desktop);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Layer 2: Official Gold PGC Monogram */
.footer-brand {
  margin: 0 auto 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-brand-monogram {
  width: 210px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.footer-brand-monogram:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 6px 24px rgba(182, 138, 74, 0.4));
}

/* Navigation Links Row (Centered, Symmetrical Gaps) */
.footer-navigation {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.25rem;
  margin: 0 auto 2rem;
}

.footer-nav-link {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(248, 246, 240, 0.85);
  transition: color 0.25s ease, transform 0.25s ease;
  padding: 0.35rem 0;
  position: relative;
}

.footer-nav-link:hover {
  color: var(--color-champagne-gold);
  transform: translateY(-1px);
}

.footer-nav-link.active {
  color: var(--color-pure-white);
}

.footer-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-antique-gold);
  box-shadow: 0 0 6px rgba(182, 138, 74, 0.6);
}

/* Symmetrical Gold Divider */
.footer-divider {
  width: 100%;
  max-width: 1200px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(182, 138, 74, 0.35) 20%, rgba(182, 138, 74, 0.65) 50%, rgba(182, 138, 74, 0.35) 80%, transparent 100%);
  margin: 1rem auto 2.5rem;
}

/* Institutional Statement */
.footer-institutional {
  max-width: 880px;
  margin: 0 auto 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 2.75vw, 2.35rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-pure-white);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.footer-heading .accent-words {
  color: var(--color-champagne-gold);
  font-style: normal;
}

.footer-description {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.75;
  color: rgba(248, 246, 240, 0.82);
  max-width: 820px;
  margin: 0 auto 2rem;
}

/* Action Buttons (Balanced Heights & Padding) */
.footer-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.footer-btn-cta,
.footer-btn-secondary {
  min-width: 240px;
  min-height: 50px;
  padding: 0.95rem 2.25rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  transition: var(--transition-smooth);
}

.footer-btn-cta {
  background: var(--gradient-gold);
  color: #17201E;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.footer-btn-cta:hover {
  background: var(--gradient-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(182, 138, 74, 0.4);
}

.footer-btn-secondary {
  background: rgba(3, 29, 24, 0.65);
  border: 1px solid var(--color-antique-gold);
  color: var(--color-champagne-gold);
}

.footer-btn-secondary:hover {
  background: rgba(182, 138, 74, 0.2);
  border-color: var(--color-champagne-gold);
  color: var(--color-bright-gold);
  transform: translateY(-2px);
}

/* Bottom Utility Bar (3 aligned symmetrical groups) */
.footer-utility {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(182, 138, 74, 0.2);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(248, 246, 240, 0.65);
}

/* Group 1: Language */
.footer-lang-selector {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.footer-lang-selector .lang-btn {
  color: rgba(248, 246, 240, 0.6);
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0.15rem 0.35rem;
}

.footer-lang-selector .lang-btn:hover {
  color: var(--color-champagne-gold);
}

.footer-lang-selector .lang-btn.active {
  color: var(--color-bright-gold);
  font-weight: 700;
}

.footer-lang-selector .divider {
  color: rgba(182, 138, 74, 0.4);
}

/* Group 2: Copyright (Centered) */
.footer-copyright {
  justify-self: center;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.68rem;
  color: rgba(248, 246, 240, 0.55);
}

/* Group 3: Social & Legal */
.footer-legal-social {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-social-icon {
  width: 26px;
  height: 26px;
  border: 1px solid var(--color-border-gold);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-champagne-gold);
  transition: var(--transition-fast);
}

.footer-social-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-social-icon:hover {
  background: var(--color-antique-gold);
  color: #17201E;
  border-color: var(--color-antique-gold);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.68rem;
}

.footer-legal-links a:hover {
  color: var(--color-champagne-gold);
}

.footer-legal-links .divider {
  color: rgba(182, 138, 74, 0.35);
}

/* Responsive */
@media (max-width: 1200px) {
  .footer-brand-monogram {
    width: 190px;
  }
  .footer-navigation {
    gap: 1.5rem;
  }
}

@media (max-width: 991px) {
  .footer-global {
    padding: 4rem 0 2rem;
  }
  .footer-container {
    padding: 0 var(--gutter-tablet);
  }
  .footer-navigation {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 1rem 1.75rem;
  }
  .footer-utility {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.25rem;
    text-align: center;
  }
  .footer-lang-selector,
  .footer-copyright,
  .footer-legal-social {
    justify-self: center;
  }
}

@media (max-width: 767px) {
  .footer-global {
    padding: 3.5rem 0 2rem;
  }
  .footer-container {
    padding: 0 var(--gutter-mobile);
  }
  .footer-background-layer {
    background-position: 85% center;
    opacity: 0.35;
  }
  .footer-brand {
    margin-bottom: 2rem;
  }
  .footer-brand-monogram {
    width: 150px;
  }
  .footer-navigation {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem 1rem;
    margin-bottom: 1.75rem;
  }
  .footer-nav-link {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    padding: 0.25rem 0;
  }
  .footer-divider {
    margin: 0.75rem auto 2rem;
  }
  .footer-institutional {
    margin-bottom: 2.25rem;
  }
  .footer-heading {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }
  .footer-description {
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
  }
  .footer-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
  }
  .footer-btn-cta,
  .footer-btn-secondary {
    width: 100%;
    min-width: unset;
    padding: 0.85rem 1.5rem;
    font-size: 0.78rem;
  }
  .footer-utility {
    padding-top: 1.75rem;
    gap: 1rem;
  }
  .footer-legal-social {
    flex-direction: column;
    gap: 0.85rem;
  }
}

@media (max-width: 480px) {
  .footer-container {
    padding: 0 14px;
  }
  .footer-heading {
    font-size: 1.5rem;
  }
  .footer-navigation {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem 0.5rem;
  }
}

/* ==========================================================================
   APPROVED HOME FOOTER VARIANT (Direct match to reference mockup)
   ========================================================================== */
.footer-triple-top {
  display: grid;
  grid-template-columns: 1.2fr auto 1fr;
  align-items: center;
  width: 100%;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(182, 138, 74, 0.25);
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.footer-top-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-top-left .footer-brand-logo {
  height: 48px;
  width: auto;
  aspect-ratio: 898 / 576;
  object-fit: contain;
}

.footer-top-left .footer-brand-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.footer-top-left .footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--color-pure-white);
  line-height: 1.1;
}

.footer-top-left .footer-brand-subtitle {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--color-champagne-gold);
  margin-top: 3px;
}

.footer-top-center {
  padding: 0 2.5rem;
  border-left: 1px solid rgba(182, 138, 74, 0.35);
  border-right: 1px solid rgba(182, 138, 74, 0.35);
  text-align: center;
}

.footer-top-center .motto-line {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-champagne-gold);
  line-height: 1.55;
  white-space: nowrap;
}

.footer-top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.footer-invitation-tag {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-champagne-gold);
}

.btn-footer-contacto {
  border: 1px solid var(--color-border-gold);
  padding: 0.6rem 1.65rem;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-champagne-gold);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-footer-contacto:hover {
  background: rgba(182, 138, 74, 0.2);
  border-color: var(--color-champagne-gold);
  color: var(--color-bright-gold);
  transform: translateY(-2px);
}

.footer-nav-social-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav-social-row .footer-navigation {
  width: auto;
  margin: 0;
  gap: 1.5rem;
}

.footer-nav-social-row .footer-legal-social {
  justify-self: auto;
  gap: 1.25rem;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(182, 138, 74, 0.2);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(248, 246, 240, 0.6);
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 991px) {
  .footer-triple-top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 1.75rem;
  }
  .footer-top-left {
    justify-content: center;
  }
  .footer-top-center {
    border-left: none;
    border-right: none;
    padding: 0;
  }
  .footer-top-right {
    align-items: center;
  }
  .footer-nav-social-row {
    flex-direction: column;
    align-items: center;
  }
  .footer-bottom-row {
    flex-direction: column;
    text-align: center;
  }
}


