  body {
      background: #f3f3f3;
  }

  .volver {
      display: flex;
      align-items: center;
      gap: .5rem;
      padding-top: 3rem;
      padding-bottom: 2rem;
  }

  .volver a p {
      color: var(--principal);
      font-family: Font-Medium;
      cursor: pointer;
  }

  .volver img {
      display: inline-flex;
      width: 10px;
      height: 10px;
  }

  .container-producto {
      display: grid;
      grid-template-columns: 50% 45%;
      justify-content: space-between;
      padding: 2rem 0 3rem 0;
  }

  .title-product-sin {
      font-size: 2.5em;
      font-family: Font-Semibold;
      color: var(--principal);
      padding-top: .5rem;
  }
  .img-rel{
    /* width: 100%;
    height: 250px; */
    overflow: hidden;
    border-radius: 16px 16px 0 0;
  }
  .img-rel img{
    height: 250px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
  }

  .description-product h3 {
      color: var(--principal);
      font-size: 1.5em;
      padding-bottom: .5em;
      font-family: Font-Semibold;
  }

  .description-product ul {
      padding: 1.5rem 0;
  }

  .description-product li {
      color: #636569;
      font-size: 1.25em;
      padding-bottom: .5em;
      font-family: Font-Regular;
  }

  @media (max-width: 991px) {
      .container-producto {
          display: grid;
          grid-template-columns: 1fr;
      }

      .title-product-sin {
          font-size: 2em;
      }

      .description-product {
          margin-top: 3rem;
      }

      .description-product ul {
          padding-left: 1.5rem;
      }

      .description-product h3 {
          font-size: 1.2em;
      }

      .description-product li {
          font-size: 1em;
      }
  }

  /*************************/
  .viewer {
      width: 100%;
  }

  .main-image {
      background: #ffffff;
      border-radius: 10px;
      text-align: center;
      width: auto;
      height: 500px;
      overflow: hidden;
  }

  .main-image img {
      width: 100%;
      height: 100%;
      object-fit: contain;
  }

  .thumbnails {
      display: flex;
      justify-content: start;
      flex-wrap: wrap;
      gap: .5rem;
      margin-top: 15px;
  }

  .thumb {
      width: 23%;
      /* max-width: 150px; */
      height: 100px;
      object-fit: cover;
      background: #eaeaea;

      border-radius: 0px;
      cursor: pointer;
      opacity: 0.6;
      transition: 0.3s;
  }

  .thumb:hover {
      opacity: 1;
  }

  .thumb.active {
      border: 2px solid #007bff;
      opacity: 1;
  }

  @media (max-width: 991px) {
      .thumb {
          width: 31%;
      }

      .main-image {
          height: 400px;
      }
  }

  /******************/
  .tabla-estilo {
      width: 100%;
      border-collapse: separate;
      /* necesario para bordes redondeados */
      border-spacing: 0;
      font-family: Arial, sans-serif;
      border: 1px solid #ddd;
      border-radius: 16px;
      overflow-x: auto;

      margin: 2rem auto 5rem auto;
      box-shadow: 0px 0px 15px #d2d7dd;
  }

  /* Tablas con 1 o 2 columnas */
  .tabla-estilo:has(th:nth-child(-n+2)):not(:has(th:nth-child(3))) {
      max-width: 954px;
  }



  /* Cabecera */
  .tabla-estilo th {
      background-color: var(--principal);
      color: white;
      padding: 10px;
      text-align: center;
      font-family: Font-Regular;
      font-weight: normal !important;
  }

  /* Celdas */
  .tabla-estilo td {
      padding: 10px;
      border-top: 1px solid #ddd;
      text-align: center;

  }

  .tabla-estilo td:first-child {
      font-family: Font-Semibold;
      color: var(--principal);
  }

  /* Filas impares SOLO en tbody */
  .tabla-estilo tbody tr {
      background-color: #ffffff;
  }

  .tabla-estilo tbody tr:nth-child(even) {
      background-color: #EFF6FA;
  }

  /* Bordes redondeados en esquinas superiores */
  .tabla-estilo thead tr th:first-child {
      border-top-left-radius: 16px;
  }

  .tabla-estilo thead tr th:last-child {
      border-top-right-radius: 16px;
  }

   

  .tabla-estilo tbody tr:last-child td:first-child {
      border-bottom-left-radius: 16px;
     
  }

  .tabla-estilo tbody tr:last-child td:last-child {
      border-bottom-right-radius: 16px;
     
  }

  @media (max-width: 991px) {
      .tabla-estilo td {
          min-width: 150px;
      }
  }


  /******************/
  .container-rel {
      padding-top: 1rem;
  }

  .container-rel h6 {
      color: #636569;
      font-family: Font-Semibold;
      font-size: 24px;
  }

  .container-relacionados {
      display: flex;
      padding: 3rem 0 5rem 0;
      gap: 1rem;
      flex-wrap: wrap;
     

  }

  .card-rel {
      width: 23%;
      background: #ffffff;
      border-radius: 16px;

  }

  .text-rel {
      padding: 20px;
  }

  .sku {
      font-family: 20px;
      color: #636569;
      font-family: Font-Regular;
  }

  .title-rel {
      color: var(--principal);
      font-size: 18px;
      font-family: Font-Semibold;
      line-height: 120%;
  }

  @media (max-width: 1024px) {
      .title-rel {
          font-size: 16px;
      }

      .card-rel {
          width: 32%;

      }
  }

  @media (max-width: 991px) {
      .container-relacionados {
          justify-content: space-between;
          gap: 1rem;
      }

      .title-rel {
          font-size: 14px;
      }

      .card-rel {
          width: 48%;
      }
  }

  @media (max-width: 600px) {
      .card-rel {
          width: 100%;
      }
  }