/* Overlay inicialmente oculto con transparencia */
    .overlay {
      position: fixed; 
      top: 0; 
      left: 0;
      width: 100%; 
      height: 100%; 
      background: rgba(0,0,0,0.5);
      z-index: 999;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.8s ease;
    }

    /* Estado activo del overlay */
    .overlay.active {
      opacity: 1;
      pointer-events: all;
    }

    /* Pop-up con animación */
    .popup {
      position: relative;
      background: #fff;
      width: 40%;
      margin: 120px auto;
      padding: 30px;
      border-radius: 10px;
      text-align: center;
      box-shadow: 0 0 15px rgba(0,0,0,0.3);
      opacity: 0;
      transform: scale(0.8);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

    /* Estado visible del pop-up */
    .overlay.active .popup {
      opacity: 1;
      transform: scale(1);
    }

    /* Botón de cierre */
    .close-btn {
      position: absolute;
      top: 1px;
      right: 6px;
      font-size: 30px;
      cursor: pointer;
      color: #333;

    }
    .close-btn:hover {
      color: #e00;
    }

    /* Imagen dentro del pop-up */
    .popup img {
      max-width: 100%;
      height: auto;
      border-radius: 8px;
      margin-bottom: 1px;
    }
    @media (max-width: 768px) {
      .popup {
        width: 70%;
      }
    }
    @media (max-width: 400px) {
      .popup {
        width: 90%;
      }
    }