/* =======================================================
   Formulario de contacto modal — Pistachos de mi Tierra
   Paleta: primario #668532 · secundario #ee7100 · dark #200b05
   ======================================================= */

/* --- Botón flotante (esquina inferior derecha) --- */
.contact-flotante {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1040;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: #ee7100;
  color: #fff;
  border: none;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(238, 113, 0, 0.55);
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.contact-flotante:hover,
.contact-flotante:focus {
  background-color: #c95f00;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(238, 113, 0, 0.65);
  outline: none;
}

/* --- Contenido del modal --- */
.contact-modal__contenido {
  border: none;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* --- Cabecera del modal --- */
.contact-modal__cabecera {
  background: linear-gradient(135deg, #200b05 0%, #668532 100%);
  color: #f9f9de;
  border-bottom: 3px solid #ee7100;
  padding: 1.2rem 1.5rem;
}

.contact-modal__titulo {
  font-weight: 700;
  font-size: 1.2rem;
  color: #f9f9de;
}

.contact-modal__cerrar {
  color: #f9f9de;
  opacity: 0.75;
  text-shadow: none;
  font-size: 1.5rem;
  line-height: 1;
}

.contact-modal__cerrar:hover {
  color: #fff;
  opacity: 1;
}

/* --- Cuerpo del modal --- */
.contact-modal__cuerpo {
  background: #fff;
  padding: 1.75rem 2rem 2rem;
}

/* --- Etiquetas y campos --- */
.contact-modal__label {
  font-weight: 600;
  color: #4a6024;
  font-size: 0.88rem;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-modal__campo {
  border: 1.5px solid #ddd;
  border-radius: 0.45rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  color: #333;
}

.contact-modal__campo:focus {
  border-color: #668532;
  box-shadow: 0 0 0 0.18rem rgba(102, 133, 50, 0.2);
  outline: none;
}

.contact-modal__campo::placeholder {
  color: #aaa;
  font-style: italic;
}

/* --- Botón enviar --- */
.contact-modal__btn-enviar {
  background-color: #ee7100;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 0.45rem;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.contact-modal__btn-enviar:hover,
.contact-modal__btn-enviar:focus {
  background-color: #c95f00;
  color: #fff;
}

.contact-modal__btn-enviar:disabled {
  background-color: #e8a06e;
  cursor: not-allowed;
}

/* --- Área de feedback --- */
#contact-feedback {
  border-radius: 0.45rem;
  font-size: 0.95rem;
}

/* --- Responsive --- */
@media (max-width: 576px) {
  .contact-modal__cuerpo {
    padding: 1.25rem 1rem 1.5rem;
  }

  .contact-flotante {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 3rem;
    height: 3rem;
    font-size: 1.2rem;
  }

  #btn-volver-arriba {
    bottom: 5.25rem;
  }
}

/* Sube el botón "volver arriba" para no superponerse al botón de contacto */
#btn-volver-arriba {
  bottom: 6.5rem;
}
