/* gdreportes: botón flotante y panel de contacto. Los !important son para ganar al tema. */

.gd-contacto [hidden] {
  display: none !important;
}
.gd-contacto__boton {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 2147482000; /* Sobre el contenido; bajo la ventana de reportes y el aviso de cookies. */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: #f26522;
  color: #fff !important;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .22);
  cursor: pointer;
  transition: background-color .12s, transform .12s;
}
.gd-contacto__boton:hover {
  background: #d9530f;
  transform: translateY(-1px);
}
.gd-contacto__boton:focus-visible {
  outline: 3px solid #1c1d21;
  outline-offset: 3px;
}
.gd-contacto__panel {
  position: fixed;
  right: 16px;
  bottom: 80px;
  z-index: 2147482000;
  box-sizing: border-box;
  width: 360px;
  max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 16px;
  background: #fff;
  color: #1c1d21;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
  animation: gd-contacto-entra .16s ease-out;
}
@keyframes gd-contacto-entra {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.gd-contacto__cabecera {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 16px 20px;
  border-radius: 16px 16px 0 0;
  background: #f26522;
  color: #fff;
}
.gd-contacto__titulo {
  margin: 0 0 2px !important;
  font-size: 18px !important;
  line-height: 24px !important;
  font-weight: 700 !important;
  color: #fff !important;
}
.gd-contacto__sub {
  margin: 0 !important;
  font-size: 14px;
  line-height: 20px;
  color: #fff !important;
  opacity: .92;
}
.gd-contacto__x {
  flex: none;
  display: flex;
  padding: 4px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #fff;
  cursor: pointer;
}
.gd-contacto__x:hover {
  background: rgba(255, 255, 255, .18);
}
.gd-contacto__form,
.gd-contacto__hecho {
  padding: 16px 20px 20px;
}
.gd-contacto__campo {
  margin-bottom: 12px;
}
.gd-contacto__campo label {
  display: block;
  margin: 0 0 4px !important;
  font-size: 14px !important;
  line-height: 20px;
  font-weight: 500 !important;
  color: #1c1d21 !important;
}
.gd-contacto__campo input,
.gd-contacto__campo textarea {
  box-sizing: border-box;
  display: block;
  width: 100% !important;
  height: auto !important;
  padding: 10px 12px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #1c1d21 !important;
  font: inherit;
  font-size: 16px !important;
  line-height: 22px !important;
  box-shadow: none !important;
}
.gd-contacto__campo textarea {
  resize: vertical;
}
.gd-contacto__campo input:focus,
.gd-contacto__campo textarea:focus {
  outline: 2px solid #f26522 !important;
  outline-offset: -1px;
  border-color: #f26522 !important;
}
/* Trampa: fuera de la vista sin display: none, que algunos bots detectan. */
.gd-contacto__web {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.gd-contacto__privacidad {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 12px !important;
  font-size: 13px !important;
  line-height: 18px;
  font-weight: 400 !important;
  color: #475569 !important;
  cursor: pointer;
}
.gd-contacto__privacidad input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 1px 0 0 !important;
  accent-color: #f26522;
}
.gd-contacto__privacidad a {
  color: #d9530f !important;
  text-decoration: underline !important;
}
.gd-contacto__error {
  margin: 0 0 12px !important;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 14px;
  line-height: 20px;
}
.gd-contacto__enviar {
  display: block;
  width: 100%;
  padding: 11px 18px;
  border: 0;
  border-radius: 10px;
  background: #f26522;
  color: #fff !important;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .12s;
}
.gd-contacto__enviar:hover {
  background: #d9530f;
}
.gd-contacto__enviar:disabled {
  opacity: .65;
  cursor: wait;
}
.gd-contacto__hecho {
  text-align: center;
}
.gd-contacto__check {
  display: inline-flex;
  margin-top: 8px;
  padding: 12px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
}
.gd-contacto__hecho-txt {
  margin: 14px 0 18px !important;
  font-size: 15px;
  line-height: 22px;
  color: #1c1d21;
}
/* Móvil: panel a lo ancho, abajo, y el botón se esconde mientras está abierto. */
@media (max-width: 480px) {
  .gd-contacto__boton {
    right: 12px;
    bottom: 12px;
    padding: 12px 16px;
  }
  .gd-contacto__panel {
    right: 8px;
    left: 8px;
    bottom: 8px;
    width: auto;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .gd-contacto.is-abierto .gd-contacto__boton {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gd-contacto__panel {
    animation: none;
  }
}
