/* --- ESTILOS DEL POPUP / MODAL --- */
    
    /* Fondo oscuro transparente */
    .popup-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.75);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      /* Animación suave al aparecer */
      opacity: 1;
      transition: opacity 0.3s ease;
    }

    /* Contenedor del popup */
    .popup-content {
      position: relative;
      background-color: #ffffff;
      border-radius: 8px;
      padding: 10px;
      max-width: 90%;
      max-height: 90vh;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
      display: flex;
      justify-content: center;
      align-items: center;
    }

    /* Imagen dentro del popup */
    .popup-content img {
      max-width: 100%;
      max-height: 80vh;
      border-radius: 4px;
      display: block;
    }

    /* Botón de cierre (X) */
    .popup-close-btn {
      position: absolute;
      top: -12px;
      right: -12px;
      background-color: #000000;
      color: white;
      border: 2px solid white;
      border-radius: 50%;
      width: 32px;
      height: 32px;
      font-size: 18px;
      font-weight: bold;
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
      transition: background-color 0.2s, transform 0.2s;
    }

    .popup-close-btn:hover {
      background-color: #cc0000;
      transform: scale(1.1);
    }

    /* Clase utilitaria para ocultar */
    .hidden {
      display: none !important;
    }