 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideUp {
            from {
                transform: translate(-50%, -40%) scale(0.9);
                opacity: 0;
            }
            to {
                transform: translate(-50%, -50%) scale(1);
                opacity: 1;
            }
        }

        @keyframes bounceIn {
            0% { transform: scale(0.5); opacity: 0; }
            60% { transform: scale(1.2); opacity: 1; }
            100% { transform: scale(1); }
        }

        .popup-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.65);
            backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 999999;
            animation: fadeIn 0.3s ease-out;
            cursor: pointer;
        }

        .popup-overlay.hidden {
            display: none;
        }

        .popup-container {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
            max-width: 90%;
            width: 600px;
            height: auto; /* Cambiado a auto para adaptarse al contenido */
            overflow: hidden;
            display: flex;
            flex-direction: column;
            animation: slideUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
            cursor: default;
        }

        .popup-image-container {
            position: relative;
            width: 100%;
            height: 0;
            padding-bottom: 100%; /* Relación de aspecto 1:1, ajusta según necesites */
            background-size: contain; /* Cambiado de cover a contain para mostrar toda la imagen */
            background-position: center;
            background-repeat: no-repeat;
            cursor: pointer;
            transition: transform 0.3s ease;
            background-image: url('https://fibraflash.net/bt/assets/img/popup.png');
        }

        .popup-image-container:hover {
            transform: scale(1.02);
        }

        .popup-image-container::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 40px;
            background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
            pointer-events: none;
        }

        .popup-close {
            position: absolute;
            top: 15px;
            right: 15px;
            width: 45px;
            height: 45px;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(10px);
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 22px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            font-weight: 300;
            z-index: 3;
            animation: bounceIn 0.6s ease;
        }

        .popup-close:hover {
            background: rgba(0, 0, 0, 0.9);
            transform: scale(1.1) rotate(90deg);
        }

        .click-indicator {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            z-index: 2;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .popup-image-container:hover .click-indicator {
            opacity: 1;
        }

        @media (max-width: 768px) {
            .popup-container {
                width: 90%;
            }

            .popup-image-container {
                padding-bottom: 120%; /* Relación de aspecto para móviles */
            }
        }

        @media (max-width: 480px) {
            .popup-container {
                width: 95%;
            }

            .popup-close {
                width: 38px;
                height: 38px;
                font-size: 20px;
                top: 10px;
                right: 10px;
            }

            .popup-image-container {
                padding-bottom: 140%; /* Relación de aspecto para móviles pequeños */
            }

            .click-indicator {
                font-size: 12px;
                padding: 6px 12px;
            }
        }