/*********************************************************************


                                FOOTER


**********************************************************************/

#footer h3.widget-title {
  font-size: 15px;
  font-size: 0.9375rem;
  text-transform: uppercase;
  color: #b31212;
  margin: 0 0 20px;
}
h3.especial {
  font-size: 28px;
  color: rgb(255, 255, 255);
  font-weight: bold;
  text-transform: uppercase;
}

#underfooter {
  background: #191919;
  padding: 15px 0;
  color: #ece3e3;
  font-size: 12px;
}
#underfooter a {
  color: #c61212;
}
#underfooter a:hover {
  color: #b71313;
}
#underfooter p {
  margin: 0;
}
.follow-me-icons {
  font-size: 30px;
}
.follow-me-icons i {
  float: left;
  margin: 0 10px 0 0;
}
/* Max page width
/////////////////////////////////////////////////////////////////////*/
@media (min-width: 1200px) {
  .container {
    max-width: 1080px;
  }
}


/* CSS PARA FOOTER CON ID #main-footer */
#main-footer {
  position: relative;
  overflow: hidden;
  width: 100%;
  opacity: 0.9;
  background-color: #111; /* Fondo de respaldo */
  min-height: 400px; /* Altura mínima para móviles */
}

#main-footer img.footer-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.7;
  z-index: 1;
}

#main-footer .footer-container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 20px 80px;
}

#main-footer .footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

#main-footer .footer-col {
  color: white;
}

#main-footer .footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(255,255,255,0.3);
}

#main-footer .footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#main-footer .footer-col li {
  margin-bottom: 12px;
}

#main-footer .footer-col a {
  color: #eee;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
}

#main-footer .footer-col a:hover {
  color: #4dabf7;
  transform: translateX(5px);
}

#main-footer .footer-credits {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  background: rgba(0,0,0,0.6);
  padding: 15px 0;
  color: white;
  font-size: 0.9rem;
  z-index: 3;
}

#main-footer .footer-credits a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}

#main-footer .footer-credits a:hover {
  text-decoration: underline;
}

/* ---------------------------- */
/* RESPONSIVE DESIGN */
/* ---------------------------- */

@media (max-width: 992px) {
  #main-footer .footer-columns {
    gap: 30px;
  }
  
  #main-footer .footer-container {
    padding: 50px 20px 80px;
  }
}

@media (max-width: 768px) {
  #main-footer {
    min-height: 600px; /* Ajuste para contenido apilado */
  }
  
  #main-footer .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
  
  #main-footer .footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  #main-footer {
    min-height: auto;
  }
  
  #main-footer .footer-columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  #main-footer .footer-container {
    padding: 40px 15px 100px;
  }
  
  #main-footer img.footer-bg {
    height: 70%;
    top: auto;
    bottom: 0;
  }
}

@media (max-width: 400px) {
  #main-footer .footer-container {
    padding: 30px 10px 90px;
  }
  
  #main-footer .footer-col h3 {
    font-size: 1.1rem;
  }
  
  #main-footer .footer-col li {
    margin-bottom: 10px;
  }
}