/* css/mindmap-styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 25%, #1d4ed8 50%, #1e40af 75%, #1e3a8a 100%) !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    overflow: hidden;
    height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Asegurar que el gradiente sea visible incluso si hay elementos superpuestos */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 25%, #1d4ed8 50%, #1e40af 75%, #1e3a8a 100%);
    z-index: -1;
    pointer-events: none;
}

#mindmap-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #4CAF50;
    z-index: 1000;
}

.header h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.control-panel {
    display: flex;
    gap: 10px;
    align-items: center;
}

.control-panel button {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.control-panel button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.mindmap-svg-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: rgba(245, 247, 250, 0.3);
    backdrop-filter: blur(10px);
}

.info-panel {
    position: absolute;
    top: 100px;
    right: 20px;
    width: 350px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 100;
}

.info-panel.active {
    transform: translateX(0);
}

.panel-content {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.panel-content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.panel-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.panel-content ul {
    margin-left: 20px;
    color: #666;
}

.panel-content li {
    margin-bottom: 5px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .info-panel {
        width: 300px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .control-panel {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .info-panel {
        width: 280px;
        top: 80px;
    }
    
    .header {
        padding: 10px 15px;
    }
    
    .header h1 {
        font-size: 1.3rem;
    }
    
    .control-panel button {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}