:root {
  --protesis-card-background: #c0bfbe;
  --protesis-card-spoiler-border: #dddddd;
  --protesis-card-spoiler-background: #d2d2d2;
  --protesis-card-color: #545454;
}

.card-protesis {
  width: 60%;
  color: var(--protesis-card-color);
  background-color: var(--protesis-card-background);
  border-radius: 7px;
  margin: 10px;
  text-align: justify;
  padding: 7px 13px;
  cursor: default;
  box-shadow: 2px 2px 4px black;
  margin: 5px 70px 5px 170px;
  font-family: Open Sans;
}

.card-protesis .categoria {
  background-color: #777777;
  border-radius: 7px;
  padding: 0 10%;
  color: #fff;
  text-align: center;
  border: 1px solid #eee;
}

.card-protesis .imagen {
  max-width: 200px;
  max-height: 200px;
}

.card-protesis #mejorasProtesis .imagen {
  max-width: 50px;
  max-height: 50px;
}

.card-protesis #mejorasProtesis .img-container {
  max-width: 50px;
  max-height: 50px;
  position: relative;
}

.card-protesis #mejorasProtesis .img-container::before {
  font-size: 9px;
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box; /* Incluye el padding en el ancho y alto */
  padding: 10px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.5s ease; /* Agregada transición para la propiedad opacity */
  overflow: hidden;
}

.card-protesis #mejorasProtesis .img-container:hover::before {
  display: flex;
  opacity: 1;
}

.card-protesis .card-spoiler {
  background-color: var(--protesis-card-spoiler-background);
  border: 5px solid var(--protesis-card-spoiler-border);
  border-radius: 5px;
  padding: 3px 5px;
  font-family: monospace;
  margin: auto;
  cursor: pointer;
}

.card-protesis .card-spoiler-content {
  padding: 3px 10px;
  text-align: justify;
  background-color: var(--protesis-card-spoiler-background);
  border: 5px solid var(--protesis-card-spoiler-border);
  border-radius: 5px 5px 5px 5px;
  cursor: default;
}

.card-protesis .code-container {
  display: flex;
  justify-content: start;
  padding: 0.5rem 0.5rem 0.5rem 0.25rem;
}

.card-protesis a {
  cursor: pointer;
  color: var(--primary-text);
  text-shadow: 1px 1px 1px var(--protesis-card-color);
}

.card-protesis a:hover {
  color: var(--primary-hover);
}

.card-protesis .code {
  background: var(--primary-lighttext);
  border-radius: 16px!important;
  padding: 4px 15px 4px 12px;
  font-size: 10px;
  border: 1px solid #bbb;
  cursor: pointer;
}

.card-protesis .code:hover {
  background-color: var(--primary-hover);
}

.card-protesis .boton-desplegable {
  padding: 0px 3px 1px 3px;
  background-color: var(--primary-lighttext);
  color: white;
  border-radius: 31px;
}

.card-protesis .boton-desplegable:hover {
  padding: 0px 3px 1px 3px;
  background-color: var(--primary-hover);
  border-radius: 31px;
}

.card-protesis .boton-desplegable:active {
  padding: 0px 3px 1px 3px;
  background-color: var(--primary-hover);
  border-radius: 31px;
}