/* ==========================================================================
   ALEGRÍAS TOURS - FOOTER OFICIAL UNIFICADO
   Diseño institucional, alta legibilidad, robusto ante resets y Tailwind.
   Totalmente consistente en todas las páginas y responsive con safe-area.
   ========================================================================== */

.site-footer {
  --color-deep-navy: #0B192C;
  --color-brand-yellow: #FFC700;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-text-muted: #94A3B8;
  --radius-sm: 8px;
  --transition-fast: 0.2s ease;
  background-color: #0B192C !important;
  color: #FFFFFF !important;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  padding-top: 80px;
  padding-bottom: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 20;
  box-sizing: border-box;
}

/* Blindaje contra CSS Resets y Tailwind Preflight */
.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.site-footer .container {
  width: 100%;
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: start;
}

/* Footer Brand Column */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  height: 52px;
  width: auto;
  max-width: 165px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.footer-brand-desc {
  font-family: inherit;
  font-size: 0.9375rem !important;
  line-height: 1.6 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  max-width: 320px;
  margin: 0 !important;
}

.footer-brand-desc .brand-script {
  font-family: inherit;
  font-size: 1.35rem;
  color: #FFC700;
  vertical-align: baseline;
}

.footer-social-list {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.footer-social-btn:hover {
  background-color: #FFC700;
  color: #0B192C !important;
  border-color: #FFC700;
  transform: translateY(-2px);
}

.footer-social-btn svg {
  width: 18px;
  height: 18px;
}

/* Footer Navigation Columns */
.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col h4 {
  font-family: inherit !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  margin: 0 0 20px 0 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
  text-transform: none !important;
}

.footer-links-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-links-list li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-link {
  font-family: inherit !important;
  font-size: 0.885rem !important;
  color: rgba(255, 255, 255, 0.68) !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
  line-height: 1.4 !important;
}

.footer-link:hover {
  color: #FFC700 !important;
  transform: translateX(3px);
}

.footer-link.active {
  color: #FFC700 !important;
  font-weight: 600 !important;
}

/* Footer Contact Info */
.footer-contact-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
  font-size: 0.885rem !important;
  line-height: 1.5 !important;
  color: rgba(255, 255, 255, 0.72) !important;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: #FFC700;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item strong {
  color: #FFFFFF;
  font-weight: 700;
}

/* Footer Bottom Strip & Legal Compliance */
.footer-bottom {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  padding-top: 32px !important;
  font-size: 0.8125rem !important;
  color: #94A3B8 !important;
}

.footer-legal-notice {
  width: 100% !important;
  text-align: center !important;
  font-size: 0.8125rem !important;
  line-height: 1.6 !important;
  color: #94A3B8 !important;
  padding: 18px 24px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  box-sizing: border-box !important;
}

.footer-legal-notice p {
  margin: 0 !important;
  color: #94A3B8 !important;
  font-size: 0.8125rem !important;
  font-family: inherit !important;
}

.footer-legal-notice p:not(:last-child) {
  margin-bottom: 6px !important;
}

.footer-legal-notice strong {
  color: #FFFFFF !important;
  font-weight: 600 !important;
}

.footer-legal-notice .escnna-text {
  font-size: 0.765rem !important;
  color: rgba(148, 163, 184, 0.88) !important;
  line-height: 1.55 !important;
}

.footer-bottom-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.footer-copyright {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.825rem !important;
  line-height: 1.5 !important;
  font-family: inherit !important;
}

.footer-legal-links {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
}

.footer-legal-links a,
.footer-legal-links button {
  color: #94A3B8 !important;
  font-family: inherit !important;
  font-size: 0.825rem !important;
  text-decoration: none !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer !important;
  transition: color 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  outline: none !important;
}

.footer-legal-links a:hover,
.footer-legal-links button:hover {
  color: #FFC700 !important;
  text-decoration: underline !important;
}

/* ==========================================================================
   Responsive Breakpoints Horizontales y Balanceados
   ========================================================================== */
@media (max-width: 1199px) {
  .footer-top-grid {
    grid-template-columns: 1.25fr 1fr 1fr 1fr 1.15fr;
    gap: 24px;
  }
}

@media (max-width: 991px) {
  .footer-top-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .footer-brand-col {
    grid-column: span 3;
    max-width: 100%;
  }

  .footer-bottom-row {
    justify-content: center !important;
    text-align: center !important;
  }

  .footer-legal-links {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding-top: 50px;
    padding-bottom: calc(112px + env(safe-area-inset-bottom, 24px)) !important;
  }

  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .footer-brand-col {
    grid-column: span 2;
  }

  .footer-legal-notice {
    padding: 14px 16px !important;
    text-align: center !important;
  }
}

@media (max-width: 576px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand-col {
    grid-column: span 1;
    text-align: center;
    align-items: center;
  }

  .footer-social-list {
    justify-content: center;
  }

  .footer-brand-desc {
    text-align: center;
    max-width: 100%;
  }

  .footer-bottom {
    gap: 16px !important;
  }

  .footer-bottom-row {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .footer-legal-links {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 12px !important;
  }
}
