* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0.8rem;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .header-pagina {
    margin-bottom: 1rem;
  }
  
  .logo img {
    width: 9rem;
    height: auto;
  }

  .user-card {
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 20px;
    text-align: center;
  }

  .user-card img {
    border-radius: 50%;
    margin-bottom: 15px;
    width: 100px;
    height: 100px;
    object-fit: cover;
  }
  
  body {
    background-color: #030f18;
    font-family: 'Arial', sans-serif;
    color: #fff;
    padding: 0;
  }

  .header {
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #000;
    font-size: 18px;
    margin-bottom: 30px;
    margin: auto;
  }

  .icon {
    width: 24px;
    height: 24px;
    display: none;
  }

  .circle {
    border-radius: 100%;
    width: 1rem;
    height: 1rem;
    background: red;
    margin: auto;
  }

  .container {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    min-width: 100% !important;
    /* background-color: #1f1f1f; */
    /* padding: 2% 3%; */
    background-color: transparent;
  }

  /* Estilo de la sección del QR */
  .qr-section {
    /* background-color: transparent; */
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 15px;
    overflow: hidden;
    padding: 0;
    margin-bottom: 20px;
    /* display: none; */
    margin: auto;
    min-height: 77vh;
    padding: 0 3vh;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }

  .video-container {
    position: relative; /* Necesario para que las esquinas se posicionen correctamente */
    height: 65vh;
    margin: 5vh auto auto auto;
    display: flex;
    padding: 0 2rem;
  }

  video {
    /* padding: 1rem; */
    background: #fff;
    width: 100%;
    margin: 2rem auto;
    /* height: 50vh; */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
  .custom-video-asset {
    margin: 0;
  }

  /* Esquinas del lector de QR */
  @keyframes moveTopLeft {
    0%, 100% {
      transform: translate(0, 0);
    }
    50% {
      transform: translate(-5px, -5px);
    }
  }

  @keyframes moveTopRight {
    0%, 100% {
      transform: translate(0, 0);
    }
    50% {
      transform: translate(5px, -5px);
    }
  }

  @keyframes moveBottomLeft {
    0%, 100% {
      transform: translate(0, 0);
    }
    50% {
      transform: translate(-5px, 5px);
    }
  }

  @keyframes moveBottomRight {
    0%, 100% {
      transform: translate(0, 0);
    }
    50% {
      transform: translate(5px, 5px);
    }
  }

  .corner {
    width: 20px;
    height: 20px;
    position: absolute;
    border: 4px solid #fff;
  }

  .corner.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 50%;
    transition : top 2s, left 2s;

    animation: movePulse 1.5s infinite ease-in-out;

    animation: moveTopLeft 1.5s infinite ease-in-out;
  }

  .corner.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
    border-top-right-radius: 50%;
    transition : top 2s, right 2s;

    animation: moveTopRight 1.5s infinite ease-in-out;
  }

  .corner.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
    border-bottom-left-radius: 50%;
    transition : bottom 2s, left 2s;

    animation: moveBottomLeft 1.5s infinite ease-in-out;
  }

  .corner.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    border-bottom-right-radius: 50%;
    transition : bottom 2s, right 2s;

    animation: moveBottomRight 1.5s infinite ease-in-out;
  }

  #output {
    font-size: 1.2rem;
    background-color: #000;
    color: #ffcd00;
    padding: 12px;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: none;
  }

  canvas {
    display: none;
  }

  /* Estilo de la sección de productos */
  .custom-section {
    background-color: #fff;
    color: #000;
    /* border-radius: 20px; */
    /* box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); */
    padding: 1rem;
    overflow: auto;
    /* width: 100%; */
    min-height: 100vh;
  }
  .custom-section-buttons {
    display: flex;
    justify-content: end;
    flex-direction: row-reverse;
  }
  .custom-div-tabla {
    width: 100%;
  }

  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
  }

  th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
  }

  th {
    background-color: #ffcd00;
    color: #000;
  }

  tr:nth-child(even) {
    background-color: #f2f2f2;
  }

  .custom-section h2, .custom-section h1 {
    text-align: center;
    font-size: larger;
    /* font-weight: bold; */
  }

  .custom-section h1 {
    font-size: x-large;
  }

  .custom-section button {
    width: fit-content;
    padding: 0.3rem 1rem;
    background: #ffcd00;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
    float: right;
    font-size: 0.85rem;
  }
  .segundoBoton {
    margin-left: 1rem;
  }

  button:focus {
    outline: none !important;
  }

  div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm) {
    background-color: #009cdb !important;
  }

  textarea {
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    background-color: #e9ecef;
    opacity: 1;
    width: 100%;
    color: #495057;
    min-height: 7em;
  }

  /* Modal */
  .modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .custom-modal {
    background: transparent;
    padding: 1.5rem;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease;
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2rem;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
  }

  .modal-body {
    margin-bottom: 1rem;
  }
  .custom-modal-body-asset {
    margin-bottom: unset;
  }

  .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
  }

  .btn {
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }

  .btn-close {
    background: #ccc;
  }

  .btn-primary {
    background: #007bff;
    color: white;
  }

  @keyframes fadeIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  /*Modal */

  @media screen and (max-width: 768px) {
    .qr-section {
      display: flex;
      min-height: 80vh;
    }

    #output {
      font-size: 1rem;
      padding: 10px;
    }

    table {
      font-size: 0.9rem;
    }

    th, td {
      padding: 8px;
    }

    .custom-section h2 {
      font-weight: bold;
    }

    table.dataTable, table, .col p, label, textarea {
      font-size: smaller !important;
    }

    .custom-section h2 {
      font-size: medium !important;
    }

    .col p, .form-group, .form-group label {
      margin-bottom: 0 !important;
    }

    tr, td {
      font-size: small;
    }

    .row-tabla .col-sm-12 {
      padding-right: 0 !important;
      padding-left: 0 !important;
    }

    /* Data Tables */
    .dataTables_filter {
      text-align: right !important;
      font-size: smaller !important;
      margin-top: 0.8rem !important;
    }

    .form-control-sm, .form-control {
      font-size: smaller !important;
      height: 1.7rem !important;
    }

    .dataTables_info, .pagination, .custom-section button {
      font-size: 0.7rem;
    }

    div.dataTables_wrapper div.dataTables_paginate ul.pagination {
      justify-content: flex-end !important;
    }
  }

  