/*======================= FOOOTER ================================*/



:root {
  --mobile-breakpoint: 768px;
  --footer-bg: #042057;
  --footer-text: #ffffff;
  --footer-text-muted: rgba(255, 255, 255, 0.7);
  --footer-accent: #4FA4F6;
  --footer-accent-dark: #1a7bb9;
  --footer-border: rgba(255, 255, 255, 0.1);
  --footer-link-hover: #ffffff;
  --footer-gold: #FFC107;
  --footer-gold-dark: #e6ae08;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

/* --- FOOTER PRINCIPAL --- */
.mi-footer {
   background: var(--footer-bg) url('/assets/images/footer/mundi.webp') no-repeat  center;
  color: var(--footer-text);
  padding: 40px 20px 20px 20px;
  position: relative;
  overflow: hidden;
}

.mi-footer-contenedor {
  max-width: 1200px;
  margin: 0 auto 30px auto;
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1.6fr;
  gap: 30px;
  align-items: start;
}

/* --- BLOQUE DE IMAGEN/LOGO --- */
.mi-footer-imagen {
  position: relative;
  margin-bottom: 20px;
  display: none;
}

.mi-footer-imagen img {
  display: none;
}

.overlay-texto {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 10px;
}

.overlay-texto img {
  display: block !important;
  max-width: 150px;
  margin-bottom: 8px;
}

.slogan-footer {
  font-size: 14px;
  font-weight: 600;
  color: #f0f0f0;
}

/* --- COLUMNAS GENERALES --- */
.mi-footer-columna,
.mi-footer-niubiz {
  padding: 0;
  min-width: 0;
}

.mi-footer-columna h3,
.mi-footer-niubiz h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--footer-border);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--footer-text);
}

/* --- ENLACES DE INTERÉS --- */
.mi-footer-enlaces {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mi-footer-enlaces li {
  margin: 0 0 12px 0;
}

.mi-footer-enlaces li a {
  color: var(--footer-text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

.mi-footer-enlaces li a i {
  width: 16px;
  text-align: center;
  color: var(--footer-accent);
}

.mi-footer-enlaces li a:hover {
  color: var(--footer-link-hover);
}

/* --- COLUMNA DE CONTACTO Y HORARIO --- */
.mi-footer-columna p {
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--footer-text-muted);
  font-size: 0.95rem;
}

.mi-footer-columna p i {
  width: 16px;
  text-align: center;
  color: var(--footer-accent);
}

.mi-footer-columna a {
  color: var(--footer-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mi-footer-columna a:hover {
  color: var(--footer-link-hover);
}

/* --- ICONOS DE REDES SOCIALES --- */
.mi-footer-iconos {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.mi-footer-iconos a {
  font-size: 1.2rem;
  color: var(--footer-text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  padding: 0;
}

.mi-footer-iconos a:hover {
  color: var(--footer-accent);
  transform: translateY(-2px);
}

/* --- SECCIÓN "FORMAS DE PAGO" --- */
.mi-footer-niubiz {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 24px 20px;
  margin: 10px 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.mi-footer-niubiz:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.mi-footer-niubiz h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 18px;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
}

/* --- LOGOS DE PAGO - ESCRITORIO --- */
.payment-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 20px 0;
  width: 100%;
}

.payment-logos img {
  width: 100%;
  height: auto;
  background-color: #ffffff;
  padding: 6px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  aspect-ratio: 16/10;
  object-fit: contain;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.payment-logos img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(4, 32, 87, 0.1);
}

/* --- BOTÓN DE PAGO --- */
.footer-button {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.footer-button a {
  background: linear-gradient(135deg, #FFC107 0%, #FF9800 100%);
  color: #042057 !important;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.25);
  border: none;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  text-align: center;
}

.footer-button a:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(255, 193, 7, 0.35);
  background: linear-gradient(135deg, #FFB300 0%, #F57C00 100%);
  color: #021538 !important;
}

/* --- PIE DE PÁGINA INFERIOR --- */
.mi-footer-final {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--footer-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  color: var(--footer-text-muted);
  font-size: 0.9rem;
}

.footer-text {
  margin: 0;
  color: var(--footer-text-muted);
  white-space: nowrap;
}

.mi-footer-legal {
  margin: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mi-footer-legal a {
  color: var(--footer-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
  font-size: 0.85rem;
}

.mi-footer-legal a:hover {
  color: var(--footer-accent);
  text-decoration: underline;
}

.mi-footer-linea {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 90%;
  margin: 0 auto 10px auto;
}

/* --- WHATSAPP FLOTANTE --- */
.whatsapp-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  padding: 12px;
  border-radius: 50%;
  font-size: 22px;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
  transition: background 0.3s;
}

.whatsapp-fixed:hover {
  background-color: #128C7E;
}

/* --- RESPONSIVE --- */
@media screen and (max-width: 900px) {
  .mi-footer-contenedor {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media screen and (max-width: 768px) {
  .mi-footer {
    padding: 30px 15px 15px 15px;
  }

  .mi-footer-contenedor {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mi-footer-imagen {
    display: block;
    width: 100%;
    background-color: var(--footer-bg);
    min-height: 120px;
    border-radius: 8px;
    margin-bottom: 10px;
    position: relative; /* Asegurar posición para el overlay */
  }

    /* La imagen de la fachada DEBE mostrarse en móvil */
  .mi-footer-imagen img {
    display: block !important; /* Forzar que se muestre */
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    filter: brightness(0.6);
    border-radius: 8px;
  }
   .overlay-texto img {
    display: block !important;
    max-width: 180px;
    filter: brightness(1); /* El logo sin oscurecer */
  }

  .mi-footer-columna,
  .mi-footer-niubiz {
    text-align: center;
    width: 100%;
    padding: 0;
  }

  .mi-footer-columna h3,
  .mi-footer-niubiz h3 {
    text-align: center;
  }

  .mi-footer-enlaces li a,
  .mi-footer-columna p {
    justify-content: center;
  }

  .mi-footer-iconos {
    justify-content: center;
  }

  /* --- SECCIÓN DE PAGOS EN MÓVIL - IMÁGENES AL 50% --- */
  .mi-footer-niubiz {
    padding: 20px 15px;
    margin: 8px 0 25px 0;
    width: 100%;
    box-sizing: border-box;
  }
  
  .mi-footer-niubiz h3 {
    font-size: 1.2rem;
    color: #000000;
    margin-bottom: 15px;
    padding-bottom: 8px;
  }
  
  .payment-logos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 10px 0;
    width: 100%;
  }
  
  .payment-logos img {
    width: 50%;
    padding: 2px;
    aspect-ratio: 16/10;
    box-sizing: border-box;
    margin: 0 auto;
  }
  
  .footer-button {
    margin: 10px 0 5px 0;
    width: 100%;
  }
  
  .footer-button a {
    padding: 10px 15px;
    font-size: 0.9rem;
    max-width: 250px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .mi-footer-final {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    margin-top: 20px;
  }
  
  .footer-text {
    white-space: normal;
  }
  
  .mi-footer-legal {
    justify-content: center;
    gap: 8px;
  }
  
  .mi-footer-legal a {
    white-space: normal;
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 480px) {
  .payment-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    max-width: 250px;
    margin: 10px auto;
  }
  
  .payment-logos img {
    width: 50%;
    padding: 2px;
    aspect-ratio: 16/10;
    box-sizing: border-box;
    margin: 0 auto;
  }
  
  .mi-footer-niubiz h3 {
    font-size: 1.1rem;
    color: #000000;
  }
  
  .footer-button a {
    max-width: 220px;
    padding: 8px 12px;
    font-size: 0.85rem;
  }
  
  .overlay-texto img {
    max-width: 150px;
  }
  
  .mi-footer-legal {
    flex-direction: column;
    gap: 5px;
  }
  
  .mi-footer-legal a {
    font-size: 0.75rem;
  }
}