/* DGAIA_CENTRO_VISUAL_ESTILOS_CORRECCION_V1 */

.dgaia-cv-herramientas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #dbe4ed;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(17, 42, 69, 0.06);
}

.dgaia-cv-herramientas__estado {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #526579;
  font-size: 0.9rem;
}

.dgaia-cv-herramientas__estado strong {
  color: #142b44;
  font-size: 1rem;
}

.dgaia-cv-herramientas__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dgaia-cv-boton {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #cdd9e5;
  border-radius: 12px;
  background: #ffffff;
  color: #17324f;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.dgaia-cv-boton:hover {
  background: #f1f6fb;
}

.dgaia-cv-boton--principal {
  border-color: #245ee8;
  background: #245ee8;
  color: #ffffff;
}

.dgaia-cv-boton--principal:hover {
  background: #174bc8;
}

.dgaia-cv-boton--corregir {
  border-color: #d99a28;
  background: #fff5dc;
  color: #714700;
}

.dgaia-cv-boton--corregir:hover {
  background: #ffebbd;
}

.dgaia-cv-boton:focus-visible,
.dgaia-cv-panel button:focus-visible,
.dgaia-cv-panel select:focus-visible,
.dgaia-cv-panel textarea:focus-visible {
  outline: 3px solid rgba(36, 94, 232, 0.28);
  outline-offset: 2px;
}

.dgaia-cv-fondo {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  justify-content: flex-end;
  background: rgba(6, 18, 32, 0.62);
  backdrop-filter: blur(3px);
}

.dgaia-cv-fondo.abierto {
  display: flex;
}

.dgaia-cv-panel {
  width: min(600px, 100%);
  height: 100%;
  overflow-y: auto;
  background: #f6f8fb;
  box-shadow: -24px 0 70px rgba(4, 18, 35, 0.3);
}

.dgaia-cv-panel__cabecera {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: #102f4e;
  color: #ffffff;
}

.dgaia-cv-panel__cabecera h2 {
  margin: 0 0 7px;
  font-size: 1.45rem;
}

.dgaia-cv-panel__cabecera p {
  margin: 0;
  color: #d7e4f0;
  line-height: 1.45;
}

.dgaia-cv-panel__cerrar {
  width: 44px;
  min-width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 25px;
  cursor: pointer;
}

.dgaia-cv-panel__contenido {
  padding: 24px;
}

.dgaia-cv-panel__bloque {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #dae3ec;
  border-radius: 16px;
  background: #ffffff;
}

.dgaia-cv-panel__bloque h3 {
  margin: 0 0 14px;
  color: #132d49;
}

.dgaia-cv-datos {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 10px 16px;
  margin: 0;
}

.dgaia-cv-datos dt {
  color: #617286;
  font-weight: 700;
}

.dgaia-cv-datos dd {
  margin: 0;
  color: #132d49;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.dgaia-cv-pasos {
  margin: 0;
  padding-left: 25px;
}

.dgaia-cv-pasos li {
  margin-bottom: 12px;
  padding-left: 5px;
  color: #263c52;
  line-height: 1.52;
}

.dgaia-cv-campo {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid #cbd7e3;
  border-radius: 12px;
  background: #ffffff;
  color: #142d47;
  font: inherit;
}

textarea.dgaia-cv-campo {
  min-height: 100px;
  resize: vertical;
}

.dgaia-cv-panel__acciones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dgaia-cv-mensaje {
  display: none;
  margin-top: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #eaf8f0;
  color: #17623b;
  font-weight: 700;
}

.dgaia-cv-mensaje.visible {
  display: block;
}

@media (max-width: 650px) {
  .dgaia-cv-herramientas {
    align-items: stretch;
  }

  .dgaia-cv-herramientas__acciones,
  .dgaia-cv-herramientas__acciones .dgaia-cv-boton {
    width: 100%;
  }

  .dgaia-cv-panel__contenido,
  .dgaia-cv-panel__cabecera {
    padding: 17px;
  }

  .dgaia-cv-datos {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .dgaia-cv-datos dd {
    margin-bottom: 11px;
  }

  .dgaia-cv-panel__acciones {
    grid-template-columns: 1fr;
  }
}
