/* ========================================
   INFO POPUP MODULE - Independiente
   ======================================== */

/* Botón de info flotante */
.info-trigger-btn {
    position: static;
    bottom: 80px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
    border: 2px solid #00ff00;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #000;
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.5);
    transition: all 0.3s ease;
    font-family: monospace;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.info-trigger-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.8);
    background: linear-gradient(135deg, #00ffff 0%, #00cccc 100%);
    border-color: #00ffff;
}

.info-trigger-btn:active {
    transform: scale(0.95);
}

/* Overlay del popup */
.info-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10002;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

/* Contenedor del popup */
.info-popup-container {
    position: relative;
    background: #000;
    border: 2px solid #00ff00;
    border-radius: 10px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px 30px 30px;
    box-shadow: 0 0 50px rgba(0, 255, 0, 0.5);
    animation: slideUp 0.4s ease;
    color: #00ff00;
    font-family: 'Courier New', monospace;
}

/* Botón de cerrar */
.info-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #00ff00;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #00ff00;
    transition: all 0.3s ease;
    z-index: 1;
}

.info-popup-close:hover {
    background: #00ff00;
    color: #000;
    transform: rotate(90deg);
}

/* Contenido del popup */
.info-popup-content {
    line-height: 1.6;
}

.info-popup-content h1 {
    color: #00ffff;
    font-size: 2em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.info-popup-content h2 {
    color: #00ff00;
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.3);
    padding-bottom: 10px;
}

.info-popup-content h3 {
    color: #00ffff;
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
}

.info-popup-content p {
    margin-bottom: 15px;
    color: #00ff00;
    opacity: 0.9;
}

.info-popup-content ul {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 15px;
}

.info-popup-content li {
    margin-bottom: 10px;
    position: relative;
    color: #00ff00;
}

.info-popup-content li:before {
    content: '▸';
    position: absolute;
    left: -20px;
    color: #00ffff;
}

.info-popup-content a {
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-popup-content a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.info-popup-content strong {
    color: #00ffff;
}

.info-popup-content em {
    color: #00ff00;
    font-style: normal;
    opacity: 0.8;
}

/* Sección destacada */
.info-highlight {
    background: rgba(0, 255, 0, 0.1);
    border-left: 3px solid #00ff00;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

/* Scrollbar personalizada para el popup */
.info-popup-container::-webkit-scrollbar {
    width: 8px;
}

.info-popup-container::-webkit-scrollbar-track {
    background: rgba(0, 255, 0, 0.1);
}

.info-popup-container::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

.info-popup-container::-webkit-scrollbar-thumb:hover {
    background: #00ffff;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Badge/Tag styles */
.info-tag {
    display: inline-block;
    background: rgba(0, 255, 0, 0.2);
    border: 1px solid #00ff00;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.85em;
    margin-right: 8px;
    margin-bottom: 8px;
    color: #00ffff;
}

/* Responsive */
@media (max-width: 768px) {
    .info-trigger-btn {
        bottom: 70px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .info-popup-container {
        width: 95%;
        padding: 35px 20px 20px;
        max-height: 90vh;
    }
    
    .info-popup-content h1 {
        font-size: 1.5em;
    }
    
    .info-popup-content h2 {
        font-size: 1.2em;
    }
}

/* Efecto glitch opcional para el título */
.glitch-title {
    animation: glitch-text 3s infinite;
}

@keyframes glitch-text {
    0%, 100% { 
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    }
    25% { 
        text-shadow: -2px 0 10px rgba(255, 0, 255, 0.5);
    }
    50% { 
        text-shadow: 2px 0 10px rgba(0, 255, 0, 0.5);
    }
    75% { 
        text-shadow: -2px 0 10px rgba(0, 255, 255, 0.5);
    }
}
