:root { --red: #e52a32; }
/* Footer */

footer {
  background-color: var(--red);
  background-blend-mode: multiply;
  background-image: url("https://f3constructionny.com/media/jpg/fondo.jpg");
}

footer .footer-container {
  display: grid;
  padding: 8% 5% 5% 8%;
  grid-template-columns: 1fr 1fr 1fr 2fr;
  grid-template-rows: 1fr 10%;
  row-gap: 0px;
}

.footer-container .contact-ctn {
  display: flex;
  gap: 30px;
  flex-direction: column;
}

.footer-container .contact-ctn h3 {
  color: white;
  font-size: 45px;
  font-weight: 700;
  line-height: 1;
}

.footer-container .contact-ctn ul {
  margin-left: 5%;
}

.footer-container .contact-ctn ul li {
  color: white;
  font-weight: 500;
  margin-bottom: 15px;
}

.footer-container .contact-ctn ul li a:hover {
  color: black;
}

.footer-container .contact-ctn .social-icon {
  display: flex;
  gap: 10px;
}

.footer-container .contact-ctn .social-icon a {
  width: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  height: 30px;
  background: white;
}

.footer-container .contact-ctn .social-icon a:hover {
  background: black;
  font-weight: 500;
}

.footer-container .contact-ctn .social-icon a:hover i {
  color: white;
}

.footer-container .contact-ctn .social-icon i {
  color: var(--red);
  font-size: 20px;
}

.footer-container .opening-hours {
  display: flex;
  justify-self: center;
  flex-direction: column;
  gap: 30px;
}

.footer-container .opening-hours h3 {
  font-size: 40px;
  color: white;
  font-weight: 700;
  line-height: 1;
}

.footer-container .opening-hours ul {
  list-style: none;
}

.footer-container .opening-hours ul li p {
  color: white;
}

.footer-container .footer-menu {
  justify-self: center;
}

.footer-container .footer-menu ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  gap: 15px;
  color: white;
}

.footer-container .footer-menu ul li a {
  font-size: 20px;
}

.footer-container .footer-menu ul li a:hover {
  color: black;
  font-weight: 500;
}

#backToTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;    
  height: 50px;
  background-color: #000;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  z-index: 999;
  align-items: center;
  justify-content: center;
  line-height: 1;
}


#backToTop:hover {
  background-color: #333;
}

#call-Button {
  display: flex;
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 50px;    
  height: 50px;
  background-color: #000;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  z-index: 999;
  align-items: center;
  justify-content: center;
}

#call-Button:hover {
  background-color: #333;
}



.privacy-ctn {
  display: flex;
  flex-direction: column;
  padding: 0% 0% 5% 8%;
}



.privacy-ctn a {
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.privacy-ctn a:hover {
  color: black;
  font-weight: 600;
}

.separador-servicios {
  display: flex;
  gap: 8%;
  padding-top: 15px;
}

footer .created-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background: black;
}

footer .created-box p {
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-weight: 600;
}

footer .created-box a {
  color: white;
  font-weight: 600;
}

footer .created-box a:hover {
  color: var(--red);
  font-weight: 600;
}






.footer-container h3, 
.footer-container h3 a {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-transform: capitalize !important; /* Solo primera letra en Mayúscula */
    text-decoration: none !important;
    margin-top: 0 !important; /* Elimina desniveles */
    margin-bottom: 25px !important;
    display: block;
}


.logos-row a {
  display: inline-flex;   /* no ocupa todo el ancho */
  align-items: center;
  justify-content: center;
  width: auto;            /* evita que se estire */
}

  /* Logo 3 abajo centrado */
  .logo-3 {
  width: 140px;
  height: auto;
  display: block;
}



.logo-3-color {
  width: auto;
  height: auto;
  max-width: 100%;
  display: block;
}

.logos-row img {
  width: auto;
}



  /* Logo 1 y 2 arriba */
  .logo-1,
  .logo-2 {
    width: 270px;
    max-width: 270px;
    
  }





/* =========================================
   RESPONSIVE (MÓVILES Y TABLETS PEQUEÑAS)
   ========================================= */
@media (max-width: 921px) {
    
    /* 1. Apilar las columnas principales una debajo de otra */
    .footer-main-columns {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px; /* Espacio entre Contact, Opening Hours, Home y Services */
    }

    /* 2. Forzar a que cada bloque ocupe todo el ancho en el celular */
    .contact-ctn,
    .opening-hours,
    .footer-menu {
        width: 100% !important;
        min-width: 100% !important;
        padding-right: 0 !important;
        text-align: center; /* Asegura que el texto esté centrado */
    }

    /* 3. Centrar los iconos de redes sociales y los logotipos */
    .social-icon {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .logos-row {
        justify-content: center;
        margin-top: 10px !important;
    }

    /* 4. Apilar las dos listas de Servicios (Mansory y Kitchen) */
    .separador-servicios {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    /* 5. Quitar el margen superior de la segunda lista de servicios en móvil */
    .segunda-col-servicios {
        margin-top: 0 !important;
    }

    /* 6. Centrar los enlaces legales del fondo (Privacy Policy, etc.) */
    .privacy-ctn {
        margin-top: 30px;
        padding-top: 20px;
    }

    .privacy-links {
        justify-content: center;
        flex-direction: column; /* Apila los links si la pantalla es muy angosta */
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 996px) {
  footer .footer-container {
    grid-template-columns: 100%;
    justify-items: center;
    gap: 30px;
    align-items: center;
  }

  
  .privacy-ctn {
    align-items: anchor-center; }
   

  
  .logo-2,
  .logo-3 {
    width: 180px;
  }


  /* Logo 1 y 2 arriba */
  .logo-1,
  .logo-2 {
    width: 270px;
    max-width: 270px;
    
  }

  /* Logo 3 abajo centrado */
  .logo-3 {
  width: 211px;
  height: auto;
  display: block;
}

  



  .footer-container .contact-ctn ul {
    text-align: center;
    list-style: none;
  }

  .footer-container .social-icon {
    justify-content: center;
    align-items: center;
  }

  .footer-container .opening-hours {
    height: 100%;
    justify-content: center;
  }

  .footer-container .opening-hours ul {
    text-align: center;
  }

  .footer-container .footer-menu ul {
    text-align: center;
  }

  .footer-container .request-ctn .form-ctn {
    grid-template-columns: 100%;
    grid-template-rows: auto;
  }

  .footer-container .request-ctn {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: inherit;
    gap: 30px;
  }

  .footer-container .request-ctn .form-ctn #message {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-container .privacy-ctn {
    display: flex;
    text-align: center;
    flex-direction: column;
  }

  footer .created-box p {
    color: white;
    flex-direction: column;
    font-weight: 600;
    text-align: center;
  }

  footer .created-box p span {
    display: none;
  }
}
