/* === FOOTER PERSONALIZADO === */
.phi-footer {
  background-color: #111;
  color: #fff;
  padding: 0rem 1rem 4rem 2rem;
  font-family: 'Inter', sans-serif;
}

.phi-footer-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-box {
  border: 1px solid #fff;
  padding: 1.1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background-color: #1c1c1c;
  border-radius: 8px;
  font-size: 0.95rem;
}

.footer-box p{
  padding-top: 0px !important;
  margin-top: 0px !important;
 color: fff;
}

.footer-icon {
  color: #f7b500;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.phi-footer-franja img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.phi-footer-bottom {
  text-align: center;
  margin-top: 4rem;
  font-size: 0.85rem;
  color: #ccc;
  border-top: 1px solid #333;
  padding-top: 1rem;
}

/* Si no existe, añadir para que la imagen de fondo cubra el área correctamente */
.phi-footer-cover .wp-block-cover__image-background {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 0;
}

/* Para que el contenido esté encima del fondo */
.phi-footer-cover > .wp-block-group,
.phi-footer-cover > .phi-footer-info {
  position: relative;
  z-index: 1;
}

footer .wp-block-cover{
  min-height: 265px !important;
}

/* Asegurar responsividad del grid en .phi-footer-info */
.phi-footer-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  z-index: 1;
}

/* Espaciado opcional extra para el bloque de franja decorativa */
.phi-footer-franja {
  margin-top: 2rem;
}

@media (max-width: 767px) {
  .phi-footer-cover .wp-block-cover__background {
    display: none !important;
  }

  .phi-footer-cover {
    background-image: none !important;
  }

   footer .phi-footer {
    background-image: none !important;
  }

  .phi-footer-bottom{
    margin-top: 0rem !important;
  }
}
