:root {
  --primary-color: #007bff; /* Azul elegante para el estado checked */
  --border-color: #ced4da; /* Gris suave para el estado por defecto */
  --text-color: #343a40;
}

.modal-secundary {
  background: #747474c6;
}

.modal-secundary .modal-content {
  background-color: #fff;
}

.elementCard {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  border: 1px solid var(--toneBoxShadow);
  border-radius: 10px;
  width: 100%;
  background-color: var(--toneWhite);
  box-shadow: 1px 1px 7px var(--toneBoxShadow);
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-weight: 600;
}

#titleForm {
  color: var(--blueSky) !important;
}

.containerInputsForm {
  width: 100%;
  padding: 10px 8px 8px 8px;
  border-radius: 8px;
  background-color: var(--toneGreyBackground);
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  align-content: center;
}

.labelAgreeSub {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-content: center;
  align-items: center;
}
.labelAgreeSub .newSubcatalog {
  font-size: 0.95rem;
  color: var(--toneBlueTextSoftButtons);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

/* radio styles */

.radio-group {
  display: flex;
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: center;
  gap: 10px; /* Espaciado vertical entre opciones */
  padding: 7px;
  border-radius: 7px;
  border: 1px solid var(--backgroundInputs);
}

.custom-radio {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--text-color);
  transition: color 0.2s ease;
}

/* 1. Ocultar el radio nativo */
.custom-radio input[type="radio"] {
  /* Ocultamos el input original, pero lo mantenemos accesible */
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* 2. El indicador visual (el círculo que se muestra) */
.radio-indicator {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  margin-right: 5px;
  position: relative;
  transition: border-color 0.2s ease;
}

/* 3. El punto interior (cuando está seleccionado) */
.radio-indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0); /* Inicialmente escala 0 (oculto) */
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--primary-color);
  transition: transform 0.2s ease; /* Transición para el efecto de aparición */
}

/* 4. Estilos al pasar el ratón (Hover) */
.custom-radio:hover .radio-indicator {
  border-color: var(--primary-color);
}

/* 5. Estado SELECCIONADO (Checked) */
.custom-radio input[type="radio"]:checked ~ .radio-indicator {
  border-color: var(--primary-color); /* Borde primario */
}

.custom-radio input[type="radio"]:checked ~ .radio-indicator::after {
  transform: translate(-50%, -50%) scale(1); /* Escala 1 (muestra el punto) */
}

/* 6. Foco (Accesibilidad y toque final) */
.custom-radio input[type="radio"]:focus-visible ~ .radio-indicator {
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.4);
}

.labelTitleInput {
  padding: 5px 0px;
}

.headerCard {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 7px;
  padding: 5px 10px;
  background-color: var(--toneBlueStrong);
}

.switch {
  line-height: 0px !important;
}

.switch .checkTypeSwitch {
  display: none;
  margin: 0px;
}

.slider {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
  border: 2px solid var(--toneBlueTextSoftButtons);
  border-radius: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
  z-index: 10;
}

.slider:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-color: var(--toneBlueTextSoftButtons);
  border-radius: 50%;
  transition: transform 0.2s;
}

.checkTypeSwitch:checked + .slider {
  background-color: var(--toneBlueTextSoftButtons);
}

.checkTypeSwitch:checked + .slider:before {
  background-color: var(--background);
}

.checkTypeSwitch:checked + .slider:before {
  transform: translate(24px, -50%);
}

.lastChild {
  margin-left: auto !important;
}

.headerCard > label {
  color: var(--background);
}

.headerCard > label > span {
  color: var(--toneBlue);
  margin-left: 5px;
}

.rowMessage {
  display: none;
}

label.required::before {
  content: " *";
  color: red;
  font-weight: bold;
  font-size: 0.75rem;
  margin-right: 3px;
}

.rowRequire {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 15px;
  background-color: #fff;
  display: none;
}

.rowComplete {
  border: 2px solid #fff;
  box-shadow: 2px 2px 7px rgba(137, 238, 69, 0.3);
}

.rowWarning {
  border: 1px solid #b1020280;
  box-shadow: 2px 2px 7px rgba(234, 29, 2, 0.3);
}

.contentHeaderCuestion {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.contentResponseCuestion {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  margin-top: 4px;
  gap: 10px;
  border-radius: 5px;
  background-color: var(--toneBlueSky);
  padding: 4px 8px;
  overflow: auto;
}

.contentTransparent {
  background-color: transparent !important;
}

.contentDocument {
  width: clamp(140px, 160px, 180px);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  align-content: center;
  background-color: var(--toneBlueSky);
  border: 2px solid #fff;
  border-radius: 5px;
  padding: 4px 8px;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.contentDocument:hover {
  transform: scale(1.03);
  box-shadow: 4px 4px 10px rgba(51, 70, 99, 0.3);
}

.btnDownSection {
  border: none;
  height: 25px;
  width: 25px;
  background-color: transparent;
  background-image: url(../../img/icons/btnDown.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px 12px;
  transition: all 0.3s ease-in-out;
}

.labelSection {
  color: #fff !important;
}

.btnDownSection:hover {
  transform: scale(1.08);
}

.btnChangeUp {
  transform: rotate(180deg);
}

.textStrong {
  font-weight: bold;
}

.bodyCardHide {
  height: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
  padding-top: 10px;
  transition: all 0.3s ease-in-out;
  gap: 15px;
}

.viewCardHide {
  height: 100%;
}

.viewQuestions {
  display: flex;
}

.fileComponent {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  align-content: center;
  cursor: pointer;
  border-radius: 5px;
  border: 2px solid var(--toneBlueStrong);
  transition: all 0.3s ease-in-out;
}

.iconUpload {
  border-radius: 2px 0 0 2px;
  padding: 5px;
  width: 50px;
  height: 34px;
  background-image: url(../../img/icons/upload.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 23px;
  background-color: var(--toneBlueStrong);
}

.containerNameFile {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  align-content: center;
  padding-left: 15px;
}

.customFileInput {
  display: none;
}

.customFileInputLabel,
.customFileInputLabelModal {
  cursor: pointer;
  background-color: var(--toneBlue);
  color: white;
  border-radius: 5px;
  padding: 5px 10px;
  text-align: center;
}

.label-category {
  color: var(--blueSky) !important;
}

.rotateDown {
  transform: rotate(180deg);
}

.contentFileRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  margin-bottom: 15px;
}

.nameContent {
  font-size: 0.75rem;
  font-weight: 600;
  color: #2d2d2f;
}

.btnFileUpload {
  position: relative;
}

.customFileInput {
  display: none;
}

.customFileInputLabel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: #333;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--toneGreyBackground);
  box-shadow: 2px 4px 2px var(--backgroundInputs);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.customFileInputLabel:hover {
  background-color: var(--toneIcons);
  color: var(--toneGreyBackground);
}

.customFileInputLabel:active {
  background: #e8e8eb;
  transform: scale(0.97);
}

.btnInfo {
  width: 26px;
  height: 26px;
  background-image: url(../../img/icons/info.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 22px;
  margin-left: auto;
  cursor: pointer;
  border: none;
  background-color: transparent;
}

.content-row-docs {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.container-document {
  min-width: 120px;
  max-width: 120px;
  min-height: 90px;
  max-height: 90px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  align-content: center;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.container-document:hover {
  transform: translateY(-3px);
  background-color: var(--fileBackground);
  border: 1px solid var(--toneBlueBack);
}

.document-selected {
  transform: translateY(-3px);
  background-color: var(--fileBackground);
  border: 1px solid var(--toneBlueBack);
  box-shadow: 1px 1px 8px var(--toneBlueStrong);
}

.icon-document {
  border-radius: 2px 0 0 2px;
  padding: 5px;
  width: 30px;
  height: 25px;
  background-image: url(../../img/icons/file.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px;
  margin-bottom: 5px;
}

.delete-doc {
  border-radius: 2px 0 0 2px;
  padding: 5px;
  width: 30px;
  height: 30px;
  background-image: url(../../img/icons/delete.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px;
  margin-left: auto;
}

.name-doc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Máximo 2 líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4em;
  max-height: 2.8em;
  word-break: break-all;
  /* 2 líneas de alto (2 x line-height) */
}

.content-notes {
  background-color: var(--toneBlueBack);
  border-radius: 8px;
  padding: 5px 10px;
}

/* Alert message */

.alert-response {
  padding: 10px;
  margin: 10px 5px;
  border-radius: 5px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-response.ok {
  background-color: #4caf4fb2;
  color: white;
  border: 1px solid #398f3c;
}

/* Estilo para el contenedor de la alerta *
/* Icono de éxito (puedes usar uno de Font Awesome o similar) */
.alert-response.ok .icon {
  margin-right: 10px;
}

/* Estilo para el mensaje */
.alert-response .message {
  flex-grow: 1;
}

/* Hover para el botón de cierre */
.alert-response .close-btn:hover {
  color: #dcdcdc;
}

.alert-response.error {
  background-color: #d62013de;
  color: white;
  border: 1px solid #f44336;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.container-documents {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
}

.container-documents > .fileComponent {
  width: calc(100% - 80px);
}

.stepper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 100%;
  overflow: auto;
}

.text-section {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Máximo 2 líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4em;
  max-height: 2.8em;
  word-break: keep-all;
  /* 2 líneas de alto (2 x line-height) */
}

.element-line-sections {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  width: 120px;
  min-width: 110px;
  min-height: 66px;
  cursor: pointer;
}

.step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: lightgray;
  color: #fff;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
}

.step.done {
  background-color: green;
}

.step.active {
  background-color: var(--blueSky);
  animation: blink 2s infinite;
}

/* Tabla lista de materiales */

.materials-section {
  margin-top: 24px;
}

/* HEADER */
.materials-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px 15px;
  gap: 20px;
}

.text-summary {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.btn-add-material {
  background: #0d6efd;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.25);
}

.dropdown {
  position: relative;
}

.btn-print {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
}

.btn-print i {
  font-size: 0.85rem;
  color: var(--toneGreyText);
}

.btn-print:hover {
  background: #f8fafc;
}

.dropdown-menu {
  position: absolute;
  top: 110%;
  right: 0;
  min-width: 240px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid #e2e8f0;
  padding: 6px;
  z-index: 20;
  display: none;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

.dropdown-item:hover {
  background: #f1f5f9;
}

.dropdown-item.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* TABLE */
.materials-table {
  background: #f8fafc;
  border-radius: 16px;
  overflow: hidden;
}

.materials-row {
  display: grid;
  grid-template-columns: 1fr 120px 120px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border-bottom: 1px solid #eef2f7;
}

.materials-head {
  background: #f1f5f9;
  font-weight: 600;
  color: #64748b;
}

.material-desc {
  font-weight: 500;
}

.material-umb {
  color: #475569;
}

/* CANTIDAD */
.material-qty {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-value {
  background: #eef2f7;
  padding: 4px 12px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.edit-icon {
  opacity: 0;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.materials-row:hover .edit-icon {
  opacity: 1;
}

/* INPUT INLINE */
.qty-input {
  display: none;
  width: 70px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-weight: 600;
}

.materials-row.is-editing {
  background: #f3f6ff;
}

.materials-row.is-editing .qty-value,
.materials-row.is-editing .edit-icon {
  display: none;
}

.materials-row.is-editing .qty-input {
  display: block;
}

/* Animación de parpadeo */

@keyframes blink {
  0% {
    background-color: var(--blueSky);
    /* El color de fondo inicial */
  }

  50% {
    background-color: transparent;
    /* El color de fondo en el medio (opcionalmente, puedes hacer que se vuelva transparente) */
  }

  100% {
    background-color: var(--blueSky);
    /* El color de fondo final */
  }
}
