.reporte-float-btn {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 2147482000;
  display: grid;
  gap: 1px;
  width: 142px;
  min-width: 142px;
  min-height: 54px;
  padding: 9px 13px;
  border: 1px solid rgba(74, 195, 255, 0.42);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(7, 190, 225, 0.9)),
    rgba(2, 6, 23, 0.92);
  color: #f8fbff;
  box-shadow: 0 18px 44px rgba(0, 168, 255, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transform: translateZ(0);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, right 220ms ease;
}

.reporte-float-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 220, 255, 0.7);
  box-shadow: 0 24px 54px rgba(0, 168, 255, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.reporte-float-btn span {
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 13px;
}

.reporte-float-btn small {
  color: rgba(240, 249, 255, 0.82);
  font-size: 10px;
  line-height: 1.2;
}

.reporte-contraer-btn {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 2147482001;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(74, 195, 255, 0.38);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.86);
  color: #dff7ff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: transform 180ms ease, right 220ms ease, background 180ms ease;
}

.reporte-contraer-btn:hover {
  transform: translateY(-1px);
  background: rgba(14, 36, 61, 0.94);
}

.reporte-contraer-cerrado {
  display: none;
}

.reporte-widget-contraido .reporte-float-btn {
  right: -104px;
  width: 142px;
  min-width: 142px;
  border-radius: 18px 0 0 18px;
}

.reporte-widget-contraido .reporte-float-btn span,
.reporte-widget-contraido .reporte-float-btn small {
  opacity: 0;
}

.reporte-widget-contraido .reporte-contraer-btn {
  right: 6px;
}

.reporte-widget-contraido .reporte-contraer-abierto {
  display: none;
}

.reporte-widget-contraido .reporte-contraer-cerrado {
  display: inline;
}

.reporte-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147482500;
  display: grid;
  place-items: center;
  padding: 22px;
  background:
    radial-gradient(circle at 75% 20%, rgba(14, 165, 233, 0.18), transparent 32%),
    rgba(2, 6, 23, 0.68);
  backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.reporte-overlay.abierto {
  opacity: 1;
  pointer-events: auto;
}

.reporte-modal {
  position: relative;
  width: min(760px, calc(100vw - 28px));
  max-height: min(86vh, 780px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(74, 195, 255, 0.26);
  border-radius: 24px;
  background:
    linear-gradient(150deg, rgba(15, 23, 42, 0.98), rgba(3, 7, 18, 0.98)),
    #0b1120;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.46), 0 0 48px rgba(14, 165, 233, 0.12);
  color: #e5edf8;
  transform: translateY(18px) scale(0.98);
  transition: transform 240ms ease;
}

.reporte-overlay.abierto .reporte-modal {
  transform: translateY(0) scale(1);
}

.reporte-cerrar {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #cbd5e1;
  cursor: pointer;
}

.reporte-modal-header {
  padding-right: 42px;
}

.reporte-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reporte-modal h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
}

.reporte-modal p {
  color: #9fb0c8;
  line-height: 1.5;
}

.reporte-opciones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.reporte-opcion {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 15px;
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.78);
  color: #e5edf8;
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.reporte-opcion:hover,
.reporte-opcion.activo {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.72);
  background: rgba(14, 36, 61, 0.92);
}

.reporte-opcion span {
  color: #9fb0c8;
  font-size: 13px;
  line-height: 1.35;
}

.reporte-campo {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: #b6c4d8;
  font-weight: 700;
}

.reporte-campo input,
.reporte-campo textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(51, 65, 85, 0.9);
  border-radius: 15px;
  background: rgba(2, 6, 23, 0.72);
  color: #f8fbff;
  outline: none;
  padding: 13px 14px;
  font: inherit;
}

.reporte-campo textarea {
  resize: vertical;
  min-height: 132px;
}

.reporte-campo input:focus,
.reporte-campo textarea:focus {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.reporte-pagina {
  margin-top: 12px;
  color: #8fa2bd;
  font-size: 12px;
}

.reporte-acciones {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.reporte-acciones p {
  min-height: 20px;
  margin: 0;
  font-size: 13px;
}

.reporte-enviar {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: white;
  cursor: pointer;
  font-weight: 800;
}

.reporte-enviar:disabled {
  opacity: 0.58;
  cursor: wait;
}

.reporte-ok {
  color: #86efac !important;
}

.reporte-error {
  color: #fca5a5 !important;
}

@media (max-width: 720px) {
  .reporte-float-btn {
    right: 12px;
    bottom: 14px;
    width: 128px;
    min-width: 128px;
    padding: 9px 12px;
  }

  .reporte-contraer-btn {
    right: 12px;
    bottom: 74px;
  }

  .reporte-widget-contraido .reporte-float-btn {
    right: -92px;
  }

  .reporte-opciones {
    grid-template-columns: 1fr;
  }

  .reporte-modal {
    padding: 20px;
  }

  .reporte-acciones {
    align-items: stretch;
    flex-direction: column;
  }
}
