#custom-footer {
  background-color: #f8f7f2;
  color: #2e4135;
  padding: 0;
  width:100%;
}
.footer-anuncio {
  background-color: #f4f4f4;
  border-bottom: 1px solid #ccc;
  margin-top: 0;
}
.footer-anuncio .footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  gap: clamp(1rem, 2.2vw, 1.7rem);
  text-align: center;
}
.footer-container {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.footer-sustentabilidad {
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}
.footer-anuncio-logo {
    display: block;
    width: min(220px, 60vw);
    height: auto;
    margin: 0;
}
.footer-sustentabilidad h2,
.footer-sustentabilidad .titulo-anucio-footer {
    font-size: 1.8rem;
    margin: 0;
    max-width: 680px;
    color: #333;
    font-weight: 700;
}
.footer-insignias {
    flex: 0 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-left: 0;
}
.footer-insignias img {
  width: 64px;
  height: auto;
  margin: 0.25rem;
}
.footer-banner img {
    height: 130px;
    margin-top: -2em;
    width: auto;
}
.footer-principal {
  background-color: var(--salvia-green, #4d654f);
  color: #fffdf8;
  border-bottom: 1px solid #64755e;
}
.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;
    font-weight: 400!important;
    margin-bottom: 20px;
    color: #fffdf8;
}
.footer-cierre {
  background-color: #edf1e6;
  color: #2e4135;
}

.footer-cierre .footer-container {
  padding: 1rem 2rem;
}



.footer-bottom img {
    width: 20px;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.footer-bottom .footer-social-instagram {
    gap: 0.75rem;
    font-weight: 600;
}

.footer-bottom .footer-social-instagram a {
    display: inline-flex;
    align-items: center;
}

.footer-bottom .footer-social-instagram img {
    width: 34px;
    height: 34px;
    margin-left: 0;
}



@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: #fffdf8;
    font-size: 1.1rem;
}

.footer-column.footer-empresa .footer-links p {
  font-size:1.1rem;
  line-height: 1.1;
  
}

.footer-empresa-marca {
  margin-bottom: 0.45rem !important;
}

.footer-empresa-identidad {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

.footer-empresa-identidad-texto {
  min-width: 0;
  flex: 1 1 auto;
}

.footer-empresa-contacto {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0;
}

.footer-empresa-contacto p {
  margin: 0 !important;
  line-height: 1.35 !important;
}

.footer-empresa-contacto span {
  display: block;
  margin-bottom: 0.15rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 500;
}

.footer-empresa-contacto a {
  color: inherit;
  text-decoration: none;
}


/*bloque modal contacto */
/* Botón flotante */
#custom-footer #ppf-contacto-flotante {
  position: fixed;
  right: calc(24px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  width: auto;
  min-height: 56px;
  margin: 0;
  padding: 15px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--salvia-green, #4d654f);
  color: #fff;
  font: 600 16px/24px Lato, sans-serif;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 5px 18px rgba(35, 54, 39, .2);
  cursor: pointer;
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

#custom-footer #ppf-contacto-flotante[hidden] {
  display: none;
}

#ppf-contacto-flotante .ppf-contacto-icono {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

#ppf-adjuntos-count[hidden] {
  display: none;
}

#custom-footer #ppf-contacto-flotante:hover {
  background: #3b5141;
  box-shadow: 0 7px 20px rgba(35, 54, 39, .25);
}

#custom-footer #ppf-contacto-flotante:focus-visible,
#ppf-modal-contacto button:focus-visible {
  outline: 3px solid #2e4135;
  outline-offset: 3px;
}

/* Modal compacto */
#ppf-modal-contacto {
  position: fixed;
  right: calc(24px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  background: #f8f7f2;
  border: 1px solid #ccc;
  border-radius: 1rem;
  width: 360px;
  max-width: 90vw;
  box-sizing: border-box;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px));
  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: #ff3800;
  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: var(--salvia-green, #4d654f);
  cursor: pointer;
}

#ppf-btn-enviar:enabled:hover,
#ppf-btn-enviar:enabled:focus {
  background-color: #3b5141;
}

#ppf-btn-enviar:enabled:active {
  background-color: #2e4135;
}

/*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 var(--salvia-green, #4d654f);
}

/* 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: 0;
    justify-content: flex-start;
    background-color: #ffffff;
    padding: 10px;
    border-radius: 10px;
    box-sizing: border-box;
    width: fit-content;
    flex: 0 0 auto;
    margin-bottom:0;
}



.logo-footer-principal {
    max-height: 60px;
      height: 60px;
        width: auto;
  
}

.logo-footer-secundario {
  display: block;
  max-width: 76px;
  width: 76px;
  height: auto;
}

.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,
.footer-links a:focus-visible {
  text-decoration: underline;
}

#custom-footer .footer-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

#custom-footer .footer-toggle:disabled {
  opacity: 1;
  cursor: default;
}

.toggle-icon {
  display: none;
}



.footer-toggle[aria-expanded="true"] .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: 700;
        font-size: 1.6rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

  #custom-footer .footer-toggle:not(:disabled) {
    min-height: 44px;
  }

  #custom-footer .footer-links li a {
    display: block;
    padding-block: 0.35rem;
  }
  
  .footer-principal .footer-container{
    gap: 0px;
  }
  
  .footer-column h3 {
    font-size: 1.2em;
    margin: 0rem;
    }

  .footer-anuncio {
    flex-direction: column;
    text-align: center;
  }

  .footer-anuncio .footer-container {
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }

  .footer-insignias {
    justify-content: center;
  }

  .footer-banner img {
    margin-top: 1rem;
  }

  .footer-principal {
    flex-direction: column;
  }

  .footer-column {
    border-top: 1px solid #ffffff33;
    padding-top: 1rem;
  }

  .footer-cierre {
    text-align: center;
  }

  .footer-bottom p {
    margin: 0.25rem 0;
  }
  
  .footer-anuncio .footer-container {
    gap:1rem;
  }

  #custom-footer #ppf-contacto-flotante {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    padding-inline: 20px;
  }

  #ppf-modal-contacto {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: calc(16px + env(safe-area-inset-left, 0px));
    width: auto;
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px));
  }

  .footer-toggle:not(:disabled) .toggle-icon {
    display: inline-block;
    margin-left: 8px;
    font-size: 0.9em;
  }
}

@media (max-width: 360px) {
  #ppf-modal-contacto {
    padding: 0.75rem;
  }

  .ppf-dato-linea {
    align-items: stretch;
    flex-direction: column;
    gap: 0.35rem;
  }

  .ppf-dato-linea label {
    flex-basis: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  #custom-footer #ppf-contacto-flotante,
  #ppf-modal-contacto {
    transition: none;
  }
}
