/* ==========================================================================
   Footer Styles - Más Vending (Corporate Color Palette)
   Tipografía Unificada: Montserrat (Títulos/Encabezados) + Inter (Textos/UI)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@500;600;700;800;900&display=swap');

:root {
  --font-heading: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

footer ul,
footer ol,
footer li,
.site-footer ul,
.site-footer ol,
.site-footer li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
}

.site-footer,
.site-footer * {
  font-family: var(--font-body);
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6,
.footer-title,
.legal-title,
.map-header-title,
.channel-label {
  font-family: var(--font-heading) !important;
}

.site-footer {
  background-color: #F8F9FA;
  color: #1A1A1A;
  border-top: 1px solid #e2e8f0;
  font-size: 0.9rem;
}

/* 1. SECCIÓN SUPERIOR: MARCA, AYUDA Y MAPA INTERACTIVO */
.footer-top-section {
  padding: 64px 0 48px 0;
  border-bottom: 1px solid #e2e8f0;
}

.footer-top-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}

.footer-logo-img {
  height: 56px;
  width: auto;
  margin-bottom: 18px;
  display: block;
}

.brand-description {
  color: #6C757D;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 360px;
}

/* Botón Cotizar */
.footer-cta-box {
  margin-top: 8px;
}

.btn-footer-cotizar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #E31E24;
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(227, 30, 36, 0.25);
  border: none;
}

.btn-footer-cotizar:hover {
  background-color: #c4151a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(227, 30, 36, 0.35);
  color: #FFFFFF;
}

/* Títulos Footer */
.footer-title {
  color: #1A1A1A;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.help-subtitle {
  font-size: 0.85rem;
  color: #6C757D;
  margin-bottom: 20px;
}

/* Canales de Contacto Directo */
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background-color: #FFFFFF;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(26, 26, 26, 0.03);
}

.channel-item:hover {
  border-color: #E31E24;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(227, 30, 36, 0.08);
}

.channel-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: #fff1f1;
  color: #E31E24;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon.wa-bg {
  background-color: rgba(40, 167, 69, 0.12);
  color: #28A745;
}

.channel-info {
  display: flex;
  flex-direction: column;
}

.channel-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6C757D;
}

.channel-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1A1A1A;
}

/* Mapa Interactivo */
.map-card {
  background-color: #FFFFFF;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(26, 26, 26, 0.05);
  transition: border-color 0.2s ease;
}

.map-card:hover {
  border-color: #cbd5e1;
}

.map-card-header {
  padding: 14px 18px;
  background-color: #FFFFFF;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.map-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #1A1A1A;
}

.map-header-title svg {
  color: #E31E24;
}

.btn-directions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #fff1f1;
  color: #E31E24;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(227, 30, 36, 0.2);
}

.btn-directions:hover {
  background-color: #E31E24;
  color: #FFFFFF;
  border-color: #E31E24;
}

.map-iframe-wrapper {
  width: 100%;
  line-height: 0;
  background-color: #e2e8f0;
}

.map-iframe-wrapper iframe {
  display: block;
  width: 100%;
  height: 140px;
}

.map-address-footer {
  padding: 10px 18px;
  background-color: #F8F9FA;
  border-top: 1px solid #f1f5f9;
  font-size: 0.8rem;
  color: #6C757D;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-address-footer svg {
  color: #6C757D;
  flex-shrink: 0;
}

/* 2. SECCIÓN INTERMEDIA: INFORMACIÓN LEGAL COMPACTA */
.footer-legal-section {
  padding: 24px 0;
  background-color: #F8F9FA;
  border-bottom: 1px solid #e2e8f0;
}

.footer-legal-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.legal-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1A1A1A;
  margin-bottom: 10px;
}

.legal-links-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
}

.legal-links-wrap a {
  color: #6C757D;
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.legal-links-wrap a:hover {
  color: #E31E24;
  text-decoration: underline;
}

.legal-dot {
  color: #cbd5e1;
  font-size: 0.8rem;
}

/* 3. FRANJA INFERIOR: COPYRIGHT & REDES SOCIALES */
.footer-bottom {
  padding: 20px 0;
  background-color: #FFFFFF;
}

.footer-bottom-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.copyright-text {
  font-size: 0.8rem;
  color: #6C757D;
  font-weight: 600;
}

.footer-bottom-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #F8F9FA;
  border: 1px solid #e2e8f0;
  color: #1A1A1A;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-links a:hover {
  background-color: #E31E24;
  color: #FFFFFF;
  border-color: #E31E24;
  transform: translateY(-2px);
}

/* Botón "Volver arriba" en el Footer Bottom */
.btn-footer-back-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #FFFFFF;
  color: #1A1A1A;
  border: 1px solid #e2e8f0;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(26, 26, 26, 0.04);
  font-family: inherit;
  outline: none;
}

.btn-footer-back-top:hover {
  border-color: #E31E24;
  color: #E31E24;
  background-color: #fff1f1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(227, 30, 36, 0.15);
}

.btn-footer-back-top svg {
  transition: transform 0.25s ease;
}

.btn-footer-back-top:hover svg {
  transform: translateY(-2px);
}

/* Botón Flotante Volver Arriba */
.back-to-top-float {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #FFFFFF;
  color: #1A1A1A;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(26, 26, 26, 0.12);
  z-index: 998;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.back-to-top-float.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-float:hover {
  background-color: #E31E24;
  color: #FFFFFF;
  border-color: #E31E24;
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(227, 30, 36, 0.3);
}

.back-to-top-tooltip {
  position: absolute;
  right: 60px;
  background-color: #1A1A1A;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  box-shadow: 0 10px 20px rgba(26, 26, 26, 0.15);
}

.back-to-top-float:hover .back-to-top-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Botón Flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background-color: #28A745;
  color: #FFFFFF;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -5px rgba(40, 167, 69, 0.4), 0 4px 10px rgba(26, 26, 26, 0.15);
  z-index: 999;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  animation: pulse-wa 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-4px);
  background-color: #218838;
  box-shadow: 0 14px 30px -4px rgba(40, 167, 69, 0.5);
}

.whatsapp-tooltip {
  position: absolute;
  right: 68px;
  background-color: #1A1A1A;
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  box-shadow: 0 10px 20px rgba(26, 26, 26, 0.15);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

@keyframes pulse-wa {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.5);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(40, 167, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
  }
}

/* RESPONSIVE LAYOUT */
@media (max-width: 992px) {
  .footer-top-container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .map-col {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .footer-top-section {
    padding: 48px 0 32px 0;
  }

  .footer-top-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .map-col {
    grid-column: span 1;
  }

  .footer-bottom-container {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .legal-dot {
    display: none;
  }

  .legal-links-wrap {
    flex-direction: column;
    gap: 10px;
  }
}
