#custom-footer {
  background-color: #fff;
  color: #000;
  padding: 0;
  width:100%;
}
.footer-anuncio {
  background-color: #f4f4f4;
  border-bottom: 1px solid #ccc;
  margin-top: 4em;
}
.footer-anuncio .footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  gap:5em;
}
.footer-container {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.footer-sustentabilidad h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    max-width: 350px;
    color: #333;
    font-weight: 800;
}
.footer-insignias {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
    margin-top: 2em;
}
.footer-insignias img {
  width: 48px;
  height: auto;
  margin: 0.25rem;
}
.footer-banner img {
    height: 130px;
    margin-top: -2em;
    width: auto;
}
.footer-principal {
  background-color: #3e3e3e;
  border-bottom: 1px solid #ccc;
}
.footer-principal .footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  padding: 4rem 2rem;
}
.footer-column {
  flex: 1 1 200px;
}
.footer-column h3 {
    font-size: 1.2em;
    margin-bottom: 1rem;
    cursor: pointer;
    font-weight: 400!important;
    margin-bottom: 20px;
    color: #f4f4f4;
}
.footer-cierre {
  background-color: #f1f1f1;
}

.footer-cierre .footer-container {
  padding: 1rem 2rem;
}



.footer-bottom img {
  width: 20px;
  margin-left: 0.5rem;
  vertical-align: middle;
}



@media (max-width: 1050px) {
.footer-anuncio .footer-container {
    justify-content: center;
    }
    
    .footer-sustentabilidad h2 {
    text-align:center;
    margin-left: auto;
    margin-right: auto;
        
    }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 auto;
  width: 100%;
  padding: 0;
}


.footer-bottom p:last-child {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px;
  justify-content: center;
}

.footer-links ul, .footer-links p {
    margin: 0.25rem 0;
    font-weight: 200;
    color: white;
    font-size: 1.1rem;
}

.footer-column.footer-empresa .footer-links p {
  font-size:1.1rem;
  line-height: 1.1;
  
}


/*bloque modal contacto */
/* Botón flotante */
#ppf-contacto-flotante {
    position: fixed;
    bottom: 30px;
    left: 0px;
    z-index: 10000;
    background: none;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    margin: 0;
    height: auto;
}

#ppf-contacto-flotante img {
    width: 240px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
    transition: transform 0.2s ease, filter 0.2s ease;
}

#ppf-contacto-flotante img:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.32));
}

/* Modal compacto */
#ppf-modal-contacto {
  position: fixed;
  bottom: 100px;
  left: 20px;
  z-index: 9999;
  background: #e1e1e1;
  border: 1px solid #ccc;
  border-radius: 1rem;
  width: 360px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  padding: 1rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
#ppf-modal-contacto.activo {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 10000;
}

/* Contenido del modal */
.ppf-modal-contenido {
  position: relative;
  background: none;
  padding: 0;
}
.ppf-modal-layout {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ppf-modal-mensaje {
  position: relative;
}

.ppf-mensaje-wrap {
  position: relative;
}

.ppf-mensaje-campo {
  position: relative;
}

.ppf-modal-mensaje textarea {
  font-size: 0.9rem;
  padding: 0.75rem 4.2rem 0.75rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  resize: vertical;
  min-height: 100px;
}

#ppf-toggle-adjuntos {
  position: absolute;
  right: 0rem;
  bottom: 0.75rem;
  margin-right:10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.45rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

#ppf-toggle-adjuntos img {
  display: block;
  width: 24px;
  height: auto;
}

#ppf-adjuntos-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #93000E;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.ppf-adjuntos-popover {
  position: absolute;
  right: 0.75rem;
  bottom: 3.2rem;
  z-index: 3;
  width: 340px;
  max-width: calc(100% - 1.5rem);
  padding: 0.85rem;
  border: 1px solid #d9d9d9;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.ppf-adjuntos-popover[hidden] {
  display: none !important;
}

.ppf-adjuntos-popover label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.ppf-adjuntos-popover input {
  font-size: 0.85rem;
  padding: 0.55rem;
  border-radius: 0.4rem;
  border: 1px solid #ccc;
  background: #fff;
}

.ppf-adjuntos-popover small {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.74rem;
  line-height: 1.35;
  color: #666;
}

.ppf-adjuntos-lista {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ppf-adjuntos-lista[hidden] {
  display: none !important;
}

.ppf-adjunto-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d9d9d9;
  border-radius: 0.55rem;
  background: #f8f8f8;
}

.ppf-adjunto-nombre {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  line-height: 1.3;
  color: #333;
  word-break: break-word;
}

.ppf-adjunto-quitar {
  flex: 0 0 auto;
  padding: 0.3rem 0.55rem;
  border: none;
  border-radius: 0.35rem;
  background: #e74c3c;
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
}

.ppf-modal-datos input {
  font-size: 0.9rem;
  padding: 0.6rem;
  border-radius: 0.4rem;
  border: 1px solid #ccc;
}

.ppf-promesa {
    font-size: 0.8rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    background-color: #ebebeb;
    padding: 20px;
    border-radius: 15px;
}

.ppf-promesa img {
  width: 75px;
  height: auto;
  border-radius: 0.5rem;
}

.ppf-cerrar-modal {
    position: absolute;
    top: -5px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: #000;
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    line-height: 24px;
    text-align: center;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
}




.ppf-modal-datos {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ppf-dato-linea {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ppf-dato-linea label {
  flex: 0 0 80px;
  font-size: 0.9rem;
}

.ppf-dato-linea input {
  flex: 1;
  font-size: 0.9rem;
  padding: 0.6rem;
  border-radius: 0.4rem;
  border: 1px solid #ccc;
}


.text-promesa {
    font-weight: 600;
    color: #333;
    margin-top: auto;
    margin-bottom: auto;
}





#ppf-telefono {
  background: #fffecf;
}


#ppf-btn-enviar {
    padding: 0.6rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: not-allowed;
    background-color: #ccc;
    color: white;
    transition: background 0.2s ease;
    height: 100%;
    margin-top: 10px;
}

#ppf-btn-enviar:enabled {
  background-color: #93000E;
  cursor: pointer;
}

/*bloque validacion */
#ppf-modal-contacto input,
#ppf-modal-contacto textarea {
  outline: none !important;
  box-shadow: none !important;
}

/* Foco sin validación */
#ppf-modal-contacto input:focus:not(.valido):not(.invalido),
#ppf-modal-contacto textarea:focus:not(.valido):not(.invalido) {
  border: 1px solid #93000E;
}

/* Foco + válido */
#ppf-modal-contacto input.valido:focus,
#ppf-modal-contacto textarea.valido:focus,
#ppf-modal-contacto input.valido,
#ppf-modal-contacto textarea.valido {
  border: 1px solid #2ecc71;
}

/* Foco + inválido */
#ppf-modal-contacto input.invalido:focus,
#ppf-modal-contacto textarea.invalido:focus,
#ppf-modal-contacto input.invalido,
#ppf-modal-contacto textarea.invalido {
  border: 1px solid #e74c3c;
}


/* Asegura que el textarea no se desborde ni active scroll horizontal */
#ppf-modal-contacto textarea,
#ppf-modal-contacto input {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  background-color:white;
}

#ppf-modal-contacto input {
  padding: 0.6rem !important;
}

.ppf-modal-mensaje textarea {
  padding: 0.75rem 4.2rem 0.75rem 0.75rem !important;
}

#ppf-archivo::file-selector-button {
  margin: 0 0.75rem 0 0;
}

#ppf-archivo::-webkit-file-upload-button {
  margin: 0 0.75rem 0 0;
}
/* Asegura que el modal no cree scroll lateral */
#ppf-modal-contacto {
  overflow-x: hidden;
}

.footer-links ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}


.footer-logos-dobles {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 30px;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-sizing: border-box;
    margin-bottom:20px;
}



.logo-footer-principal {
    max-height: 60px;
      height: 60px;
        width: auto;
  
}

.logo-footer-secundario {
  max-width: 60px;
  width:60px 
}

.footer-subtitulo {
    font-weight: 800 !important;
    margin-top: 1rem !important;
    font-size: 1.2rem;
}

.footer-subtitulo a {
  color: inherit;
  text-decoration: none;
}

.footer-subtitulo a:hover {
  text-decoration: underline;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}


.footer-toggle a {
  color: inherit;
  text-decoration: none;
}

.footer-toggle a:hover {
  text-decoration: underline;
}

.footer-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 12px 0;
}

.toggle-icon {
  display: none;
}



.footer-column.activo .toggle-icon {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .footer-principal .footer-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
    .footer-principal .footer-container {
          overflow-x: hidden;
    }

    .titulo-anucio-footer{
        color: #333;
        font-weight: 800;
        font-size: 1.6rem;
    }

  .footer-links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .footer-column.activo .footer-links {
    max-height: 500px; 
  }
  
  .footer-principal .footer-container{
    gap: 0px;
  }
  
  .footer-column h3 {
    font-size: 1.2em;
    margin: 0rem;
    }

  .footer-anuncio {
    flex-direction: column;
    text-align: center;
  }

  .footer-banner img {
    margin-top: 1rem;
  }

  .footer-principal {
    flex-direction: column;
  }

  .footer-column {
    border-top: 1px solid #ccc;
    padding-top: 1rem;
  }

  .footer-cierre {
    text-align: center;
  }

  .footer-bottom p {
    margin: 0.25rem 0;
  }
  
  .footer-anuncio .footer-container {
    gap:1.5em;
  }

  #ppf-contacto-flotante img {
    width: 210px;
  }
  #ppf-modal-contacto {
    width: calc(100vw - 40px);
    left: 20px;
    right: 20px;
  }

  .toggle-icon {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.9em;
  }
}
